/* --- SCOPED CSS FOR ROOMS PAGE --- */
.rm-wrapper {
    font-family: 'Inter', sans-serif;
    margin-bottom: 40px;
}

/* Header & Controls */
.rm-header-text {
    margin-bottom: 24px;
}

    .rm-header-text h1 {
        font-size: 24px;
        font-weight: 700;
        color: #1e293b;
        margin: 0 0 8px 0;
    }

    .rm-header-text p {
        font-size: 14px;
        color: #64748b;
        margin: 0;
    }

.rm-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.rm-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rm-tab {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

    .rm-tab:hover:not(.active) {
        background-color: #f8fafc;
        border-color: #cbd5e1;
        color: #1e293b;
    }

    .rm-tab.active {
        border-color: #10b981; /* Green */
        color: #10b981;
        font-weight: 600;
        background-color: #f0fdf4;
    }

.rm-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.rm-search-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.rm-search-input {
    appearance: none;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px 10px 36px;
    font-size: 13px;
    color: #334155;
    width: 260px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

    .rm-search-input:focus {
        border-color: #3b82f6;
    }

/* Cards Grid */
.rm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Individual Card */
.rm-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .rm-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

/* Card Image Area */
.rm-card-img-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    background-color: #f1f5f9;
}

    .rm-card-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Image Overlays (Badges) */
.rm-media-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
}

.rm-badge-dark {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .rm-badge-dark svg {
        width: 12px;
        height: 12px;
    }

.rm-price-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #ffffff;
    color: #0f172a;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .rm-price-badge span {
        font-size: 10px;
        color: #64748b;
        font-weight: 500;
    }

/* Card Body */
.rm-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.rm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rm-room-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.rm-room-availability {
    font-size: 13px;
    font-weight: 600;
    color: #16a34a; /* Green */
}

.rm-guests {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

    .rm-guests svg {
        width: 16px;
        height: 16px;
    }

/* Amenities Pills */
.rm-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.rm-amenity-pill {
    background-color: #E9E9E9;
    color: #475569;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .rm-amenity-pill svg {
        width: 14px;
        height: 14px;
        color: #94a3b8;
    }

/* Action Buttons */
.rm-card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto; /* Pushes buttons to bottom */
}

.rm-btn {
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    border: none;
}

.rm-btn-outline {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
}

    .rm-btn-outline:hover {
        background-color: #f8fafc;
        border-color: #94a3b8;
        color: #1e293b;
    }

.rm-btn-solid {
    background-color: #3372CF; /* Primary Blue */
    color: #ffffff;
}

    .rm-btn-solid:hover {
        background-color: #2563eb;
    }

/* Responsive */
@media (max-width: 1024px) {
    .rm-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rm-controls-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .rm-search-input {
        width: 100%;
    }

    .rm-search-box {
        width: 100%;
    }
}

/* --- SCOPED CSS FOR ROOM DETAILS PAGE --- */

.rd-wrapper {
    font-family: 'Inter', sans-serif;
    margin-bottom: 40px;
}

/* Header Section */
.rd-header {
    margin-bottom: 24px;
}

    .rd-header h1 {
        font-size: 24px;
        font-weight: 700;
        color: #334155; /* Dark slate */
        margin: 0 0 8px 0;
    }

    .rd-header p {
        font-size: 14px;
        color: #64748b;
        margin: 0;
    }

/* Main Featured Image */
.rd-main-img-wrap {
    position: relative;
    width: 100%;
    /* Reduced height as previously requested (3:1) */
    aspect-ratio: 24 / 8;
    background-color: #f1f5f9;
    /* Asymmetrical border radius from Figma */
    border-radius: 80px 0 80px 0;
    overflow: hidden;
    margin-bottom: 24px; /* Increased margin below main image */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

    .rd-main-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* View All Medias Button */
.rd-btn-view-all {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background-color: #ffffff;
    color: #0f172a;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background-color 0.2s;
    font-family: inherit;
}

    .rd-btn-view-all:hover {
        background-color: #f8fafc;
        transform: translateY(-2px);
    }

/* Thumbnails Row */
.rd-thumbnails-row {
    display: flex;
    gap: 16px;
    overflow-x: auto; /* Allows scrolling on smaller screens */
}

/* Standard Image Thumbnail */
.rd-thumb-item {
    flex: 1;
    min-width: 150px;
    aspect-ratio: 16 / 10;
    background-color: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

    .rd-thumb-item:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

    .rd-thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Video Thumbnail Specifics */
.rd-video-thumb-item {
    flex: 1;
    min-width: 150px;
    /* Matching taller aspect ratio (was 16/8) */
    aspect-ratio: 16 / 10;
    background-color: #ffffff;
    border-radius: 6px; /* Simple rounded corners */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.va-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.rd-video-player-area {
    flex: 1;
    background-color: #000000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-play-icon {
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .rd-play-icon svg {
        width: 16px;
        height: 16px;
        fill: #000000;
        margin-left: 2px; /* Optical centering for play triangle */
    }

.rd-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .rd-video-duration svg {
        width: 10px;
        height: 10px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.rd-video-label {
    padding: 8px 10px; /* Reduced padding due to shorter overall height */
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rd-main-img-wrap {
        aspect-ratio: 16 / 7; /* Short cinematic ratio on mobile */
        border-radius: 48px 0 48px 0; /* Softer on mobile */
    }
}
/* --- Room Information & Amenities Section --- */

.rd-info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 40px;
}

.rd-info-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.rd-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2f4538; /* Dark green/slate to match Figma */
    margin: 0 0 24px 0;
}

/* Room Stats Grid */
.rd-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.rd-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rd-stat-icon {
    width: 48px;
    height: 48px;
    background-color: #EEFCFF;
    color: #0e7490;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .rd-stat-icon svg {
        width: 24px;
        height: 24px;
        stroke-width: 1.5;
    }

.rd-stat-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rd-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.rd-stat-value {
    font-size: 15px;
    color: #0f172a;
    font-weight: 700;
}

/* Extra Cot Banner */
.rd-extra-cot-banner {
    background-color: #EEFCFF;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: auto; /* Pushes to bottom if card grows */
}

    .rd-extra-cot-banner svg {
        width: 20px;
        height: 20px;
        color: #64748b;
        margin-top: 2px;
    }

/* Amenities Grid */
.rd-amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.rd-amenity-pill {
    background-color: #E9E9E9;
    color: #475569;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .rd-amenity-pill svg {
        width: 16px;
        height: 16px;
        color: #64748b;
        stroke-width: 1.5;
    }

/* Responsive */
@media (max-width: 1024px) {
    .rd-info-section {
        grid-template-columns: 1fr; /* Stack cards on tablet */
    }
}

@media (max-width: 600px) {
    .rd-stats-grid {
        grid-template-columns: 1fr; /* Stack stats vertically on mobile */
    }

    .rd-amenities-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for amenities on mobile */
    }
}
/* --- House Rules Section --- */
.rd-house-rules {
    background-color: #F0FDF4; /* Light mint green */
    border: 1px solid #DCFCE7;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

    .rd-house-rules ul {
        margin: 0;
        padding-left: 20px;
        color: #475569;
        font-size: 14px;
        line-height: 1.8;
    }

    .rd-house-rules li {
        margin-bottom: 8px;
    }

        .rd-house-rules li:last-child {
            margin-bottom: 0;
        }

/* --- Bottom Grid (Services & Summary) --- */
.rd-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Additional Services */
.rd-service-item {
    background-color: #E9E9E9;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rd-service-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rd-service-name {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
}

.rd-service-price {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
}

/* Counter Controls */
.rd-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rd-btn-count {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

    .rd-btn-count:hover {
        opacity: 0.8;
    }

.rd-btn-minus {
    background-color: #FFFFFF;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.rd-btn-plus {
    background-color: #3B82F6; /* Vibrant Blue */
    color: #FFFFFF;
}

.rd-counter-value {
    font-size: 14px;
    font-weight: 700;
    color: #16A34A; /* Green text */
    min-width: 14px;
    text-align: center;
}

/* Booking Summary */
.rd-summary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rd-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #64748B;
    font-weight: 500;
}

    .rd-summary-row span:last-child {
        font-weight: 600;
        color: #334155;
    }

.rd-summary-divider {
    height: 1px;
    background-color: #E2E8F0;
    margin: 20px 0;
}

.rd-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #334155;
}

    .rd-summary-total span:last-child {
        color: #3B82F6; /* Blue total */
        font-size: 20px;
    }

/* Responsive adjustment for the bottom grid */
@media (max-width: 1024px) {
    .rd-bottom-grid {
        grid-template-columns: 1fr;
    }
}