/* Luxe Details Page Overhaul - Modern Trending Aesthetic */
:root {
    --primary-color: hsl(var(--base));
    --accent-color: #ff385c;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

body.details-page {
    background: #fff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    padding-top: 100px;
}

/* Hero Section */
.hero-gallery-wrap {
    position: relative;
    padding-top: 100px;
    /* Increased to push content down further */
    margin-bottom: 40px;
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
}

.hero-header {
    margin-bottom: 30px;
}

.hero-header h1 {
    font-size: 38px;
    font-weight: 850;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.hero-header .meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-header .meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 14px;
}

.hero-header .meta-left .rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-header .action-group {
    display: flex;
    gap: 10px;
}

.hero-header .action-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-header .action-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

/* Modern Masonry-like Grid */
.luxe-gallery-container {
    height: 500px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    border-radius: 24px;
    overflow: hidden;
}

/* Luxe Hero Slider */
.luxe-hero-slider {
    border-radius: 24px;
    overflow: hidden;
    height: 500px;
}

.luxe-hero-slider .slider-item {
    height: 500px;
}

.luxe-hero-slider .slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Slick Dots */
.slick-dots {
    bottom: 30px;
    display: flex !important;
    justify-content: center;
    gap: 12px;
    padding: 0;
}

.slick-dots li {
    margin: 0;
    width: auto;
    height: auto;
}

.luxe-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.slick-active .luxe-dot {
    background: #fff;
    transform: scale(1.6);
}

.luxe-gallery-container.single-image {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: auto;
}

.luxe-gallery-container.single-image .gallery-cell img {
    height: auto;
    object-fit: cover;
}

.gallery-cell {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.gallery-cell.main-cell {
    grid-row: span 2;
}

.gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}



.gallery-cell:hover img {
    transform: scale(1.04);
}

.placeholder-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 24px;
}

/* Main Layout Split */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
}

/* Content Sections */
.luxe-section {
    border-bottom: 1px solid #f1f5f9;
}

.luxe-section:last-child {
    border-bottom: none;
}

.luxe-section h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* Host Info */
.host-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.host-banner .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.host-banner h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* Booking Widget Card */
.sticky-booking-widget {
    position: sticky;
    top: 130px;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
}

.booking-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.booking-widget-header .price {
    font-size: 26px;
    font-weight: 850;
}

.booking-form-box {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    margin-bottom: 20px;
    overflow: hidden;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #cbd5e1;
}

.booking-form-field {
    padding: 12px 16px;
    transition: background 0.2s;
}

.booking-form-field:hover {
    background: #f8fafc;
}

.booking-form-field label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.booking-form-field input,
.booking-form-field select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 2px 0;
    cursor: default;
}

.booking-form-field input:focus {
    outline: none;
}

.total-bar {
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.total-bar span:first-child {
    font-size: 16px;
    color: var(--text-muted);
}

.total-bar #totalAmount {
    font-size: 22px;
    color: var(--text-dark);
}


.btn-reserve {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: hsl(var(--base));
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(255, 56, 92, 0.2);
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.3);
    opacity: 0.95;
    color: #fff;
}

/* Room Selection Cards */
.room-luxe-card {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 24px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    position: relative;
}

.room-luxe-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.room-luxe-card.active-card {
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 12px 30px rgba(255, 56, 92, 0.08);
}

.room-luxe-card .room-thumb {
    width: 160px;
    height: 120px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.room-luxe-card .room-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-luxe-card .room-content {
    flex: 1;
}

.room-luxe-card .room-content h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.room-luxe-card .room-content p {
    font-size: 13px;
    color: var(--text-muted);
}

.room-luxe-card .room-action select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 35px 10px 15px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none !important;
    box-shadow: none !important;
    min-width: 120px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 10px;
}


.room-luxe-card .room-action select:hover,
.room-luxe-card .room-action select:focus {
    border-color: var(--accent-color);
    background-color: #fff;
}



/* Reviews Styling */
.review-luxe-card {
    margin-bottom: 32px;
}

.review-luxe-card .user-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.review-luxe-card .user-meta img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* Map Styling */
#luxe-details-map {
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

/* Mobile Tweaks */
@media (max-width: 991px) {
    .hero-gallery-wrap {
        padding-top: 100px;
    }

    .luxe-gallery-container {
        height: 300px;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        border-radius: 0;
        margin: 0 -15px;
    }

    .gallery-cell:not(.main-cell) {
        display: none;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-header h1 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-header .meta-left {
        flex-wrap: wrap;
        gap: 8px 12px;
        font-size: 13.5px;
    }

    .hero-header .meta-left span, 
    .hero-header .meta-left a {
        display: inline-flex;
        align-items: center;
    }

    .mobile-booking-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 12px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid #f1f5f9;
        z-index: 2100;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    }

    .mobile-booking-bar .price {
        font-size: 18px;
        font-weight: 800;
    }

    .btn-mobile-reserve {
        background: var(--accent-color);
        color: #fff;
        padding: 10px 20px;
        border-radius: 12px;
        font-weight: 700;
        text-decoration: none;
        font-size: 14px;
    }

    /* Hide the sidebar booking widget on mobile */
    .details-sidebar {
        display: none;
    }

    .room-luxe-card {
        flex-direction: column;
        gap: 15px;
    }

    .room-luxe-card .room-thumb {
        width: 100%;
        height: 160px;
    }

    .room-luxe-card .room-content {
        width: 100%;
    }

    .room-luxe-card .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}

.swal2-container {
    z-index: 99999 !important;
}

/* Coupon Styling */
.coupon-area {
    background: #f8fafc;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.coupon-area .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

#couponSection {
    margin-top: 10px;
    border: none !important;
}

#couponSection .form-control-sm {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
}

#couponSection .btn-sm {
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.couponButton {
    background: var(--text-dark);
    border: none;
    color: #fff;
    white-space: nowrap;
}

.couponButton:hover {
    background: #000;
    color: #fff;
}