/* =============================================
   PREMIUM ROOM DETAILS PAGE STYLES
   ============================================= */

:root {
    --detail-card-bg: #ffffff;
    --detail-border-color: #eaeaea;
    --detail-text-muted: #6e6e73;
    --detail-text-dark: #1d1d1f;
    --detail-shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
    --detail-shadow-premium: 0 12px 30px rgba(0, 0, 0, 0.07);
    --detail-radius-lg: 16px;
    --detail-radius-md: 12px;
    --detail-radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-page {
    padding-top: 90px;
    background: #f6f8fa;
    color: var(--detail-text-dark);
}

/* Breadcrumb Styling */
.detail-breadcrumb {
    background: transparent;
    padding: 18px 0;
    border-bottom: none;
}
.detail-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
}
.detail-breadcrumb .breadcrumb-item a {
    color: var(--hotel-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.detail-breadcrumb .breadcrumb-item a:hover {
    color: var(--hotel-primary);
}
.detail-breadcrumb .breadcrumb-item.active {
    color: var(--detail-text-muted);
}
.detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #ccc;
    font-size: 0.75rem;
}

/* Immersive Gallery Section */
.gallery-section {
    background: transparent;
    padding: 0 0 24px;
}
.gallery-main {
    border-radius: var(--detail-radius-lg);
    overflow: hidden;
    height: 320px;
    position: relative;
    box-shadow: var(--detail-shadow-premium);
    cursor: zoom-in;
    border: 1px solid var(--detail-border-color);
    background: #eaeaea;
}

@media (min-width: 576px) {
    .gallery-main {
        height: 420px;
    }
}

@media (min-width: 992px) {
    .gallery-main {
        height: 520px;
    }
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-main:hover img {
    transform: scale(1.03);
}

/* Gallery Navigation Buttons */
.gallery-main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    pointer-events: none;
    z-index: 5;
}
.gallery-nav-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    color: var(--detail-text-dark);
}
.gallery-nav-btn:hover {
    background: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.gallery-nav-btn i {
    font-size: 0.95rem;
}

.gallery-count-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(29, 29, 31, 0.75);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

/* Thumbnails Grid */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 5px;
}
.gallery-thumbs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.gallery-thumb-item {
    flex: 0 0 80px;
    height: 60px;
    border-radius: var(--detail-radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    box-shadow: var(--detail-shadow-subtle);
}
@media (min-width: 576px) {
    .gallery-thumb-item {
        flex: 0 0 110px;
        height: 75px;
    }
}
.gallery-thumb-item.active,
.gallery-thumb-item:hover {
    border-color: var(--hotel-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail Main Content Wrapper */
.detail-content {
    padding: 10px 0 60px;
}

.detail-main {
    background: var(--detail-card-bg);
    border-radius: var(--detail-radius-lg);
    box-shadow: var(--detail-shadow-subtle);
    border: 1px solid var(--detail-border-color);
    padding: 28px;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}
.detail-main:hover {
    box-shadow: var(--detail-shadow-premium);
}

.detail-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--detail-text-dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--detail-border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.detail-section-title i {
    color: var(--hotel-secondary);
}

/* Key Info Bar (Adults, Children, Pricing Grid) */
.key-info-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
@media (min-width: 768px) {
    .key-info-bar {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}
.key-info-item {
    background: #ffffff;
    border: 1px solid var(--detail-border-color);
    border-radius: var(--detail-radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--detail-shadow-subtle);
    transition: var(--transition-smooth);
}
.key-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}
.key-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(19, 88, 70, 0.08);
    color: var(--hotel-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.key-info-label {
    font-size: 0.75rem;
    color: var(--detail-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.key-info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--detail-text-dark);
}

/* Amenity Chips */
.amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4f7f5;
    color: #2c423b;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 8px 10px 0;
    border: 1px solid rgba(19, 88, 70, 0.1);
    transition: var(--transition-smooth);
}
.amenity-chip:hover {
    background: rgba(19, 88, 70, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}
.amenity-chip i {
    color: var(--hotel-secondary);
    font-size: 0.95rem;
}

/* Calendar Styling */
#availabilityCalendar {
    width: 100%;
}
.flatpickr-calendar {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
}
.flatpickr-months {
    background: transparent !important;
}
.flatpickr-innerContainer {
    justify-content: center;
}
.flatpickr-day.booked {
    background: #fff0ef !important;
    border-color: #E23428 !important;
    color: #E23428 !important;
    font-weight: bold;
    border-radius: 4px;
}
.flatpickr-day.selected {
    background: var(--hotel-secondary) !important;
    border-color: var(--hotel-secondary) !important;
    color: #fff !important;
}

/* Review Cards */
.review-card {
    background: #fafbfc;
    border: 1px solid var(--detail-border-color);
    border-radius: var(--detail-radius-md);
    padding: 20px;
    height: 100%;
    transition: var(--transition-smooth);
}
.review-card:hover {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}
.review-stars {
    color: #ffcc00;
    font-size: 0.8rem;
}
.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #3a3a3c;
    font-style: italic;
}
.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #eaeaea;
}
.reviewer-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--detail-text-dark);
}
.reviewer-meta {
    font-size: 0.75rem;
    color: var(--detail-text-muted);
}

/* Similar Rooms Card Upgrade */
.room-card {
    background: #ffffff;
    border-radius: var(--detail-radius-md);
    border: 1px solid var(--detail-border-color);
    overflow: hidden;
    box-shadow: var(--detail-shadow-subtle);
    transition: var(--transition-smooth);
}
.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--detail-shadow-premium);
}
.room-card-img {
    height: 180px;
    position: relative;
}
.room-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--hotel-secondary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.room-card-body {
    padding: 16px;
}
.price-amount {
    font-weight: 800;
    color: var(--detail-text-dark);
}
.price-night {
    color: var(--detail-text-muted);
}

/* BOOK SIDEBAR */
.book-sidebar {
    background: #ffffff;
    border: 1px solid var(--detail-border-color);
    border-radius: var(--detail-radius-lg);
    box-shadow: var(--detail-shadow-premium);
    overflow: hidden;
    position: sticky;
    top: 110px;
    transition: var(--transition-smooth);
    z-index: 10;
}
.book-sidebar-header {
    background: var(--hotel-secondary);
    padding: 24px;
    color: #ffffff;
}
.room-price {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.price-note {
    font-size: 0.78rem;
    opacity: 0.85;
}
.book-sidebar-body {
    padding: 24px;
}
.book-form-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--detail-text-muted);
    margin-bottom: 6px;
}
.book-sidebar-body .form-control,
.book-sidebar-body .form-select {
    border: 1px solid #dcdcdc;
    border-radius: var(--detail-radius-sm);
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--detail-text-dark);
    font-weight: 600;
    transition: var(--transition-smooth);
}
.book-sidebar-body .form-control:focus,
.book-sidebar-body .form-select:focus {
    border-color: var(--hotel-secondary);
    box-shadow: 0 0 0 3px rgba(19, 88, 70, 0.12);
}

/* Price Breakdown UI */
.price-breakdown {
    background: #f7f9fa;
    border-radius: var(--detail-radius-md);
    padding: 16px;
    margin: 20px 0;
    border: 1px solid var(--detail-border-color);
}
.price-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 500;
}
.price-breakdown-row:last-child:not(.total) {
    margin-bottom: 0;
}
.price-breakdown-row.total {
    border-top: 1px dashed var(--detail-border-color);
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--detail-text-dark);
}

/* Primary CTA Buttons */
.btn-book-room {
    background: var(--hotel-primary);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: var(--detail-radius-md);
    border: none;
    box-shadow: 0 4px 14px rgba(226, 52, 40, 0.2);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}
.btn-book-room:hover {
    background: var(--hotel-secondary);
    box-shadow: 0 6px 20px rgba(19, 88, 70, 0.25);
    transform: translateY(-1px);
}

.wishlist-btn {
    background: #ffffff;
    border: 1px solid var(--detail-border-color);
    color: #e3242b;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.wishlist-btn:hover {
    background: #fff0f1;
    transform: scale(1.05);
}
.wishlist-btn.saved {
    background: #e3242b;
    color: #ffffff;
    border-color: #e3242b;
}

/* Responsive adjustment for Mobile Sidebar sticky docking */
@media (max-width: 991px) {
    .book-sidebar {
        position: static;
        margin-top: 24px;
        box-shadow: var(--detail-shadow-premium);
    }
}