 /* Style for the booking error message */
 #booking-error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 5px;
    display: none;
    font-weight: bold;
    text-align: center;
}

/* Styles for the Motel Intro Section */
.motel-intro-section {
    padding: 3rem 1rem;
    background-color: var(--background-light, #f8f9fa);
    text-align: center;
}
.motel-intro-section .container {
    max-width: 1100px; /* Container for title and text */
    margin: 0 auto;
}
/* Shared style for section titles */
.section-title {
    font-family: 'Lora', serif;
    font-size: 2.6rem;
    color: var(--section-title-color, #2c3e50);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    opacity: 0; /* Start hidden for animation */
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}
/* Shared style for section subtitles */
.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 1.5rem; /* Reduced margin to make space for gallery */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    opacity: 0; /* Start hidden for animation */
}

/* Auto-Scrolling Gallery Styles */
.scrolling-gallery-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 2rem auto;
    border-radius: 8px;
    min-height: 530px; /* For 500px images + padding */
}

.scrolling-gallery-track {
    display: flex;
    width: max-content;
    gap: 1.5rem;
    animation-name: scrollLeftAnimation;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    /* animation-duration will be set by JavaScript */
    padding-block: 10px;
}

.scrolling-gallery-item {
    opacity: 0;
    animation: fadeInItem 0.8s ease-out forwards;
    flex-shrink: 0;
}

.scrolling-gallery-item img {
    width: 500px;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scrolling-gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

@keyframes scrollLeftAnimation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeInItem {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#gallery-fallback-message {
    display: none;
    color: #555;
    margin-top: 1rem;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}


/* Keyframes for other animations (hero text, etc.) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDownFadeInPageTitle {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation applications for other page elements */
body:not(.loading) #motel-intro-section.animate-on-load {
    animation: fadeIn 0.5s 0.8s ease-out forwards;
}
body:not(.loading) #motel-intro-section #motel-intro-title.animate-on-load {
    animation: slideDownFadeInPageTitle 0.8s 1s ease-out forwards;
}
body:not(.loading) #motel-intro-section #motel-intro-welcome-message.animate-on-load {
    animation: fadeInUp 0.8s 1.2s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .scrolling-gallery-item img {
        width: 300px;
        height: 300px;
    }
    .scrolling-gallery-wrapper {
        min-height: 330px;
    }
}
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
     .scrolling-gallery-item img {
        width: 250px;
        height: 250px;
    }
    .scrolling-gallery-wrapper {
        min-height: 280px;
    }
}

/* === Hero Section Search Bar Styles === */
.hero-section .search-bar-container {
    background-color: #ffffff;
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); 
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    align-items: flex-end; 
    max-width: 900px; 
    margin-left: auto;
    margin-right: auto;
}

.hero-section .search-bar-input-group {
    flex: 1 1 180px; 
    display: flex;
    flex-direction: column; 
    position: relative; 
}

.hero-section .search-bar-input-group label {
    font-size: 0.8rem; 
    color: #4A5568; 
    margin-bottom: 6px; 
    font-weight: 600; 
    text-align: left;
}

/* Common styles for date input and select in the hero search bar */
.hero-section .search-bar-input-group input[type="date"],
.hero-section .search-bar-input-group select {
    width: 100%;
    padding: 10px 12px; 
    border: 1px solid #CBD5E0; /* Tailwind gray-400 border */
    border-radius: 6px; 
    box-sizing: border-box;
    background-color: #F7FAFC; /* Very light gray background (Tailwind gray-100) */
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem; 
    height: 42px; 
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color: #2D3748; /* Darker text color (Tailwind gray-800) */
    -webkit-appearance: none; /* Remove default iOS styling */
    -moz-appearance: none;    /* Remove default Firefox styling */
    appearance: none;         /* Remove default styling */
}

.hero-section .search-bar-input-group input[type="date"]:focus,
.hero-section .search-bar-input-group select:focus {
    outline: none;
    border-color: var(--primary-color, #3182CE); 
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb, 49, 130, 206), 0.3); 
    background-color: #fff;
}

/* Specific style for select dropdown in hero search bar */
.hero-section .search-bar-input-group select {
    /* background-image is for the custom arrow, ensure it's visible */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234A5568%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px; 
    padding-right: 35px; 
    cursor: pointer;
}

/* Style for the placeholder option in select */
.hero-section .search-bar-input-group select option.select-placeholder {
    color: #A0AEC0; /* Tailwind gray-500 */
}
/* Style for select when placeholder is selected */
.hero-section .search-bar-input-group select:has(option.select-placeholder:checked) {
    color: #A0AEC0; /* Show placeholder color if the disabled option is selected */
}


/* Style for the placeholder text in date inputs (browser dependent) */
.hero-section .search-bar-input-group input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.6; 
    cursor: pointer;
}
/* Ensure date input text is visible - some browsers make it light */
.hero-section .search-bar-input-group input[type="date"] {
    color: #2D3748; /* Default text color */
}
.hero-section .search-bar-input-group input[type="date"]:required:invalid {
    color: #A0AEC0; /* Color for placeholder-like state on some browsers */
}


.hero-section .search-bar-button-group {
    flex-shrink: 0; 
    display: flex;
    align-items: flex-end; 
}

.hero-section #search-availability-button {
    background-color: #4A5D23; 
    color: #ffffff;
    border: none;
    width: 50px;   
    height: 42px;  
    border-radius: 6px; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section #search-availability-button:hover {
    background-color: #3E4F1D; 
    transform: translateY(-1px); 
}

.hero-section #search-availability-button:active {
    transform: translateY(0px); 
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.hero-section #search-availability-button i.fas.fa-arrow-right {
    font-size: 1.1rem; 
    line-height: 1; 
}

/* Responsive adjustments for the hero search bar */
@media (max-width: 768px) {
    .hero-section .search-bar-container {
        flex-direction: column; 
        align-items: stretch; 
        padding: 20px;
    }
    .hero-section .search-bar-input-group {
        flex-basis: auto; 
        width: 100%; 
    }

    /* === MOBILE SPECIFIC STYLES FOR INPUTS === */
    .hero-section .search-bar-input-group input[type="date"],
    .hero-section .search-bar-input-group select {
        font-size: 1rem; /* Ensure readable font size on mobile */
        height: 48px; /* Increase height for better touch targets */
        padding: 12px;
        background-color: #FFFFFF; /* Explicit white background */
        border: 1px solid #A0AEC0; /* More visible border (Tailwind gray-500) */
        color: #1A202C; /* Darker text (Tailwind gray-900) */
        -webkit-appearance: none; /* Crucial for iOS to allow custom styling */
        -moz-appearance: none;
        appearance: none;
    }

    .hero-section .search-bar-input-group select {
        background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232D3748%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); /* Darker arrow for mobile */
        background-position: right 15px center; /* Adjust arrow position if padding changed */
        background-size: 12px;
    }
     /* Style for select when placeholder is selected on mobile */
    .hero-section .search-bar-input-group select:has(option.select-placeholder:checked) {
        color: #718096; /* Slightly darker placeholder color for mobile (Tailwind gray-600) */
    }
    /* Ensure date input text is visible on mobile */
    .hero-section .search-bar-input-group input[type="date"]:required:invalid {
        color: #718096; /* Placeholder-like text color */
    }
     .hero-section .search-bar-input-group input[type="date"]::-webkit-calendar-picker-indicator {
        filter: invert(20%) sepia(10%) saturate(500%) hue-rotate(175deg) brightness(90%) contrast(80%); /* Darken calendar icon a bit */
    }


    .hero-section .search-bar-button-group {
        width: 100%; 
        margin-top: 10px; 
    }
    .hero-section #search-availability-button {
        width: 100%; 
        padding: 12px; 
        height: 48px; /* Match input height */
    }
}

@media (max-width: 480px) {
    .hero-section .search-bar-container {
        padding: 15px;
        gap: 15px;
    }
     .hero-section .search-bar-input-group label {
        font-size: 0.75rem;
    }
    .hero-section .search-bar-input-group input[type="date"],
    .hero-section .search-bar-input-group select,
    .hero-section #search-availability-button {
        height: 44px; /* Slightly adjust height for very small screens */
        font-size: 0.9rem;
    }
    .hero-section #search-availability-button i.fas.fa-arrow-right {
        font-size: 1rem;
    }
}

/* --- Fallback styles for select and inputs if not in hero (original styles from user) --- */
/* These are kept separate to avoid conflicts if .search-bar-input-group is used elsewhere without .hero-section parent */
.search-bar-input-group select:not(.hero-section *) { /* Apply only if not in hero */
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    height: 40px; /* Match height of other inputs like date */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* Make space for the custom arrow */
    cursor: pointer;
}

.search-bar-input-group input[type="date"]:not(.hero-section *),
.search-bar-input-group input[type="number"]:not(.hero-section *) { /* Apply only if not in hero */
    height: 40px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
