/* booking.css - Hero Section Styles */

/* Ensure base variables are defined (can be in style.css or here) */
:root {
    --primary-color: #00796B; /* Default Teal - will be overridden by JS */
    --primary-color-rgb: 0, 121, 107; /* Default Teal RGB */
    --primary-hover-color: #004D40; /* Default Darker Teal */
    --secondary-color: #FFC107; /* Default Amber */
    --secondary-color-rgb: 255, 193, 7;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-headings: #1a202c; /* Dark gray for headings */
    --section-title-color: #2c3e50; /* Color for section titles like amenities */
    --background-light: #f7fafc; /* Light gray background */
    --border-color: #e2e8f0; /* Light border color */
}


/* Hero Section Styles - Default (Desktop First) */
.hero-section {
    background-image: url('../img/rooms/office/img_2755.jpg'); /* Desktop/default image */
    background-color: #334155; /* Fallback color */
    background-size: cover;
    background-position: center center; /* Explicitly set center for desktop */
    color: var(--text-light);
    padding: 6rem 1rem; /* Responsive padding */
    text-align: center;
    position: relative;
    overflow: hidden; /* Hide animation overflow */
    min-height: 300px; /* Ensure a minimum height, adjust as needed */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* background-color: rgba(0,0,0,0.3); /* Example: uncomment and adjust if you want a darker overlay */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 2.5rem; /* Base size, will be overridden in media queries */
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.hero-section p {
    font-size: 1.1rem; /* Base size, will be overridden in media queries */
    margin-bottom: 2rem;
    color: var(--text-light);
    opacity: 1; /* Was 0.9, ensure full visibility or adjust as desired */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Search Bar Styles (Included as it's part of the hero section layout) */
.search-bar-container {
    background-color: rgba(255, 255, 255, 0.97);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: 1rem;
}

.search-bar-container label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.3rem;
    text-align: left;
}

.search-bar-container input[type="date"],
.search-bar-container select { /* Changed input[type="number"] to select for guests */
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-dark);
    height: auto;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-bar-container input::placeholder { /* Note: select doesn't have placeholder */
    color: #a0aec0;
    font-size: 0.9rem;
}

.search-bar-container input:focus,
.search-bar-container select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 0, 121, 107), 0.3);
}

.search-bar-container button {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    height: 100%; /* Ensure button takes full height in its group */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.search-bar-container button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
}
.search-bar-container button:active {
    transform: translateY(0);
}

.search-bar-input-group {
    display: flex;
    flex-direction: column;
}

.search-bar-button-group {
    display: flex;
    align-items: flex-end; /* Aligns button to bottom if label makes group taller */
}


/* --- Responsive Adjustments --- */

/* Small devices (tablets, 640px and up) */
@media (min-width: 640px) {
    .hero-section h1 { font-size: 2.8rem; }
    .hero-section p { font-size: 1.2rem; }
    .search-bar-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for date pickers */
    }
    .search-bar-input-group:nth-child(3) { /* Guests select */
        grid-column: span 2; /* Make guests span full width if dates are side-by-side */
    }
    .search-bar-button-group {
        grid-column: span 2; /* Button spans full width */
    }
}

/* Medium devices (desktops, 768px and up) */
@media (min-width: 768px) {
    .hero-section {
        padding: 8rem 1rem;
        background-image: url('../img/rooms/office/img_2755.jpg'); /* Ensure desktop image is re-applied if overridden by smaller screen */
        background-position: center center; /* Ensure position is correct for desktop */
    }
    .hero-section h1 { font-size: 3.5rem; }
    .hero-section p { font-size: 1.4rem; }
    .search-bar-container {
        grid-template-columns: 1fr 1fr 1fr auto; /* Dates, Guests, Button */
        align-items: flex-end;
        gap: 1.5rem;
    }
     .search-bar-input-group:nth-child(3) { /* Guests select */
        grid-column: auto; /* Reset span */
    }
    .search-bar-button-group {
        grid-column: auto; /* Reset span */
    }
     .search-bar-container button {
         padding: 0.8rem 1.5rem; /* Adjust button padding */
     }
}

/* Mobile View Adjustments (screens smaller than 768px) */
/* This is where you'd target phones and smaller tablets */
@media (max-width: 767px) {
    .hero-section {
        /* IMPORTANT: Create a mobile-specific version of your banner image */
        /* This image should be cropped/composed for a portrait aspect ratio */
        /* For example, if img_8650.jpg is very wide, img_8650-mobile.jpg might be more square or tall */
        background-image: url('../img/rooms/office/img_2755-mobile.jpg'); /* Replace with your mobile-optimized image Width =800 and Height= 1000 */
        padding: 4rem 1rem; /* Adjust padding for mobile */
        min-height: 450px; /* Adjust min-height for mobile aspect ratio, make it taller if needed */
        /* Optional: Adjust background-position if the mobile image's focal point isn't perfectly centered */
        /* background-position: center top; */ /* e.g., if focus is higher */
    }
    .hero-section h1 {
        font-size: 2rem; /* Adjust font size for mobile */
    }
    .hero-section p {
        font-size: 1rem; /* Adjust font size for mobile */
        margin-bottom: 1.5rem;
    }
    .search-bar-container {
        padding: 1rem; /* Slightly reduce padding on mobile */
        /* Already 1fr grid-template-columns by default, which is good for mobile */
    }
}

/* Very Small Phones (optional, if more specific adjustments are needed) */
@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 1rem;
        min-height: 400px; /* Example: further adjust for very small screens */
    }
     .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    .search-bar-container {
        gap: 0.75rem; /* Reduce gap for very small screens */
    }
    .search-bar-container input[type="date"],
    .search-bar-container select,
    .search-bar-container button {
        padding: 0.7rem; /* Slightly smaller padding for form elements */
        font-size: 0.9rem;
    }
    .search-bar-container button {
        font-size: 1rem;
    }
}


/* Large devices (large desktops, 1024px and up) */
@media (min-width: 1024px) {
    .hero-section { padding: 9rem 1rem; }
    .hero-section h1 { font-size: 4rem; }
    .hero-section p { font-size: 1.5rem; }
}

/* Extra Large devices (wider desktops, 1280px and up) */
@media (min-width: 1280px) {
    .hero-section { padding: 10rem 1rem; }
}
