/***********************************
Room Filter

1. Variables & Root Styles
2. Layout & Grid
3. Room Cards
4. Filter Components
5. Price Slider
6. Modal Components
7. Room Rates
8. Utility Classes
9. Media Queries
***********************************/

/***********************************
1. Variables & Root Styles
***********************************/
.room-filter-layout {
    --rf-primary: var(--e-global-color-primary);
    --rf-accent: var(--e-global-color-accent);
    --rf-gray: #797979;
    --rf-white: #FFFFFF;
    --rf-shadow: rgba(0, 0, 0, 0.15);
    --rf-hover-bg: #FFEDF5;
}

.text-titlecase {
    text-transform:capitalize;
}
/***********************************
2. Layout & Grid
***********************************/
.room-filter-layout {
    display: flex;
    gap: 2rem;
}

.room-filters {
    width: 20%;
    flex: 0 0 auto;
    min-width: 200px;
}

.room-results {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-content: start;
}

.room-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.room-gallery-carousel {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    display: flex;
    flex-direction:column;
    align-items: center;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #D4D4D4;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #D43079;
}

.carousel-dot:hover {
    background-color: #B32564;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/***********************************
3. Room Cards
***********************************/
.room-results .room-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    height: 112px;
    width: 100%;
    gap: 20px;
    border: 1px solid var(--rf-white);
    border-radius: 8px;
    box-shadow: var(--rf-shadow) 0px 3px 5px 0px;
    background-color: var(--rf-white);
    font-family: proxima-nova, sans-serif;
    font-size: 17.6px;
    font-weight: 400;
    line-height: 26.4px;
    color: #D43079;
    text-decoration: none;
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.room-results .room-card:hover {
    box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 8px 0px;
    background-color: var(--rf-hover-bg);
    border-color: #D43079;
}

.room-results .room-card--summer:hover {
    border-color: #FBBD2A;
    background-color: #FFF8E7;
}

.room-results .room-card--sold-out:hover {
    border-color: #BBBBBB;
    background-color: #EBEBEB;
}

.room-results .room-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3em;
    margin: 0;
    color: var(--rf-primary);
}
.room-results .room-card.room-card--summer .room-prices .price-label {
    color:black;
}
.room-results .room-card.room-card--summer .room-prices .price {
    color:black;
    text-shadow: none;
}
.room-results .room-card .room-prices {
    background-color: #D43079;
    color: white;
    border-radius: 8px;
    min-height: 80px;
    justify-content: center;
    padding: 10px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 120px;
}

.room-results .room-card .room-prices .price-label {
    font-size: 0.9rem;
    font-weight: normal;
    line-height: 1;
    margin: 0;
}

.room-results .room-card .room-prices .price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--e-global-color-2aa4150);
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.room-results .room-card .room-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: capitalize;
}

.room-results .room-card .availability {
    font-size: 1rem;
    font-weight: 600;
    color: #D43079;
}

/***********************************
4. Filter Components
***********************************/
.filter-group {
    margin-bottom: 1.5rem;
}

.room-filter-layout .checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.room-filter-layout .checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #999999;
    border-radius: 3px;
    margin-right: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.room-filter-layout .checkbox-label input[type="checkbox"]:checked {
    background-color: #D43079;
    border-color: #D43079;
}

.room-filter-layout .checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.room-filter-layout .checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 48, 121, 0.2);
}

.room-filter-layout .clear-filters {
    background: transparent;
    border: 1px solid #D43079;
    color: #D43079;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.room-filter-layout .clear-filters:hover {
    background: #D43079;
    color: white;
}

.room-filter-layout .filter-group h4 {
    margin-bottom: 10px;
    color: #D43079;
    font-size: 1.1rem;
}

/* Mobile Filter Toggle */
.room-filter-layout .mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
}

.mobile-filter-toggle .toggle-icon {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.mobile-filter-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

/***********************************
5. Price Slider
***********************************/
.price-range {
    padding: 0;
}

.price-slider {
    width: calc(100% - 15px);
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.price-range input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

/* noUiSlider custom styles */
.room-filter-layout .noUi-connects {
    border-radius: 0;
    background: rgba(212, 48, 121, 0.2);
}

.room-filter-layout .noUi-connect {
    background: #D43079;
}

.room-filter-layout .noUi-horizontal {
    height: 7px;
}

.room-filter-layout .noUi-handle {
    border-radius: 50%;
    background: white;
    box-shadow: none;
    border: 2px solid #cfcfcf;
    cursor: pointer;
    top: -7px;
}

.room-filter-layout .noUi-horizontal .noUi-handle {
    height: 20px;
    width: 20px;
}

.room-filter-layout .noUi-horizontal .noUi-handle.noUi-active {
    background: #D43079;
}

.room-filter-layout .noUi-handle:before,
.room-filter-layout .noUi-handle:after {
    display: none;
}

/***********************************
6. Modal Components
***********************************/
.room-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

.room-modal.active {
    display: flex;
}

.room-modal .modal-content {
    background: #fff;
    padding: 20px;
    width: 100%;
    max-width: calc(80%);
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.room-modal .modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none !important;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: var(--e-global-color-accent) !important;
    z-index: 101;
    transition: all 0.3s ease;
}

.room-modal .modal-close:hover {
    color: var(--e-global-color-primary) !important;
}

.room-modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 20px;
}

.secure-room-content details {
    margin-bottom: 1rem;
}

.secure-room-content summary {
    cursor: pointer;
    font-weight: bold;
    color: #D43079;
    background-color: #F5f5f5;
    border-radius: 8px;
    padding: 1em;
    margin-bottom: 10px;
}

.secure-room-content div.details-content {
    padding: 1em;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.room-modal-left h2 {
    text-transform: capitalize;
}

.room-modal .carousel-dots .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    min-height: unset;
    background-color: #D43079;
    opacity: 0.75;
    transition: all 0.3s ease;
    line-height: 0;
    font-size: 0;
}

.room-modal .carousel-dots .carousel-dot.active {
    opacity: 1;
}

.room-modal .carousel-dots .carousel-dot:hover {
    opacity: 0.9;
    background-color: #D43079;
}

/***********************************
7. Room Rates
***********************************/
.room-rate {
    border-radius: 8px;
    background-color: #F3F3F3;
    margin-bottom: 15px;
}

.room-rate-content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.room-rate .year-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1em;
    color: #FFFFFF;
    background-color: var(--e-global-color-0721216);
    width: fit-content;
    padding: 0.5rem 1rem;
    border-radius: 8px 0 8px 0;
}

.room-rate-right {
    width: auto;
    margin-left: auto;
    display: flex;
    align-items: flex-end;
    align-self: flex-end;
}

.room-rate .room-rate-left {
    flex: 1;
}

.room-rate .display-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.room-rate .room-rate-term {
    background-color: var(--e-global-color-accent);
    padding: 5px 12px;
    border-radius: 200em;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1em;
    color: #FFFFFF;
}

.room-rate .room-rate-cost {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1em;
    color: var(--e-global-color-primary);
}

.room-rate .room-rate-logo img {
    width: 90px;
}

.room-rate .room-rate-uni {
    font-size: 1rem;
    font-weight: 600;
    color: var(--e-global-color-primary);
}

.room-rate .room-start-date {
    font-size: 1rem;
    font-weight: 600;
    color: #797979;
}

.room-rate .room-guide-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--e-global-color-accent);
}

.room-rate .room-rate-right a {
    background-color: var(--e-global-color-accent);
    font-size: 1rem;
    font-weight: 600;
    fill: var(--e-global-color-2aa4150);
    color: var(--e-global-color-2aa4150);
    border: 2px solid var(--e-global-color-accent);
    padding: 8px 20px 9px;
    border-radius: 200em;
}

.room-rate .room-rate-right a:hover {
    color: var(--e-global-color-2aa4150);
	background: var(--e-global-color-3b57172);
	border-color: var(--e-global-color-3b57172);
}

.room-rate .rate-guide-total {
	font-weight: bold;
	color: var(--e-global-color-accent);
}

/***********************************
8. Utility Classes
***********************************/
/* Spacing */
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.m-1 { margin: 0.5rem; }
.m-2 { margin: 1rem; }
.m-3 { margin: 1.5rem; }
.m-4 { margin: 2rem; }

/* Layout */
.room-filter-layout .hidden { display: none !important; }
.room-filter-layout .flex { display: flex; }
.room-filter-layout .gap-sm { gap: 0.5rem; }
.room-filter-layout .gap-md { gap: 1rem; }
.room-filter-layout .gap-lg { gap: 2rem; }

/* Typography */
.room-filter-layout .text-sm { font-size: 0.9rem; }
.room-filter-layout .text-base { font-size: 1rem; }
.room-filter-layout .text-lg { font-size: 1.1rem; }
.room-filter-layout .font-semibold { font-weight: 600; }
.room-filter-layout .uppercase { text-transform: uppercase; }

/* Colors */
.bg-primary { background-color: var(--e-global-color-primary); }
.bg-accent { background-color: var(--e-global-color-accent); }
.bg-light { background-color: #F3F3F3; }
.bg-white { background-color: var(--rf-white); }

.text-primary { color: var(--e-global-color-primary); }
.text-accent { color: var(--e-global-color-accent); }
.text-white { color: #FFFFFF; }
.text-gray { color: #797979; }

/***********************************
9. Media Queries
***********************************/

@media screen and (max-width: 1200px) {
	
	.room-modal .modal-content {
		max-width: calc(90%);
	}
	
}


@media screen and (max-width: 1024px) {
    .room-results {
        grid-template-columns: 1fr;
    }

    .room-modal-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .room-modal .modal-content {
        max-width: 95%;
        padding: 15px;
    }

    .room-filter-layout {
        flex-direction: column;
    }

    .room-filters {
        width: 100%;
        min-width: 100%;
        display: none;
    }

    .room-filters.active {
        display: block;
        margin-bottom: 1rem;
    }

    .room-filter-layout .mobile-filter-toggle {
        display: flex;
    }
}

@media screen and (max-width: 768px) {
    .room-modal .modal-content {
        max-width: calc(100% - 10px);
        max-height: calc(100vh - 10px);
        padding: 10px;
        margin: 5px;
        padding-top: 50px;
    }

    .room-modal {
        padding: 0;
    }

    .room-modal .modal-close {
        position: fixed;
        right: 15px;
        top: 15px;
        background: #fff !important;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
	
	.room-rate-content {
		display: block;
	}
	
	.room-rate .room-rate-right {
		margin-top: 15px;
	}
	
	.room-rate .room-rate-right a {
		width: 100%;
		text-align: center;
	}
}


