@charset "UTF-8";

/* 모바일 웹 및 웹뷰 최적화 기본 레이아웃 */
:root {
    --line-1-color: #0052A4;
    --line-2-color: #00A84D;
    --line-3-color: #EF7C1C;
    --line-4-color: #00A5DE;
    --line-5-color: #996CAC;
    --active-line-color: #00A84D;
    --bg-soft: #F4F6F9;
    --card-border: #E5E8EB;
    --text-primary-dark: #191F28;
    --text-secondary-muted: #6B7684;
}

body {
    background-color: #E9ECEF;
    color: var(--text-primary-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Malgun Gothic", "맑은 고딕", sans-serif;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* 모바일 기준 컨테이너 (PC 접속 시에도 모바일 뷰포트 유지, 웹뷰에서는 100% 확장) */
.mobile-shell {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--bg-soft);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
}

/* 상단 고정 헤더 */
.app-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.app-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

/* 검색 영역 */
.search-section {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--card-border);
}

.station-search-input {
    border-radius: 10px;
    background-color: #F2F4F6;
    border: 1px solid transparent;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
}

.station-search-input:focus {
    background-color: #FFFFFF;
    border-color: var(--active-line-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 77, 0.12);
}

/* 현재 선택 역 도착 요약 카드 (컴팩트 & 고대비) */
.station-summary-card {
    background-color: #FFFFFF;
    border-radius: 14px;
    border: 3px solid var(--active-line-color);
    position: relative;
    overflow: hidden;
}

.station-badge-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
    background-color: var(--active-line-color);
    line-height: 1.2;
}

.current-station-name {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.updated-time-label {
    font-size: 0.76rem;
}

/* 방면 탭 버튼 (한 줄 꽉 찬 슬림 버튼) */
.direction-tabs .btn {
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.42rem 0.75rem;
    border-radius: 8px;
    background-color: #F8F9FA;
    border-color: #DEE2E6;
    color: #495057;
}

.direction-tabs .btn.active {
    background-color: var(--active-line-color);
    color: #FFFFFF;
    border-color: var(--active-line-color);
    font-weight: 700;
}

/* 도착 예정 시간 강조 영역 (한 줄 고대비 바) */
.arrival-highlight-box {
    background-color: #FFF5F5;
    border-radius: 10px;
    border: 1px solid #FFD8D8;
}

.eta-label-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #495057;
}

.eta-time-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #D9381E;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* 최대 3전 역 열차 도착 현황 트랙 */
.track-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.track-timeline {
    position: relative;
    padding: 0.5rem 0;
}

/* 수직 연결선 */
.track-timeline::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 24px;
    bottom: 24px;
    width: 4px;
    background-color: #DEE2E6;
    z-index: 1;
}

.track-node-item {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.track-node-item.is-target-station {
    background-color: #F2F9F5;
    border: 1px solid #CBEBD7;
}

.track-node-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 3px solid #ADB5BD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary-muted);
    flex-shrink: 0;
    margin-right: 0.85rem;
}

/* 열차가 위치한 역 활성화 표시 */
.track-node-item.has-train .track-node-dot {
    border-color: var(--active-line-color);
    background-color: var(--active-line-color);
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 168, 77, 0.2);
}

/* 목표(현재 선택) 역 노드 표시 */
.track-node-item.is-target-station .track-node-dot {
    border-color: var(--text-primary-dark);
    background-color: var(--text-primary-dark);
    color: #FFFFFF;
}

.station-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary-muted);
}

.station-node-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary-dark);
}

.train-status-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.train-status-badge.present {
    background-color: #FFE8E5;
    color: #D9381E;
}

.train-status-badge.Approaching {
    background-color: #E8F8EF;
    color: #008A3E;
}

.train-status-badge.empty {
    background-color: #F2F4F6;
    color: #8B95A1;
}

/* 하단 푸터 */
.app-footer {
    margin-top: auto;
    font-size: 0.78rem;
    color: var(--text-secondary-muted);
}

/* 모바일 하단 고정 네비게이션 바 */
.mobile-shell {
    padding-bottom: 68px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: #FFFFFF;
    border-top: 1px solid var(--card-border);
    z-index: 1030;
    padding: 0.38rem 0 calc(0.38rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6B7684;
    padding: 0.2rem 0;
    transition: color 0.15s ease-in-out;
}

.bottom-nav-item:hover {
    color: #77C4A3;
}

.bottom-nav-item.active {
    color: #77C4A3;
    font-weight: 700;
}

.bottom-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.18rem;
}

.bottom-nav-label {
    font-size: 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* 상단 헤더 로고 및 인라인 검색 폼 */
.header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.header-search-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
}

/* 좌우 2열 방면 탭 버튼 및 2줄 열차 상태 배지 레이아웃 보정 */
.direction-tabs .btn {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.25;
    padding: 0.45rem 0.35rem;
    word-break: keep-all;
}

.station-node-name {
    white-space: nowrap;
}

.train-status-badge {
    display: inline-block;
    white-space: nowrap;
}

.train-status-badge.present {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.25;
    padding: 0.32rem 0.6rem;
    text-align: right;
}

.train-badge-top {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.92;
}

.train-badge-bottom {
    font-size: 0.8rem;
    font-weight: 800;
}

/* 환승역 호선 선택 버튼 바 (상단 검색창 아래) */
.line-selector-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.line-select-btn {
    --btn-line-color: #00A84D;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background-color: #FFFFFF;
    color: #343A40;
    border: 1.5px solid #DEE2E6;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.line-select-btn .line-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--btn-line-color);
    flex-shrink: 0;
}

.line-select-btn:hover {
    border-color: var(--btn-line-color);
}

.line-select-btn.active {
    background-color: var(--btn-line-color);
    border-color: var(--btn-line-color);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.line-select-btn.active .line-color-dot {
    background-color: #FFFFFF;
}

/* 즐겨찾기 별(★/☆) 버튼 및 즐겨찾기 페이지 카드 스타일 */
.station-badge-pill,
.current-station-name,
.updated-time-label {
    white-space: nowrap;
}

.btn-favorite-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    height: 28px;
    padding: 0 0.65rem;
    border-radius: 999px;
    border: 1px solid #DEE2E6;
    background-color: #F8F9FA;
    color: #6B7684;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-favorite-star.icon-only {
    width: 28px;
    padding: 0;
    border-radius: 50%;
}

.favorite-star-svg {
    width: 14px;
    height: 14px;
    display: block;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-favorite-star.active {
    background-color: #FFF9DB;
    border-color: #FCC419;
    color: #E67700;
}

.btn-favorite-star.active .favorite-star-svg {
    fill: #FCC419;
    stroke: #F59F00;
}

.favorite-star-label {
    display: inline-block;
    line-height: 1;
}

.favorite-policy-text {
    font-size: 0.78rem;
    color: var(--text-secondary-muted);
    line-height: 1.4;
}

.favorite-eta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F8F9FA;
    border-radius: 8px;
    border: 1px solid #E9ECEF;
}

.favorite-dir-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.favorite-dir-eta {
    font-size: 0.9rem;
    font-weight: 800;
    color: #D9381E;
    white-space: nowrap;
}

.favorite-detail-btn {
    font-size: 0.75rem;
    font-weight: 600;
}

/* 전역 공통 로딩 스피너 오버레이 (common.js) */
.loading-spinner-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background-color: rgba(25, 31, 40, 0.28);
    backdrop-filter: blur(1.5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-spinner-box {
    width: 68%;
    max-width: 320px;
    min-height: 45vh;
    background-color: #FFFFFF;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner-img {
    width: 100%;
    max-width: 240px;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    display: block;
}

/* 호선별 노선도 페이지 트랙 및 역 노드 스타일 (line.html / line.js) */
.route-line-timeline {
    position: relative;
    padding: 0.25rem 0;
}

.route-line-timeline::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background-color: var(--active-line-color);
    opacity: 0.35;
    z-index: 1;
}

.route-station-item {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0.55rem 0.6rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.route-station-item:hover,
.route-station-item:active {
    background-color: #F8F9FA;
    border-color: #E5E8EB;
}

.route-station-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 3px solid var(--active-line-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary-dark);
    flex-shrink: 0;
    margin-right: 0.85rem;
}

.route-go-badge {
    display: inline-block;
    padding: 0.26rem 0.58rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #F2F4F6;
    color: #495057;
    white-space: nowrap;
}

.route-station-item:hover .route-go-badge {
    background-color: var(--active-line-color);
    color: #FFFFFF;
}

/* 수도권 전체 지하철 노선도 SVG 뷰포트 및 컨트롤 스타일 (B안) */
.subway-map-viewport {
    width: 100%;
    height: calc(100vh - 155px);
    min-height: 480px;
    background-color: #FAFBFC;
    border-radius: 12px;
    border: 1px solid #E5E8EB;
    overflow: hidden;
    position: relative;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.subway-map-viewport:active {
    cursor: grabbing;
}

.subway-map-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.svg-han-river {
    fill: none;
    stroke: #DDF0FF;
    stroke-width: 34;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svg-line-path {
    fill: none;
    stroke-width: 6.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.2s ease, stroke-width 0.2s ease;
}

.svg-line-path.is-dimmed {
    opacity: 0.14;
}

.svg-line-path.is-active {
    stroke-width: 8;
}

.svg-station-node {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.svg-station-node.is-dimmed {
    opacity: 0.15;
}

.svg-station-dot {
    fill: #FFFFFF;
    stroke-width: 2.5;
    transition: transform 0.15s ease;
}

.svg-station-node.is-transfer .svg-station-dot {
    stroke-width: 3.2;
}

.svg-station-node:hover .svg-station-dot,
.svg-station-node.is-focused .svg-station-dot {
    fill: #FFE066;
    stroke: #D9381E;
    stroke-width: 4;
}

.svg-station-label {
    font-size: 11px;
    font-weight: 700;
    fill: #191F28;
    paint-order: stroke;
    stroke: #FFFFFF;
    stroke-width: 3.2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.svg-station-label.transfer-label {
    font-size: 12.5px;
    font-weight: 800;
}

.svg-station-node.is-focused .svg-station-label {
    font-size: 15px;
    fill: #D9381E;
}

.map-zoom-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.map-zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #DEE2E6;
    background-color: rgba(255, 255, 255, 0.94);
    color: #191F28;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.map-zoom-btn:active {
    background-color: #E9ECEF;
}

/* 설정 페이지 스타일 (setting.html / setting.js) */
.setting-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-secondary-gray);
    letter-spacing: -0.01em;
}

.setting-list {
    display: flex;
    flex-direction: column;
}

.setting-item,
.setting-menu-btn {
    border-bottom: 1px solid #F2F4F6;
}

.setting-list > :last-child {
    border-bottom: none;
}

.setting-menu-btn {
    width: 100%;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 0.72rem 0.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: background-color 0.15s ease;
}

.setting-menu-btn:hover,
.setting-menu-btn:active {
    background-color: #F8F9FA;
}

.setting-item-label {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-primary-dark);
}

.setting-item-desc {
    font-size: 0.78rem;
    color: var(--text-secondary-gray);
    margin-top: 0.15rem;
    line-height: 1.4;
}

.setting-arrow-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: #8B95A1;
    flex-shrink: 0;
}

.setting-toggle-switch {
    width: 2.75rem !important;
    height: 1.45rem !important;
    cursor: pointer;
}

.setting-toggle-switch:checked {
    background-color: #00A84D;
    border-color: #00A84D;
}

/* 설정 하위 페이지 상단 뒤로 가기 바, 서랍형(아코디언) 및 약관 본문 스타일 */
.setting-subpage-bar {
    background-color: #FFFFFF;
    border: 1px solid #E5E8EB;
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
}

.btn-back-setting {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary-dark);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    background-color: #F2F4F6;
    transition: background-color 0.15s ease;
}

.btn-back-setting:hover,
.btn-back-setting:active {
    background-color: #E5E8EB;
    color: var(--text-primary-dark);
}

.setting-subpage-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-primary-dark);
}

.setting-subpage-spacer {
    width: 48px;
    display: inline-block;
}

.setting-drawer-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.setting-drawer-item {
    background-color: #FFFFFF;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.setting-drawer-header {
    list-style: none;
    padding: 0.9rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.setting-drawer-header::-webkit-details-marker {
    display: none;
}

.setting-drawer-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary-dark);
    line-height: 1.4;
}

.setting-drawer-date {
    font-size: 0.75rem;
    color: var(--text-secondary-gray);
    margin-top: 0.2rem;
}

.setting-drawer-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00A84D;
    background-color: #EBF9F1;
    padding: 0.22rem 0.55rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.setting-drawer-body {
    padding: 0.85rem 1rem 1rem 1rem;
    border-top: 1px solid #F2F4F6;
    background-color: #FAFBFC;
    font-size: 0.86rem;
    color: #333D4B;
    line-height: 1.65;
}

.setting-terms-article {
    line-height: 1.68;
}

.setting-terms-heading {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary-dark);
    margin-bottom: 0.35rem;
}

.setting-terms-paragraph {
    font-size: 0.84rem;
    color: #4E5968;
    margin-bottom: 1.1rem;
}

/* 시스템 큰 글씨(폰트 확대) 설정 시 레이아웃 깨짐 및 카드 밖 넘침 방지 보정 */
.track-card h3,
.station-summary-card,
.eta-label-text {
    word-break: keep-all;
}

.track-node-item {
    gap: 0.35rem;
}

.track-node-item > .flex-grow-1 {
    min-width: 0;
}

.track-node-item .station-node-name {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.25;
}

.track-node-item > .flex-shrink-0 {
    flex-shrink: 1 !important;
    max-width: 58%;
    min-width: 0;
}

.track-node-item .train-status-badge {
    max-width: 100%;
    white-space: normal;
    word-break: keep-all;
}

.track-node-item .train-badge-top {
    white-space: normal;
    word-break: keep-all;
    line-height: 1.25;
}

.arrival-highlight-box > .d-flex {
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.header-search-input::placeholder {
    font-size: 0.82rem;
}

/* 홈 화면 우측 하단 플로팅 새로고침 버튼 (FAB) */
.floating-refresh-wrap {
    position: fixed;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    pointer-events: none;
    z-index: 1025;
    display: flex;
    justify-content: flex-end;
    padding-right: 16px;
}

.floating-refresh-btn {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--active-line-color);
    background-color: #FFFFFF;
    color: var(--active-line-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.floating-refresh-btn:active {
    background-color: var(--active-line-color);
    color: #FFFFFF;
    transform: scale(0.95);
}

.floating-refresh-svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 노선도 상단 구글 애드센스 배너 슬롯 영역 */
.adsense-banner-slot {
    width: 100%;
    min-height: 64px;
    background-color: #FFFFFF;
    border: 1px dashed #CED4DA;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.adsense-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    color: #8B95A1;
}

.adsense-badge {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    background-color: #E9ECEF;
    color: #495057;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.adsense-placeholder-text {
    font-size: 0.78rem;
    font-weight: 600;
}

/* 노선도 상단 광고 배너 추가에 따른 노선도 뷰포트 박스 높이 축소 보정 */
.subway-map-viewport {
    height: calc(100vh - 250px);
    min-height: 360px;
}

/* 쿠팡 파트너스 배너 슬롯 영역 */
.coupang-banner-slot {
    width: 100%;
    min-height: 64px;
    background-color: #FFFFFF;
    border: 1px dashed #CED4DA;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.coupang-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.75rem;
    color: #8B95A1;
}

.coupang-badge {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    background-color: #FFF0F0;
    color: #E02020;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.coupang-placeholder-text {
    font-size: 0.78rem;
    font-weight: 600;
}

/* 쿠팡 파트너스 광고 영역 (.advertiseCoupang) 스타일 및 120px 배너 기준 노선도 높이 보정 */
.advertiseCoupang {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 0.35rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
}

.advertiseCoupang iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    border: 0;
}

.subway-map-viewport {
    height: calc(100vh - 305px);
    min-height: 310px;
}

/* 공통 에러 페이지 (404, 500, 403, 400 등) 스타일 */
.error-state-card {
    border-radius: 18px;
    border: 1px solid var(--card-border);
    background-color: #FFFFFF;
}

.error-code-badge {
    display: inline-block;
    padding: 0.32rem 0.78rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background-color: #E8F8EF;
    color: #008A3E;
}

.error-code-badge.is-server-error {
    background-color: #FFE8E5;
    color: #D9381E;
}

.error-title-text {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-primary-dark);
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.error-desc-text {
    font-size: 0.86rem;
    color: var(--text-secondary-muted);
    line-height: 1.55;
    word-break: keep-all;
}

.btn-error-action {
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.62rem 0.75rem;
    border-radius: 10px;
}

.btn-error-home {
    background-color: var(--active-line-color);
    border-color: var(--active-line-color);
    color: #FFFFFF;
}

.btn-error-home:hover,
.btn-error-home:active {
    background-color: #008A3E;
    border-color: #008A3E;
    color: #FFFFFF;
}

/* 동일 전역에 열차가 2대 이상 위치할 때 다중 배지 세로 정렬 스타일 */
.train-badge-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.32rem;
}



