:root {
    --app-bg: #edf2f8;
    --app-surface: #ffffff;
    --app-surface-soft: #f5f7fa;
    --app-text: #102033;
    --app-muted: #637083;
    --app-line: rgba(16, 32, 51, 0.11);
    --app-primary: #123c73;
    --app-primary-strong: #092b52;
    --app-primary-soft: #eaf2fc;
    --app-accent: #ed7540;
    --app-accent-strong: #d85d29;
    --app-success: #149164;
    --app-danger: #b8332f;
    --app-shadow-sm: 0 8px 24px rgba(11, 34, 61, 0.07);
    --app-shadow: 0 24px 70px rgba(11, 34, 61, 0.13);
    --app-radius-xl: 28px;
    --app-radius-lg: 20px;
    --app-radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    color: var(--app-text);
    background:
        radial-gradient(circle at 10% -10%, rgba(255, 203, 163, 0.7), transparent 28rem),
        radial-gradient(circle at 92% 8%, rgba(158, 203, 255, 0.65), transparent 30rem),
        linear-gradient(180deg, #f7f2ea 0, var(--app-bg) 28rem, #f6f8fb 100%);
    font-family: "Pretendard Variable", Pretendard, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
    mask-image: linear-gradient(180deg, #000, transparent 72%);
    content: "";
    pointer-events: none;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button {
    color: inherit;
}

svg {
    display: block;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--app-primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

#app {
    width: min(860px, calc(100% - 28px));
    width: min(860px, calc(100% - 28px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 24px 0 48px;
}

.app-header {
    position: relative;
    isolation: isolate;
    min-height: 190px;
    overflow: hidden;
    padding: 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 42, 81, 0.98), rgba(18, 60, 115, 0.95) 55%, rgba(28, 77, 137, 0.92));
    box-shadow: 0 28px 72px rgba(9, 43, 82, 0.24);
}

.app-header::before,
.app-header::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.app-header::before {
    top: -170px;
    right: -75px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 0 0 48px rgba(255, 255, 255, 0.025),
        0 0 0 96px rgba(255, 255, 255, 0.018);
}

.app-header::after {
    right: 80px;
    bottom: -72px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(237, 117, 64, 0.42), rgba(237, 117, 64, 0));
    filter: blur(4px);
}

.app-header-bar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 16px;
    align-items: center;
}

.header-button,
.btn-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    color: inherit;
    background: rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: 0.2s ease;
}

.header-button svg,
.btn-icon svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.header-button:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.17);
    transform: translateY(-1px);
}

.header-button:active {
    transform: translateY(0);
}

.app-header-copy {
    min-width: 0;
}

.app-eyebrow,
.drawer-eyebrow {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.app-header-copy h1 {
    overflow: hidden;
    margin: 4px 0 0;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-header-bottom {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 27px;
    padding-top: 21px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.app-subtitle {
    max-width: 510px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.96rem;
    line-height: 1.65;
}

.live-pill,
.results-live {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.12);
    font-size: 0.78rem;
    font-weight: 700;
}

.live-dot,
.results-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #55e2a9;
    box-shadow: 0 0 0 5px rgba(85, 226, 169, 0.1);
    animation: live-pulse 2s ease-in-out infinite;
}

.tabs {
    position: sticky;
    top: 12px;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: -18px 24px 0;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 38px rgba(9, 43, 82, 0.13);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.tab {
    display: flex;
    min-width: 0;
    min-height: 54px;
    gap: 9px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 0;
    border-radius: 16px;
    color: var(--app-muted);
    background: transparent;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tab svg {
    flex: 0 0 auto;
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tab span {
    min-width: 0;
}

.tab:hover:not(.active) {
    color: var(--app-primary);
    background: var(--app-primary-soft);
}

.tab.active {
    color: #fff;
    background: var(--app-primary);
    box-shadow: 0 9px 22px rgba(18, 60, 115, 0.22);
}

.tab.active svg {
    stroke-width: 2;
}

.content {
    min-height: 420px;
    margin-top: 14px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--app-radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--app-shadow);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.content:focus {
    outline: none;
}

.content-enter {
    animation: content-in 0.28s ease both;
}

.page-intro {
    max-width: 640px;
    margin-bottom: 26px;
}

.section-kicker,
.results-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.page-intro h2 {
    margin: 12px 0 8px;
    font-size: clamp(1.65rem, 4vw, 2.2rem);
    letter-spacing: -0.045em;
    line-height: 1.24;
}

.page-intro p {
    margin: 0;
    color: var(--app-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* Search */

.search-form {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px;
    border: 1px solid rgba(18, 60, 115, 0.15);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(11, 34, 61, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
    border-color: rgba(18, 60, 115, 0.42);
    box-shadow: 0 18px 46px rgba(11, 34, 61, 0.14), 0 0 0 4px rgba(18, 60, 115, 0.06);
}

.search-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
}

.search-field-icon {
    width: 22px;
    margin-left: 9px;
    fill: none;
    stroke: var(--app-primary);
    stroke-linecap: round;
    stroke-width: 1.8;
}

.search-field input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    color: var(--app-text);
    background: transparent;
    font-size: 1rem;
    font-weight: 650;
}

.search-field input::placeholder {
    color: #9ba5b2;
    font-weight: 500;
}

.search-field input::-webkit-search-cancel-button {
    appearance: none;
}

.search-field input:focus-visible {
    outline: none;
}

.search-form:has(input:focus-visible) {
    border-color: #123c73;
    outline: 3px solid #123c73;
    outline-offset: 2px;
}

body.contrast-high .search-form:has(input:focus-visible) {
    border-color: #000;
    outline-color: #000;
}

@supports not selector(:has(*)) {
    .search-field input:focus-visible {
        outline: 3px solid #123c73;
        outline-offset: 2px;
    }
}

a.chip {
    text-decoration: none;
}

.region-notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--app-line);
    border-left: 4px solid #b45309;
    border-radius: 12px;
    background: #fffbeb;
    color: #3b2a05;
    font-size: 0.9rem;
    line-height: 1.55;
}

body.contrast-high .region-notice {
    background: #fff;
    color: #000;
    border-color: #000;
}

.clear-search {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    font-size: 1.25rem;
    cursor: pointer;
}

.search-submit {
    display: inline-flex;
    min-width: 112px;
    gap: 9px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: var(--app-accent);
    box-shadow: 0 9px 20px rgba(237, 117, 64, 0.22);
    font-weight: 850;
    cursor: pointer;
    transition: 0.2s ease;
}

.search-submit:hover {
    background: var(--app-accent-strong);
    transform: translateY(-1px);
}

.search-submit svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    gap: 3px;
    padding: 8px;
    border: 1px solid var(--app-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 54px rgba(11, 34, 61, 0.18);
}

.suggestion-item {
    display: flex;
    width: 100%;
    min-height: 44px;
    gap: 11px;
    align-items: center;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    color: var(--app-text);
    background: transparent;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.suggestion-item:hover {
    color: var(--app-primary);
    background: var(--app-primary-soft);
}

.suggestion-icon {
    color: var(--app-accent);
    font-size: 1.1rem;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 14px;
    margin-top: 18px;
}

.recommendations {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-lg);
    background: var(--app-surface-soft);
}

.panel-heading {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 13px;
}

.panel-heading h3 {
    margin: 0;
    font-size: 0.92rem;
    letter-spacing: -0.02em;
}

.panel-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 9px;
    color: var(--app-primary);
    background: #fff;
    box-shadow: 0 4px 12px rgba(11, 34, 61, 0.06);
    font-weight: 900;
}

.panel-icon-fire {
    color: var(--app-accent);
}

.chip-list,
.tag-filter,
.favorites-controls,
.station-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip,
.tag-chip,
.btn-chip,
.modal-tag-chip {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--app-line);
    border-radius: 999px;
    color: #415066;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
    transition: 0.18s ease;
}

.chip:hover,
.tag-chip:hover,
.btn-chip:hover {
    border-color: rgba(18, 60, 115, 0.25);
    color: var(--app-primary);
    background: var(--app-primary-soft);
    transform: translateY(-1px);
}

.chip-recent::before {
    margin-right: 5px;
    color: #98a3b0;
    content: "↺";
}

.recent-empty {
    margin: 4px 0;
    color: #8a96a5;
    font-size: 0.82rem;
}

/* Nearby */

.nearby-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
    gap: 32px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--app-line);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(234, 242, 252, 0.7), rgba(255, 255, 255, 0.95));
}

.location-visual {
    position: relative;
    display: grid;
    min-height: 220px;
    overflow: hidden;
    place-items: center;
    border-radius: 20px;
    background:
        linear-gradient(rgba(18, 60, 115, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 60, 115, 0.045) 1px, transparent 1px),
        #eef4fb;
    background-size: 24px 24px;
}

.location-ring {
    position: absolute;
    border: 1px solid rgba(18, 60, 115, 0.16);
    border-radius: 50%;
}

.location-ring-outer {
    width: 180px;
    height: 180px;
    background: rgba(18, 60, 115, 0.025);
}

.location-ring-inner {
    width: 110px;
    height: 110px;
    background: rgba(18, 60, 115, 0.04);
}

.location-pin {
    z-index: 1;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 6px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    color: #fff;
    background: var(--app-accent);
    box-shadow: 0 15px 30px rgba(237, 117, 64, 0.3);
    transform: rotate(-4deg);
}

.location-pin svg {
    width: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.range-row,
.range-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.range-row {
    font-weight: 750;
}

.range-row strong {
    color: var(--app-primary);
    font-size: 1.05rem;
}

#radius-input {
    width: 100%;
    height: 5px;
    margin: 22px 0 7px;
    border-radius: 999px;
    outline: 0;
    appearance: none;
    background: linear-gradient(90deg, var(--app-primary) 28.5%, #dce3eb 28.5%);
    cursor: pointer;
}

#radius-input::-webkit-slider-thumb {
    width: 21px;
    height: 21px;
    border: 4px solid #fff;
    border-radius: 50%;
    appearance: none;
    background: var(--app-primary);
    box-shadow: 0 2px 8px rgba(18, 60, 115, 0.32);
}

#radius-input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--app-primary);
    box-shadow: 0 2px 8px rgba(18, 60, 115, 0.32);
}

.range-scale {
    color: #8b97a6;
    font-size: 0.72rem;
}

.btn-location,
.btn-primary,
.btn-toggle,
.empty-action {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--app-radius-md);
    color: #fff;
    background: var(--app-primary);
    font-weight: 850;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-location {
    width: 100%;
    gap: 10px;
    margin-top: 20px;
    box-shadow: 0 12px 24px rgba(18, 60, 115, 0.18);
}

.btn-location svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.btn-location:hover,
.btn-primary:hover,
.btn-toggle:hover,
.empty-action:hover {
    background: var(--app-primary-strong);
    transform: translateY(-1px);
}

.privacy-note {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin: 12px 2px 0;
    color: var(--app-muted);
    font-size: 0.74rem;
    line-height: 1.45;
}

.privacy-note svg {
    flex: 0 0 14px;
    width: 14px;
    margin-top: 1px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

#accuracy-info {
    margin-top: 10px;
}

.accuracy-badge,
.distance,
.badge {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    font-size: 0.75rem;
    font-weight: 800;
}

/* Results and stop cards */

.results:not(:empty) {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--app-line);
}

.results-heading {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 14px;
}

.results-heading h2 {
    margin: 7px 0 0;
    font-size: 1.35rem;
    letter-spacing: -0.035em;
}

.results-live {
    border-color: rgba(20, 145, 100, 0.14);
    color: #29765a;
    background: rgba(20, 145, 100, 0.07);
}

.results-live i {
    width: 6px;
    height: 6px;
    background: var(--app-success);
    box-shadow: none;
}

.station-list,
.favorites-list {
    display: grid;
    gap: 10px;
}

.station-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--app-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(11, 34, 61, 0.04);
    transition: 0.2s ease;
}

.station-item:hover {
    border-color: rgba(18, 60, 115, 0.22);
    box-shadow: var(--app-shadow-sm);
    transform: translateY(-1px);
}

.station-main {
    display: flex;
    min-width: 0;
    gap: 14px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.station-marker {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    color: var(--app-primary);
    background: var(--app-primary-soft);
}

.station-marker svg {
    width: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.station-info {
    min-width: 0;
}

.station-type {
    display: block;
    margin-bottom: 3px;
    color: #97a1ae;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.station-info h3 {
    overflow: hidden;
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.station-meta {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-top: 5px;
}

.station-id,
.added-time,
.fav-sub {
    color: var(--app-muted);
    font-size: 0.78rem;
}

.station-actions {
    flex-wrap: nowrap;
}

.station-actions button {
    display: inline-flex;
    min-height: 42px;
    gap: 7px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    color: #4f5e71;
    background: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.18s ease;
}

.station-actions button:hover {
    color: var(--app-primary);
    border-color: rgba(18, 60, 115, 0.24);
    background: var(--app-primary-soft);
}

.station-actions button svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.station-actions .btn-favorite {
    width: 42px;
    padding: 0;
    border-color: rgba(237, 117, 64, 0.22);
    color: var(--app-accent);
    background: rgba(237, 117, 64, 0.06);
    font-size: 1.25rem;
}

.station-actions .btn-favorite.active {
    color: #fff;
    border-color: var(--app-accent);
    background: var(--app-accent);
}

.station-actions .btn-arrivals {
    min-width: 102px;
    border-color: var(--app-primary);
    color: #fff;
    background: var(--app-primary);
}

.station-actions .btn-arrivals:hover {
    color: #fff;
    background: var(--app-primary-strong);
}

.empty-state,
.loading,
.error {
    padding: 32px 20px;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-lg);
    background: var(--app-surface-soft);
    text-align: center;
}

.result-empty h3,
.empty-state h3 {
    margin: 10px 0 0;
    font-size: 1.05rem;
}

.result-empty-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto;
    place-items: center;
    border-radius: 17px;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    font-size: 1.6rem;
}

.error {
    border-color: rgba(184, 51, 47, 0.16);
    color: #8b2724;
    background: rgba(184, 51, 47, 0.06);
}

.error p,
.loading p {
    margin: 0;
}

.loading {
    display: grid;
    gap: 12px;
    place-items: center;
    color: var(--app-muted);
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(18, 60, 115, 0.12);
    border-top-color: var(--app-accent);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

.skeleton {
    height: 82px;
    margin-top: 10px;
    border-radius: 17px;
    background: linear-gradient(90deg, #f1f4f8 10%, #e5ebf2 40%, #f1f4f8 70%);
    background-size: 200% 100%;
    animation: skeleton 1.2s ease infinite;
}

/* Favorites */

.favorites-intro {
    margin-bottom: 22px;
}

.favorites-widget-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--app-primary-soft);
    color: var(--app-primary);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.favorites-widget-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(18, 60, 115, 0.14);
}

.favorites-widget-link-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.favorites-widget-link-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.favorites-widget-link-copy strong {
    font-size: 0.95rem;
}

.favorites-widget-link-copy .hint {
    font-size: 0.78rem;
    color: inherit;
    opacity: 0.75;
}

.favorites-controls {
    margin-bottom: 10px;
}

.tag-chip {
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
}

.tag-chip.active,
.btn-chip.active,
.modal-tag-chip.active {
    border-color: var(--app-primary);
    color: #fff;
    background: var(--app-primary);
    box-shadow: 0 7px 18px rgba(18, 60, 115, 0.16);
}

.tag-chip .chip-count {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    font-size: 0.7rem;
    font-weight: 900;
}

.tag-chip.active .chip-count {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.favorites-hint-row {
    margin: 0 2px 15px;
    color: var(--app-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.fav-card {
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--app-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(11, 34, 61, 0.04);
    transition: 0.18s ease;
}

.fav-card:hover {
    border-color: rgba(18, 60, 115, 0.2);
    box-shadow: var(--app-shadow-sm);
}

.fav-card.pinned {
    border-color: rgba(237, 117, 64, 0.3);
    background: linear-gradient(105deg, rgba(237, 117, 64, 0.07), #fff 35%);
}

.fav-reorder {
    display: grid;
    gap: 3px;
}

.fav-move {
    display: grid;
    width: 27px;
    height: 22px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    font-size: 0.58rem;
    cursor: pointer;
}

.fav-move:hover:not(:disabled) {
    color: var(--app-primary);
    background: var(--app-primary-soft);
}

.fav-move:disabled {
    opacity: 0.27;
    cursor: default;
}

.fav-star {
    display: grid;
    width: 43px;
    height: 43px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(237, 117, 64, 0.22);
    border-radius: 13px;
    color: var(--app-accent);
    background: rgba(237, 117, 64, 0.06);
    font-size: 1.25rem;
    cursor: pointer;
    transition: 0.18s ease;
}

.fav-star:hover {
    transform: scale(1.05);
}

.fav-star.active {
    border-color: var(--app-accent);
    color: #fff;
    background: var(--app-accent);
}

.fav-body {
    min-width: 0;
    cursor: pointer;
    outline: 0;
}

.fav-body:focus-visible {
    border-radius: 8px;
    outline: 3px solid rgba(18, 60, 115, 0.2);
    outline-offset: 4px;
}

.fav-name {
    overflow: hidden;
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fav-sub {
    overflow: hidden;
    margin: 4px 0 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fav-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.fav-tag {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--app-primary);
    background: var(--app-primary-soft);
    font-size: 0.68rem;
    font-weight: 750;
}

.fav-side {
    display: flex;
    gap: 7px;
    align-items: center;
}

.fav-go,
.fav-menu-btn {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}

.fav-go {
    padding: 0 15px;
    border: 0;
    color: #fff;
    background: var(--app-primary);
}

.fav-go:hover {
    background: var(--app-primary-strong);
}

.fav-menu-btn {
    width: 40px;
    padding: 0;
    border: 1px solid var(--app-line);
    color: var(--app-muted);
    background: var(--app-surface-soft);
    font-size: 1.3rem;
}

.fav-menu-btn:hover {
    color: var(--app-primary);
    background: var(--app-primary-soft);
}

.favorites-empty {
    padding: 42px 20px;
}

.favorites-empty .hint {
    max-width: 360px;
    margin: 8px auto 0;
    color: var(--app-muted);
    line-height: 1.6;
}

.favorites-empty.subtle {
    padding: 28px 16px;
}

.favorites-empty.subtle p {
    margin: 0;
}

.empty-illustration {
    position: relative;
    width: 120px;
    height: 90px;
    margin: 0 auto 5px;
}

.empty-route {
    position: absolute;
    top: 24px;
    left: 9px;
    width: 96px;
    height: 44px;
    border-right: 3px dashed rgba(18, 60, 115, 0.18);
    border-bottom: 3px dashed rgba(18, 60, 115, 0.18);
    border-radius: 0 0 28px;
    transform: rotate(-12deg);
}

.empty-route::before {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--app-primary);
    box-shadow: 0 0 0 1px rgba(18, 60, 115, 0.12);
    content: "";
}

.empty-star {
    position: absolute;
    right: 3px;
    bottom: 0;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 6px solid #fff;
    border-radius: 18px;
    color: #fff;
    background: var(--app-accent);
    box-shadow: 0 12px 24px rgba(237, 117, 64, 0.24);
    font-size: 1.65rem;
}

.empty-action {
    gap: 20px;
    margin-top: 22px;
    padding: 0 22px;
}

/* Drawer */

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 30;
    width: min(390px, 100%);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding: 24px;
    padding:
        calc(24px + env(safe-area-inset-top))
        calc(24px + env(safe-area-inset-right))
        calc(24px + env(safe-area-inset-bottom))
        calc(24px + env(safe-area-inset-left));
    -webkit-overflow-scrolling: touch;
    background: #fff;
    box-shadow: -22px 0 65px rgba(11, 34, 61, 0.22);
    animation: drawer-in 0.26s ease both;
}

.drawer-header,
.drawer-title {
    display: flex;
    align-items: center;
}

.drawer-header {
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--app-line);
}

.drawer-title {
    gap: 12px;
}

.drawer-brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--app-primary);
    box-shadow: 0 9px 20px rgba(18, 60, 115, 0.2);
    font-size: 1.2rem;
    font-weight: 900;
}

.drawer-eyebrow {
    color: var(--app-muted);
}

.drawer-header h2 {
    margin: 3px 0 0;
    font-size: 1.28rem;
}

.drawer .btn-icon {
    border-color: var(--app-line);
    color: var(--app-muted);
    background: var(--app-surface-soft);
}

.drawer .btn-icon:hover {
    color: var(--app-primary);
    background: var(--app-primary-soft);
}

.drawer-section {
    padding: 17px;
    border: 1px solid var(--app-line);
    border-radius: 17px;
    background: var(--app-surface-soft);
}

.drawer-section + .drawer-section {
    margin-top: 12px;
}

.drawer-section label {
    display: block;
    margin-bottom: 9px;
    font-size: 0.85rem;
    font-weight: 800;
}

.drawer-section select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    outline: 0;
    color: var(--app-text);
    background: #fff;
}

.drawer-section select:focus,
.modal-field input:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(18, 60, 115, 0.08);
}

.font-size-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.btn-chip {
    border-radius: 11px;
}

.btn-toggle,
.btn-primary {
    width: 100%;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(6, 20, 36, 0.42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: fade-in 0.2s ease both;
}

.drawer.hidden,
.drawer-backdrop.hidden {
    display: none;
}

/* Favorite action menu and modal */

.fav-action-menu {
    position: absolute;
    z-index: 40;
    width: 210px;
    padding: 7px;
    border: 1px solid var(--app-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(11, 34, 61, 0.2);
    animation: pop-in 0.16s ease both;
}

.fav-action-menu button {
    display: flex;
    width: 100%;
    gap: 9px;
    align-items: center;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    color: var(--app-text);
    background: transparent;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.fav-action-menu button:hover {
    background: var(--app-surface-soft);
}

.fav-action-menu button.danger {
    color: var(--app-danger);
}

.fav-action-menu button.danger:hover {
    background: rgba(184, 51, 47, 0.07);
}

.fav-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    padding: 18px;
    padding:
        calc(18px + env(safe-area-inset-top))
        calc(18px + env(safe-area-inset-right))
        calc(18px + env(safe-area-inset-bottom))
        calc(18px + env(safe-area-inset-left));
    place-items: center;
    background: rgba(6, 20, 36, 0.48);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: fade-in 0.2s ease both;
}

.fav-modal {
    width: min(440px, 100%);
    max-height: 86vh;
    max-height: 86dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(11, 34, 61, 0.3);
    animation: modal-in 0.22s ease both;
}

.fav-modal-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 19px 19px 12px;
}

.fav-modal-head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.fav-modal-close {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    font-size: 1.3rem;
    cursor: pointer;
}

.fav-modal-body {
    padding: 4px 19px 8px;
}

.modal-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 750;
}

.modal-field input {
    width: 100%;
    min-height: 49px;
    padding: 0 13px;
    border: 1px solid var(--app-line);
    border-radius: 13px;
    outline: 0;
    color: var(--app-text);
    background: #fff;
}

.fav-modal-hint {
    margin: 11px 2px 0;
    color: var(--app-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.modal-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.modal-tag-add {
    display: flex;
    gap: 8px;
}

.modal-tag-add input {
    flex: 1;
}

#modal-tag-add-btn {
    width: 49px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: var(--app-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

.fav-modal-actions {
    display: flex;
    gap: 9px;
    padding: 12px 19px 19px;
}

.fav-modal-cancel,
.fav-modal-save {
    flex: 1;
    min-height: 48px;
    border: 0;
    border-radius: 13px;
    font-weight: 800;
    cursor: pointer;
}

.fav-modal-cancel {
    border: 1px solid var(--app-line);
    background: var(--app-surface-soft);
}

.fav-modal-save {
    color: #fff;
    background: var(--app-primary);
}

/* Accessibility settings */

body.font-lg {
    font-size: 18px;
}

body.font-xl {
    font-size: 20px;
}

body.contrast-high {
    --app-bg: #fff;
    --app-surface: #fff;
    --app-surface-soft: #fff;
    --app-text: #000;
    --app-muted: #242424;
    --app-line: rgba(0, 0, 0, 0.42);
    --app-primary: #001f5b;
    --app-primary-strong: #000f2d;
    --app-primary-soft: #edf3ff;
    --app-accent: #bd3b00;
}

body.contrast-high .content,
body.contrast-high .station-item,
body.contrast-high .fav-card {
    border-color: #000;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(237, 117, 64, 0.48);
    outline-offset: 3px;
}

@keyframes content-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes drawer-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(-4px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.8); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes skeleton {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (max-width: 760px) {
    #app {
        width: min(100% - 20px, 680px);
        padding-top: 10px;
    }

    .app-header {
        min-height: 176px;
        padding: 20px;
        border-radius: 26px;
    }

    .tabs {
        margin-inline: 12px;
    }

    .content {
        padding: 26px 22px;
        border-radius: 24px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .nearby-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .location-visual {
        min-height: 175px;
    }

    .station-item {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .station-actions {
        display: grid;
        grid-template-columns: 42px 1fr 1fr 1.2fr;
    }

    .station-actions button {
        padding-inline: 8px;
    }
}

@media (max-width: 520px) {
    body {
        background:
            radial-gradient(circle at 15% 0, rgba(255, 203, 163, 0.52), transparent 19rem),
            linear-gradient(180deg, #f7f2ea, var(--app-bg) 24rem);
    }

    #app {
        width: 100%;
        padding: 0 0 28px;
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .app-header {
        min-height: 168px;
        min-height: calc(168px + env(safe-area-inset-top));
        padding: 18px 16px 22px;
        padding-top: calc(18px + env(safe-area-inset-top));
        border-radius: 0 0 28px 28px;
    }

    .app-header-bar {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 11px;
    }

    .header-button {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .app-header-copy h1 {
        font-size: 1.48rem;
    }

    .app-header-bottom {
        align-items: flex-start;
        margin-top: 22px;
        padding-top: 17px;
    }

    .app-subtitle {
        max-width: 290px;
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .live-pill {
        min-height: 30px;
        padding: 0 9px;
        font-size: 0;
    }

    .live-pill .live-dot {
        width: 8px;
        height: 8px;
    }

    .tabs {
        top: 8px;
        top: calc(8px + env(safe-area-inset-top));
        margin: -17px 12px 0;
        padding: 6px;
        border-radius: 19px;
    }

    .tab {
        min-height: 50px;
        gap: 6px;
        padding: 0 5px;
        border-radius: 14px;
        font-size: 0.8rem;
    }

    .tab svg {
        width: 17px;
    }

    .content {
        min-height: 460px;
        margin: 10px 8px 0;
        padding: 25px 16px;
        border-radius: 23px;
    }

    .page-intro {
        margin-bottom: 20px;
    }

    .page-intro h2 {
        margin-top: 10px;
        font-size: 1.55rem;
    }

    .page-intro p {
        font-size: 0.89rem;
    }

    .search-form {
        grid-template-columns: minmax(0, 1fr) 50px;
        gap: 6px;
        padding: 7px;
        border-radius: 17px;
    }

    .search-field-icon {
        width: 19px;
        margin-left: 6px;
    }

    .search-field input {
        min-height: 48px;
        padding-inline: 9px;
        /* iOS Safari zooms the page when a focused form control is below 16px. */
        font-size: 16px;
    }

    .search-submit {
        min-width: 50px;
        padding: 0;
        border-radius: 12px;
    }

    .search-submit span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .search-submit svg {
        width: 20px;
    }

    .quick-grid {
        gap: 10px;
        margin-top: 14px;
    }

    .recommendations {
        padding: 15px;
        border-radius: 17px;
    }

    .chip-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .chip-list::-webkit-scrollbar {
        display: none;
    }

    .chip {
        flex: 0 0 auto;
    }

    .nearby-panel {
        padding: 15px;
        border-radius: 20px;
    }

    .location-visual {
        min-height: 145px;
    }

    .location-ring-outer {
        width: 140px;
        height: 140px;
    }

    .location-ring-inner {
        width: 88px;
        height: 88px;
    }

    .location-pin {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }

    .results:not(:empty) {
        margin-top: 24px;
        padding-top: 22px;
    }

    .results-heading {
        align-items: center;
    }

    .results-live {
        font-size: 0;
    }

    .results-live i {
        width: 7px;
        height: 7px;
    }

    .station-item {
        padding: 14px;
        border-radius: 17px;
    }

    .station-actions {
        grid-template-columns: 42px 42px 42px minmax(0, 1fr);
    }

    .station-actions .btn-pin,
    .station-actions .btn-add-homescreen {
        width: 42px;
        padding: 0;
    }

    .station-actions .btn-pin span,
    .station-actions .btn-add-homescreen span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .station-actions .btn-arrivals {
        min-width: 0;
    }

    .fav-card {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        gap: 8px;
        padding: 11px;
    }

    .fav-go {
        display: none;
    }

    .fav-star {
        width: 40px;
        height: 40px;
    }

    .drawer {
        padding: 20px;
        padding:
            calc(20px + env(safe-area-inset-top))
            calc(20px + env(safe-area-inset-right))
            calc(20px + env(safe-area-inset-bottom))
            calc(20px + env(safe-area-inset-left));
    }
}

@media (max-width: 370px) {
    .tab {
        flex-direction: column;
        gap: 2px;
        font-size: 0.7rem;
    }

    .station-actions .btn-arrivals {
        font-size: 0.7rem;
    }

    .fav-reorder {
        display: none;
    }

    .fav-card {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Kakao map (Nearby tab)
   ============================================ */
.map-wrapper {
    position: relative;
    margin: 0 0 16px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--app-line);
    box-shadow: 0 10px 26px rgba(14, 32, 52, 0.08);
    background: var(--app-surface-soft);
}

.map-canvas {
    width: 100%;
    height: 300px;
}

@media (max-width: 640px) {
    .map-canvas { height: 240px; }
}

.map-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(246, 248, 251, 0.85);
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* 내 위치 표시 점 */
.map-user-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--app-primary);
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(18, 60, 115, 0.28);
}

/* 마커 인포윈도우 내용 */
.map-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    min-width: 140px;
    font-family: inherit;
}

.map-info strong {
    font-size: 0.95rem;
    color: var(--app-text);
    line-height: 1.3;
}

.map-info-dist {
    font-size: 0.8rem;
    color: var(--app-muted);
}

.map-info-link {
    display: inline-block;
    margin-top: 2px;
    padding: 7px 12px;
    border-radius: 10px;
    background: var(--app-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.map-info-link:hover {
    background: var(--app-primary-strong);
}

/* 지도 마커 상시 라벨 (정류장명/별명) */
.map-marker-label {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--app-line);
    color: var(--app-text);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(11, 34, 61, 0.18);
    transform: translateY(-2px);
}

/* 인포윈도우 보강: 원래이름(부제) + 정류장 번호 */
.map-info-sub {
    font-size: 0.78rem;
    color: var(--app-muted);
}

.map-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.map-info-id {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--app-primary-soft, rgba(18, 60, 115, 0.1));
    color: var(--app-primary);
    font-size: 0.74rem;
    font-weight: 700;
}

/* 즐겨찾기에 좌표가 하나도 없을 때 안내 */
.favorites-no-coords {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--app-surface-soft);
    border: 1px dashed var(--app-line);
    color: var(--app-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}
