/* ==========================================================================
   hotel-details.css  —  JungleNearMe /hotel-details.php
   Reference: Wilderness Travel lodge detail + Nat Hab lodge + Backroads
   ========================================================================== */

/* Gallery hero ---------------------------------------------------------- */
.hd-gallery {
    padding: 28px 0 40px;
}
.hd-gallery__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(3, 150px);
    gap: 10px;
    border-radius: 16px;
    overflow: hidden;
}
.hd-gallery__main {
    grid-row: 1 / span 3;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.hd-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.hd-gallery__main:hover img { transform: scale(1.03); }
.hd-gallery__thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.hd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.hd-gallery__thumb:hover img { transform: scale(1.05); }
.hd-gallery__more {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 43, 0.68);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    pointer-events: none;
}

/* Title block --------------------------------------------------------- */
.hd-title {
    padding: 32px 0 8px;
    background: var(--cream);
}
.hd-title__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.hd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--cream-deep);
    border: 1px solid rgba(30, 58, 43, 0.12);
    border-radius: 999px;
    font-size: 13px;
    color: var(--forest);
    font-weight: 500;
}
.hd-chip i { color: var(--marigold); font-size: 11px; }
.hd-title__h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.05;
    color: var(--forest);
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}
.hd-title__sub {
    font-size: 16px;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

/* Body: two column ---------------------------------------------------- */
.hd-body {
    padding: 40px 0 80px;
    background: var(--cream);
}
.hd-body__grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}
.hd-main { min-width: 0; }
.hd-side { min-width: 0; }

/* Section primitive --------------------------------------------------- */
.hd-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(30, 58, 43, 0.08);
}
.hd-section:last-child { border-bottom: 0; }
.hd-section__eyebrow {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    color: var(--marigold);
    display: block;
    margin-bottom: 4px;
}
.hd-section__h {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 30px);
    color: var(--forest);
    margin: 0 0 18px;
    line-height: 1.2;
}

/* Overview: text + facts card ---------------------------------------- */
.hd-overview {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
}
.hd-overview__copy {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
}
.hd-overview__copy p { margin: 0 0 14px; }
.hd-facts {
    background: var(--card-bg);
    border: 1px solid rgba(30, 58, 43, 0.1);
    border-radius: 14px;
    padding: 22px;
}
.hd-facts h4 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--forest);
    margin: 0 0 14px;
}
.hd-facts ul { list-style: none; margin: 0; padding: 0; }
.hd-facts li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(30, 58, 43, 0.1);
    font-size: 14px;
    line-height: 1.5;
}
.hd-facts li:last-child { border-bottom: 0; }
.hd-facts li i {
    color: var(--marigold);
    width: 18px;
    text-align: center;
    padding-top: 2px;
    flex-shrink: 0;
}
.hd-facts li strong {
    color: var(--forest);
    display: block;
    font-weight: 600;
}
.hd-facts li span {
    color: var(--text-muted);
    display: block;
}

/* Amenities ---------------------------------------------------------- */
.hd-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hd-amenity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--card-bg);
    border: 1px solid rgba(30, 58, 43, 0.18);
    border-radius: 999px;
    color: var(--forest);
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
}
.hd-amenity i { color: var(--success); }

/* Room types --------------------------------------------------------- */
.hd-rooms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.hd-room {
    background: var(--card-bg);
    border: 1px solid rgba(30, 58, 43, 0.1);
    border-radius: 14px;
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hd-room:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(30, 58, 43, 0.08);
}
.hd-room__icon {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(217, 122, 44, 0.12);
    color: var(--marigold);
    margin-bottom: 12px;
}
.hd-room h4 {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--forest);
    margin: 0 0 6px;
}
.hd-room p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

/* What's around ------------------------------------------------------ */
.hd-nearby {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.hd-nearby__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid rgba(30, 58, 43, 0.08);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    min-height: 44px;
}
.hd-nearby__item i {
    color: var(--marigold);
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.hd-map {
    margin-top: 16px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 43, 0.1);
}
.hd-map iframe { width: 100%; min-height: 320px; border: 0; display: block; }

/* Booking CTA (sticky) ------------------------------------------------ */
.hd-booking {
    position: sticky;
    top: 100px;
    background: var(--forest);
    color: var(--cream);
    border-radius: 18px;
    padding: 28px 24px;
    overflow: hidden;
}
.hd-booking__eyebrow {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--marigold);
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}
.hd-booking h3 {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--cream);
    margin: 0 0 10px;
}
.hd-booking__copy {
    color: rgba(245, 241, 232, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
}
.hd-booking .btn-marigold {
    width: 100%;
    justify-content: center;
    min-height: 48px;
}
.hd-booking__fine {
    margin: 16px 0 0;
    font-size: 12px;
    color: rgba(245, 241, 232, 0.65);
    line-height: 1.55;
    font-style: italic;
}
.hd-booking__fine i { color: var(--marigold); margin-right: 4px; }

/* FAQ ---------------------------------------------------------------- */
.hd-faq__item {
    border-bottom: 1px solid rgba(30, 58, 43, 0.12);
    padding: 4px 0;
}
.hd-faq__q {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 18px 36px 18px 0;
    font-family: var(--font);
    font-weight: 600;
    font-size: 16px;
    color: var(--forest);
    cursor: pointer;
    position: relative;
    min-height: 44px;
}
.hd-faq__q::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--marigold);
    transition: transform 0.25s ease;
}
.hd-faq__item.is-open .hd-faq__q::after { content: '\2212'; }
.hd-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}
.hd-faq__item.is-open .hd-faq__a {
    max-height: 400px;
    padding-bottom: 18px;
}

/* Related packages scroller ------------------------------------------ */
.hd-related {
    padding: 64px 0;
    background: var(--cream-deep);
}
.hd-related__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 26px;
    gap: 20px;
    flex-wrap: wrap;
}
.hd-related__header h2 {
    font-family: var(--font-display);
    color: var(--forest);
    margin: 0;
    font-size: clamp(24px, 2.6vw, 32px);
}
.hd-related__scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.hd-related__scroller > .tour-card { scroll-snap-align: start; }

/* Lightbox (existing markup) ----------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 20, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: var(--marigold);
    color: #fff;
    border: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}
.lightbox-close { top: 20px; right: 20px; font-size: 24px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Breakpoints -------------------------------------------------------- */
@media (max-width: 1199px) {
    .hd-body__grid { grid-template-columns: 1fr 320px; gap: 28px; }
    .hd-overview { grid-template-columns: 1fr; }
    .hd-rooms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hd-body__grid { grid-template-columns: 1fr; }
    .hd-booking { position: static; }
    .hd-gallery__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 110px;
    }
    .hd-gallery__main { grid-column: 1 / span 2; grid-row: 1; }
    .hd-gallery__thumb:nth-child(n+4) { display: none; }
}
@media (max-width: 767px) {
    body.has-talk-bar { padding-bottom: 76px; }
    .hd-title { padding: 24px 0 4px; }
    .hd-body { padding: 30px 0 60px; }
    .hd-section { margin-bottom: 28px; padding-bottom: 28px; }
    .hd-rooms { grid-template-columns: 1fr; }
    .hd-nearby { grid-template-columns: 1fr; }
    .hd-related { padding: 48px 0; }
    .hd-related__scroller { grid-auto-columns: minmax(260px, 85%); }
}
@media (max-width: 480px) {
    .hd-gallery { padding: 20px 0 28px; }
    .hd-gallery__grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 200px 80px;
        gap: 6px;
    }
    .hd-gallery__main { grid-column: 1 / span 3; }
    .hd-gallery__thumb:nth-child(n+4) { display: none; }
    .hd-title__h1 { font-size: 28px; }
    .hd-booking { padding: 22px 20px; border-radius: 14px; }
}
