/* SimSim Trip — Hotel Details Page */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple: #6B48E8;
    --main: #4A90D9;
    --green: #22C55E;
    --text: #1a1a2e;
    --text-mid: #4b5563;
    --text-light: #9ca3af;
    --white: #ffffff;
    --bg: #f8f7fd;
    --bg-light: #f3f4f6;
    --border: #e5e7eb;
    --shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 6px 32px rgba(0, 0, 0, 0.11);
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Satoshi', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* ── Mobile header ── */
.mob-header {
    display: none;
}

/* ── Main ── */
.hd-main {
    max-width: 1160px;
    margin: 0 auto;
    padding: 20px 32px 60px;
}

/* ── Back link ── */
.back-link {
    margin-bottom: 16px;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple);
    text-decoration: none;
    transition: gap 0.2s;
}

.back-link a:hover {
    gap: 10px;
}

/* ── Gallery ── */
.gallery {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 6px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
    height: 340px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gallery-grid img:hover {
    opacity: 0.88;
}

/* ── Content grid ── */
.hd-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* ── Card base ── */
.hd-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.hd-card:last-child {
    margin-bottom: 0;
}

.card-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
}

/* ── Hotel Info ── */
.hotel-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.hotel-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 10px;
}

.hotel-rating-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rating-num {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
}

.rating-reviews {
    font-size: 0.8rem;
    color: var(--text-light);
}

.premium-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.hotel-desc {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.65;
}

/* ── Highlights ── */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-mid);
}

/* ── Amenities ── */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-mid);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.amenity-item:nth-last-child(-n+3) {
    border-bottom: none;
}

/* ── Policies ── */
.policy-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.policy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.policy-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.policy-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.policy-desc {
    font-size: 0.8rem;
    color: var(--text-mid);
    line-height: 1.55;
}

/* ── Reviews ── */
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.reviews-header .card-heading {
    margin-bottom: 0;
}

.reviews-score {
    display: flex;
    align-items: center;
    gap: 5px;
}

.score-num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.score-total {
    font-size: 0.82rem;
    color: var(--text-light);
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

.review-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reviewer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.reviewer-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #16a34a;
}

.review-stars-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.review-stars {
    color: #F59E0B;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.review-date {
    font-size: 0.74rem;
    color: var(--text-light);
}

.review-text {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.55;
}

.view-all-reviews {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--purple);
    text-decoration: none;
}

.view-all-reviews:hover {
    text-decoration: underline;
}

/* ── Booking Widget ── */
.booking-widget {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 80px;
}

.bw-price {
    margin-bottom: 20px;
}

.bw-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.bw-night {
    font-size: 0.85rem;
    color: var(--text-light);
}

.bw-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.bw-field label {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bw-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--text-mid);
    font-family: inherit;
    outline: none;
    background: var(--bg-light);
    transition: border-color 0.2s;
}

.bw-input:focus {
    border-color: var(--purple);
    background: var(--white);
}

.bw-breakdown {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bw-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.83rem;
    color: var(--text-mid);
}

.bw-row.total {
    font-size: 0.9rem;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--text);
}

.bw-book-btn {
    width: 100%;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, #500EAF, #8B3DD8);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(107, 72, 232, 0.32);
    transition: opacity 0.2s, transform 0.2s;
    margin-bottom: 14px;
}

.bw-book-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.bw-perks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bw-perk {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--text-mid);
}

/* Mobile bottom sticky bar */
.mob-bottom-bar {
    display: none;
}

/* ════════════════════════
   MOBILE
════════════════════════ */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .mob-header {
        display: flex;
        align-items: center;
        gap: 14px;
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 13px 16px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .mob-back {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--bg-light);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text);
        flex-shrink: 0;
    }

    .mob-header-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text);
        letter-spacing: 0.04em;
    }

    /* Mobile carousel */
    .mob-carousel {
        margin-bottom: 0;
    }

    .mob-carousel-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .mob-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .mob-carousel-track img {
        flex: 0 0 100%;
        width: 100%;
        height: 220px;
        object-fit: cover;
        scroll-snap-align: start;
        display: block;
    }

    .mob-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        padding: 8px 0;
    }

    .mob-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--border);
    }

    .mob-dot.active {
        background: var(--purple);
    }

    /* Main */
    .hd-main {
        padding: 0 0 90px;
    }

    /* Grid: single column */
    .hd-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hd-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
        box-shadow: none;
        margin-bottom: 0;
        padding: 18px 16px;
    }

    .hotel-title {
        font-size: 1.2rem;
    }

    .hotel-desc {
        font-size: 0.82rem;
    }

    /* Amenities: 1 column list */
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .amenity-item {
        border-bottom: 1px solid var(--border);
        padding: 12px 0;
    }

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

    /* Mobile sticky bottom */
    .mob-bottom-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 16px 18px;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 200;
    }

    .mob-price-amt {
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--purple);
    }

    .mob-price-night {
        font-size: 0.78rem;
        color: var(--text-light);
        margin-left: 4px;
    }

    .mob-check-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 12px 20px;
        border-radius: 24px;
        background: linear-gradient(135deg, #500EAF, #8B3DD8);
        color: var(--white);
        font-size: 0.88rem;
        font-weight: 700;
        font-family: inherit;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(107, 72, 232, 0.35);
    }
}