/* =========================================================
   Hotel Details Page — AdiSom
   ========================================================= */

body {
    background-color: #f8f9fa;
}

/* ── Page Layout ────────────────────────────────────────── */
.hotel-details-page {
    padding-top: 104px;
    padding-bottom: 48px;
}

/* ── Back Navigation ────────────────────────────────────── */
.hotel-back-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--evening-slate);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 14px;
    transition: color 0.2s;
}

.hotel-back-nav:hover {
    color: var(--ocean-blue);
}

.hotel-back-nav i {
    font-size: 0.8rem;
}

/* ── Header Title Row ───────────────────────────────────── */
.hotel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.hotel-title-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ocean-blue);
    margin-bottom: 4px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hotel-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--evening-slate);
}

.hotel-meta-row i {
    color: var(--saffron-gold);
}

.hotel-actions {
    display: flex;
    gap: 12px;
}

.hotel-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--evening-slate);
    transition: all 0.2s;
    cursor: pointer;
}

.hotel-action-btn:hover {
    background: var(--warm-sand);
    color: var(--ocean-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ── Modern Masonry Gallery ─────────────────────────────── */
.hotel-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 10px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.hotel-gallery-main {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: relative;
    overflow: hidden;
}

.hotel-gallery-sub {
    position: relative;
    overflow: hidden;
}

.hotel-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.hotel-gallery img:hover {
    transform: scale(1.05);
}

.hotel-gallery-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--ocean-blue);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hotel-gallery-btn:hover {
    background: white;
    transform: translateY(-2px);
}

/* ── Main Content Grid ──────────────────────────────────── */
.hotel-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* ── Left Column Sections ───────────────────────────────── */
.hotel-section {
    background: white;
    border-radius: 14px;
    padding: 22px 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
}

.hotel-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ocean-blue);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hotel-section-title i {
    color: var(--saffron-gold);
}

/* Typography */
.hotel-desc-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--evening-slate);
    opacity: 0.85;
}

.hotel-desc-text p {
    margin-bottom: 0;
}

/* Amenities Grid */
.hotel-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.hotel-amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--evening-slate);
    font-weight: 500;
}

.hotel-amenity-item i {
    width: 18px;
    color: var(--ocean-blue);
    text-align: center;
    font-size: 1rem;
}

/* Key Policy Rules List */
.hotel-key-rules {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, 1fr);
    gap: 8px 24px;
}


.hotel-key-rules li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--evening-slate);
    line-height: 1.45;
}

.hotel-key-rules li::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--saffron-gold);
    margin-top: 5px;
}

/* Policy Button & Room Details Link */
.hotel-policy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid var(--ocean-blue);
    color: var(--ocean-blue);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.hotel-policy-btn:hover {
    background: var(--ocean-blue);
    color: #fff;
}

.hotel-details-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--saffron-gold);
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    padding-bottom: 1px;
}

.hotel-details-link:hover {
    color: var(--saffron-gold);
    border-bottom-color: var(--saffron-gold);
}

.hotel-details-link i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.hotel-details-link:hover i {
    transform: translateX(3px);
}

/* House Rules */
.hotel-rules-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hotel-rule-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hotel-rule-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--warm-sand);
    color: var(--ocean-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hotel-rule-content h5 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--ocean-blue);
}

.hotel-rule-content p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--evening-slate);
}

/* ── Room Cards ─────────────────────────────────────────── */
.hotel-room-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 180px 1fr;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hotel-room-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.hotel-room-img {
    height: 100%;
    min-height: 160px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.hotel-room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-room-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hotel-room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.hotel-room-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ocean-blue);
    margin: 0;
}

.hotel-room-price {
    text-align: right;
}

.hotel-room-price .amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    line-height: 1;
}

.hotel-room-price .note {
    font-size: 0.7rem;
    color: var(--evening-slate);
    opacity: 0.6;
    display: block;
    margin-top: 4px;
}

.hotel-room-features {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.hotel-room-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--evening-slate);
}

.hotel-room-feature i {
    color: #198754;
}

.hotel-room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 10px;
}

.hotel-room-avail {
    font-size: 0.78rem;
    font-weight: 600;
    color: #c4731a;
    background: rgba(255, 159, 28, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
}

.hotel-room-avail.good {
    color: #198754;
    background: rgba(25, 135, 84, 0.1);
}

.hotel-room-btn {
    background: white;
    border: 1.5px solid var(--ocean-blue);
    color: var(--ocean-blue);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.2s;
}

.hotel-room-btn:hover {
    background: var(--ocean-blue);
    color: white;
}

/* ── Sticky Booking Sidebar ─────────────────────────────── */
.hotel-booking-sidebar {
    background: white;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 116px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.hotel-booking-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.hotel-booking-price .from {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--evening-slate);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.hotel-booking-price .amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ocean-blue);
    line-height: 1;
}

.hotel-booking-form-group {
    margin-bottom: 12px;
}

.hotel-booking-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ocean-blue);
    margin-bottom: 8px;
    display: block;
}

.hotel-date-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--ocean-blue);
    font-weight: 500;
    background: #fdfdfd;
    cursor: pointer;
    transition: border-color 0.2s;
}

.hotel-date-input:focus {
    border-color: var(--saffron-gold);
    outline: none;
}

.hotel-booking-btn {
    width: 100%;
    background: var(--saffron-gold);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    margin-top: 8px;
    transition: all 0.3s;
}

.hotel-booking-btn:hover {
    background: #e58d14;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 159, 28, 0.3);
}

/* Mobile Fixed Bottom Bar */
.hotel-mobile-book-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 20px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    z-index: 1040;
    justify-content: space-between;
    align-items: center;
}

.hotel-mobile-book-bar .amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ocean-blue);
    line-height: 1;
}

.hotel-mobile-book-bar .sub {
    font-size: 0.75rem;
    color: var(--evening-slate);
    font-weight: 500;
}

.hotel-mobile-book-bar .btn-select {
    background: var(--saffron-gold);
    color: white;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
}

/* ── Mobile Responsiveness ──────────────────────────────── */
@media (max-width: 991.98px) {
    .hotel-content-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 0;
    }

    .hotel-booking-sidebar {
        position: static;
        box-shadow: none;
        width: 100%;
        border: none;
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .hotel-mobile-book-bar {
        display: flex;
    }

    .hotel-header-row {
        flex-direction: column;
        gap: 12px;
    }

    /* Horizontal scroll gallery on mobile */
    .hotel-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        grid-template-columns: unset;
        grid-template-rows: unset;
        gap: 8px;
        border-radius: 0;
        margin: 0 -15px 16px;
        padding: 0 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hotel-gallery::-webkit-scrollbar {
        display: none;
    }

    .hotel-gallery-main,
    .hotel-gallery-sub {
        flex: 0 0 85vw;
        height: 280px;
        scroll-snap-align: start;
        border-radius: 12px;
    }

    .hotel-gallery-btn {
        display: none;
    }

    .hotel-gallery-btn-mobile {
        position: absolute;
        bottom: 36px;
        right: 0;
        background: rgba(0, 0, 0, 0.65);
        color: white;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border: none;
        border-radius: 50px;
        padding: 6px 14px;
        font-size: 0.8rem;
        font-weight: 600;
        z-index: 5;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Stack room cards */
    .hotel-room-card {
        grid-template-columns: 1fr;
    }

    .hotel-room-img {
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Responsive sections */
    .hotel-section {
        padding: 18px 16px;
    }

    .hotel-rules-row {
        flex-direction: column;
        gap: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════
   FULLSCREEN GALLERY MODAL — Modern App-Like Masonry
   ═══════════════════════════════════════════════════════════ */

/* Slide-up App animation for fullscreen modal */
.gallery-modal-fs.fade .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-modal-fs.show .modal-dialog {
    transform: translateY(0);
}

.gallery-modal-fs .modal-content {
    background-color: #f8f9fa;
}

.gallery-modal-fs .modal-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 24px 10px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.gallery-modal-fs .btn-close {
    background-color: var(--warm-sand);
    border-radius: 50%;
    padding: 10px;
    opacity: 0.8;
}

.gallery-modal-fs .btn-close:hover {
    opacity: 1;
    background-color: #e2e8f0;
}

/* Masonry Layout using fast CSS Columns */
.gallery-modal-masonry {
    column-count: 3;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.gallery-masonry-item img {
    width: 100%;
    border-radius: 12px;
    display: block;
    background: #eaeaea;
    transition: filter 0.3s ease;
}

.gallery-masonry-item img:hover {
    filter: brightness(0.9);
}

@media (max-width: 991.98px) {
    .gallery-modal-masonry {
        column-count: 2;
        column-gap: 16px;
    }

    .gallery-masonry-item {
        margin-bottom: 16px;
    }
}

@media (max-width: 575.98px) {

    /* 1 Column edge-to-edge for mobile phones */
    .gallery-modal-masonry {
        column-count: 1;
    }

    .gallery-modal-fs .modal-body {
        padding: 16px 0 !important;
    }

    .gallery-masonry-item img {
        border-radius: 0;
    }

    .gallery-masonry-item {
        margin-bottom: 8px;
    }
}

/* ── Location Map Section ───────────────────────────────── */
.hotel-location-section {
    padding: 0 !important;
    overflow: hidden;
}

.hotel-location-info {
    padding: 18px 22px 14px;
}

.hotel-location-address {
    font-size: 0.88rem;
    color: var(--evening-slate);
    margin: 4px 0 0;
    line-height: 1.5;
}

.hotel-location-distance {
    font-size: 0.82rem;
    color: var(--evening-slate);
    opacity: 0.75;
    margin: 4px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hotel-location-distance i {
    color: var(--saffron-gold);
    font-size: 0.78rem;
}

.hotel-map-frame {
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hotel-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 991.98px) {
    .hotel-map-frame {
        height: 280px;
    }
}

/* ═══════════════════════════════════════════════════════════
   DYNAMIC DETAILS MODAL
   ═══════════════════════════════════════════════════════════ */

.dmodal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

/* Header */
.dmodal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--ocean-blue) 0%, #1c1c2e 100%);
    position: relative;
}

.dmodal-header-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--saffron-gold);
}

.dmodal-header-text {
    flex: 1;
    min-width: 0;
}

.dmodal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.dmodal-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 3px 0 0;
    line-height: 1;
}

.dmodal-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dmodal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Body */
.dmodal-body {
    padding: 16px;
    background: #f4f5f7;
    max-height: 68vh;
    overflow-y: auto;
}

.dmodal-body::-webkit-scrollbar {
    width: 5px;
}

.dmodal-body::-webkit-scrollbar-track {
    background: transparent;
}

.dmodal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

/* Section cards */
.dmodal-section {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dmodal-section:last-child {
    margin-bottom: 0;
}

.dmodal-section-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dmodal-hd-chip {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Accent colours per section type */
.dmodal-hd-checkin  { color: #0d6e4f; background: #f0fdf8; }
.dmodal-hd-checkin  .dmodal-hd-chip { background: #d1fae5; color: #065f46; }

.dmodal-hd-checkout { color: #92400e; background: #fffbeb; }
.dmodal-hd-checkout .dmodal-hd-chip { background: #fef3c7; color: #92400e; }

.dmodal-hd-cancel   { color: #991b1b; background: #fff5f5; }
.dmodal-hd-cancel   .dmodal-hd-chip { background: #fee2e2; color: #991b1b; }

.dmodal-hd-about    { color: #1e40af; background: #eff6ff; }
.dmodal-hd-about    .dmodal-hd-chip { background: #dbeafe; color: #1e40af; }

.dmodal-hd-rules    { color: #5b21b6; background: #f5f3ff; }
.dmodal-hd-rules    .dmodal-hd-chip { background: #ede9fe; color: #5b21b6; }

/* Rich-text content area */
.dmodal-section-body {
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--evening-slate);
    line-height: 1.65;
}

.dmodal-section-body p { margin-bottom: 0.5rem; }
.dmodal-section-body p:last-child { margin-bottom: 0; }

.dmodal-section-body ul,
.dmodal-section-body ol {
    padding-left: 1.4rem;
    margin-bottom: 0.5rem;
}

.dmodal-section-body li { margin-bottom: 4px; }

.dmodal-section-body strong { color: var(--ocean-blue); }

/* ═══════════════════════════════════════════════════════════
   FANCYBOX
   ═══════════════════════════════════════════════════════════ */
.fancybox__container {
    z-index: 1070 !important;
}