.discovery-page {
    --pn-purple: #4b3f72;
    --pn-action: #59468f;
    --pn-lavender: #f0ecf8;
    --pn-ink: #242536;
    --pn-muted: #666477;
    --pn-line: #e8e4ee;
    --pn-radius: 16px;
    --pn-shadow: 0 3px 14px #24253618;
    scroll-padding-bottom: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom) + 12px);
    background: #faf9fc;
    color: var(--pn-ink);
}
.discovery-page [hidden] { display: none !important; }
.discovery-page :focus-visible { outline: 2px solid var(--pn-action); outline-offset: 3px; }
.discovery-page button, .discovery-page input { font: inherit; }
.discovery-page svg.lucide { width: 19px; height: 19px; flex: none; }
.discovery-page main { min-height: 0; }
.discovery {
    display: grid;
    grid-template-rows: auto minmax(198px, 35svh) minmax(175px, auto);
    padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}
.discovery-intro { padding: 10px 16px 12px; background: #fff; min-width: 0; }
.discovery-location {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    padding: 0;
    min-height: 34px;
    color: var(--pn-purple);
    font-size: .82rem !important;
    font-weight: 650 !important;
    max-width: 100%;
    text-align: start;
}
.discovery-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discovery-location svg { width: 15px; height: 15px; }
.discovery h1 { margin: 0 0 12px; font-size: clamp(1.63rem, 6vw, 2.45rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.15; }
.discovery-search { display: flex; align-items: center; min-width: 0; border: 1px solid var(--pn-line); border-radius: 13px; background: #f8f6fb; min-height: 50px; padding: 2px 3px; }
.discovery-search:focus-within { border-color: var(--pn-action); }
.discovery-search .discovery-icon { background: transparent; }
.discovery-search input { flex: 1; min-width: 0; padding: 0 2px; height: 44px; color: var(--pn-ink); background: transparent; border: 0; outline: none; font-size: max(16px, .91rem); }
.discovery-search input::-webkit-search-cancel-button { display: none; }
.discovery-vehicles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.discovery-vehicles button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-height: 53px;
    padding: 4px 2px;
    border-radius: 11px;
    border: 1px solid var(--pn-line);
    background: #fff;
    color: var(--pn-muted);
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.25;
    transition: all .18s ease;
}
.discovery-vehicles button[aria-pressed="true"] { color: var(--pn-action); border-color: #d8ccea; background: var(--pn-lavender); box-shadow: 0 2px 8px rgba(89, 70, 143, .1); }
.discovery-notice { font-size: .81rem; margin: 8px 0 0; color: var(--pn-purple); }
.discovery-map { position: relative; background: #eae8f0; isolation: isolate; overflow: hidden; min-width: 0; }
.discovery-map-canvas { position: absolute; inset: 0; z-index: 0; }
.discovery-map-canvas .leaflet-tile-pane { filter: saturate(.88) contrast(1.03) brightness(1.01); }
.discovery-map-canvas .leaflet-control-attribution { display: none !important; }
.discovery-map-status { position: absolute; inset: 0; z-index: 500; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 18px; text-align: center; background: #eef0ec; color: var(--pn-purple); font-size: .88rem; }
.discovery-map-loader { width: 28px; height: 28px; border: 3px solid #d8d0e5; border-top-color: var(--pn-purple); border-radius: 50%; animation: discovery-spin .8s linear infinite; }
@keyframes discovery-spin { to { transform: rotate(360deg); } }
.discovery-map-controls { position: absolute; right: 11px; top: 11px; z-index: 450; display: grid; gap: 8px; }
.discovery-map-controls .discovery-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 218, 236, .95);
    box-shadow: 0 6px 20px rgba(36, 37, 54, .12);
    color: var(--pn-ink);
    transition: transform .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.discovery-map-controls .discovery-icon:hover:not(:disabled) { background: #fff; color: var(--pn-action); box-shadow: 0 8px 22px rgba(89, 70, 143, .18); }
.discovery-map-controls .discovery-icon:active:not(:disabled) { transform: scale(.94); }
.discovery-map-controls .discovery-icon:disabled { opacity: .4; cursor: default; }
.discovery-map-controls [aria-pressed="true"] {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--pn-action), var(--pn-purple));
    box-shadow: 0 6px 18px rgba(89, 70, 143, .34);
}
.discovery-map-controls [aria-pressed="true"]:hover:not(:disabled) { color: #fff; background: linear-gradient(135deg, var(--pn-action), var(--pn-purple)); }
.discovery-zoom {
    display: grid;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 218, 236, .95);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(36, 37, 54, .12);
    overflow: hidden;
}
.discovery-zoom .discovery-icon { border: 0; border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
.discovery-zoom .discovery-icon + .discovery-icon { border-top: 1px solid rgba(224, 218, 236, .9); }
.discovery-map-status.is-compact {
    inset: 12px auto auto 12px;
    max-width: calc(100% - 76px);
    grid-auto-flow: column;
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 12px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(36, 37, 54, .14);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    font-size: .74rem;
    z-index: 450;
}
.discovery-legend {
    position: absolute;
    left: 10px;
    bottom: 12px;
    z-index: 450;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 20px);
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(224, 218, 236, .92);
    color: var(--pn-ink);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: .68rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(36, 37, 54, .1);
    pointer-events: none;
}
.discovery-legend span, [data-capacity] { display: inline-flex; align-items: center; gap: 5px; }
.discovery-legend b, [data-capacity] b { width: 7px; height: 7px; border-radius: 50%; background: #10b981; flex: none; }
.discovery-legend b { box-shadow: 0 0 0 2.5px rgba(16, 185, 129, .2); }
.discovery-legend b[data-status="limited"], [data-capacity][data-status="limited"] b { background: #f59e0b; }
.discovery-legend b[data-status="limited"] { box-shadow: 0 0 0 2.5px rgba(245, 158, 11, .22); }
.discovery-legend b[data-status="full"], [data-capacity][data-status="full"] b { background: #847896; }
.discovery-legend b[data-status="full"] { box-shadow: 0 0 0 2.5px rgba(132, 120, 150, .2); }
.discovery-sheet { position: relative; z-index: 1; min-width: 0; background: #fff; border-radius: 17px 17px 0 0; box-shadow: 0 -2px 12px #24253615; display: flex; flex-direction: column; }
.discovery-handle { display: grid; place-items: center; width: 100%; min-height: 27px; border: 0; background: transparent; touch-action: none; cursor: ns-resize; }
.discovery-handle span { height: 4px; width: 34px; border-radius: 5px; background: #c8c0d3; }
.discovery-sheet-header { padding: 0 16px 8px; flex: none; }
.discovery-results-title { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.discovery h2 { margin: 0; font-size: 1.15rem; font-weight: 750; letter-spacing: -.025em; }
#discovery-count { color: var(--pn-muted); font-size: .77rem; white-space: nowrap; }
.discovery-result-status { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 4px 8px; }
#discovery-live { color: #7c531d; font-size: .72rem; }
#discovery-live[data-current="true"] { color: #116e55; }
#discovery-live::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: 4px; border-radius: 50%; background: currentColor; vertical-align: .12em; }
.discovery-filters { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 4px 2px; margin: 5px -2px 0; scrollbar-width: thin; }
.discovery-filters button, .discovery-reset-area {
    flex: none;
    padding: 4px 11px;
    min-height: 38px;
    border: 1px solid var(--pn-line);
    border-radius: 24px;
    color: var(--pn-muted);
    background: #fff;
    font-size: .76rem;
    font-weight: 650;
    white-space: nowrap;
    transition: all .18s ease;
}
.discovery-filters button[aria-pressed="true"] { background: var(--pn-purple); border-color: var(--pn-purple); color: #fff; box-shadow: 0 3px 10px rgba(75, 63, 114, .22); }
.discovery-reset-area { display: inline-flex; align-items: center; gap: 3px; margin-top: 5px; color: var(--pn-purple); }
.discovery-reset-area svg { width: 15px; }
.discovery-pass {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--pn-purple);
    background: var(--pn-lavender);
    border-radius: 12px;
    text-decoration: none;
    padding: 9px 11px;
    margin: 0 0 10px;
    line-height: 1.25;
    font-size: .83rem;
    border: 1px solid #dfd5f2;
}
.discovery-pass span:nth-child(2) { flex: 1; min-width: 0; }
.discovery-pass small { display: block; color: var(--pn-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.discovery-pass-icon { display: grid; place-items: center; background: white; border-radius: 8px; width: 34px; height: 34px; }
.discovery-results { padding: 4px 16px 18px; min-height: 0; display: grid; grid-auto-rows: max-content; gap: 12px; }

/* ============================================================
   PREMIUM PARKING CARD DESIGN (.discovery-card)
   ============================================================ */
.discovery-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
    border: 1px solid #e6dff2;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfbfe 100%);
    box-shadow: 0 4px 16px -6px rgba(42, 28, 78, .08), 0 1px 3px rgba(42, 28, 78, .03);
    min-width: 0;
    cursor: pointer;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1),
                box-shadow .22s cubic-bezier(.22, 1, .36, 1),
                border-color .22s ease,
                background-color .22s ease;
}
.discovery-card:hover {
    transform: translateY(-2px);
    border-color: #c5b3e6;
    box-shadow: 0 12px 28px -10px rgba(69, 44, 130, .16), 0 4px 10px -2px rgba(69, 44, 130, .06);
}
.discovery-card.is-selected {
    border-color: var(--pn-action);
    background: linear-gradient(180deg, #faf8ff 0%, #f4effd 100%);
    box-shadow: inset 0 0 0 1px var(--pn-action), 0 10px 24px -10px rgba(89, 70, 143, .22);
}
.discovery-card-photo {
    position: relative;
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    color: var(--pn-purple);
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 196px;
    border-radius: 13px;
    overflow: hidden;
    background: linear-gradient(135deg, #efeaf9, #e2d8f5);
    box-shadow: inset 0 0 0 1px rgba(36, 37, 54, .06);
}
.discovery-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 12, 34, .18) 0%, transparent 38%, rgba(18, 12, 34, .48) 100%);
    pointer-events: none;
}
.discovery-card-photo svg { width: 34px; height: 34px; opacity: .75; }
.discovery-card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .38s cubic-bezier(.22, 1, .36, 1);
}
.discovery-card:hover .discovery-card-photo img {
    transform: scale(1.04);
}
.discovery-card-photo-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    max-width: calc(100% - 20px);
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(24, 16, 44, .78);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.discovery-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.discovery-card h3 {
    font-size: .98rem;
    font-weight: 780;
    line-height: 1.3;
    margin: 0 0 3px;
    overflow-wrap: anywhere;
}
.discovery-card h3 a {
    color: #1e1830;
    text-decoration: none;
    transition: color .18s ease;
}
.discovery-card:hover h3 a {
    color: var(--pn-action);
}
.discovery-card-address {
    margin: 0 0 7px;
    color: #635b74;
    font-size: .77rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.discovery-card-meta {
    display: flex;
    align-items: center;
    gap: 5px 6px;
    flex-wrap: wrap;
    color: var(--pn-muted);
    font-size: .71rem;
}
.discovery-status-pill {
    padding: 2.5px 9px;
    border-radius: 999px;
    font-size: .71rem;
    font-weight: 700;
    line-height: 1.35;
    background: #f4f1f8;
    color: #5b526b;
    border: 1px solid #e2dbed;
}
.discovery-status-pill[data-status="open"] {
    background: #e6f8f0;
    color: #0d694e;
    border-color: #bcead7;
}
.discovery-status-pill[data-status="open"] b {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, .22);
}
.discovery-status-pill[data-status="limited"] {
    background: #fff5e4;
    color: #96550e;
    border-color: #fbdba7;
}
.discovery-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 2.5px 8px;
    border-radius: 999px;
    background: #f6f4fa;
    border: 1px solid #ece6f5;
    color: #574e68;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.35;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.discovery-hours-chip {
    background: #f3effb;
    border-color: #e4dbf6;
    color: #4c3a78;
}
.discovery-card-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.discovery-facility-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 6px;
    background: #faf8ff;
    border: 1px solid #eae2f6;
    color: #4e3c7d;
    font-size: .68rem;
    font-weight: 650;
    line-height: 1.3;
}
.discovery-facility-chip.is-more {
    background: var(--pn-lavender);
    border-color: #d9cdf0;
    color: var(--pn-action);
    font-weight: 750;
}
.discovery-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 9px;
}
.discovery-rate-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}
[data-rate] strong {
    color: #1f1732;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
[data-rate] small {
    color: #686079;
    font-size: .74rem;
    font-weight: 600;
}
.discovery-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 15px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #633ec6, #4b3f72);
    box-shadow: 0 4px 12px -2px rgba(92, 58, 184, .34);
    font-size: .8rem;
    font-weight: 750;
    text-decoration: none;
    text-align: center;
    transition: all .2s ease;
}
.discovery-book:hover, .discovery-book:focus {
    background: linear-gradient(135deg, #5531b5, #3f3363);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -2px rgba(92, 58, 184, .44);
}
.discovery-book.is-secondary {
    background: #f3eeff;
    color: #4d3294;
    border: 1px solid #d7c8f6;
    box-shadow: none;
}
.discovery-book.is-secondary:hover, .discovery-book.is-secondary:focus {
    background: var(--pn-action);
    color: #fff;
    border-color: var(--pn-action);
    box-shadow: 0 4px 12px -2px rgba(89, 70, 143, .32);
}
.discovery-favorite {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 35px;
    height: 35px;
    min-height: 35px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(18, 12, 34, .18);
    color: #5c5170;
    display: grid;
    place-items: center;
    transition: all .18s ease;
}
.discovery-favorite:hover {
    background: #ffffff;
    border-color: #d6c5f0;
    color: var(--pn-action);
    transform: scale(1.06);
}
.discovery-favorite[aria-pressed="true"] {
    background: #fff0f3;
    border-color: #fecdd6;
    color: #e11d48;
}
.discovery-favorite[aria-pressed="true"] svg {
    fill: #e11d48;
    color: #e11d48;
}
.discovery-card-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px dashed #e9e3f3;
    padding: 8px 0 0;
    margin-top: 2px;
    color: var(--pn-muted);
    font-size: .72rem;
}
.discovery-vehicle-pill {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f5f1fc;
    color: #493874;
    font-size: .73rem;
    font-weight: 700;
}
.discovery-vehicle-pill svg.lucide {
    width: 14px;
    height: 14px;
    color: var(--pn-action);
}
.discovery-card-actions a,
.discovery-card-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f8f6fc;
    color: #4b3b75;
    text-decoration: none;
    font-size: .73rem;
    font-weight: 700;
    transition: all .18s ease;
}
.discovery-card-actions a:hover,
.discovery-card-actions button:hover {
    background: #ebe3fa;
    border-color: #d5c6f0;
    color: #36245c;
}
.discovery-card-actions .is-details {
    background: #f1ecfb;
    border-color: #e2d7f7;
    color: var(--pn-action);
}
.discovery-card-actions svg.lucide { width: 14px; height: 14px; }

/* Map Preview Card Adjustments */
.discovery-preview {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 460;
    max-width: 416px;
    border-radius: 20px;
    box-shadow: 0 20px 44px -10px rgba(24, 14, 48, .28), 0 4px 12px rgba(24, 14, 48, .08);
}
.discovery-preview .discovery-card {
    animation: discovery-reveal .2s cubic-bezier(.22, 1, .36, 1);
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
    border-radius: 20px;
    border: 1px solid rgba(220, 212, 236, .95);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: none;
}
.discovery-preview .discovery-card:hover {
    transform: none;
    border-color: rgba(206, 194, 230, .98);
    box-shadow: none;
}
@keyframes discovery-reveal { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.discovery-preview .discovery-card-photo {
    aspect-ratio: 16 / 9;
    max-height: 164px;
    border-radius: 14px;
}
.discovery-preview .discovery-favorite,
.discovery-preview-close {
    top: 21px;
    z-index: 2;
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(18, 12, 34, .18);
    color: #5c5170;
    display: grid;
    place-items: center;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.discovery-preview .discovery-favorite { right: 59px; }
.discovery-preview-close { right: 21px; position: absolute; padding: 0; }
.discovery-preview-close:hover { background: #ffffff; border-color: #d6c5f0; color: var(--pn-action); }
.discovery-preview-close:active { transform: scale(.92); }
.discovery-preview .discovery-card h3 { font-size: .98rem; margin-right: 0; margin-bottom: 2px; }
.discovery-preview .discovery-card .discovery-card-address { margin-right: 0; margin-bottom: 6px; font-size: .75rem; }
.discovery-preview .discovery-meta-chip { padding: 2px 7px; font-size: .68rem; }
.discovery-preview .discovery-status-pill { padding: 2px 8px; font-size: .69rem; }
.discovery-preview .discovery-card-facilities { gap: 4px; margin-top: 5px; }
.discovery-preview .discovery-facility-chip { padding: 2px 7px; font-size: .66rem; border-radius: 6px; }
.discovery-preview .discovery-card-footer { padding-top: 8px; }
.discovery-preview [data-rate] strong { font-size: 1.26rem; color: #1b132d; }
.discovery-preview .discovery-book { min-height: 36px; padding: 6px 17px; border-radius: 11px; font-size: .8rem; }
.discovery-preview .discovery-card-actions { border-top: 1px solid #f0ecf8; padding-top: 8px; margin-top: 2px; }
.discovery-preview .discovery-vehicle-pill { padding: 4px 9px; border-radius: 8px; font-size: .71rem; }
.discovery-preview .discovery-card-actions a,
.discovery-preview .discovery-card-actions button { min-height: 31px; border-radius: 8px; font-size: .71rem; }

/* ============================================================
   INTERACTIVE PARKING DETAILS MODAL / DRAWER
   ============================================================ */
html:has(.discovery-detail-dialog[open]) { overflow: hidden; }
.discovery-detail-dialog {
    width: min(690px, calc(100% - 32px));
    max-width: none;
    max-height: min(860px, calc(100dvh - 36px));
    margin: auto;
    padding: 0;
    border: 1px solid #e4dcf2;
    border-radius: 26px;
    background: #f8f6fc;
    color: var(--pn-ink);
    box-shadow: 0 28px 80px -12px rgba(24, 14, 48, .42);
    overflow: hidden;
}
.discovery-detail-dialog::backdrop {
    background: rgba(20, 13, 36, .62);
    backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: no-preference) {
    .discovery-detail-dialog[open] {
        animation: discovery-detail-pop .24s cubic-bezier(.22, 1, .36, 1) both;
    }
}
@keyframes discovery-detail-pop {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.discovery-detail-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: inherit;
}
.discovery-detail-grabber {
    display: none;
    place-items: center;
    padding: 8px 0 4px;
    background: #231838;
}
.discovery-detail-grabber span {
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .35);
}
.discovery-detail-hero {
    position: relative;
    isolation: isolate;
    min-height: 172px;
    padding: 14px 16px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    background: radial-gradient(ellipse at 85% 15%, #5c3d82, #221738 72%);
    overflow: hidden;
    flex: none;
}
.discovery-detail-hero-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.discovery-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(18, 11, 32, .52) 0%, rgba(18, 11, 32, .82) 55%, rgba(18, 11, 32, .96) 100%);
}
.discovery-detail-hero-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.discovery-detail-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.discovery-detail-verified,
.discovery-detail-area {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    background: rgba(25, 18, 42, .68);
    border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(8px);
}
.discovery-detail-verified { color: #a7f3d0; }
.discovery-detail-verified svg.lucide { width: 14px; height: 14px; }
.discovery-detail-area { color: #f1e9ff; }
.discovery-detail-top-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}
.discovery-detail-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(24, 15, 38, .66);
    backdrop-filter: blur(10px);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .18s ease;
}
.discovery-detail-icon-btn:hover {
    background: rgba(92, 62, 168, .85);
    border-color: rgba(255, 255, 255, .5);
    transform: translateY(-1px);
}
.discovery-detail-fav[aria-pressed="true"] {
    background: rgba(225, 29, 72, .25);
    border-color: #fda4af;
    color: #fda4af;
}
.discovery-detail-fav[aria-pressed="true"] svg {
    fill: currentColor;
}
.discovery-detail-hero-content h2 {
    margin: 0 0 4px;
    font-size: clamp(1.18rem, 2.6vw, 1.48rem);
    font-weight: 800;
    line-height: 1.22;
    color: #fff !important;
}
.discovery-detail-hero-content h2:focus { outline: none; }
.discovery-detail-address {
    margin: 0 0 11px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #e9dff8;
    font-size: .84rem;
    line-height: 1.4;
}
.discovery-detail-address svg.lucide {
    width: 15px;
    height: 15px;
    margin-top: 2px;
}
.discovery-detail-hero-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}
.discovery-detail-status-pill,
.discovery-detail-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
}
.discovery-detail-status-pill b {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
}
.discovery-detail-status-pill[data-status="open"] {
    background: rgba(16, 185, 129, .24);
    border-color: rgba(110, 231, 183, .45);
    color: #d1fae5;
}
.discovery-detail-status-pill[data-status="limited"] {
    background: rgba(245, 158, 11, .26);
    border-color: rgba(252, 211, 77, .45);
    color: #fef3c7;
}
.discovery-detail-status-pill[data-status="limited"] b { background: #fbbf24; }
.discovery-detail-status-pill[data-status="full"] {
    background: rgba(148, 163, 184, .24);
    border-color: rgba(203, 213, 225, .35);
    color: #f1f5f9;
}
.discovery-detail-status-pill[data-status="full"] b { background: #cbd5e1; }
.discovery-detail-meta-pill svg.lucide { width: 13px; height: 13px; }

.discovery-detail-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 14px;
    display: grid;
    gap: 11px;
}
.discovery-detail-section {
    background: #fff;
    border: 1px solid #e9e2f4;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 4px 14px -8px rgba(45, 28, 84, .07);
}
.discovery-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}
.discovery-detail-section-head h3 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    font-weight: 780;
    color: #211834;
}
.discovery-detail-section-head h3 svg.lucide {
    width: 16px;
    height: 16px;
    color: var(--pn-action);
}
.discovery-detail-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e6f8f0;
    color: #0d694e;
    font-size: .69rem;
    font-weight: 700;
}
.discovery-detail-live-pill b {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, .24);
}
.discovery-detail-capacity-card {
    padding: 10px 12px;
    border-radius: 13px;
    border: 1px solid #e6dcf7;
    background: linear-gradient(125deg, #f3edff 0%, #fcfaff 82%);
    display: grid;
    gap: 8px;
}
.discovery-detail-capacity-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.discovery-detail-capacity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #633ec6, #4b3f72);
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(89, 70, 143, .25);
    display: grid;
    place-items: center;
    flex: none;
}
.discovery-detail-capacity-icon svg.lucide {
    width: 18px;
    height: 18px;
    color: #fff !important;
    stroke: #fff !important;
}
.discovery-detail-capacity-main div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 7px;
    min-width: 0;
}
.discovery-detail-capacity-main strong {
    font-size: 1.48rem;
    font-weight: 800;
    line-height: 1.05;
    color: #28184d;
    font-variant-numeric: tabular-nums;
}
.discovery-detail-capacity-main div > span {
    font-size: .76rem;
    font-weight: 700;
    color: #54407e;
}
.discovery-detail-capacity-bar {
    height: 5px;
    border-radius: 999px;
    background: #e4dbf2;
    overflow: hidden;
}
.discovery-detail-capacity-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width .35s ease;
}
.discovery-detail-capacity-bar > span[data-status="limited"] {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}
.discovery-detail-capacity-bar > span[data-status="full"] {
    background: #94a3b8;
}
.discovery-detail-stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.discovery-detail-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #e9e1f6;
}
.discovery-detail-stats dt {
    font-size: .69rem;
    font-weight: 650;
    color: #645a77;
    white-space: nowrap;
}
.discovery-detail-stats dd {
    margin: 0;
    font-size: .88rem;
    font-weight: 800;
    color: #22173a;
    font-variant-numeric: tabular-nums;
}
@media (min-width: 520px) {
    .discovery-detail-capacity-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 12px;
    }
    .discovery-detail-capacity-bar {
        grid-column: 1 / -1;
        order: 3;
    }
    .discovery-detail-stats {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .discovery-detail-stats div {
        padding: 5px 10px;
        gap: 7px;
    }
}
.discovery-detail-subtitle {
    margin: 10px 0 7px;
    font-size: .78rem;
    font-weight: 760;
    color: #524668;
}
.discovery-detail-vehicles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.discovery-detail-vehicle-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #e7e0f3;
    background: #fcfbfe;
    color: var(--pn-ink);
    text-decoration: none;
    min-width: 0;
    transition: all .18s ease;
}
.discovery-detail-vehicle-card:hover {
    transform: translateY(-1px);
    border-color: #bca6e8;
    background: #f8f4ff;
    box-shadow: 0 6px 14px -8px rgba(75, 50, 138, .22);
}
.discovery-detail-vehicle-card.is-active {
    border-color: var(--pn-action);
    background: linear-gradient(135deg, #f6f1ff 0%, #fcfaff 100%);
    box-shadow: inset 0 0 0 1px var(--pn-action);
}
.discovery-detail-vehicle-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}
.discovery-detail-vehicle-id {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.discovery-detail-vehicle-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: #ede5fc;
    color: var(--pn-action);
    display: grid;
    place-items: center;
    flex: none;
}
.discovery-detail-vehicle-card[data-vehicle="bike"] .discovery-detail-vehicle-icon {
    background: #dff4eb;
    color: #13634c;
}
.discovery-detail-vehicle-card[data-vehicle="suv"] .discovery-detail-vehicle-icon {
    background: #e6f1ff;
    color: #295d93;
}
.discovery-detail-vehicle-card[data-vehicle="microbus"] .discovery-detail-vehicle-icon {
    background: #ffefdb;
    color: #8b4c13;
}
.discovery-detail-vehicle-icon svg.lucide { width: 15px; height: 15px; }
.discovery-detail-vehicle-name {
    font-size: .83rem;
    font-weight: 780;
    color: #211834;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.discovery-detail-vehicle-status {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 700;
    background: #e6f8f0;
    color: #0d694e;
    white-space: nowrap;
    flex: none;
}
.discovery-detail-vehicle-status[data-status="limited"] {
    background: #fff5e4;
    color: #96550e;
}
.discovery-detail-vehicle-status[data-status="full"] {
    background: #ffeaf0;
    color: #9b2949;
}
.discovery-detail-vehicle-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding-top: 5px;
    border-top: 1px dashed #ece5f6;
}
.discovery-detail-hourly {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    white-space: nowrap;
}
.discovery-detail-vehicle-price strong {
    font-size: .95rem;
    font-weight: 800;
    color: #38226b;
    font-variant-numeric: tabular-nums;
}
.discovery-detail-vehicle-price small {
    font-size: .67rem;
    color: #665d78;
}
.discovery-detail-daily {
    padding: 1.5px 6px;
    border-radius: 5px;
    background: #efe9fa;
    color: #4b367c !important;
    font-size: .64rem !important;
    font-weight: 700;
    white-space: nowrap;
}
@media (max-width: 420px) {
    .discovery-detail-stats div {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        padding: 4px 7px;
    }
    .discovery-detail-vehicle-card {
        padding: 7px 8px;
        gap: 5px;
    }
    .discovery-detail-vehicle-icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }
    .discovery-detail-vehicle-icon svg.lucide { width: 13px; height: 13px; }
    .discovery-detail-vehicle-name { font-size: .78rem; }
    .discovery-detail-vehicle-price strong { font-size: .88rem; }
}
.discovery-detail-facilities {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.discovery-detail-facilities li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 11px;
    background: #f5f1fc;
    border: 1px solid #e6ddf6;
    color: #38285c;
    font-size: .82rem;
    font-weight: 680;
}
.discovery-detail-facilities li svg.lucide {
    width: 16px;
    height: 16px;
    color: var(--pn-action);
}
.discovery-detail-facilities li.is-empty {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--pn-muted);
    font-weight: 500;
}
.discovery-detail-text {
    margin: 0;
    font-size: .86rem;
    color: #4f4663;
    line-height: 1.5;
}
.discovery-detail-warning {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 11px;
    background: #fff5e2;
    border: 1px solid #fde0ab;
    color: #874d0e;
    font-size: .82rem;
    font-weight: 680;
    display: flex;
    align-items: center;
    gap: 8px;
}
.discovery-detail-warning svg.lucide { width: 17px; height: 17px; }
.discovery-detail-rules {
    margin: 0;
    padding-inline-start: 18px;
    display: grid;
    gap: 5px;
    color: #524865;
    font-size: .84rem;
    line-height: 1.48;
}
.discovery-detail-helpline {
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #f6f2fd;
    border: 1px solid #e5dcf6;
    color: #3c286b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color .18s ease;
}
.discovery-detail-helpline:hover { background: #ebe2fb; }
.discovery-detail-helpline-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    color: var(--pn-action);
    display: grid;
    place-items: center;
}
.discovery-detail-helpline small {
    display: block;
    font-size: .7rem;
    color: #665d78;
}
.discovery-detail-helpline strong {
    font-size: .88rem;
    font-weight: 750;
}
.discovery-detail-footer {
    flex: none;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e7e0f2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.discovery-detail-footer-price small {
    display: block;
    font-size: .72rem;
    font-weight: 650;
    color: #665d78;
}
.discovery-detail-footer-price strong {
    font-size: 1.42rem;
    font-weight: 800;
    color: #221738;
}
.discovery-detail-footer-price span {
    font-size: .76rem;
    color: #665d78;
    margin-inline-start: 2px;
}
.discovery-detail-footer-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-inline-start: auto;
}
.discovery-detail-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid #e2d8f3;
    background: #f6f2fc;
    color: #473574;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .18s ease;
}
.discovery-detail-secondary-btn:hover {
    background: #eae0fa;
    border-color: #cbb9ec;
}
.discovery-detail-secondary-btn svg.lucide { width: 15px; height: 15px; }
.discovery-detail-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #633ec6, #4b3f72);
    box-shadow: 0 6px 16px -4px rgba(92, 58, 184, .42);
    color: #fff;
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
    transition: all .2s ease;
}
.discovery-detail-book-btn:hover {
    background: linear-gradient(135deg, #5430b5, #3d3161);
    color: #fff;
    transform: translateY(-1px);
}
.discovery-detail-toast {
    position: absolute;
    bottom: 78px;
    inset-inline: 16px;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin-inline: auto;
    padding: 8px 14px;
    border-radius: 10px;
    background: #2b1d44;
    color: #fff;
    font-size: .8rem;
    font-weight: 650;
    box-shadow: 0 8px 24px rgba(24, 14, 44, .32);
    pointer-events: none;
}

.discovery-empty { text-align: center; padding: 22px 8px; color: var(--pn-muted); font-size: .86rem; }
.discovery-empty > svg { display: block; margin: 0 auto 10px; color: var(--pn-purple); width: 26px; height: 26px; }
.discovery-empty strong { display: block; color: var(--pn-ink); font-size: 1rem; }
.discovery-empty p { margin: 4px 0 8px; }
.discovery-empty button { border: 0; color: var(--pn-purple); background: var(--pn-lavender); border-radius: 8px; min-height: 44px; padding: 4px 13px; font-weight: 650; }
.discovery-leaflet-marker:hover,
.discovery-leaflet-marker:focus-within,
.discovery-leaflet-marker.is-marker-hovered { z-index: 1200 !important; }

.discovery-marker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    min-height: 32px;
    border: 1.5px solid rgba(220, 211, 233, .95);
    border-radius: 999px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 4px 12px rgba(36, 37, 54, .18), 0 1px 3px rgba(36, 37, 54, .1);
    color: var(--pn-purple);
    white-space: nowrap;
    font-size: .78rem !important;
    font-weight: 750 !important;
    cursor: pointer;
    transform-origin: 50% 100%;
    transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.discovery-marker:not(.is-cluster)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 8px;
    height: 8px;
    background: inherit;
    border-right: 1.5px solid;
    border-bottom: 1.5px solid;
    border-color: inherit;
    border-bottom-right-radius: 2px;
    transform: translateX(-50%) rotate(45deg);
    pointer-events: none;
}
.discovery-marker b { height: 7px; width: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, .22); flex: none; }
.discovery-marker[data-status="limited"] b { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, .24); }
.discovery-marker[data-status="full"] { color: #64586c; }
.discovery-marker[data-status="full"] b { background: #847896; box-shadow: 0 0 0 2px rgba(132, 120, 150, .2); }

.discovery-marker:hover,
.discovery-marker.is-hovered {
    border-color: var(--pn-action);
    box-shadow: 0 10px 24px rgba(89, 70, 143, .28);
}

.discovery-marker.is-selected {
    border-color: #fff;
    background: linear-gradient(135deg, var(--pn-action), var(--pn-purple));
    color: #fff;
    box-shadow: 0 0 0 4px rgba(89, 70, 143, .24), 0 10px 24px rgba(36, 37, 54, .32);
}
.discovery-marker.is-selected:not(.is-cluster)::after {
    background: var(--pn-purple);
    border-color: #fff;
}
.discovery-marker.is-selected b { outline: 1.5px solid rgba(255, 255, 255, .95); box-shadow: none; }

.discovery-marker.is-cluster {
    min-width: 38px;
    min-height: 38px;
    justify-content: center;
    padding: 0 11px;
    border: 2px solid #fff;
    background: linear-gradient(135deg, var(--pn-action), var(--pn-purple));
    color: #fff;
    box-shadow: 0 0 0 5px rgba(89, 70, 143, .2), 0 6px 16px rgba(36, 37, 54, .28);
    transform-origin: 50% 50%;
}

.discovery-marker-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    transform: translate(-50%, 4px);
    padding: 5px 10px;
    border-radius: 9px;
    background: rgba(36, 37, 54, .92);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: .71rem;
    font-weight: 600;
    line-height: 1.25;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(20, 13, 36, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    z-index: 10;
}
@media (hover: hover) {
    .discovery-marker:hover .discovery-marker-tip,
    .discovery-marker.is-hovered .discovery-marker-tip,
    .discovery-leaflet-marker:focus-visible .discovery-marker-tip {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
.discovery-page .app-bottom-nav { background: #fff; border-color: var(--pn-line); }
.discovery-page .bottom-nav-item { color: var(--pn-muted); }
.discovery-page .bottom-nav-item.active { color: var(--pn-action); }
.discovery-page button:active, .discovery-book:active { opacity: .88; }

@media (min-width: 992px) {
    .discovery-page {
        --discovery-gutter: clamp(16px, 2vw, 36px);
        --discovery-max-width: 1920px;
        height: 100dvh;
        min-height: 0;
    }

    .discovery-page main {
        display: flex;
        flex-direction: column;
        min-height: 480px;
    }

    .discovery-page .discovery-header {
        min-height: calc(68px + env(safe-area-inset-top));
        padding-inline: max(var(--discovery-gutter), calc((100% - var(--discovery-max-width)) / 2 + var(--discovery-gutter)));
    }

    .discovery-page .discovery-desktop-nav .bottom-nav-item:hover {
        background: #f8f6fb;
        color: var(--pn-purple);
    }

    .discovery-page .discovery-desktop-nav .bottom-nav-item.active {
        background: var(--pn-lavender);
    }

    .discovery-page .discovery-desktop-nav .bottom-nav-item.active svg {
        transform: none;
    }

    .discovery {
        --discovery-gap: clamp(14px, 1.35vw, 24px);
        --discovery-panel-padding: clamp(16px, 1.45vw, 26px);
        width: 100%;
        max-width: var(--discovery-max-width);
        flex: 1 1 0;
        min-height: 0;
        margin-inline: auto;
        padding: var(--discovery-gap) var(--discovery-gutter);
        grid-template-columns: clamp(380px, 34%, 530px) minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        column-gap: var(--discovery-gap);
    }

    .discovery-intro {
        grid-area: 1 / 1;
        padding: 18px var(--discovery-panel-padding) 16px;
        border: 1px solid var(--pn-line);
        border-bottom: 0;
        border-radius: var(--pn-radius) var(--pn-radius) 0 0;
    }

    .discovery-location {
        min-height: 32px;
        padding-inline: 8px;
        margin-inline-start: -8px;
        border-radius: 8px;
    }

    .discovery-location:hover {
        background: var(--pn-lavender);
    }

    .discovery h1 {
        font-size: clamp(1.8rem, 2.5vw, 2.5rem);
        letter-spacing: -.035em;
        margin-block: 5px 15px;
    }

    .discovery-search {
        min-height: 52px;
    }

    .discovery-page .discovery-search input:focus {
        outline: none;
        box-shadow: none;
    }

    .discovery-search:focus-within {
        box-shadow: 0 0 0 3px var(--pn-lavender);
    }

    .discovery-vehicles {
        gap: 7px;
        margin-top: 12px;
    }

    .discovery-vehicles button {
        min-height: 54px;
        font-size: .77rem;
    }

    .discovery-vehicles button:hover,
    .discovery-filters button:hover {
        border-color: #c8bbdb;
    }

    .discovery-sheet {
        grid-area: 2 / 1;
        min-height: 0;
        border: 1px solid var(--pn-line);
        border-top: 0;
        border-radius: 0 0 var(--pn-radius) var(--pn-radius);
        box-shadow: 0 8px 24px #24253607;
    }

    .discovery-handle {
        display: none;
    }

    .discovery-sheet-header {
        padding: 14px var(--discovery-panel-padding) 9px;
        border-top: 1px solid var(--pn-line);
    }

    .discovery h2 {
        font-size: 1.2rem;
    }

    #discovery-count {
        font-variant-numeric: tabular-nums;
    }

    .discovery-filters {
        flex-wrap: wrap;
        overflow: visible;
    }

    .discovery-filters button {
        min-height: 34px;
        padding-inline: 10px;
    }

    .discovery-results {
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 6px var(--discovery-panel-padding) 20px;
        gap: 12px;
        scrollbar-width: thin;
        scrollbar-color: #cfc4de transparent;
    }

    .discovery-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .discovery-card h3 {
        font-size: 1rem;
        letter-spacing: -.015em;
    }

    .discovery-map {
        grid-area: 1 / 2 / 3 / 3;
        border: 1px solid var(--pn-line);
        border-radius: 20px;
        box-shadow: 0 12px 32px rgba(36, 37, 54, .08);
    }

    .discovery-map-canvas {
        scroll-margin-top: 84px;
    }

    .discovery-map-controls {
        inset: 16px 16px auto auto;
        gap: 8px;
    }

    .discovery-legend {
        left: 16px;
        bottom: 16px;
        font-size: .74rem;
        padding: 7px 13px;
        gap: 12px;
    }

    .discovery-preview {
        left: 16px;
        bottom: 60px;
    }

    .discovery-page:has(.discovery-noscript) .discovery {
        height: auto;
        min-height: 0;
        max-width: 720px;
    }
}

@media (min-width: 992px) and (max-height: 740px) {
    .discovery-intro {
        padding-block: 12px;
    }

    .discovery h1 {
        margin-block: 2px 10px;
    }

    .discovery-vehicles button {
        min-height: 48px;
    }

    .discovery-sheet-header {
        padding-top: 10px;
    }
}

@media (max-width: 767.98px) {
    .discovery-detail-dialog {
        width: 100%;
        max-height: calc(100dvh - 14px - env(safe-area-inset-top, 0px));
        inset: auto 0 0;
        margin: 0;
        border-radius: 24px 24px 0 0;
    }
    .discovery-detail-grabber {
        display: grid;
    }
    .discovery-detail-secondary-btn span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .discovery-page *, .discovery-page *::before, .discovery-page *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.discovery-leaflet-marker .discovery-marker { transform: translate(-50%, calc(-100% - 5px)); }
.discovery-leaflet-marker .discovery-marker:hover,
.discovery-leaflet-marker .discovery-marker.is-hovered { transform: translate(-50%, calc(-100% - 8px)) scale(1.07); }
.discovery-leaflet-marker .discovery-marker.is-selected { transform: translate(-50%, calc(-100% - 8px)) scale(1.09); }
.discovery-leaflet-marker .discovery-marker.is-cluster { transform: translate(-50%, -50%); }
.discovery-leaflet-marker .discovery-marker.is-cluster:hover,
.discovery-leaflet-marker .discovery-marker.is-cluster.is-hovered { transform: translate(-50%, -50%) scale(1.1); }
.discovery-preview { touch-action: pan-y; }
.discovery-results { scroll-padding-bottom: 14px; }
@media (max-width: 991.98px) {
    .discovery { grid-template-rows: auto minmax(290px, 47svh) minmax(130px, auto); }
    .discovery-map-controls { right: 10px; top: 10px; gap: 7px; }
    .discovery-map-controls .discovery-icon { width: 42px; height: 42px; }
    .discovery-preview { left: 10px; right: 10px; bottom: 10px; max-width: 450px; }
    .discovery-preview .discovery-card { border-radius: 16px; }
    .discovery:has(.discovery-preview:not([hidden])) .discovery-legend { visibility: hidden; }
    .discovery-handle { min-height: 36px; }
    .discovery:not(.is-expanded) .discovery-results { display: none; }
}
@media (max-width: 479.98px) {
    .discovery-legend { font-size: .64rem; padding: 5px 9px; gap: 7px; }
}
.discovery-map-status button { border: 0; min-height: 44px; border-radius: 8px; padding: 6px 14px; color: #fff; background: var(--pn-action); font-weight: 650; }
.discovery-map-status [data-map-message] { max-width: min(29ch, calc(100vw - 110px)); }
.discovery-preview .discovery-icon { min-width: 36px; }
