/* ---
Theme Name: Independencia
Description: A festive theme for Mexican Independence Day celebrations, based on the Modern theme.
--- */

/* --- Festive Color Palette & Variables --- */
:root {
    --primary-green: #006847; /* Deep green from the flag */
    --primary-red: #CE1126;   /* Vibrant red from the flag */
    --pure-white: #ffffff;
    --dark-text: #333333;
    --light-text: #ffffff;
    --body-bg: #f7f7f7;
    --header-bg: #ffffff;
    --border-color: #e0e0e0;

    /* Overriding original theme variables with festive colors */
    --primary-blue: var(--primary-green);
    --accent-green: var(--primary-red);
    --accent-blue: var(--primary-green);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    color: var(--dark-text);
    /* --- NEW: More festive background pattern --- */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23d9e0da' fill-opacity='0.4'%3E%3Cpath fill-rule='evenodd' d='M11 0l5 20-5-5-5 5L11 0zm28 28l5 20-5-5-5 5L39 28zm28 28l5 20-5-5-5 5L67 56zM0 28l5 20-5-5-5 5L0 28zm28 56l5 20-5-5-5 5L28 84zM56 0l5 20-5-5-5 5L56 0z'/%3E%3C/g%3E%3C/svg%3E");
}

/* --- Header Styles --- */
.site-header {
    background-color: var(--header-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Festive Border */
    border-bottom: 4px solid var(--primary-green); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo a {
    text-decoration: none;
    color: var(--primary-green); /* Use new green */
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px; 
    margin-right: 10px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-green); /* Use new green */
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-red); /* Use new red */
}

/* --- Mobile Navigation --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-green); /* Use new green */
    margin: 5px 0;
    transition: all 0.3s ease;
}



.search-bar {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255,255,255,0.9);
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
}

.search-bar input {
    border: none;
    background: transparent;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    color: #333;
}

.search-bar input:focus {
    outline: none;
}

.search-bar button {
    background-color: var(--primary-red); /* Use new red */
    color: var(--light-text);
    border: none;
    border-radius: 50px;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.search-bar button:hover {
    background-color: #a80f20; /* Darker red */
}

/* --- Featured Properties Section (from index.php) --- */
.featured-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-green); /* Use new green */
}

.properties-grid {  
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- Grid Property Card (from index.php) --- */
.properties-grid .property-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.properties-grid .property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.properties-grid .property-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.properties-grid .property-card-content {
    padding: 1.5rem;
}

.properties-grid .property-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green); /* Use new green */
}

.properties-grid .property-card-content .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red); /* Use new red */
    margin-bottom: 1rem;
}

.properties-grid .property-card-content .location {
    margin-bottom: 1rem;
    color: #666;
}

.properties-grid .property-card-features {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.properties-grid .property-card-features span {
    font-size: 0.9rem;
}

/* --- Page Header and Filter Bar Styles (from properties.php) --- */
.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/prop_bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-header h1 {
    text-align: center;
    color: #fff;
    margin-bottom: 1.5rem;
}

.filter-bar {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--body-bg);
    padding: 1rem;
    border-radius: 8px;
}

.filter-bar input, .filter-bar select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.filter-bar button {
    background-color: var(--primary-red); /* Use new red */
    color: var(--light-text);
    border: none;
    border-radius: 5px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.filter-bar button:hover {
    background-color: #a80f20; /* Darker red */
}

/* --- Properties List Section (from properties.php) --- */
.properties-section {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.results-info {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.properties-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- List Property Card Styles (from properties.php) --- */
.properties-list .property-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
    border: 1px solid var(--border-color);
}
.properties-list .property-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.properties-list .property-card-image {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
}
.properties-list .property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.properties-list .property-card-main {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.properties-list .property-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.properties-list .property-card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--primary-green); /* Use new green */
}

.properties-list .property-card-content .location {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}
.properties-list .property-card-content .location svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.properties-list .property-card-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.properties-list .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}
.properties-list .feature-item img {
    width: 20px;
    height: 20px;
}

.properties-list .property-card-content .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red); /* Use new red */
}

.properties-list .property-card-actions {
    display: flex;
    border-top: 1px solid var(--border-color);
}
.properties-list .property-card-actions a {
    flex: 1;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.properties-list .property-card-actions a:first-child {
    border-right: 1px solid var(--border-color);
}
.properties-list .action-view {
    color: var(--primary-green); /* Use new green */
}
.properties-list .action-contact {
    color: #25D366; /* WhatsApp Green */
}
.properties-list .action-view:hover { background-color: #f0faf2; }
.properties-list .action-contact:hover { background-color: #f0fff4; }

.no-results {
    text-align: center;
    font-size: 1.5rem;
    color: #888;
    padding: 5rem;
}

/* --- View Property Styles (from view-property.php) --- */
.property-view-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    cursor: pointer; 
    height: 250px;
}

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

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

.gallery-item .view-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 104, 71, 0.7); /* Use green for overlay */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .view-more-overlay {
    opacity: 1;
}

.info-bar {
    background-color: var(--primary-green); /* Use new green */
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 8px;
    gap: 1rem;
}
.info-bar .price {
    font-size: 1.5rem;
    font-weight: bold;
}
.info-bar .stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.property-content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.property-main-details h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.property-main-details .address {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.details-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.details-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: #333;
    font-weight: 500;
    flex-grow: 1;
}

.detail-item span:last-child {
    color: #555;
    font-weight: 400;
}

.detail-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.amenities-list {
    list-style: none;
    padding: 0;
    column-count: 1;
}
.amenities-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23006847" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/></svg>') no-repeat left center;
    padding-left: 25px;
    margin-bottom: 0.8rem;
}

.agent-contact-card {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: static;
    top: auto;
    text-align: center;
}
.agent-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--primary-green);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.agent-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}
.agent-title {
    color: #777;
    margin-bottom: 2rem;
}
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 1rem;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.whatsapp-button:hover {
    background-color: #1DA851;
}
.whatsapp-button svg {
    width: 24px;
    height: 24px;
}

#map {
    height: 300px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
.lightbox.is-open {
    display: flex;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
}
.lightbox-close, .lightbox-next, .lightbox-prev {
    position: absolute;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}
.lightbox-close:hover, .lightbox-next:hover, .lightbox-prev:hover {
    color: #ccc;
}
.lightbox-close {
    top: 20px;
    right: 30px;
}
.lightbox-next, .lightbox-prev {
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* --- Footer Styles --- */
.site-footer {
    background-color: var(--primary-green);
    color: var(--light-text);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light-text);
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    text-decoration: none;
    color: #dddddd;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--light-text);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        border-top: 1px solid var(--border-color);
    }
    .main-nav.is-open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        align-items: center;
    }
    .mobile-nav-toggle {
        display: block;
    }
}

@media (min-width: 768px) {
    .filter-bar {
        flex-direction: row;
    }
    .properties-list .property-card {
        flex-direction: row;
    }
    .properties-list .property-card-image {
        width: 40%;
        height: auto;
    }
    .properties-list .property-card-main {
        width: 60%;
    }
    
    .property-view-container {
        padding: 0 2rem;
    }
    .gallery-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: repeat(2, 250px);
        height: 510px;
    }
    .gallery-item {
        height: 100%;
    }
    .gallery-item.main-image {
        grid-row: 1 / 3;
    }
    .property-content-layout {
        grid-template-columns: 2fr 1fr;
    }
    .details-grid {
        grid-template-columns: 1fr 1fr;
    }
    .detail-item:nth-child(4n-3),
    .detail-item:nth-child(4n-2) {
        background-color: #ffffff;
    }
    .detail-item:nth-child(4n-1),
    .detail-item:nth-child(4n) {
        background-color: #f8f9fa;
    }
    .amenities-list {
        column-count: 2;
    }
    #map {
        height: 400px;
    }
    .agent-contact-card {
        position: sticky;
    }
}

/* --- Properties Page: Three-Column Grid Layout --- */
.properties-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
    gap: 2rem;
}

/* Ensure cards stay vertical in the grid */
.properties-list .property-card {
    flex-direction: column;
}

.properties-list .property-card-image {
    width: 100%;
    height: 220px;
}

.properties-list .property-card-main {
    width: 100%;
}

/* Media Query for tablets and smaller */
@media (max-width: 992px) {
    .properties-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

/* Media Query for mobile phones */
@media (max-width: 576px) {
    .properties-list {
        grid-template-columns: 1fr; /* 1 column on phones */
    }
}

/* --- CSS for Property Status Overlay (Final, Safe Version) --- */

/* Make the entire card the positioning context for the homepage grid.
  Make the image container the context for the properties list page.
  This prevents breaking the layout on the homepage.
*/
.properties-grid .property-card,
.properties-list .property-card-image {
    position: relative;
}

/* Styles for the overlay itself */
.status-overlay {
    position: absolute;
    top: 20px;
    left: 0;
    background-color: var(--primary-red); /* Use new red */
    color: white !important; /* Use !important to override any link colors */
    padding: 8px 18px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 10;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
/* --- Hero Section & Custom Overlays (CORRECTED) --- */
.hero-section {
    position: relative; 
    overflow: hidden;   
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 4rem 1rem;
}

/* This container holds the text and search form */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Single column */
    align-items: center;
    gap: 8rem;
    position: relative; 
    z-index: 2; /* Layer 2: Content */
    text-align: center;
}

/* This container holds your decorative SVGs */
.hero-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3; /* Layer 3: Decorations (on top of content) */
}

.hero-svg-overlay .corner-svg {
    position: absolute;
    width: 25%; 
    max-width: 220px;
    height: auto;
}

.hero-svg-overlay .green-corner {
    bottom: 0;
    left: 0;
}

.hero-svg-overlay .red-corner {
    top: 0;
    right: 0;
}

/* Base style for the logo (mobile-first) */
.hero-svg-overlay .center-logo-svg {
    position: absolute;
    top: 0px; /* Adjust vertical position */
    left: 50%; /* Centered on mobile */
    transform: translateX(-50%);
    width: 80%;
    max-width: 300px;
}

.hero-text-content {
    order: -1; 
    margin-bottom: 2rem;
}

.hero-text-content h1,
.hero-text-content p {
    display: none; /* Hide the text as requested */
}


/* --- Responsive Adjustments for Desktop --- */
@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 1fr; /* Two columns on desktop */
        text-align: left;
    }

    .hero-text-content {
        text-align: left;
        order: 0; /* Reset order on desktop */
    }

    .hero-svg-overlay .center-logo-svg {
        left: 68%; /* Positioned to the right on desktop */
        width: 40%;
        max-width: 450px;
    }
}

/* --- Advanced Search Form --- */
.advanced-search-form {
    background: #ffffff;
    padding: 1.0rem;
    border-radius: 12px;
    max-width: 100%; /* Form will fill its container */
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.advanced-search-form .search-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.advanced-search-form .search-options {
    display: flex;
    gap: 0.5rem;
    background-color: #f8f9fa;
    padding: 0.4rem;
    border-radius: 50px;
}

.advanced-search-form .search-options label {
    position: relative;
    cursor: pointer;
}

.advanced-search-form .search-options input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.advanced-search-form .search-options span {
    display: block;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.advanced-search-form .search-options input[type="radio"]:checked + span {
    background-color: var(--primary-green); /* Use new green */
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.advanced-search-form .id-search-group input {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #fff;
    width: 100%;
}

.advanced-search-form .search-fields-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for fields */
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.advanced-search-form .form-group {
    position: relative;
}

.advanced-search-form .input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; /* Increased size */
    height: 32px; /* Increased size */
    opacity: 0.5;
    pointer-events: none;
}

.advanced-search-form .form-group input,
.advanced-search-form .form-group select {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.9rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #f8f9fa;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.advanced-search-form .form-group.icon-group select,
.advanced-search-form .form-group.icon-group input {
    padding-left: 50px; /* Increased padding for larger icon */
}

.advanced-search-form .search-button {
    width: 100%;
    padding: 0.9rem;
    margin-top: 1rem;
    background-color: var(--primary-red); /* Use new red */
    color: var(--light-text);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.advanced-search-form .search-button:hover {
    background-color: #a80f20; /* Darker red */
}

/* --- Responsive Adjustments for Hero --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text-content {
        text-align: center;
        order: -1;
        margin-bottom: 0.5rem;
    }
    .advanced-search-form {
        margin: 0 auto;
    }
}
