/* ==========================================================================
   Hotel Detail Page — scoped under .hd-page-wrap
   ========================================================================== */

/* OceanWP resets */
body.hd-page #wrap { padding: 0 !important; }

.hd-page-wrap {
    background: #fff;
    padding-bottom: 40px;
}

/* Containers */
.hd-page-wrap .hd-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}
.hd-page-wrap .hd-full-section {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* BREADCRUMB */
.hd-page-wrap .breadcrumb {
    padding: 14px 0;
    font-size: 13px;
    color: var(--th-ink-light);
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    align-items: center;
    gap: 0;
}
.hd-page-wrap .breadcrumb a {
    color: var(--th-twister);
    text-decoration: none;
}
.hd-page-wrap .breadcrumb a:hover { text-decoration: underline; }
.hd-page-wrap .breadcrumb .sep { margin: 0 5px; color: #ccc; }
.hd-page-wrap .breadcrumb .current{
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SECTION LABEL */
.hd-page-wrap .section-label {
    display: inline-block;
    border: 1px solid var(--th-gold);
    color: var(--th-gold);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

/* GALLERY */
.hd-page-wrap .hd-gallery {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 195px 195px;
    gap: 4px;
    border-radius: var(--th-radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.hd-page-wrap .gal-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #e0ddd8;
}
.hd-page-wrap .gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s;
}
.hd-page-wrap .gal-item:hover img { opacity: 0.93; }
.hd-page-wrap .gal-main { grid-row: 1 / -1; }
.hd-page-wrap .gal-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0ada6;
    font-size: 13px;
    font-weight: 300;
    height: 100%;
}

/* Gallery overlay badges */
.hd-page-wrap .img-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 1;
    pointer-events: none;
}
.hd-page-wrap .img-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.92);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--th-ink);
}
.hd-page-wrap .img-badge-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    flex-shrink: 0;
}
.hd-page-wrap .img-badge svg{
    width: 20px;
    height: 20px;
    max-width: unset; 
}
.hd-page-wrap .img-badge-icon.green  { background: #4caf50; }
.hd-page-wrap .img-badge-icon.red    { background: #e53935; }
.hd-page-wrap .img-badge-icon.blue   { background: #1e88e5; }
.hd-page-wrap .img-badge-icon.twister { background: var(--th-twister); }
.hd-page-wrap .img-badge .b-icon-img { width: 16px; height: 16px; object-fit: contain; display: block; flex-shrink: 0; }

/* HOTEL HEADER */
.hd-page-wrap h1.hotel-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--th-ink);
    line-height: 1.25;
    margin-bottom: 6px;
}
.hd-page-wrap .hotel-address {
    font-size: 14px;
    color: var(--th-ink-light);
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}
.hd-page-wrap .badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 28px;
}
.hd-page-wrap .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
}
.hd-page-wrap .badge-rating {
    background: var(--th-twister);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.hd-page-wrap .badge-feature {
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--th-rule);
    color: var(--th-ink);
}
.hd-page-wrap .badge-feature .b-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #fff;
}
.hd-page-wrap .badge-feature .b-icon svg {
    width: 20px;
    height: 20px;
    max-width: unset;
}

/* BUTTON */
.hd-page-wrap .btn-gold {
    display: inline-block;
    width: 100%;
    background: var(--th-gold);
    color: #fff !important;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    text-align: center;
    transition: background 0.15s;
    box-sizing: border-box;
    line-height: 1.4;
}
.hd-page-wrap .btn-gold:hover { background: var(--th-gold-dim); }

/* CONTENT GRID */
.hd-page-wrap .content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    margin-bottom: 40px;
}
.hd-page-wrap .content-main { min-width: 0; }
.hd-page-wrap .content-side { min-width: 0; }

/* SECTIONS */
.hd-page-wrap .section { margin-bottom: 32px; }
.hd-page-wrap .section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--th-ink);
    margin-bottom: 14px;
    margin-top: 0;
}
.hd-page-wrap .section-sub {
    font-size: 13px;
    color: var(--th-ink-light);
    margin-bottom: 16px !important;
}

/* ABOUT */
.hd-page-wrap .about-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
.hd-page-wrap .about-text p { margin-bottom: 10px; }
.hd-page-wrap .about-text strong { color: var(--th-ink); }

/* AMENITIES */
.hd-page-wrap .amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.hd-page-wrap .amenity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: var(--th-radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--th-ink);
}
.hd-page-wrap .amenity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--th-twister);
    flex-shrink: 0;
}
.hd-page-wrap .amenity svg {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    max-width: unset;
}
.hd-page-wrap .amenity.unavailable { opacity: 0.35; }
.hd-page-wrap .amenity.unavailable .amenity-dot { background: #ccc; }
.hd-page-wrap .amenity.unavailable .amenity-icon { opacity: 0.35; }

/* MAP */
.hd-page-wrap .hd-map-wrap {
    position: relative;
    border-radius: var(--th-radius);
    overflow: hidden;
    border: 1px solid var(--th-rule);
}
#hd-map {
    height: 280px;
    width: 100%;
    z-index: 0;
}
.hd-page-wrap .map-no-coords {
    height: 200px;
    background: #f2f0eb;
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #b0ada6;
    font-size: 13px;
}
.hd-page-wrap .map-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #fff;
    padding: 8px 14px;
    border-radius: var(--th-radius);
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    font-size: 13px;
    z-index: 998;
    pointer-events: none;
}
.hd-page-wrap .map-label strong {
    display: block;
    color: var(--th-ink);
    font-weight: 700;
    font-size: 13px;
}
.hd-page-wrap .map-label span {
    color: var(--th-ink-light);
    font-size: 12px;
}

/* FAQ */
.hd-page-wrap .faq-list {
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius);
    overflow: hidden;
}
.hd-page-wrap .faq-item { border-bottom: 1px solid var(--th-rule); }
.hd-page-wrap .faq-item:last-child { border-bottom: none; }
.hd-page-wrap .faq-q {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    user-select: none;
    color: var(--th-ink);
    margin: 0;
}
.hd-page-wrap .faq-q:hover { background: #fafafa; }
.hd-page-wrap .faq-chevron {
    font-size: 12px;
    color: var(--th-ink-light);
    transition: transform 0.25s;
    flex-shrink: 0;
    margin-left: 12px;
}
.hd-page-wrap .faq-a {
    padding: 0 18px 14px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    display: none;
}
.hd-page-wrap .faq-item.open .faq-a  { display: block; }
.hd-page-wrap .faq-item.open .faq-chevron { transform: rotate(180deg); }
.hd-page-wrap .faq-item.open .faq-a p{margin-bottom: 10px !important;}
.hd-page-wrap .faq-item.open .faq-a p:last-child{margin-bottom: 0 !important;}
/* SIMILAR HOTELS */
.hd-page-wrap .similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.hd-page-wrap .hotel-card {
    background: #fff;
    border-radius: var(--th-radius);
    border: 1px solid var(--th-rule);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    transition: box-shadow 0.15s, transform 0.15s;
}
.hd-page-wrap .hotel-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.hd-page-wrap .hotel-card-img {
    height: 160px;
    background: #e0ddd8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0ada6;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}
.hd-page-wrap .hotel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hd-page-wrap .hotel-card-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.hd-page-wrap .hotel-card-body { padding: 14px 16px; }
.hd-page-wrap .hotel-card-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
    line-height: 1.3;
    color: var(--th-ink);
}
.hd-page-wrap .hotel-card-addr {
    font-size: 12px;
    color: var(--th-ink-light);
    margin-bottom: 10px;
}
.hd-page-wrap .hotel-card-cta { margin-bottom: 10px; }
.hd-page-wrap .hotel-card-cta .btn-gold {
    font-size: 13px;
    padding: 9px 16px;
}
.hd-page-wrap .hotel-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}
.hd-page-wrap .hotel-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--th-ink);
}
.hd-page-wrap .hotel-card-price .per {
    font-size: 12px;
    font-weight: 400;
    color: var(--th-ink-light);
}
.hd-page-wrap .hotel-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}
.hd-page-wrap .hd-stars { color: var(--th-gold); font-size: 14px; letter-spacing: 1px; }
.hd-page-wrap .hd-stars .empty { color: #ddd; }
.hd-page-wrap .r-text { font-size: 12px; color: #555; }

/* SIDEBAR */
.hd-page-wrap .side-card {
    background: #fff;
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius);
    padding: 20px;
    position: sticky;
    top: 16px;
}
.hd-page-wrap .side-from   { font-size: 12px; color: var(--th-ink-light); margin-bottom: 1px; }
.hd-page-wrap .side-price  { font-size: 26px; font-weight: 700; color: var(--th-ink); line-height: 1.2;}
.hd-page-wrap .side-per    { font-size: 13px; color: var(--th-ink-light); font-weight: 400; }
.hd-page-wrap .side-stars  { display: flex; align-items: center; gap: 5px; margin: 6px 0 14px; }
.hd-page-wrap .side-stars .hd-stars    { font-size: 14px; }
.hd-page-wrap .side-stars .rating-num  { font-size: 13px; color: #555; }
.hd-page-wrap .side-note {
    text-align: center;
    font-size: 11px;
    color: var(--th-ink-light);
    margin-top: 8px;
    margin-bottom: 16px;
}
.hd-page-wrap .side-features {
    list-style: none;
    border-top: 1px solid #f0f0f0;
    padding: 14px 0 0;
    margin: 0;
}
.hd-page-wrap .side-features li {
    padding: 8px 0;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.hd-page-wrap .side-features li:last-child { border-bottom: none; }
.hd-page-wrap .side-check { color: var(--th-twister); font-weight: 700; font-size: 14px; flex-shrink: 0; }

/* MOBILE STICKY BOOKING BAR — hidden on desktop */
.mobile-booking-bar { display: none; }

/* FINAL CTA */
.hd-page-wrap .final-cta {
    text-align: center;
    padding: 40px 24px;
    background: #fafafa;
    border-radius: var(--th-radius);
    border: 1px solid var(--th-rule);
    margin-bottom: 40px;
    position: relative;
}
.hd-page-wrap .final-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--th-gold), var(--th-twister));
    border-radius: var(--th-radius) var(--th-radius) 0 0;
}
.hd-page-wrap .final-cta h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--th-ink);
}
.hd-page-wrap .final-cta p { font-size: 14px; color: #555; margin-bottom: 20px; }
.hd-page-wrap .final-cta .btn-gold {
    width: auto;
    display: inline-block;
    padding: 14px 48px;
    font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 800px) {
    .hd-page-wrap .hd-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 180px 120px;
        margin-bottom: 16px;
    }
    .hd-page-wrap .gal-main {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .hd-page-wrap .gal-item[data-index="3"],
    .hd-page-wrap .gal-item[data-index="4"] { display: none; }
    .hd-page-wrap .content-grid { grid-template-columns: 1fr; }
    .hd-page-wrap .content-side { display: none; }
    .hd-page-wrap .similar-grid { grid-template-columns: 1fr 1fr; }
    .hd-page-wrap h1.hotel-name { font-size: 22px; }
    .hd-page-wrap .hotel-address { font-size: 12px; }
    .hd-page-wrap { padding-bottom: 80px; }
    .mobile-booking-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: #fff;
        border-top: 1px solid var(--th-rule);
        padding: 10px 16px;
        gap: 12px;
        box-shadow: 0 -2px 8px rgba(0,0,0,.08);
    }
    .mobile-booking-bar .mbb-left  { flex: 1; min-width: 0; }
    .mobile-booking-bar .mbb-from  { font-size: 11px; color: var(--th-ink-light); margin-bottom: -2px; }
    .mobile-booking-bar .mbb-price { font-size: 20px; font-weight: 700; color: var(--th-ink); line-height: 1.2;}
    .mobile-booking-bar .mbb-per   { font-size: 12px; font-weight: 400; color: var(--th-ink-light); }
    .mobile-booking-bar .mbb-rating { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
    .mobile-booking-bar .mbb-rating .hd-stars { font-size: 13px; }
    .mobile-booking-bar .mbb-num   { font-size: 12px; color: #555; }
    .mobile-booking-bar .mbb-btn   { flex-shrink: 0; width: auto; padding: 12px 16px; font-size: 14px; white-space: nowrap; }
    .hd-page-wrap .badges-row{margin-bottom: 15px;}
}
@media (max-width: 480px) {
    .hd-page-wrap .similar-grid { grid-template-columns: 1fr; }
    .hd-page-wrap .final-cta .btn-gold { padding: 14px 28px; }
}

/* ── Price Context ── */
.hd-page-wrap .pc-subtitle {
    color: var(--th-ink-light);
    font-size: 14px;
    margin: -8px 0 14px 0 !important;
}
.hd-page-wrap .pc-card {
    border: 1px solid var(--th-rule);
    border-radius: 8px;
    padding: 22px;
}
.hd-page-wrap .pc-slider-wrap {
    position: relative;
    padding: 32px 0 28px;
    margin-bottom: 0;
}
.hd-page-wrap .pc-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #7ec8a0, #f5d76e, #e07c5a);
}
.hd-page-wrap .pc-dot {
    position: absolute;
    top: 29px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translateX(-50%);
    cursor: default;
}
.hd-page-wrap .pc-dot--avg   { background: #f5a623; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.hd-page-wrap .pc-dot--hotel { background: #31304C; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.hd-page-wrap .pc-dot-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: var(--th-ink);
    background: #fff;
    border: 1px solid var(--th-rule);
    border-radius: 4px;
    padding: 2px 7px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.hd-page-wrap .pc-dot-label--top    { bottom: calc(100% + 6px); }
.hd-page-wrap .pc-dot-label--bottom { top: calc(100% + 6px); }
.hd-page-wrap .pc-dot-label.tooltip-shift-left  { transform: translateX(calc(-100% + 12px)); }
.hd-page-wrap .pc-dot-label.tooltip-shift-right { transform: translateX(-12px); }
.hd-page-wrap .pc-dot-label.tooltip-shift-top   { top: auto; bottom: calc(100% + 6px); }
.hd-page-wrap .pc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--th-ink-light);
    margin-top: 6px;
}
.hd-page-wrap .pc-slider-wrap + .pc-info-box { margin-top: 16px; }
.hd-page-wrap .pc-info-box {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: #fef6e3;
    border-radius: var(--th-radius);
    padding: 12px;
    font-size: 13px;
    color: #c98a02;
    line-height: 1.5;
}
.hd-page-wrap .pc-info-icon {
    flex-shrink: 0;
    color: #e6a817;
    font-size: 16px;
    line-height: 1.4;
}

/* ── Gallery position context + "View all" button ── */
.hd-page-wrap .hd-gallery { position: relative; }

.hd-page-wrap .gal-all-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 4px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, box-shadow 0.15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Lightbox overlay ── */
.hd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.hd-lightbox.is-open { opacity: 1; pointer-events: auto; }
body.hd-lightbox-open { overflow: hidden; }

.hd-lightbox__stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-lightbox__img {
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 80px);
    object-fit: contain;
    display: block;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.18s ease;
    user-select: none;
}
.hd-lightbox__img.is-visible { opacity: 1; }

.hd-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    transition: background 0.15s;
    z-index: 10;
}
.hd-lightbox__close:hover { background: rgba(255,255,255,0.22); }

.hd-lightbox__counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
}

.hd-lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    transition: background 0.15s;
    z-index: 10;
}
.hd-lightbox__arrow:hover { background: rgba(255,255,255,0.22); }
.hd-lightbox__arrow--prev { left: 16px; }
.hd-lightbox__arrow--next { right: 16px; }
.hd-lightbox[data-total="1"] .hd-lightbox__arrow { display: none; }

@media (max-width: 600px) {
    .hd-lightbox__img { max-width: 100vw; max-height: calc(100vh - 100px); border-radius: 0; }
    .hd-lightbox__arrow { width: 38px; height: 38px; font-size: 18px; }
    .hd-lightbox__arrow--prev { left: 8px; }
    .hd-lightbox__arrow--next { right: 8px; }
    .hd-lightbox__close { top: 10px; right: 10px; }
    .hd-page-wrap .gal-all-btn { font-size: 12px; padding: 6px 10px; }
}
