/* ==========================================================================
   Hotel / Resort Detail Page — compact, image-led layout
   ========================================================================== */

.hotel-detail-page {
    background: var(--bg-light);
}

/* --- HERO WITH BOOKING WIDGET --- */
.hd-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: stretch;
    color: #fff;
    /* visible so booking widget custom dropdown is not clipped */
    overflow: visible;
}

.hd-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.03);
    overflow: hidden;
    border-radius: 0;
    clip-path: inset(0);
}

.hd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(11, 48, 34, 0.88) 0%,
        rgba(11, 48, 34, 0.62) 48%,
        rgba(11, 48, 34, 0.45) 100%
    );
    z-index: 1;
}

.hd-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: end;
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 32px;
}

.hd-hero-copy {
    max-width: 560px;
    padding-bottom: 8px;
}

.hd-hero-copy .detail-breadcrumb {
    margin-bottom: 14px;
}

.hd-hero-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f5b301;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.hd-hero-stars .hd-star-label {
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 600;
}

.hd-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 3.6vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.hd-hero-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 14px;
    max-width: 480px;
}

.hd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}

.hd-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hd-hero-meta i {
    color: var(--accent);
}

.hd-hero-price {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.hd-hero-price small {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.8;
    margin-left: 4px;
}

.hd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hd-btn-primary {
    background: var(--primary);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.hd-btn-primary:hover {
    background: #0d3d2b;
    color: #fff;
    transform: translateY(-2px);
}

.hd-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.hd-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

/* Booking widget */
.hd-book-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 20px 18px;
    color: var(--text-dark);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    max-width: 340px;
    margin-left: auto;
    position: relative;
    z-index: 8;
    overflow: visible;
}

.hd-book-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 14px;
    text-align: center;
}

.hd-book-field {
    margin-bottom: 12px;
}

.hd-book-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.hd-book-field input,
.hd-book-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8e5;
    border-radius: 8px;
    font-size: 0.88rem;
    background: #fff;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s ease;
}

.hd-book-field input:focus,
.hd-book-field select:focus {
    border-color: var(--primary);
}

.hd-book-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hd-book-row .hd-book-field {
    min-width: 0;
}

/* Custom National Park dropdown (native select is clipped by hero layers) */
.hd-select {
    position: relative;
    z-index: 20;
}

.hd-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8e5;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hd-select-trigger:hover,
.hd-select-trigger:focus,
.hd-select.is-open .hd-select-trigger {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 48, 34, 0.08);
}

.hd-select-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hd-select-trigger i {
    font-size: 0.72rem;
    color: #64748b;
    transition: transform 0.2s ease;
}

.hd-select.is-open .hd-select-trigger i {
    transform: rotate(180deg);
}

.hd-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8e5;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(11, 48, 34, 0.16);
    z-index: 40;
    max-height: 240px;
    overflow-y: auto;
}

.hd-select-menu[hidden] {
    display: none !important;
}

.hd-select-menu li {
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 0.86rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1.35;
}

.hd-select-menu li:hover,
.hd-select-menu li:focus {
    background: #f3f7f5;
    outline: none;
}

.hd-select-menu li.is-selected {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.hd-category-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 8px;
}

.hd-category-tab {
    border: none;
    background: transparent;
    padding: 7px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hd-category-tab.active,
.hd-category-tab:hover {
    background: var(--primary);
    color: #fff;
}

.hd-book-submit {
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hd-book-submit:hover {
    background: #0d3d2b;
    transform: translateY(-1px);
}

/* --- TRUST BAR --- */
.hd-trust {
    background: #fff;
    border-bottom: 1px solid #e8ebe9;
    padding: 18px 0;
}

.hd-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hd-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px;
}

.hd-trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef5f1, #f7f1e4);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid rgba(11, 48, 34, 0.08);
}

.hd-trust-text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1.25;
}

.hd-trust-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* --- SECTION COMMON --- */
.hd-section {
    padding: 40px 0;
}

.hd-section-alt {
    background: #fff;
}

.hd-section-head {
    text-align: center;
    margin-bottom: 28px;
}

.hd-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-hover, #b08d3e);
    margin-bottom: 8px;
}

.hd-section-eyebrow::before,
.hd-section-eyebrow::after {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--accent);
}

.hd-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.hd-section-sub {
    margin: 8px auto 0;
    max-width: 520px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- ABOUT SPLIT --- */
.hd-about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.hd-about-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e8ebe9;
    box-shadow: 0 4px 18px rgba(11, 48, 34, 0.05);
}

.hd-about-card h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hd-about-card h2 i {
    color: var(--accent);
}

.hd-about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 12px;
}

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

.hd-location-pill {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--text-muted);
    background: var(--bg-light);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-left: 3px solid var(--accent);
}

.hd-location-pill i {
    color: var(--accent-hover, #b08d3e);
    margin-top: 2px;
}

.hd-rooms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hd-room-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid #e8ebe9;
    border-radius: 10px;
    padding: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hd-room-row:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(11, 48, 34, 0.08);
}

.hd-room-row img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 7px;
}

.hd-room-row h4 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 2px;
}

.hd-room-row p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.35;
}

.hd-room-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-hover, #b08d3e);
    white-space: nowrap;
    background: #faf6ee;
    padding: 4px 8px;
    border-radius: 999px;
}

/* --- AMENITIES --- */
.hd-amenities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.hd-amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 10px;
    background: #fff;
    border: 1px solid #e8ebe9;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hd-amenity:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 48, 34, 0.08);
    border-color: rgba(197, 160, 89, 0.45);
}

.hd-amenity-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: linear-gradient(145deg, #eef5f1, #f8f1e3);
    color: var(--primary);
    border: 1px solid rgba(11, 48, 34, 0.08);
}

.hd-amenity span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

/* --- GALLERY --- */
.hd-gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 160px 160px;
    gap: 10px;
}

.hd-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.hd-gallery-item:first-child {
    grid-row: 1 / 3;
}

.hd-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hd-gallery-item:hover img {
    transform: scale(1.06);
}

.hd-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(11, 48, 34, 0.45) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hd-gallery-item:hover::after {
    opacity: 1;
}

/* --- IDEAL TAGS --- */
.hd-ideal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.hd-ideal span {
    padding: 7px 14px;
    background: #fff;
    border: 1px solid rgba(197, 160, 89, 0.35);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- TESTIMONIALS --- */
.hd-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hd-review-card {
    background: #fff;
    border: 1px solid #e8ebe9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(11, 48, 34, 0.04);
}

.hd-review-stars {
    color: #f5b301;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: flex;
    gap: 2px;
}

.hd-review-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 14px;
    font-style: italic;
}

.hd-review-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.hd-review-author span {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-body, inherit);
    margin-top: 2px;
}

/* --- FAQ + CTA SPLIT --- */
.hd-faq-cta-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.hd-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hd-faq-item {
    background: #fff;
    border: 1px solid #e8ebe9;
    border-radius: 10px;
    overflow: hidden;
}

.hd-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    font-family: var(--font-heading);
}

.hd-faq-q i {
    color: var(--accent);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.hd-faq-item.is-open .hd-faq-q i {
    transform: rotate(45deg);
}

.hd-faq-a {
    display: none;
    padding: 0 16px 14px;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.hd-faq-item.is-open .hd-faq-a {
    display: block;
}

.hd-side-cta {
    background: linear-gradient(145deg, var(--primary) 0%, #0d4a35 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 16px);
}

.hd-side-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.hd-side-cta p {
    font-size: 0.86rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0 0 16px;
}

.hd-side-cta .hd-btn-primary {
    width: 100%;
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    margin-bottom: 10px;
}

.hd-side-cta .hd-btn-primary:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.hd-side-cta .hd-btn-outline {
    width: 100%;
    border-color: rgba(255, 255, 255, 0.45);
}

.hd-side-phone {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.82rem;
    opacity: 0.9;
}

.hd-side-phone strong {
    display: block;
    font-size: 1rem;
    margin-top: 4px;
}

/* --- RELATED RESORTS (horizontal rows like mockup) --- */
.hd-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hd-related-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #e8ebe9;
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hd-related-row:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 22px rgba(11, 48, 34, 0.08);
    transform: translateY(-2px);
}

.hd-related-row img {
    width: 120px;
    height: 78px;
    object-fit: cover;
    border-radius: 8px;
}

.hd-related-row h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 4px;
}

.hd-related-row p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.hd-related-explore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.hd-related-row:hover .hd-related-explore {
    background: #0d3d2b;
}

/* --- NEWSLETTER STRIP --- */
.hd-newsletter {
    background: linear-gradient(120deg, #0b3022 0%, #164a36 55%, #1a3a28 100%);
    color: #fff;
    padding: 28px 0;
}

.hd-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hd-newsletter-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hd-newsletter-copy i {
    font-size: 1.6rem;
    color: var(--accent);
}

.hd-newsletter-copy h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.hd-newsletter-copy p {
    margin: 0;
    font-size: 0.84rem;
    opacity: 0.85;
}

.hd-newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hd-newsletter-form input {
    min-width: 220px;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
}

.hd-newsletter-form button {
    padding: 11px 18px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
}

.hd-newsletter-form button:hover {
    background: #d4b36a;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hd-hero-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hd-book-card {
        max-width: none;
        margin-left: 0;
    }

    .hd-hero {
        min-height: auto;
    }

    .hd-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hd-about-grid,
    .hd-faq-cta-grid {
        grid-template-columns: 1fr;
    }

    .hd-amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hd-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 180px 140px 140px;
    }

    .hd-gallery-item:first-child {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .hd-reviews-grid {
        grid-template-columns: 1fr;
    }

    .hd-side-cta {
        position: static;
    }
}

@media (max-width: 600px) {
    .hd-trust-grid {
        grid-template-columns: 1fr;
    }

    .hd-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hd-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 160px);
    }

    .hd-gallery-item:first-child {
        grid-column: auto;
        grid-row: auto;
    }

    .hd-related-row {
        grid-template-columns: 88px 1fr;
    }

    .hd-related-explore {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .hd-room-row {
        grid-template-columns: 64px 1fr;
    }

    .hd-room-count {
        grid-column: 2;
        justify-self: start;
    }

    .hd-category-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .hd-newsletter-form input {
        min-width: 0;
        width: 100%;
    }
}
