﻿

:root {
    --sm-bg: #f5f7fb;
    --sm-surface: #ffffff;
    --sm-line: #e4e9f1;
    --sm-text: #0f172a;
    --sm-muted: #64748b;
    --sm-accent: #fbbf24;
    --sm-accent-deep: #f59e0b;
    --sm-success: #166534;
    --sm-danger: #b91c1c;
    --sm-radius-lg: 22px;
    --sm-radius-md: 14px;
}

.landing-shell {
    display: grid;
    gap: 1rem;
    padding: .45rem;
    background: radial-gradient(1200px 450px at 92% -24%, rgba(251, 191, 36, 0.3), transparent 58%), linear-gradient(180deg, #f8fafc 0%, var(--sm-bg) 45%, #f4f6fb 100%);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: .9rem;
}

.hero-main,
.hero-side {
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius-lg);
    background: var(--sm-surface);
}

.hero-main {
    padding: 1.25rem;
    overflow: hidden;
}

    .hero-main::before {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        border-radius: 999px;
        right: -130px;
        top: -180px;
        background: radial-gradient(circle, rgba(251, 191, 36, .45), rgba(251, 191, 36, 0.05) 58%, transparent 70%);
        animation: floatBlob 8s ease-in-out infinite;
        pointer-events: none;
    }

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: .72rem;
    padding: .28rem .6rem;
    margin-bottom: .7rem;
}

.hero-title {
    margin: 0;
    color: var(--sm-text);
    font: 800 clamp(1.6rem, 3vw, 2.45rem) / 1.04 "Sora", sans-serif;
    max-width: 14ch;
}

.hero-sub {
    margin: .75rem 0 1rem;
    color: var(--sm-muted);
    max-width: 55ch;
}

.hero-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: .95rem;
}

.btn-hero {
    border-radius: 12px;
    border: 1px solid var(--sm-line);
    background: #fff;
    color: var(--sm-text);
    text-decoration: none;
    font-weight: 800;
    font-size: .85rem;
    padding: .55rem .9rem;
}

    .btn-hero.primary {
        border-color: #fcd34d;
        background: linear-gradient(95deg, var(--sm-accent), #ffd966);
    }

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: .55rem;
}

.metric {
    border: 1px solid var(--sm-line);
    border-radius: 12px;
    padding: .6rem .65rem;
    background: #fff;
    transform: translateY(0);
    transition: transform .2s ease;
}

    .metric:hover {
        transform: translateY(-2px);
    }

    .metric b {
        display: block;
        font: 800 1rem/1 "Sora", sans-serif;
    }

    .metric span {
        color: var(--sm-muted);
        font-size: .76rem;
    }

.hero-side {
    padding: .95rem;
    display: grid;
    gap: .6rem;
    align-content: start;
}

.trust {
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius-md);
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
    padding: .72rem;
}

    .trust h6 {
        margin: 0;
        font-size: .92rem;
        font-weight: 800;
        color: var(--sm-text);
    }

    .trust p {
        margin: .25rem 0 0;
        color: var(--sm-muted);
        font-size: .81rem;
    }

/* Skeleton Loading */
.skeleton {
    background: #e2e8f0;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-card {
    border: 1px solid var(--sm-line);
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
    margin-bottom: .66rem;
}

.skeleton-img {
    height: 150px;
    width: 100%;
}

.skeleton-body {
    padding: .7rem;
}

.skeleton-line {
    height: 14px;
    margin-bottom: .5rem;
    border-radius: 4px;
}

    .skeleton-line.short {
        width: 60%;
    }

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }

    100% {
        opacity: 1;
    }
}

.search-wrap {
    border: 1px solid var(--sm-line);
    border-radius: 20px;
    background: #fff;
    padding: .75rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.search-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: center;
    gap: .42rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: .48rem;
    transition: box-shadow .25s ease;
}

    .search-bar.panel-open {
        box-shadow: 0 14px 26px rgba(15, 23, 42, .12);
    }

.search-cell {
    border-right: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 0 .66rem;
    cursor: pointer;
    transition: background .2s ease;
}

    .search-cell:last-of-type {
        border-right: 0;
    }

    .search-cell.active {
        background: #f8fafc;
    }

    .search-cell label {
        margin: 0;
        color: #64748b;
        font-size: .68rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
        display: block;
    }

    .search-cell input {
        border: 0;
        outline: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        color: var(--sm-text);
        font-weight: 700;
        cursor: pointer;
    }

#whereInput {
    cursor: text;
}

.search-btn {
    border: 0;
    border-radius: 11px;
    width: 46px;
    height: 46px;
    color: #111827;
    background: linear-gradient(95deg, var(--sm-accent), #ffd966);
    font-size: 1rem;
}

.search-panel {
    margin-top: .62rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 42px rgba(15, 23, 42, .15);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}

    .search-panel.show {
        max-height: 450px;
        opacity: 1;
        transform: translateY(0);
    }

.panel-body {
    padding: .9rem;
}

.panel-title {
    margin: 0 0 .6rem;
    font-size: .86rem;
    font-weight: 800;
}

.panel-item {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    padding: .62rem;
    margin-bottom: .45rem;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

    .panel-item:hover {
        transform: translateX(2px);
        border-color: #fcd34d;
        background: #fff8dc;
    }

    .panel-item strong {
        display: block;
    }

    .panel-item small, .helper-note {
        color: var(--sm-muted);
        font-size: .78rem;
    }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: .5rem;
    margin-bottom: .65rem;
}

.quick-date {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: .5rem;
    font-weight: 700;
}

.when-legend {
    display: flex;
    gap: .5rem;
    margin-bottom: .6rem;
}

.legend-pill {
    border-radius: 999px;
    padding: .16rem .5rem;
    font-size: .72rem;
    font-weight: 800;
    border: 1px solid transparent;
}

    .legend-pill.available {
        color: var(--sm-success);
        border-color: #bbf7d0;
        background: #ecfdf5;
    }

    .legend-pill.occupied {
        color: var(--sm-danger);
        border-color: #fecaca;
        background: #fef2f2;
    }

.availability-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(74px, 1fr));
    gap: .42rem;
    margin: .45rem 0 .65rem;
}

.availability-date {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    padding: .38rem .45rem;
    transition: transform .2s ease;
}

    .availability-date:hover {
        transform: translateY(-1px);
    }

    .availability-date .day {
        display: block;
        color: #64748b;
        font-size: .68rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .availability-date .num {
        display: block;
        color: #0f172a;
        font-size: .86rem;
        font-weight: 800;
    }

    .availability-date .stat {
        display: block;
        font-size: .67rem;
        font-weight: 700;
    }

    .availability-date.available {
        border-color: #86efac;
        background: #f0fdf4;
    }

        .availability-date.available .stat {
            color: var(--sm-success);
        }

    .availability-date.occupied {
        border-color: #fca5a5;
        background: #fef2f2;
    }

        .availability-date.occupied .stat {
            color: var(--sm-danger);
        }

    .availability-date.selected {
        outline: 2px solid var(--sm-accent);
    }

.who-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding: .54rem 0;
}

    .who-row:last-child {
        border-bottom: 0;
    }

.who-controls {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
}

.who-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
}

.who-count {
    min-width: 20px;
    text-align: center;
    font-weight: 800;
}

.preset-row {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .55rem;
}

.preset {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    padding: .28rem .6rem;
    font-size: .73rem;
    font-weight: 700;
}

    .preset.active, .preset:hover {
        border-color: #fbbf24;
        background: #fffbeb;
        color: #92400e;
    }

.live-pill {
    margin-top: .6rem;
    border: 1px dashed #fbbf24;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: .78rem;
    font-weight: 700;
    padding: .45rem .58rem;
}

.results {
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius-lg);
    overflow: hidden;
    background: #fff;
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    min-height: 560px;
}

.results-left {
    padding: .95rem;
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
}

.results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
    margin-bottom: .65rem;
}

    .results-head h5 {
        margin: 0;
        font-weight: 800;
    }

.verified-pill {
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: .72rem;
    font-weight: 800;
    padding: .17rem .52rem;
}

.result-list {
    display: grid;
    gap: .66rem;
    max-height: 500px;
    overflow: auto;
    padding-right: .2rem;
}

.result-card {
    border: 1px solid var(--sm-line);
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
    transform: translateY(6px);
    opacity: 0;
    animation: cardIn .35s ease forwards;
}

.result-card-img {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.result-card-body {
    padding: .7rem;
}

    .result-card-body h6 {
        margin: 0;
        font-weight: 800;
    }

    .result-card-body small {
        color: var(--sm-muted);
    }

.result-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .45rem;
    margin-top: .55rem;
}

.type-pill {
    border-radius: 999px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: .71rem;
    font-weight: 700;
    padding: .15rem .48rem;
}

.book-btn {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    padding: .3rem .6rem;
}

    .book-btn:hover {
        background: #111827;
        color: #fff;
    }

.map-wrap {
    border-left: 1px solid var(--sm-line);
}

#landingMap {
    width: 100%;
    height: 100%;
    min-height: 560px;
}

.price-pin {
    background: #ef4444;
    color: #111827;
    font-size: .78rem;
    font-weight: 900;
    border: 2px solid #7f1d1d;
    border-radius: 8px;
    padding: 5px 10px;
    box-shadow: 0 4px 10px rgba(127, 29, 29, .28);
    transform: translate(-50%, -150%);
    position: relative;
    white-space: nowrap;
}

    .price-pin::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 8px;
        border-style: solid;
        border-color: #ef4444 transparent transparent transparent;
    }

.empty-box {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    text-align: center;
    padding: .92rem;
}

.spotlight {
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius-lg);
    background: #fff;
    padding: .95rem;
}

    .spotlight h2 {
        margin: 0;
        color: var(--sm-text);
        font: 800 clamp(1.2rem, 2vw, 1.75rem)/1.1 "Sora", sans-serif;
    }

    .spotlight p {
        margin: .35rem 0 .75rem;
        color: var(--sm-muted);
    }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: .72rem;
}

.feature-card {
    grid-column: span 3;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(12px);
    transition: box-shadow .25s ease, transform .25s ease;
}

    .feature-card.wide {
        grid-column: span 6;
    }

    .feature-card.tall .feature-image {
        height: 220px;
    }

    .feature-card.in-view {
        opacity: 1;
        transform: translateY(0);
        transition: transform .45s ease, opacity .45s ease;
    }

    .feature-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 22px rgba(15, 23, 42, .08);
    }

.feature-tag {
    position: absolute;
    top: 9px;
    left: 9px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #111827;
    font-size: .7rem;
    font-weight: 800;
    padding: .2rem .55rem;
    z-index: 2;
}

.feature-heart {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .6);
    background: rgba(17, 24, 39, .35);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.feature-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.feature-body {
    padding: .66rem;
}

    .feature-body h6 {
        margin: 0;
        font-size: .9rem;
        font-weight: 800;
    }

    .feature-body p {
        margin: .25rem 0 0;
        font-size: .78rem;
        color: var(--sm-muted);
    }

.feature-foot {
    margin-top: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-pill {
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e;
    font-size: .67rem;
    font-weight: 800;
    padding: .15rem .43rem;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: transform .5s ease, opacity .5s ease;
}

    .reveal.in-view {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes floatBlob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10px, 10px) scale(1.04);
    }
}

@keyframes cardIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .feature-card {
        grid-column: span 3;
    }

        .feature-card.wide {
            grid-column: span 6;
        }
}

@media (max-width: 992px) {
    .results {
        grid-template-columns: 1fr;
    }

    .map-wrap {
        border-left: 0;
        border-top: 1px solid var(--sm-line);
    }

    #landingMap {
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    .search-bar {
        grid-template-columns: 1fr;
        border-radius: 14px;
        padding: .65rem;
        gap: .2rem;
    }

    .search-cell {
        border-right: 0;
        border-bottom: 1px solid #eef2f7;
        padding: .12rem .05rem .45rem;
    }

        .search-cell:last-of-type {
            border-bottom: 0;
        }

    .search-btn {
        width: 100%;
        height: 42px;
        border-radius: 10px;
    }

    .search-panel {
        position: fixed;
        left: .75rem;
        right: .75rem;
        top: 84px;
        z-index: 1065;
        border-radius: 16px;
    }

        .search-panel.show {
            max-height: calc(100vh - 110px);
        }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .availability-grid {
        grid-template-columns: repeat(3, minmax(70px, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .feature-card, .feature-card.wide {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .book-btn {
        width: 100%;
        text-align: center;
    }
}


/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ffc107;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}