:root {
    --bg-0: #f5f6f8;
    --bg-1: #eceff3;
    --ink-0: #111216;
    --ink-1: #1d2333;
    --ink-2: #6d7280;
    --line: rgba(17, 18, 22, 0.12);
    --glass: rgba(255, 255, 255, 0.72);
    --shadow-lg: 0 24px 48px rgba(19, 22, 31, 0.14);
    --shadow-md: 0 14px 28px rgba(19, 22, 31, 0.1);
    --accent: #17191f;
    --accent-soft: #2b3040;
    --accent-red: #e53935;
    --ok: #2f8f58;
    --err: #b44949;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink-0);
    background:
        radial-gradient(120% 130% at 0% 0%, #ffffff 0%, var(--bg-0) 48%, var(--bg-1) 100%),
        repeating-linear-gradient(90deg, rgba(18, 24, 40, 0.025) 0, rgba(18, 24, 40, 0.025) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(0deg, rgba(18, 24, 40, 0.025) 0, rgba(18, 24, 40, 0.025) 1px, transparent 1px, transparent 60px);
}

body {
    padding: 22px;
}

.is-hidden {
    display: none !important;
}

.location-screen {
    min-height: calc(100vh - 44px);
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(8px, 5vh, 70px) 16px 20px;
}

.location-shell {
    width: min(620px, 100%);
}

.location-card {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: var(--glass);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    padding: 34px 34px 30px;
}

.location-logo {
    margin: 0;
    font-size: clamp(32px, 4.6vw, 50px);
    font-weight: 820;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #1a2235;
    padding-left: 6px;
}

.location-logo-dot {
    color: #e53935;
}

.location-title-block {
    margin-top: 16px;
    margin-bottom: 24px;
    padding-left: 6px;
}

.location-notice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(229, 57, 53, 0.12);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
    position: relative;
    overflow: hidden;
}

.location-notice::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--accent-red);
}

.location-notice-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-red);
}

.location-notice-text {
    margin: 0;
    font-size: 15px;
    font-weight: 620;
    line-height: 1.38;
    letter-spacing: -0.01em;
    color: var(--ink-1);
}

.location-notice-close {
    border: none;
    background: transparent;
    color: rgba(29, 35, 51, 0.5);
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.location-notice-close:hover {
    color: var(--ink-0);
}

.location-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.03em;
}

.location-kicker {
    margin: 0;
    color: #364057;
    font-size: clamp(16px, 1.7vw, 22px);
    font-weight: 760;
    letter-spacing: -0.02em;
    line-height: 1.16;
}

.location-card-intro {
    margin-bottom: 28px;
}

.location-form-block {
    margin-top: 0;
}

.location-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.location-primary-action {
    margin-top: 4px;
}

.btn-nearby-primary {
    width: 100%;
    padding: 20px 22px;
    border-radius: 16px;
    font-size: 26px;
    font-weight: 790;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #0f1218, #1f2738);
    box-shadow: 0 20px 30px rgba(14, 18, 28, 0.32);
}

.location-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 14px;
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.location-divider::before,
.location-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(17, 18, 22, 0),
        rgba(17, 18, 22, 0.16),
        rgba(17, 18, 22, 0)
    );
}

.location-search-label {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--ink-2);
}

#nearby-search-btn {
    font-size: 16px;
    font-weight: 700;
    padding: 14px 18px;
}

.location-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    margin: 0 -10px;
    transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.location-search-row.is-highlighted {
    background: linear-gradient(180deg, rgba(229, 57, 53, 0.05), rgba(229, 57, 53, 0.015));
    box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.18) inset;
    border-radius: 20px;
}

.nearby-locating-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(245, 246, 248, 0.24);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nearby-locating-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(82vw, 250px);
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 36px rgba(19, 22, 31, 0.13);
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.nearby-locating-modal-content .lds-ripple {
    width: 62px;
    height: 62px;
    border-radius: 0;
    background: transparent;
}

.nearby-locating-modal-content .lds-ripple div {
    width: 54px;
    height: 54px;
    border-width: 2.5px;
}

.nearby-locating-message {
    margin: 0;
    max-width: 15ch;
    text-align: center;
    color: rgba(19, 30, 53, 0.96);
    font-size: clamp(18px, 2.1vw, 22px);
    font-weight: 680;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.nearby-app {
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.nearby-list-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.nearby-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 16;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
    opacity: 1;
    transition: opacity 320ms ease;
    pointer-events: auto;
    contain: layout paint;
}

.nearby-loading-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(92%, 520px);
    padding: 24px 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(18, 28, 49, 0.14);
}

.lds-ripple {
    color: #dc2231;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
}

.lds-ripple,
.lds-ripple div {
    box-sizing: border-box;
}

.lds-ripple div {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 3px solid currentColor;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.15);
    opacity: 0;
    animation: lds-ripple 1.25s cubic-bezier(0.2, 0.66, 0.2, 1) infinite;
    will-change: transform, opacity;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.62s;
}

@keyframes lds-ripple {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.15);
    }

    5% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.2);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

.nearby-loading-overlay.is-hidden {
    display: none;
}

.nearby-loading-overlay-message {
    margin: 0;
    max-width: 30ch;
    text-align: center;
    color: rgba(19, 30, 53, 0.96);
    font-size: clamp(21px, 2.3vw, 30px);
    font-weight: 650;
    letter-spacing: 0.005em;
    line-height: 1.28;
    padding: 0 8px;
    white-space: normal;
}

.search-row input,
.location-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 16px;
    color: var(--ink-0);
    background: rgba(255, 255, 255, 0.86);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-row input:focus,
.location-form input:focus {
    border-color: rgba(21, 30, 52, 0.36);
    box-shadow: 0 0 0 3px rgba(48, 65, 105, 0.12);
}

.btn {
    border: none;
    border-radius: 13px;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: 640;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    box-shadow: 0 10px 20px rgba(19, 20, 31, 0.22);
}

.btn-secondary {
    color: var(--ink-0);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
}

.status-row {
    margin-top: 12px;
    min-height: 20px;
    color: var(--ink-2);
    font-size: 13px;
}

.status-row.is-loading {
    color: var(--ink-1);
}

.status-row.is-error {
    color: var(--err);
}

.status-row.is-success {
    color: var(--ok);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(400px, 1.1fr);
    gap: 0;
    min-height: min(72vh, 820px);
}

.list-pane {
    position: relative;
    border-right: 1px solid var(--line);
    padding: 22px 0 18px 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pane-head {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: baseline;
    padding: 4px 22px 14px 8px;
}

.pane-head-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pane-back-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}

.pane-title {
    margin: 0;
    font-size: clamp(27px, 2.3vw, 37px);
    font-weight: 830;
    line-height: 0.96;
    letter-spacing: -0.045em;
    text-transform: none;
    color: var(--ink-0);
    white-space: pre-line;
}

.tag-filter-bar {
    margin: 6px 0 14px 6px;
}

.tag-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    transition: opacity 0.25s;
}

.tag-filter-pills:empty {
    display: none;
}

.tag-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 17px;
    border: 1px solid rgba(17, 18, 22, 0.22);
    border-radius: 20px;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink-0);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.tag-filter-pill:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: transparent;
}

.tag-filter-pill.is-active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.tag-filter-pill.is-active:hover {
    background: var(--accent-red);
    color: #fff;
}

.list-filter-meta {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(29, 35, 51, 0.66);
    min-height: 18px;
}

.list-filter-meta:empty {
    display: none;
}

.nearby-list {
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 22px 14px 2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

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

.place-item {
    width: 100%;
    flex: 0 0 auto;
    text-align: left;
    color: var(--ink-0);
    -webkit-text-fill-color: var(--ink-0);
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 18px 12px 18px 0;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}

.place-item:last-child {
    border-bottom: none;
}

.place-item:hover {
    background: rgba(255, 255, 255, 0.34);
}

.place-item.is-active {
    padding-left: 14px;
    background: rgba(255, 255, 255, 0.5);
}

.place-item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 16px;
    width: 4px;
    background: var(--accent-red);
}

.place-item.is-ghost {
    pointer-events: none;
    background: transparent;
}

.place-item--image {
    display: block;
    padding: 0;
    overflow: hidden;
    color: var(--ink-1);
    cursor: pointer;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
    transition: background-color 0.16s ease, padding-left 0.16s ease;
}

.place-item--image:last-child {
    border-bottom: none;
}

.place-item--image:hover {
    background: rgba(255, 255, 255, 0.34);
}

.place-item--image.is-active {
    background: rgba(255, 255, 255, 0.5);
}

.place-item--image.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-red);
}

.place-image-shell {
    display: block;
    width: 100%;
    background: rgba(17, 23, 38, 0.06);
    margin-top: 18px;
}

.place-image-media {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    background: rgba(17, 23, 38, 0.06);
}

.place-image-footer {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 0 16px;
}

.place-image-title {
    flex: 1;
    min-width: 0;
    margin-right: auto;
    font-size: 14px;
    color: var(--ink-0);
    font-weight: 400;
    line-height: 1.35;
}

.place-image-title-ghost {
    flex: 1;
    min-width: 0;
    margin-right: auto;
    height: 14px;
    width: 55%;
    border-radius: 4px;
}


.place-name-ghost {
    height: 22px;
    width: 62%;
    border-radius: 0;
}

.place-distance-ghost {
    height: 14px;
    width: 74px;
    border-radius: 999px;
    margin-left: auto;
    margin-top: 8px;
}

.place-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: baseline;
}

.place-head-main {
    flex: 1;
    min-width: 0;
}

.place-name {
    margin: 0;
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 820;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--ink-0);
    -webkit-text-fill-color: var(--ink-0);
    overflow-wrap: anywhere;
}

.price-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(115, 77, 0, 0.26);
    background: rgba(255, 204, 82, 0.22);
    color: #6d4300;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 4px 9px;
}

.place-distance {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(29, 35, 51, 0.64);
    padding: 0;
    white-space: nowrap;
    margin-left: auto;
}

.place-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.place-best-for {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 540;
    line-height: 1.5;
    color: var(--ink-1);
    text-align: left;
}

.place-best-for strong {
    color: var(--accent-red);
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
}

.place-best-for.is-hidden {
    display: none;
}

.place-best-for-ghost {
    width: 64%;
    max-width: 320px;
    height: 11px;
}

.place-summary {
    margin: 10px 0 0;
    max-width: 52ch;
    color: rgba(29, 35, 51, 0.9);
    font-size: 16px;
    font-weight: 430;
    line-height: 1.5;
}

.ghost-shimmer {
    position: relative;
    overflow: hidden;
    background: rgba(17, 23, 38, 0.09);
    border-radius: 8px;
}

.ghost-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.58) 48%, transparent 100%);
    animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.ghost-summary-row {
    display: block;
    height: 11px;
    margin-top: 8px;
    border-radius: 0;
}

.ghost-summary-row.is-short {
    width: 62%;
}

.ghost-summary-row.is-full {
    width: 92%;
}

.ghost-tag-pill {
    display: inline-block;
    width: 66px;
    height: 11px;
    border-radius: 0;
}

.tag-row {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.tag-row--compact {
    margin-top: 10px;
    justify-content: flex-start;
    max-width: 100%;
}

.tag-row--compact .tag {
    font-size: 11px;
    padding: 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    background: transparent;
    color: rgba(29, 35, 51, 0.68) !important;
    -webkit-text-fill-color: rgba(29, 35, 51, 0.68);
    box-shadow: none;
}

.tag::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent-red);
    flex: 0 0 auto;
}

.tag--price {
    color: #36566f !important;
    -webkit-text-fill-color: #36566f;
}

.tag--nature {
    color: rgba(29, 35, 51, 0.68) !important;
    -webkit-text-fill-color: rgba(29, 35, 51, 0.68);
}

.tag--default,
.tag--tone-0 {
    color: rgba(29, 35, 51, 0.68) !important;
    -webkit-text-fill-color: rgba(29, 35, 51, 0.68);
}

.tag--tone-1 {
    color: rgba(29, 35, 51, 0.68) !important;
    -webkit-text-fill-color: rgba(29, 35, 51, 0.68);
}

.tag--tone-2 {
    color: rgba(29, 35, 51, 0.68) !important;
    -webkit-text-fill-color: rgba(29, 35, 51, 0.68);
}

.tag--tone-3 {
    color: rgba(29, 35, 51, 0.68) !important;
    -webkit-text-fill-color: rgba(29, 35, 51, 0.68);
}

.tag--tone-4 {
    color: rgba(29, 35, 51, 0.68) !important;
    -webkit-text-fill-color: rgba(29, 35, 51, 0.68);
}

.tag--tone-5 {
    color: rgba(29, 35, 51, 0.68) !important;
    -webkit-text-fill-color: rgba(29, 35, 51, 0.68);
}

.tag--tone-6 {
    color: rgba(29, 35, 51, 0.68) !important;
    -webkit-text-fill-color: rgba(29, 35, 51, 0.68);
}

.tag--tone-7 {
    color: rgba(29, 35, 51, 0.68) !important;
    -webkit-text-fill-color: rgba(29, 35, 51, 0.68);
}

.card-pane {
    position: relative;
    min-height: 0;
    padding: 22px 22px 18px 12px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: transparent;
}

.card-pane::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.panel-card {
    height: 100%;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.panel-placeholder {
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    font-size: 16px;
    text-align: center;
    line-height: 1.6;
    gap: 18px;
    min-height: 100%;
}

.detail-placeholder-mobile-head {
    display: none;
    width: 100%;
    justify-content: flex-start;
}

.detail-placeholder-copy {
    max-width: 32ch;
}

.detail-sticky-header {
    position: sticky;
    top: 0;
    z-index: 9;
    margin: 0 0 18px;
    padding: 14px 0 16px;
    background: var(--bg-0);
    border-bottom: 1px solid rgba(17, 23, 38, 0.14);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.card-head--detail {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.detail-name {
    margin: 0;
    max-width: 13ch;
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 840;
    line-height: 0.94;
    letter-spacing: -0.055em;
    color: var(--ink-0);
}

.detail-image-description,
.detail-nano,
.detail-short,
.detail-distance-inline {
    margin: 0;
    color: var(--ink-1);
    line-height: 1.55;
}

.detail-image-description {
    max-width: 52ch;
    font-size: 16px;
    margin-top: 12px;
    color: rgba(29, 35, 51, 0.9);
}

.detail-nano {
    font-size: 15px;
    font-weight: 550;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-top: 10px;
}

.detail-short {
    max-width: 52ch;
    font-size: 18px;
    margin-top: 16px;
    color: rgba(29, 35, 51, 0.92);
}

.detail-taxonomy-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.detail-visitor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.price-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #36566f;
    border: none;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
}

.detail-price-pill {
    align-self: baseline;
    position: relative;
    top: 2px;
}

.detail-meta {
    margin-top: 22px;
}

.meta-box {
    border: none;
    border-top: 1px solid rgba(17, 23, 38, 0.14);
    border-bottom: 1px solid rgba(17, 23, 38, 0.14);
    border-radius: 0;
    background: transparent;
    padding: 16px 0 14px;
}

.meta-label {
    font-size: 12px;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-2);
    margin-bottom: 8px;
}

.best-for-inline {
    color: var(--ink-0);
    font-size: 17px;
    line-height: 1.5;
    word-break: break-word;
    max-width: 48ch;
}

.map-links--detail {
    margin-top: 18px;
}

.map-link {
    color: var(--ink-0);
    text-decoration: none;
    font-weight: 700;
}

#detail-get-there-link,
#detail-wikimedia-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 14px;
    border-radius: 0;
    border: 1px solid rgba(18, 23, 37, 0.16);
    background: transparent;
    font-size: 18px;
    font-weight: 790;
    letter-spacing: -0.02em;
}

.report-image-btn {
    width: 100%;
    display: block;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    margin-top: 8px;
}

.report-image-btn:hover {
    color: var(--err);
}

.report-image-btn:disabled {
    cursor: default;
    color: var(--ink-2);
    opacity: 0.5;
}

.detail-image-hero {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    background: rgba(17, 23, 38, 0.06);
    margin-top: 14px;
}

.detail-image-hero.is-hidden {
    display: none;
}

.detail-image-license {
    margin: 0;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(29, 35, 51, 0.5);
    line-height: 1.3;
}

#detail-card.is-image-detail .detail-taxonomy-row,
#detail-card.is-image-detail .detail-meta,
#detail-card.is-image-detail #detail-short,
#detail-card.is-image-detail .qa-card-head,
#detail-card.is-image-detail #qa-chat,
#detail-card.is-image-detail #qa-suggested,
#detail-card.is-image-detail #qa-form {
    display: none;
}

.detail-distance-inline {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(29, 35, 51, 0.64);
    text-align: right;
    line-height: 1.3;
}

.qa-card-head {
    margin-top: 22px;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 23, 38, 0.14);
}

.qa-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-0);
}

.qa-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
    flex: 0 0 auto;
}

.qa-venue {
    margin: 8px 0 0;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    display: none;
}

.qa-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 6px 0 8px;
    overflow: visible;
}

.chat-message {
    max-width: min(84%, 520px);
    border-radius: 18px;
    padding: 12px 14px;
    line-height: 1.56;
    font-size: 15px;
    word-break: break-word;
    border: 1px solid rgba(17, 23, 38, 0.12);
}

.chat-message.user {
    align-self: flex-end;
    background: #151821;
    color: #fff;
    max-width: min(72%, 460px);
    border-color: #151821;
    border-bottom-right-radius: 6px;
}

.chat-message.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-0);
    border-bottom-left-radius: 6px;
    width: 100%;
    max-width: 100%;
}

.chat-message.intro {
    color: var(--ink-1);
    background: rgba(241, 244, 250, 0.92);
    border-style: dashed;
}

.chat-message p {
    margin: 0 0 10px;
}

.chat-message p:last-child {
    margin-bottom: 0;
}

.typing-status {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 1.4em;
    color: var(--ink-1);
}

.typing-status span {
    position: absolute;
    inset: 0 auto auto 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    animation: typing-status-cycle 7.2s infinite ease-in-out;
}

.typing-status span:nth-child(2) {
    animation-delay: 1.8s;
}

.typing-status span:nth-child(3) {
    animation-delay: 3.6s;
}

.typing-status span:nth-child(4) {
    animation-delay: 5.4s;
}

@keyframes typing-status-cycle {

    0%,
    100% {
        opacity: 0;
        transform: translateY(4px);
    }

    10%,
    26% {
        opacity: 1;
        transform: translateY(0);
    }

    36% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.qa-suggested {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.qa-suggested button {
    border: 1px solid rgba(20, 27, 44, 0.15);
    background: transparent;
    color: var(--ink-1);
    border-radius: 0;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.qa-form {
    margin-top: 14px;
    border: none;
    border-top: 1px solid rgba(18, 23, 37, 0.14);
    border-radius: 0;
    background: transparent;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 0 0;
}

.qa-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 0;
    background: transparent;
    color: var(--ink-0);
}

.detail-mini-map {
    margin-top: 18px;
    border: 1px solid rgba(17, 23, 38, 0.12);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    height: 210px;
    min-height: 210px;
    background: rgba(255, 255, 255, 0.72);
    display: none;
    cursor: pointer;
    flex: none;
}

.detail-mini-map.is-visible {
    display: block;
}

#detail-mini-map.maplibregl-map {
    display: block;
}

#detail-card {
    height: auto;
    display: block;
    overflow: visible;
}

.detail-mini-map .maplibregl-canvas-container,
.detail-mini-map .maplibregl-canvas {
    width: 100%;
    height: 100%;
}

.detail-mini-map-expand-hint {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(17, 23, 38, 0.18);
    border-radius: 0;
    background: rgba(245, 246, 248, 0.92);
    color: var(--ink-1);
    box-shadow: none;
    pointer-events: none;
}

.detail-mini-map-expand-hint svg,
.detail-full-map-back svg,
.detail-full-map-control svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-full-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(13, 17, 28, 0.34);
    padding: 10px;
    display: none;
}

.detail-full-map-overlay.is-open {
    display: block;
}

.detail-full-map-shell {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(17, 23, 38, 0.12);
    background: rgba(255, 255, 255, 0.96);
    position: relative;
    box-shadow: 0 20px 40px rgba(17, 23, 38, 0.28);
}

.detail-full-map-back,
.detail-full-map-control {
    position: absolute;
    z-index: 4;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(17, 23, 38, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink-1);
}

.detail-full-map-back {
    top: 12px;
    left: 12px;
}

.detail-full-map-control {
    right: 12px;
    display: none;
    box-shadow: 0 8px 18px rgba(17, 23, 38, 0.16);
}

.detail-full-map-reset-north {
    top: 12px;
}

.detail-full-map-recenter {
    top: 60px;
}

.detail-full-map-canvas {
    width: 100%;
    height: 100%;
}

.user-location-marker {
    width: 18px;
    height: 18px;
    background: #4285f4;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.35);
}

.venue-marker {
    width: 22px;
    height: 22px;
    background: #e53935;
    border-radius: 50%;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.35);
    border: 3px solid #fff;
}

#auth-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(10, 14, 25, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#auth-modal-backdrop.is-open {
    display: flex;
}

#auth-modal {
    width: min(94vw, 430px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(252, 253, 255, 0.96);
    box-shadow: 0 28px 70px rgba(12, 16, 24, 0.25);
    padding: 20px 18px 16px;
    position: relative;
}

#auth-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(18, 23, 37, 0.16);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-1);
    cursor: pointer;
}

.auth-modal-kicker {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
    font-weight: 700;
    margin-bottom: 6px;
}

#auth-modal-title {
    margin: 0 22px 14px 0;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.auth-provider-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.auth-provider-btn,
.auth-primary-btn {
    width: 100%;
    border: 1px solid rgba(18, 23, 37, 0.16);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-1);
    padding: 10px 12px;
    font-weight: 650;
    cursor: pointer;
}

.auth-primary-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    border-color: transparent;
    color: #fff;
    margin-top: 8px;
}

.auth-divider {
    text-align: center;
    color: var(--ink-2);
    font-size: 12px;
    margin: 8px 0;
}

.auth-email-form,
.auth-magic-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field {
    width: 100%;
    border: 1px solid rgba(18, 23, 37, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-0);
    padding: 10px 11px;
    font-size: 14px;
}

.auth-inline-links {
    display: flex;
    justify-content: flex-end;
}

.auth-secondary-link {
    border: none;
    background: transparent;
    color: var(--ink-2);
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
}

.auth-status {
    margin-top: 10px;
    min-height: 20px;
    font-size: 13px;
    color: var(--ink-2);
}

.auth-status.success {
    color: #0f7a4c;
}

.auth-status.error {
    color: #a32222;
}

.back-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 120ms ease, transform 120ms ease;
}

.back-icon-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateX(-1px);
}

.back-icon-btn:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.back-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-state {
    margin: auto;
    color: var(--ink-2);
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    padding: 24px;
}

@media (min-width: 981px) {
    .location-title {
        font-size: clamp(20px, 2vw, 28px);
    }

    .btn-nearby-primary {
        font-size: 28px;
        font-weight: 800;
    }

    .detail-name {
        font-size: clamp(34px, 3.1vw, 46px);
    }

    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .nearby-app {
        height: calc(100vh - 44px);
        display: flex;
        flex-direction: column;
    }

    .content-grid {
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    .card-pane {
        padding: 18px 18px 18px 12px;
    }

    .card-pane .panel-card {
        border-radius: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        padding: 0 0 8px;
    }
}

@media (max-width: 980px) {
    body {
        padding: 0;
    }

    .nearby-loading-overlay {
        border-radius: 0;
        padding: clamp(14px, 4vw, 22px);
    }

    .btn {
        width: 100%;
        font-size: 18px;
    }

    .pane-title {
        font-size: 28px;
        line-height: 0.98;
    }

    .place-name {
        font-size: 24px;
    }

    .place-summary {
        font-size: 18px;
        line-height: 1.45;
    }

    .place-distance {
        font-size: 15px;
    }

    .place-best-for {
        font-size: 18px;
    }

    .tag {
        font-size: 14px;
    }

    .tag-row--compact .tag {
        font-size: 13px;
    }

    .nearby-app {
        border-radius: 0;
        height: 100vh;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: none;
    }

    .location-screen {
        min-height: 100vh;
        align-items: flex-start;
        padding: clamp(44px, 9vh, 96px) 14px 18px;
    }

    .location-card {
        border-radius: 18px;
        padding: 18px;
    }

    .location-notice {
        margin: 16px 0 0;
        padding: 13px 14px;
        gap: 12px;
        border-radius: 18px;
    }

    .location-notice-text {
        font-size: 15px;
    }

    .location-search-row {
        padding: 8px;
        margin: 0 -8px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .list-pane {
        border-right: none;
        padding: 18px 0 0 14px;
    }

    .pane-head {
        margin-right: 14px;
    }

    .nearby-list {
        padding-right: 14px;
    }

    .card-pane {
        padding: 12px 14px 14px;
        border-top: 1px solid var(--line);
    }

    .mobile-list-only .card-pane {
        display: none;
    }

    .mobile-detail-only .list-pane {
        display: none;
    }

    .mobile-detail-only .content-grid {
        min-height: 100vh;
        height: 100vh;
    }

    .mobile-detail-only .card-pane {
        position: fixed;
        inset: 0;
        z-index: 40;
        padding: 0;
        border-top: none;
        background: var(--bg-0);
    }

    .mobile-detail-only .card-pane .panel-card {
        height: auto;
        min-height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: var(--bg-0);
        padding: 16px 16px 14px;
    }

    .mobile-detail-only #detail-card {
        padding-bottom: max(14px, env(safe-area-inset-bottom));
        min-height: calc(100vh - max(14px, env(safe-area-inset-bottom)));
    }

    .mobile-detail-only .panel-placeholder {
        align-items: stretch;
        justify-content: flex-start;
    }

    .mobile-detail-only .detail-placeholder-mobile-head {
        display: flex;
    }

    .mobile-detail-only .detail-placeholder-copy {
        margin: auto 0;
        max-width: none;
    }

    .location-search-row {
        grid-template-columns: 1fr;
    }
}
