html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.validation-summary-valid {
    display: none;
}

/* Disabled dates styling */
.dayContainer .flatpickr-day.flatpickr-disabled,
.dayContainer .flatpickr-day.prevMonthDay.flatpickr-disabled,
.dayContainer .flatpickr-day.nextMonthDay.flatpickr-disabled,
.dayContainer .flatpickr-day.flatpickr-disabled:hover,
.dayContainer .flatpickr-day.prevMonthDay.flatpickr-disabled:hover,
.dayContainer .flatpickr-day.nextMonthDay.flatpickr-disabled:hover {
    cursor: not-allowed;
    color: rgba(220, 53, 69, 0.6);
    text-decoration: line-through;
}

/* Today's date styling */
.flatpickr-day.today {
    border-color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.1);
    font-weight: 600;
}

/* Selected date styling */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background-color: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
    font-weight: 600;
}

/* Hover effect on available dates */
.flatpickr-day:hover:not(.flatpickr-disabled) {
    background-color: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.2);
}

/* Calendar container */
.flatpickr-calendar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Month navigation buttons */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    padding: 6px;
    fill: #555;
}

    .flatpickr-months .flatpickr-prev-month:hover svg,
    .flatpickr-months .flatpickr-next-month:hover svg {
        fill: #4a90e2;
    }

/* Month and year headers */
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: 600;
    color: #333;
}

/* Weekday header */
.flatpickr-weekdays {
    background-color: #f8f9fa;
}

span.flatpickr-weekday {
    color: #555;
    font-weight: 600;
}

/* Days in range (for range selection) */
.flatpickr-day.inRange,
.flatpickr-day.inRange:hover {
    background-color: rgba(74, 144, 226, 0.3);
    border-color: rgba(74, 144, 226, 0.3);
    box-shadow: -5px 0 0 rgba(74, 144, 226, 0.3), 5px 0 0 rgba(74, 144, 226, 0.3);
}

/* Time picker if enabled */
.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover {
    background-color: rgba(74, 144, 226, 0.1);
}

.flatpickr-time input.flatpickr-hour.selected,
.flatpickr-time input.flatpickr-minute.selected {
    color: #4a90e2;
    font-weight: 600;
}

/* ===== Variables ===== */
:root {
    /* Primary Colors */
    --color-navy: #2C3E50;
    --color-navy-light: #34495E;
    --color-brown: #6B4423;
    --color-brown-light: #A67B5B;
    /* Secondary Colors */
    --color-secondary: #4A4036;
    --color-background: #FDF8F3;
    --color-white: #FFFFFF;
    --color-light-gray: #F8F1EA;
    --color-brown-rgb: 142, 114, 86; /* RGB values for brown */
    --color-navy-rgb: 38, 52, 74; /* RGB values for navy */
    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(44, 62, 80, 0.15);
    --shadow-md: 0 8px 25px rgba(44, 62, 80, 0.08);
    --shadow-lg: 0 12px 30px rgba(44, 62, 80, 0.12);
    --transition-default: all 0.4s ease;
}

/* ===== Base Styles ===== */
body {
    font-family: 'Lato', 'Amiri', sans-serif;
    background-image: url('../images/pattern.svg');
    color: var(--color-navy);
    scroll-behavior: smooth;
}

/* Typography Enhancements */
h1, h2, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--color-navy);
}

/* Text highlight styles */
.highlight {
    position: relative;
    display: inline-block;
}

    .highlight::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 10px;
        background: linear-gradient(90deg, rgba(var(--color-brown-rgb), 0.3), rgba(var(--color-navy-rgb), 0.1));
        z-index: -1;
        border-radius: 4px;
    }

/* ===== Hero Section ===== */
.hero-section {
    top: 0;
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* Subtle zoom for more immersive feel */
    transition: transform 20s ease;
}

.hero-section:hover .hero-video {
    transform: scale(1.15); /* Slow zoom effect on hover */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(44, 62, 80, 0.4) 0%, rgba(44, 62, 80, 0.7) 50%, rgba(44, 62, 80, 0.9) 100% );
    display: flex;
    align-items: end;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 3rem;
    color: var(--color-white);
    animation: fadeUp 1.2s ease-out forwards;
    position: relative;
    margin-bottom: 2rem;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
}

    .hero-content h1::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, var(--color-brown), var(--color-brown-light));
        margin: 1rem auto 2rem;
        border-radius: 2px;
    }

@media screen and (max-aspect-ratio: 9/16) {
    .hero-content {
        background: rgba(44, 62, 80, 0.8);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 16px;
        margin: 0 12px 32px 12px;
        padding: 32px 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

        .hero-content h1 {
            font-size: 2.5rem;
        }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 0 10px;
    cursor: pointer;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        background: rgba(255, 255, 255, 0.15);
        transition: width 0.4s ease-in-out;
        z-index: -1;
    }

    .btn:hover::before {
        width: 100%;
    }

/* Details Button */
.btn-details {
    background: linear-gradient(45deg, var(--color-brown), var(--color-brown-light));
    color: var(--color-white);
    border: none;
}

    .btn-details:hover {
        transform: translateY(-3px);
        box-shadow: 0 7px 14px rgba(var(--color-brown-rgb), 0.3);
    }

    .btn-details:active {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(var(--color-brown-rgb), 0.2);
    }

/* Book Now Button */
.btn-book-now {
    background-color: transparent;
    color: var(--color-navy);
    border: 1px solid var(--color-navy); /* Changed from white to navy */
    box-shadow: 0 4px 12px rgba(var(--color-navy-rgb), 0.15);
}

    .btn-book-now:hover {
        background-color: var(--color-navy); /* Changed from white to navy */
        color: var(--color-white); /* Changed from navy to white for contrast */
        transform: translateY(-3px);
        box-shadow: 0 7px 14px rgba(var(--color-navy-rgb), 0.25); /* Changed to navy shadow */
    }

    .btn-book-now:active {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(var(--color-navy-rgb), 0.15); /* Changed to navy shadow */
    }

/* Button Group Alignment */
.btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 2rem;
}

/* Home Button - Main CTA */
.btn-home {
    background: linear-gradient(45deg, var(--color-brown), var(--color-brown-light));
    color: var(--color-white);
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 14px 36px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(var(--color-brown-rgb), 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-home::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100% );
        transition: left 0.8s ease;
    }

    .btn-home:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(var(--color-brown-rgb), 0.4);
    }

        .btn-home:hover::after {
            left: 100%;
        }

    .btn-home:active {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(var(--color-brown-rgb), 0.3);
    }

/* ===== About Section ===== */
#about {
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: 10px;
    padding: 4rem 2rem;
    margin: 4rem 0;
}

    #about .carousel-item {
        height: 300px;
        width: 500px;
        overflow: hidden;
    }

        #about .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            border-radius: 10px;
            box-shadow: var(--shadow-md);
        }

@media (max-width: 992px) {
    #about .carousel-item {
        width: 100%;
        height: 350px;
    }
}

/* For very small screens (mobile) */
@media (max-width: 576px) {
    #about .carousel-item {
        height: 200px;
    }
}

/* ===== Chalets Section ===== */
.chalets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.chalet-card {
    position: relative;
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-default);
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .chalet-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

/* Chalet Image Carousel */
.chalet-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    aspect-ratio: 3/2;
    width: 100%;
}

.carousel-inner {
    border-radius: 10px 10px 0 0;
    height: 100%;
}

.carousel-item {
    height: 100%;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

/* Placeholder for when no images exist */
.chalet-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(44, 62, 80, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 1rem;
}

.carousel-indicators {
    margin-bottom: 0.5rem;
}

    .carousel-indicators [data-bs-target] {
        background-color: var(--color-brown);
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin: 0 5px;
    }

.chalet-card .card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chalet-card .card-title {
    color: var(--color-navy);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.btn-group {
    margin-top: auto;
}

@media (min-width: 992px) {
    .chalet-carousel {
        aspect-ratio: 16/9; /* Wider aspect ratio for larger screens */
    }
}

@media (max-width: 768px) {
    .chalet-carousel {
        aspect-ratio: 4/3; /* Different ratio for mobile */
    }
}

/* ===== Section Headings ===== */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    color: var(--color-navy);
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background-color: var(--color-brown);
    }

h2.section-title.arabic {
    direction: rtl;
    display: block;
    width: 100%;
}
.section-title.arabic::after {
    left: auto;
    right: 0;
    text-align: right;
}

/* ===== Navigation Enhancement ===== */
.navbar {
    background-color: var(--color-navy);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    color: var(--color-white);
    font-family: 'Playfair Display', serif;
}

.nav-link {
    color: var(--color-white);
    transition: var(--transition-default);
}

    .nav-link:hover {
        color: var(--color-brown-light);
    }

/* ===== Utilities ===== */
/* .text-emerald {
    color: var(--color-brown) !important;
} */

.lead {
    color: var(--color-navy);
    line-height: 1.8;
    font-size: 1.2rem;
    font-weight: 300;
}

/* Availability Calendar */
.calendar-placeholder {
    background-color: var(--color-light-gray);
    border-radius: 10px;
    padding: 2rem, 2rem, 2rem, 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    #about {
        padding: 2rem 1rem;
    }

    .chalet-card .card-body {
        padding: 1.5rem;
    }

    .chalets-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

.breakfast-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #D4AF37;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: subtle-bounce 2s ease-in-out infinite;
}

@keyframes subtle-bounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* RTL support */
html[dir="rtl"] .breakfast-badge {
    right: auto;
    left: 15px;
}

@media (max-width: 768px) {
    .breakfast-badge {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Details Page Styles */
/* Mobile View Booking Button */
@media (max-width: 991px) {
    .floating-booking-btn {
        position: fixed;
        bottom: 4.5rem;
        right: 1rem;
        background: var(--color-navy-light);
        color: white;
        padding: 0.75rem 1.25rem;
        border-radius: 50px;
        box-shadow: var(--shadow-md);
        font-size: 1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        z-index: 1000;
        transition: transform 0.3s ease-in-out;
    }

        .floating-booking-btn i {
            font-size: 1.5rem;
        }
}

/* Hide on larger screens */
@media (min-width: 992px) {
    .floating-booking-btn {
        display: none;
    }
    #book-now-booking-cta{
        display:none;
    }

}


/* Chalet Header */
.chalet-header {
    margin-bottom: 2rem;
}

.chalet-title {
    font-family: 'Playfair Display', serif;
    color: var(--color-navy);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.location {
    color: var(--color-brown);
    font-size: 1rem;
}

.booking-cta {
    color: var(--color-brown);
    font-size: 1rem;
}

    .booking-cta a {
        color: var(--color-brown);
    }

/* Gallery Styles */
.chalet-gallery {
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 2fr 1fr;
}

.gallery-main {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.gallery-thumb {
    position: relative;
    height: 195px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

    .gallery-main img,
    .gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .gallery-thumb:hover img {
        transform: scale(1.05);
    }

.gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
}

/* Quick Facts */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.fact-card {
    background: var(--color-white);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

    .fact-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .fact-card i {
        color: var(--color-brown);
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        display: block;
    }

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-default);
}

    .amenity-item:hover {
        transform: translateX(3px);
        box-shadow: var(--shadow-md);
    }

    .amenity-item i {
        color: var(--color-brown);
    }

.amenities-toggle {
    border: 1px solid var(--color-navy);
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    color: var(--color-brown);
    text-decoration: none;
}

    .amenities-toggle .show-less {
        display: none;
    }

    .amenities-toggle[aria-expanded="true"] .show-more {
        display: none;
    }

    .amenities-toggle[aria-expanded="true"] .show-less {
        display: inline;
    }

/* Booking Card */
.booking-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 5rem;
}

    .booking-card .price-header {
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--color-gray-200);
    }

    .booking-card .weekday-price h3 {
        color: var(--color-navy);
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .booking-card .weekend-price h4 {
        color: var(--color-navy);
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .booking-card span {
        color: var(--color-navy-light);
        font-size: 0.875rem;
    }

/* Booking Features */
.booking-features {
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

    .feature-item i {
        color: var(--color-brown);
        font-size: 1.25rem;
    }

    .feature-item span {
        color: var(--color-navy);
        font-size: 0.875rem;
    }

 /* Button Styles */
 /* use the base styles
.btn-book-now {
    background: var(--color-brown);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition-default);
    border: none;
    font-weight: 600;
}

    .btn-book-now:hover {
        background: var(--color-brown-dark);
        transform: translateY(-2px);
    } */

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

/* Gallery Modal */
.gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-modal-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
}

    .gallery-modal-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .chalet-title {
        font-size: 2rem;
    }

    .gallery-main {
        height: 300px;
    }

    .gallery-thumb {
        height: 145px;
    }

    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        height: 250px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-thumb {
        height: 80px;
    }

    .amenities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Chalets Gallery page styles */
.chg-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.chg-main-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 700;
}

.chg-section {
    margin-bottom: 4rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .chg-section:hover {
        transform: translateY(-5px);
    }

.chg-section-title {
    padding: 1.5rem;
    margin: 0;
    background: #f8f9fa;
    color: #2c3e50;
    font-size: 1.8rem;
    border-bottom: 1px solid #eee;
}

.chg-section-content {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
}

.chg-video-wrapper {
    flex: 0 0 auto;
    width: 360px;
    position: relative;
    padding-top: 640px; /* Maintains aspect ratio for video */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chg-images {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 640px;
    overflow-y: auto;
    padding-right: 1rem;
    align-content: start;
}

    .chg-images::-webkit-scrollbar {
        width: 6px;
    }

    .chg-images::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .chg-images::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }

    .chg-images a {
        display: block;
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        aspect-ratio: 1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.chg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.chg-images a:hover .chg-image {
    transform: scale(1.1);
}

.chg-image--main {
    grid-column: span 2;
}

.chg-toggle-button {
    display: none;
    width: 100%;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .chg-toggle-button:hover {
        background-color: #e9ecef;
    }

@media (max-width: 1200px) {
    .chg-section-content {
        flex-direction: column;
        align-items: center;
    }

    .chg-video-wrapper {
        width: 320px;
        padding-top: 569px;
    }

    .chg-images {
        width: 100%;
        max-height: 400px;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .chg-toggle-button {
        display: block;
    }

    .chg-images.expanded {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .chg-container {
        padding: 1rem;
    }

    .chg-section-title {
        font-size: 1.5rem;
    }

    .chg-main-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .chg-video-wrapper {
        width: 280px;
        padding-top: 498px;
    }

    .chg-images {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        max-height: 300px;
    }
}

.chg-image.loading {
    background: #f6f7f8;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 200% 100%;
    animation: lazyImageAnimation 1.5s infinite linear forwards;
}

@keyframes lazyImageAnimation {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.chg-section:not(:last-child) {
    margin-bottom: 3rem;
}

/* Contacy Us Page Styles */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

    .contact-header h1 {
        font-size: 2.5rem;
        color: var(--color-navy);
        margin-bottom: 1rem;
    }

    .contact-header p {
        color: var(--color-navy-light);
        max-width: 600px;
        margin: 0 auto;
    }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

    .info-item i {
        font-size: 1.5rem;
        color: var(--color-brown);
        margin-top: 0.25rem;
    }

.info-details h2 {
    font-size: 1.25rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.info-details p {
    color: var(--color-navy-light);
    line-height: 1.5;
}

.contact-map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-form {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        color: var(--color-navy);
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: var(--transition-default);
}

    .form-control:focus {
        outline: none;
        border-color: var(--color-brown);
        box-shadow: 0 0 0 2px rgba(107, 68, 35, 0.1);
    }

.btn-submit {
    width: 100%;
    background-color: var(--color-brown);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-default);
    cursor: pointer;
}

    .btn-submit:hover {
        background-color: var(--color-brown-light);
        box-shadow: var(--shadow-lg);
    }

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr); /* Maintains 2 columns on mobile */
        gap: 1.5rem;
    }

    .contact-container {
        padding: 2rem 1rem;
    }

    .contact-header{
        margin-top: 30px;
    }

    .contact-header h1 {
        font-size: 2rem;
    }
}


/* Chalet Spinner - Namespaced with "chalet-" prefix */
:root {
    --chalet-primary-color: #2c3e50;
    --chalet-accent-color: #e67e22;
    --chalet-snow-color: #ecf0f1;
    --chalet-shadow-color: rgba(0, 0, 0, 0.2);
}

.chalet-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(3px);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.chalet-spinner-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    animation: chalet-pulse 2s infinite ease-in-out;
}

.chalet-scene {
    position: relative;
    width: 120px;
    height: 120px;
}

.chalet-mountain {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
}

.chalet-mountain-left {
    position: absolute;
    bottom: 0;
    left: 10px;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--chalet-primary-color);
    transform-origin: bottom;
    animation: chalet-sway 3s infinite ease-in-out alternate;
    z-index: 10;
}

.chalet-mountain-right {
    position: absolute;
    bottom: 0;
    right: 10px;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid var(--chalet-primary-color);
    opacity: 0.8;
    transform-origin: bottom;
    animation: chalet-sway 3s infinite ease-in-out alternate-reverse;
    z-index: 9;
}

.chalet-house {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background-color: #d35400;
    border-radius: 3px;
    z-index: 20;
}

.chalet-roof {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 25px solid var(--chalet-accent-color);
    z-index: 21;
}

.chalet-chimney {
    position: absolute;
    bottom: 85px;
    right: 35px;
    width: 8px;
    height: 15px;
    background-color: #c0392b;
    z-index: 19;
}

.chalet-snow-base {
    position: absolute;
    width: 120px;
    height: 20px;
    bottom: 0;
    border-radius: 50%;
    background-color: var(--chalet-snow-color);
    z-index: 8;
    box-shadow: 0 4px 6px var(--chalet-shadow-color);
}

.chalet-smoke {
    position: absolute;
    bottom: 100px;
    right: 37px;
    z-index: 18;
}

.chalet-smoke-puff {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    animation: chalet-float 3s infinite ease-out;
    opacity: 0;
}

    .chalet-smoke-puff:nth-child(1) {
        animation-delay: 0s;
    }

    .chalet-smoke-puff:nth-child(2) {
        animation-delay: 0.6s;
    }

    .chalet-smoke-puff:nth-child(3) {
        animation-delay: 1.2s;
    }

.chalet-window {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f1c40f;
    border-radius: 2px;
    bottom: 35px;
    box-shadow: 0 0 5px #f39c12;
    animation: chalet-flicker 3s infinite;
}

.chalet-window-left {
    left: 12px;
    animation-delay: 0.5s;
}

.chalet-window-right {
    right: 12px;
    animation-delay: 1.5s;
}

.chalet-door {
    position: absolute;
    width: 15px;
    height: 25px;
    background-color: #95a5a6;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px 2px 0 0;
}

.chalet-snowflakes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.chalet-snowflake {
    position: absolute;
    color: var(--chalet-snow-color);
    font-size: 15px;
    animation: chalet-snowfall linear infinite;
    text-shadow: 0 0 5px white;
    z-index: 30;
}

.chalet-loading-text {
    margin-top: 30px;
    color: var(--chalet-primary-color);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: chalet-fade 2s infinite alternate;
}

/* Animations with namespaced prefixes */
@keyframes chalet-sway {
    0% {
        transform: rotate(-1deg);
    }

    100% {
        transform: rotate(1deg);
    }
}

@keyframes chalet-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0;
    }
}

@keyframes chalet-flicker {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 5px #f39c12;
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 8px #f39c12;
    }
}

@keyframes chalet-snowfall {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateY(120px) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes chalet-pulse {
    0%, 100% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1);
    }
}

@keyframes chalet-fade {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Booking Form RTL-specific styling */
[dir="rtl"] .form-check-input {
    float: right;
    margin-left: 0.5rem;
    /*margin-right: -1.5rem;*/
}

[dir="rtl"] .form-check-label {
    padding-right: 1.5rem;
    padding-left: 0;
}

/* Fix price alignment in RTL */
[dir="rtl"] .text-end {
    text-align: left !important;
}

/* Fix icons in RTL */
[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .bi-telephone-fill {
    transform: scaleX(-1);
}

/* Fix carousel controls in RTL */
[dir="rtl"] .carousel-control-prev {
    right: 0;
    left: auto;
}

[dir="rtl"] .carousel-control-next {
    left: 0;
    right: auto;
}

[dir="rtl"] .carousel-control-prev-icon,
[dir="rtl"] .carousel-control-next-icon {
    transform: scaleX(-1);
}

/* Fix badge and input group in RTL */
[dir="rtl"] .badge {
    text-align: right;
}

[dir="rtl"] .input-group {
    flex-direction: row-reverse;
}

/* To ensure card content is properly aligned in RTL */
[dir="rtl"] .card-body {
    text-align: right;
}

/* Ensure definition list is properly aligned in RTL 
[dir="rtl"] dl.row dt {
    text-align: right;
}*/

/* Additional fix for list items with icons */
[dir="rtl"] .list-unstyled li {
    padding-right: 0;
    padding-left: 0;
}

    [dir="rtl"] .list-unstyled li i {
        margin-right: 0;
        margin-left: 0.5rem;
    }