body {
  background: linear-gradient(rgba(246, 246, 246, 0.96), rgba(246, 246, 246, 0.96)), var(--background-image);
  background-size: var(--background-image-size);
  background-repeat: repeat;
  background-position: top left;
  background-attachment: fixed;
  background-color: #f6f6f6;
}

.msummary { display: none; }

.room-detail {
    margin: 0rem; /* Reduced bottom margin */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: auto; /* Remove restrictive vertical constraint */
}

.room-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* spacing between title and size */
    font-size: 1.25rem;
    /* 20px */
    font-weight: 600;
    color: #1a1a1a;
    flex-wrap: wrap;
    /* handles mobile layout gracefully */
}

.room-title-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary, #333);
    /* customizable via variable */
}

.room-size {
    font-size: 1.1rem;
    font-weight: 500;
    color: #777;
    letter-spacing: 0.3px;
}

/* ✅ Main Image Hover Effect */
.room-detail__main-image {
    flex: 1; /* Grow to fill sidebar expansion */
    min-height: 20rem;
}

.room-detail__main-image img {
    width: 100%;
    height: 100%; /* Fill the flexible container */
    max-height: 28rem; /* Increased limit for high-density sidebars */
    cursor: pointer;
    border-radius: var(--border-radius-primary);
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* ✅ Smooth Zoom & Shadow on Hover */
.room-detail__main-image img:hover {
    transform: scale(1.02);
    /* Slight zoom effect */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    /* Add depth */
}

/* ✅ Secondary Images Container */
.room-detail__secondary-images {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden; /* Contain strictly to one row */
}

/* ✅ Secondary Image Styles */
.room-detail__secondary-images img {
    flex: 1;        /* Distribute space equally */
    min-width: 0;   /* Allow shrinking to fit */
    width: 0;       /* Force equal sizing regardless of natural width */
    height: 8.5rem; /* Stable row height */
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* ✅ Slight Zoom & Brightness Increase on Hover */
.room-detail__secondary-images img:hover {
    transform: scale(1.05);
}

/* ✅ Add a Soft Glow Effect on Hover */
.room-detail__secondary-images img:hover {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

/* ✅ Add a Fade-in Overlay Effect (Subtle) */
.room-detail__secondary-images img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.room-detail__secondary-images img:hover::before {
    opacity: 1;
}

.room-detail__content {
    display: grid;
    grid-template-columns: 60% 38%; /* Adjusted for single card balance */
    gap: 2%;
    justify-content: space-between;
    align-items: start; /* Prevent columns from forcing each other to stretch */
    background-color: #fff;
    border-radius: var(--border-radius-primary);
    box-shadow: var(--box-shadow-primary);
    padding: 1.5rem; /* Reduced from 2rem to reduce height */
}

.room-detail__sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.room-detail__pricing,
.room-detail__description,
.room-detail__amenities,
.hotel-detail__amenities {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Independent cards for content below */
    border: var(--border-primary);
    box-shadow: var(--box-shadow-primary);
    padding: 1rem;
    background-color: #fff;
    border-radius: var(--border-radius-primary);
}

/* Unified Booking Card Styles */
.room-booking-card {
    background: transparent;
    padding: 0; /* Let parent containers handle outer padding if needed, or refine here */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Standardized global OTA gap */
    margin-top: 0.5rem;
    font-family: var(--font-family, inherit);
}

.room-booking-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Increased from 0.5rem */
}

.room-booking-card__title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.25rem;
}

.room-booking-card__plan-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.rate-plan-card__badge-best {
    background: var(--brand-primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    border: 2px solid color-mix(in srgb, var(--color-tertiary), transparent 60%); /* Inner light border effect linked to theme variable */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.room-booking-card__stay-info {
    display: flex;
    align-items: center;
    gap: 1rem; /* Increased from 0.75rem for better legibility */
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.room-booking-card__stay-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-booking-card__stay-info i {
    color: var(--text-secondary); /* More subtle for OTA grade */
    font-size: 0.8rem;
}

.room-booking-card__stay-info .divider {
    color: #ddd;
}

.room-booking-card__policy {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* Anchor to edges */
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    width: fit-content;
}

.policy-badge i {
    color: inherit; /* Ensure icon matches text color */
    font-size: 0.9rem;
}

.policy-badge--warn {
    background-color: #fff1f2;
    color: #e11d48;
}

.policy-badge--success {
    background-color: #f0fdf4;
    color: #16a34a;
}

.meal-plan-summary {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.meal-plan-summary i {
    color: #64748b; /* Professional slate gray for utility icons */
    font-size: 0.9rem;
}

/* Pricing Breakdown */
.room-booking-card__breakdown {
    background-color: #f8fafc;
    padding: 0.6rem 0.4rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Breakdown items are styled inline in room_detail.html template */

.breakdown-divider {
    border: none;
    border-top: 1.5px dotted #cbd5e1;
    margin: 0.35rem 0.75rem;
    opacity: 0.8;
}

.discount-badge-row {
    background-color: #f0fdf4; /* Very light green */
    border-left: 4px solid #16a34a; /* Prominent left accent */
    border-radius: 6px;
    margin: 0.15rem 0;
    padding-top: 0.35rem !important; /* Compact badge height */
    padding-bottom: 0.35rem !important;
}

.discounted-rate-row {
    font-weight: 400;
    color: var(--text-primary);
}

.discounted-rate-row span:last-child {
    font-weight: 400;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0.75rem; /* Sync with breakdown items */
}

.total-label {
    font-size: 1rem; /* Slightly more refined scale */
    font-weight: 600;
    color: var(--text-primary);
}

.total-value-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem; /* Minimum vertical gap */
}

.final-total {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-primary-color);
    letter-spacing: -0.03em;
    line-height: 0.95; /* Tighter line height for final price */
}

.original-total {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.original-total__amount {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155; /* High contrast dark text */
    text-decoration: line-through;
    text-decoration-color: #ef4444; /* Pro red line */
    text-decoration-thickness: 1.5px;
}

/* Actions */
.room-booking-card__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem; /* Standardized to match global button height */
    background-color: var(--brand-primary-color);
    color: #fff;
    border-radius: var(--border-radius-primary);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(var(--brand-primary-rgb, 196, 160, 88), 0.39);
    letter-spacing: 0.02em;
    border: none;
}

.booking-btn-primary:hover {
    filter: brightness(1.05);
    transform: scale(1.01);
    box-shadow: var(--box-shadow-button-hover);
}

.booking-btn-primary:active {
    transform: translateY(0);
}

.booking-btn-primary.disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-link-all-rates {
    background: #fdfaf3; /* Soft themed background */
    border: 1px dashed var(--brand-primary-color);
    color: var(--brand-primary-color);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    width: 100%;
    text-decoration: none;
    border-radius: var(--border-radius-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb, 196, 160, 88), 0.1);
}

/* Shimmer Animation Effect */
.btn-link-all-rates::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer-btn 3s infinite linear;
    pointer-events: none;
}

@keyframes shimmer-btn {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    100% { transform: translate(100%, 100%) rotate(45deg); }
}

.btn-link-all-rates:hover {
    background-color: var(--brand-primary-color);
    color: #fff;
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--brand-primary-rgb, 196, 160, 88), 0.2);
}

.btn-link-all-rates i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(var(--brand-primary-rgb, 196, 160, 88), 0.15); /* Soft background */
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-link-all-rates:hover i {
    background-color: rgba(255, 255, 255, 0.25); /* Lighter on hover */
    transform: translateX(4px); /* Slide effect instead of bounce */
}

@keyframes bounce-v {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.btn-link-all-rates span {
    position: relative;
    z-index: 1;
}

/* .room-detail__content .room-detail__pricing {
    border: none;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
} */

.room-detail__pricing > * {
    margin: 0 !important;
}

.room-detail__pricing {
    margin-bottom: 0 !important;
    border: none !important;
    padding: 0.75rem !important;
    box-shadow: none !important;
}

.room-detail__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 1.35rem;
}

.room-detail__images {
    /* Removed card styles to merge with parent */
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Optimized gap */
    position: relative;
    padding: 0;
    background: transparent;
    box-shadow: none;
    height: auto; /* Allow natural height to prevent stretching gaps */
}

.room-detail__amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /* 16px */
}

/* Hotel Amenity List */
.hotel-detail__amenity-category {
    margin-bottom: 1rem;
}

.amenity-category {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.hotel-detail__amenities-sublist {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.room-detail__amenity-card,
.hotel-detail__amenity-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.5rem;
    width: 9.5rem;
    height: 7.5rem;
    
    /* Enterprise Clean Background */
    background: #ffffff;
    border: 1px solid #e5eaf0; /* Softer slate */
    border-radius: 12px; /* Standard modern professional radius */
    
    /* Higher fidelity shadow */
    box-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 2px 4px rgba(0,0,0,0.02);
    
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

/* ✅ Refined Hover Effect */
.room-detail__amenity-card:hover,
.hotel-detail__amenity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* Softer, larger spread */
    border-color: var(--brand-primary-color);
}

/* ✅ Text & Icon Effects */
.room-detail__amenity-card i,
.hotel-detail__amenity-card i {
    font-size: 1.5rem; /* Balanced size */
    color: var(--brand-primary-color); /* Brand color by default */
    margin-bottom: 0.75rem;
    
    /* Icon Container */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: color-mix(in srgb, var(--brand-primary-color) 10%, transparent);
    border-radius: 50%; /* Perfect circle */
    transition: all 0.2s ease;
}

.room-detail__amenity-card:hover i,
.hotel-detail__amenity-card:hover i {
    transform: scale(1.1); /* Keep scale for interactiveness */
    /* background: remains at 10% from base class */
}

.room-detail__amenity-card h4,
.hotel-detail__amenity-card h4 {
    font-size: 0.85rem;
    font-weight: 600; /* reduced from bold/700 */
    color: var(--text-secondary); /* Dark slate instead of pure black */
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s ease;
}

.room-detail__amenity-card:hover h4,
.hotel-detail__amenity-card:hover h4 {
    color: var(--brand-primary-color);
}



.room-detail__amenity-card_bed i {
    display: flex;
    justify-content: center;
}

/* Book Now Container - Unified card handles this now */
.book-now-container {
    display: none;
}

/* Redundant coupon block removed */




/* =========================================
   Room Detail — Mobile (≤1024px) REFACTOR
   ========================================= */
@media (max-width: 1024px) {
    /* .offer-bar, .navigation__container { display: none; } */


    .msummary { display: block !important }

    /* Page + wrappers */
    .room-detail {
        gap: .75rem;
    }

    .room-detail__content {
        grid-template-columns: minmax(0, 1fr);
        gap: .75rem;
        /* padding: .75rem; */
        margin: var(--margin-page-negative-mobile) !important;
        border-radius: 12px;
        overflow: hidden;
        /* clip any accidental overflow */
        max-width: 100vw;
    }

    /* Title */
    .room-title-wrapper {
        gap: .35rem;
        font-size: 1.1rem;
    }

    .room-title-text {
        font-size: 1.1rem;
    }

    .room-size {
        font-size: .95rem;
    }

    /* ===== MAIN IMAGE ===== */
    .room-detail__images {
        gap: .5rem;
    }

    .room-detail__main-image {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        background: #f6f8fb;
        flex: 1;
        min-height: 14rem;
    }

    .room-detail__main-image img {
        display: block;
        width: 100%;
        height: auto;
        /* let the image define its height */
        max-height: 70vh;
        /* safety cap on very tall images */
        object-fit: contain;
        /* show entire image — no cropping */
        object-position: center;
        transform: none !important;
        /* disable hover zoom on touch */
        box-shadow: none !important;
    }

    /* Badge */
    .room-detail__lefts {
        position: static;
        margin: .25rem 0 .5rem;
    }

    /* ===== THUMBNAILS STRIP =====
     Uses natural image ratio; no cropping.
  */
    .room-detail__secondary-images {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: .5rem;
        margin: .5rem 0 0;
        /* edge-to-edge look inside card */
        padding: 0 .5rem .25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        width: 100%;
        min-width: 0;
    }

    .room-detail__secondary-images img {
        display: block;
        width: 21vw;
        /* ~3 per viewport, responsive */
        height: auto;
        /* natural height, no crop */
        max-height: 22vw;
        /* keep row compact */
        background: #f6f8fb;
        /* behind "contain" if needed */
        object-fit: contain;
        /* show whole thumbnail */
        object-position: center;
        border-radius: 10px;
        scroll-snap-align: start;
        transform: none !important;
    }

    /* Defensive overflow guards for any gallery wrapper */
    .gallery__thumbnail,
    .gallery__thumbnail-image {
        overflow: hidden;
    }

    /* ===== PRICING CARD ===== */
 

    .room-detail__info h4 {
        font-size: .95rem;
    }

    .room-detail__tariff {
        gap: .25rem;
    }

    .room-detail__price-item {
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:.75rem;
    }

    /* Radio row wraps neatly */
    .room-detail__price-header {
        flex:1 1 auto;
        min-width:0;   
    }

    .custom-radio-wrapper {
        padding: .35rem 0 !important;
    }

    /* CTA */
    .book-now-container {
        position: relative;
        width: 100%;
    }

    .room-detail__book-now {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        margin-top: .75rem;
    }

    .book-now-container .tooltip {
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        max-width: 260px;
        min-width: 200px;
        line-height: 1.35;
        z-index: 10000;
    }

    /* ===== DISCOUNT / COUPON ===== */
    .room-detail__discount-code,
    .room-detail__discount__code-staff {
        width: 100%;
        padding: .6rem .75rem;
        gap: .6rem;
    }

    /* ===== DESCRIPTION & AMENITIES ===== */
    .room-detail__rate-plans,
    .room-detail__description,
    .room-detail__amenities,
    .hotel-detail__amenities {
        padding: .75rem 1rem;
        border-radius: 12px;
        gap: .75rem;
        margin: var(--margin-page-negative-mobile) !important;
    }

    .room-detail__amenities-list,
    .hotel-detail__amenities-sublist {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }

    .room-detail__amenity-card,
    .hotel-detail__amenity-card {
        width: 100%;
        height: 6.25rem;
        border-radius: 12px;
    }

    .room-detail__amenity-card i,
    .hotel-detail__amenity-card i {
        font-size: 1.6rem;
        margin-bottom: .35rem;
    }

    .room-detail__amenity-card h4,
    .hotel-detail__amenity-card h4 {
        font-size: .95rem;
    }

    .amenity-category {
        font-size: .95rem;
        margin-top: 1rem;
        padding-bottom: .35rem;
    }
}

/* Coupon Section */
.room-detail__coupon-section {
    background: #fdfdfd;
    border: 1px dashed var(--border-color, #ddd);
    border-radius: 8px;
    padding: 0.5rem 0.75rem; /* Compact padding */
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.room-detail__coupon-section:hover {
    border-color: var(--brand-primary-color);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.room-detail__section-title {
    font-size: 0.95rem; /* Compact font */
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.coupon-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.15rem 0; /* Minimized vertical space */
}

.coupon-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center; /* Ensure vertical sync */
}

.coupon-input {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
    line-height: 1; /* Reset for consistency */
    display: block;
    box-sizing: border-box;
    box-shadow: none !important; /* Explicitly remove shadow */
    background: #fff;
    color: var(--text-primary);
}

.coupon-input:focus {
    border-color: var(--brand-primary-color);
    outline: none;
}

.btn-apply-coupon {
    padding: 0.65rem 1.5rem;
    background: var(--brand-secondary-color, #333);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem; /* Sync with input */
    transition: background 0.2s;
    line-height: 1.25; /* Match input's height */
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-apply-coupon:disabled {
    opacity: 0.7;
    cursor: default;
}

.coupon-message {
    margin: 0.25rem 0 0.15rem 0;
    font-size: 0.85rem;
}

.text-success {
    position: relative;
    color: #16a34a !important; /* Emerald green */
    background-color: #f0fdf4; /* Pill background */
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #16a34a; /* Established pill style */
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-success i {
    font-size: 1.2rem;
    color: #198754;
}

.text-success span {
    font-weight: 800;
    color: #0c4128;
}

.text-error {
    color: #842029;
    background: #f8d7da;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Available Coupons List */
.available-coupons-list {
    margin-top: 0.75rem; /* Reduced from 1.5rem for higher density */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coupon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.coupon-item:not(.active):hover {
    border-color: var(--brand-primary-color);
    background: #fdfdfd;
}

.coupon-item.active {
    background: #e8f5e9;
    border-color: #2e7d32;
    border-style: solid;
    cursor: default; /* Non-interactive */
}

.coupon-info {
    display: flex;
    flex-direction: column;
}

.coupon-code-badge {
    font-weight: 700;
    color: var(--brand-primary-color);
    font-size: 0.95rem;
}

.coupon-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.coupon-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-secondary-color);
}

.coupon-item.active .coupon-action {
    color: #2e7d32;
}

/* -------------------------------------------------------------------------- */
/* Rate Plan Modal                                                            */
/* -------------------------------------------------------------------------- */
.rate-modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 2000; /* Above everything */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rate-modal.show {
    opacity: 1;
}

.rate-modal__content {
    background-color: #fff;
    margin: auto;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.rate-modal.show .rate-modal__content {
    transform: translateY(0);
}

.rate-modal__header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-custom, #eee);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-secondary);
}

.rate-modal__close {
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.rate-modal__close:hover {
    color: #333;
}

.rate-modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rate-modal__body .rate-plan-card {
    border: 1px solid var(--border-custom, #eee);
    box-shadow: none; 
}

/* Staff Discount Styling */
.room-detail__discount__code-staff {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

.text-success {
    color: #16a34a !important; /* Professional emerald green */
}

.price--hidden {
    display: none !important;
}

/* =========================================
   Book Now Button - Gradient Fix
   ========================================= */
.room-detail__book-now {
    background: var(--gradient-primary) !important; 
    color: var(--color-tertiary) !important;
    border: none !important;
    transition: all 0.3s ease;
}

.room-detail__book-now:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.room-detail__book-now:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ✅ Guest Icon Stacking (Enterprise Grade) */
.guest-icons-stack {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.guest-icons-stack i {
    font-size: 0.85rem; /* Smaller, more professional icon size */
    margin-left: -5.5px; /* Tighter, balanced overlap */
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Light Knockout Effect: Subtle white boundary to keep icons distinct */
    filter: drop-shadow(1px 0 0 #fff) 
            drop-shadow(-1px 0 0 #fff) 
            drop-shadow(0 0.5px 0 #fff);
}

.guest-icons-stack i:first-child {
    margin-left: 0;
    z-index: 1;
}

.guest-icons-stack i:nth-child(2) { z-index: 2; }
.guest-icons-stack i:nth-child(3) { z-index: 3; }
.guest-icons-stack i:nth-child(4) { z-index: 4; }
.guest-icons-stack i:nth-child(5) { z-index: 5; }

.guest-icons-stack:hover i {
    margin-left: -3px; /* More legible spread */
}

/* -------------------------------------------------------------------------- */
/* currency Symbol Styling                                                    */
/* -------------------------------------------------------------------------- */

.currency-symbol {
    font-size: 0.8em;
    font-weight: 400 !important; /* Ensure override */
    margin-right: 2px;
    opacity: 0.7;
    vertical-align: 1px;
}

.currency-value {
    font-variant-numeric: tabular-nums;
    font-weight: inherit;
}

/* ========================================
   Cancellation Policy Badge
   Styled like meal-plan-badge
   ======================================== */

.rate-plan-card__info-group {
    display: flex;
    flex-direction: column; /* Changed from row for stacked details */
    align-items: flex-start;
    gap: 0.5rem; /* Restored to original */
}

.rate-plan-card__badges-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.meal-plan-badge { color: var(--text-secondary); }
.meal-plan-badge i { color: var(--brand-primary-color); }

.policy-badge { font-weight: 600; }
.policy-badge--success { background: #ecfdf5; color: #059669; }
.policy-badge--danger { background: #fef2f2; color: #dc2626; }

.cancellation-policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    color: var(--text-secondary);
}

.cancellation-policy-badge i {
    color: var(--brand-primary-color);
}

/* Background color variations */
.cancellation-policy-badge--refundable {
    background: #f0fdf4; /* Emerald 50 */
    color: #16a34a;      /* Emerald 600 */
}

.cancellation-policy-badge--refundable i {
    color: #16a34a;
}

.cancellation-policy-badge--non-refundable {
    background: color-mix(in srgb, #dc2626 8%, transparent);
}

.cancellation-policy-badge--non-refundable i {
    color: #dc2626;
}

.cancellation-policy-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.cancellation-policy-detail {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.2;
    padding-left: 0.25rem;
}


/* ============================
   Guest Verification Widget
   ============================ */

.guest-verify-widget {
    margin: 1rem 0;
    border-radius: var(--border-radius-primary, 12px);
    padding: 1rem 1.25rem;
    font-family: var(--font-family, inherit);
}

/* ── Form State ── */
.guest-verify-widget--form {
    background: var(--brand-primary-accent-color);
    border: 1px solid var(--brand-primary-accent-dark-color);
}

.guest-verify-widget__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.guest-verify-widget__header i {
    color: var(--brand-primary-color, #b08d57);
    font-size: 1rem;
}

.guest-verify-widget__input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.guest-verify-widget__input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.guest-verify-widget__input:focus {
    border-color: var(--brand-primary-color, #b08d57);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.1);
}

.guest-verify-widget__btn {
    padding: 0.6rem 1.25rem;
    background: var(--brand-primary-color, #b08d57);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.guest-verify-widget__btn:hover {
    filter: brightness(1.08);
}

.guest-verify-widget__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.guest-verify-widget__hint {
    font-size: 0.8rem;
    margin-top: 0.4rem;
    min-height: 1.2em;
}

.guest-verify-widget__hint--error {
    color: #dc2626;
}

.guest-verify-widget__hint--success {
    color: #16a34a;
}

.guest-verify-widget__step--hidden {
    display: none;
}

/* ── Verified State ── */
.guest-verify-widget--verified {
    background: var(--brand-primary-accent-color);
    border: 1px solid var(--brand-primary-accent-dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guest-verify-widget--verified .guest-verify-widget__icon {
    color: var(--text-success);
    font-size: 1.5rem;
}

.guest-verify-widget__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--brand-primary-color);
    color: var(--color-tertiary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
}

.guest-verify-widget__discount {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-success);
    font-weight: var(--font-weight-medium);
    margin-top: 0.2rem;
}

/* ── Verified No Tier State ── */
.guest-verify-widget--verified-no-tier {
    background: var(--background-secondary);
    border: 1px solid var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guest-verify-widget--verified-no-tier .guest-verify-widget__icon {
    color: var(--text-primary);
    font-size: 1.25rem;
}

.guest-verify-widget__text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.guest-verify-widget__subtext {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ── Mobile ── */
@media (max-width: 1024px) {
    .guest-verify-widget {
        margin: 0.75rem 0;
        padding: 0.75rem 1rem;
    }
    
    .guest-verify-widget__input-group {
        flex-direction: column;
    }
    
    .guest-verify-widget__btn {
        width: 100%;
        padding: 0.75rem;
    }
}
