/* ============================================================================
   WENG & GRIOT - ESTUDIO INMOBILIARIO
   Main Stylesheet - Comprehensive CSS with Full Documentation
   ============================================================================ */

/* ============================================================================
   1. CSS RESET & BASE STYLES
   ============================================================================ */

/* Base body styles - Sets up the main page layout with space for fixed header */
body {
    width: 100%; 
    height: auto;  
    margin: 0;
    margin-top: 70px;  /* Space for fixed header (70px height) */
    left: 0;
    right: 0;
}

/* ============================================================================
   2. HEADER & NAVIGATION
   ============================================================================ */

/* Main header - Fixed at top, dark blue background */
header {
    background-color: #000630;  /* Dark blue brand color */
    height: 70px;
    width: 100%;
    top: 0;
    position: fixed;  /* Stays at top when scrolling */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-sizing: border-box;
    z-index: 100;  /* Above other content */
}

/* Header links - Flex container for logo and nav items */
header a {
    display: flex;
    align-items: center;
}

/* Header logo - Company logo in top left */
#header-logo {
    height: 60px;
    width: 207px;
    margin-left: 45px;
}

/* Navigation menu container - Right side of header */
#nav-header-menu.nav-header-menu {
    height: 50px;
    margin-right: 0;
    position: relative;
    display: flex;
    align-items: center;
}

/* Hamburger button - Hidden on desktop */
.nav-hamburger-btn {
    display: none;
    padding: 10px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
}
.nav-hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

/* Mobile nav panel - Slide-out list (hidden by default) */
.nav-mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    padding: 1.25rem 1rem 2rem;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}
.nav-mobile-panel--open {
    transform: translateX(0);
}
.nav-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
}
.nav-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 3rem;
}
.nav-mobile-link {
    display: block;
    padding: 14px 12px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
}
.nav-mobile-link:hover {
    background: #f5f5f5;
    color: #ffa600;
}
.nav-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.nav-mobile-backdrop--open {
    opacity: 1;
    visibility: visible;
}

/* Navigation link items - Styled menu items */
.nav-link {
    background-color: #000630;
    color: #FFFFFF;
    height: 40px;
    width: fit-content;
    margin-left: 15px;
    margin-right: 15px;
    padding-left: 10px;
    padding-right: 10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    font-size: large;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Navigation link hover state - Orange accent color */
.nav-link:hover {
    color: #ffa600;  /* Brand orange color */
}

/* Dropdown menu container - Relative positioning for absolute dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content - Hidden by default, shown on hover */
.dropdown-content {
    display: none;
    position: absolute;
}

/* Dropdown menu links - White text, flex layout */
.dropdown-content a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: medium;
    width: auto;
    padding-top: 10px;
    display: flex;
    align-items: center;
}

/* Dropdown show on hover - Reveals dropdown menu */
.dropdown:hover .dropdown-content {
    display: block;
}

/* ============================================================================
   3. FOOTER
   ============================================================================ */

/* Footer container - Dark blue background, fixed height */
footer {
    background-color: #000630;  /* Same dark blue as header */
    height: 250px;
    display: flex;
    align-items: center;
}

/* Footer logo - Company logo in footer */
#footer-logo {
    height: 200px;
    width: 200px;
    margin-left: 7%;
    margin-top: 1%;
    margin-right: 7%;
}

/* Footer navigation container - Wrapper for footer menu */
#nav-footer-container {
    width: 100%;
    margin-right: 2%;
}

/* Footer navigation menu - Flex container for footer columns */
#nav-footer-menu {
    background-color: #000630;
    color: #FFFFFF;
    height: fit-content;
    width: 100%;
    display: flex;
}

/* Footer section titles - Bold section headers */
#nav-footer-title {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: larger;
    margin: 10px;
}

/* Footer info column - Individual footer column container */
#nav-footer-info {
    margin-right: 10%;
}

/* Footer info links - Styled footer links */
#nav-footer-info a {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: small;
    display: block;
    margin: 10px;
    text-decoration: none;
}

/* Footer visited links - Maintain white color */
#nav-footer-info a:visited {
    color: #FFFFFF;
}

/* Footer social icons container - Flex container for social media icons */
#nav-footer-icons {
    display: flex;
    margin-left: 15px;
}

/* Footer social icons - Square icon sizing */
#nav-footer-icons img {
    height: 20px;
    width: 20px;
}

/* Copyright text - Positioned on right side of footer */
#copyright {
    color: #FFFFFF;
    position: absolute;
    right: 0;
    margin-right: 20px;
}

/* Footer responsive - column layout on tablet/phone */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        height: auto;
        padding: 2rem 1rem 1.5rem;
        align-items: center;
        text-align: center;
    }
    #footer-logo {
        margin: 0 0 1.5rem 0;
    }
    #nav-footer-container {
        position: relative;
        width: 100%;
        max-width: 400px;
        margin: 0;
    }
    #nav-footer-menu {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    #nav-footer-info {
        margin-right: 0;
        text-align: center;
    }
    #nav-footer-title {
        margin-bottom: 0.5rem;
    }
    #nav-footer-info a {
        margin: 6px 0;
    }
    #nav-footer-icons {
        justify-content: center;
        margin: 0.5rem 0 0 0;
    }
    #copyright {
        position: relative;
        right: auto;
        margin: 1.5rem 0 0 0;
        text-align: center;
        font-size: 0.9rem;
    }
}

/* ============================================================================
   4. LANDING PAGE COMPONENTS
   ============================================================================ */

/* Landing hero section - Top section of landing page */
#landing-hero {
    background-color: #F3F3F3;  /* Light grey background */
    height: 315px;
}

/* Landing oportunidades section - Opportunities showcase section */
#landing-oportunidades {
    background-color: #F3F3F3;
    height: 600px;
    display: flex;
    align-items: center;
}

/* Landing articulos section - Articles/news section */
#landing-articulos {
    background-color: #F3F3F3;
    height: auto;  /* Flexible height based on content */
}

/* Landing beneficios section - Benefits section */
#landing-beneficios {
    background-color: #ECECEC;  /* Slightly darker grey */
    height: 200px;
    top: 0;
}

/* Benefits section title - Heading for benefits section */
.benefits-title {
    margin: 0;
    padding: 2%;
}

/* Benefits list container - Flex container for benefit items */
.benefits-list {
    display: flex;
    justify-content: space-evenly;  /* Even spacing between items */
}

/* Individual benefit item - White card with rounded corners */
.benefit-item {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    height: 72px;
    width: 200px;
}

/* ============================================================================
   5. INMOBILIARIA HOME PAGE
   ============================================================================ */

/* Hero image - Full width hero image */
#hero {
    width: 100%;
}

/* Inmobiliaria hero section - Container for hero image and search */
#inmobiliaria-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;  /* Allows absolute positioning of search container */
}

/* Search container - Absolute positioned search form overlay */
#search-container {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Search container placeholder text - Styled placeholder text */
#search-container div ::placeholder {
    color: #BCB8B8;
}

/* Search container input - Styled input fields; typed text is black */
#search-container input {
    color: #000;  /* Black text when typing */
}

/* Search container select - Styled select dropdowns */
#search-container select {
    width: 150px;
    text-align: center;
    margin-right: 5px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 0;
    box-shadow: 0 4px 4px 0 #00000050;
}

/* Search bar form - Main search form container */
.search-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.8);  /* Semi-transparent white */
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);  /* Blur effect behind form */
    width: 100%;
    max-width: 800px;
    margin: auto;
}

/* Operation options container - Buttons for Comprar/Alquilar/Emprendimientos */
.options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* Operation option button - Individual operation button */
.option-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    background: #f3f3f3;  /* Light grey background */
    cursor: pointer;
    transition: 0.2s;  /* Smooth transition on state change */
    font-weight: 500;
}

/* Active operation button - Selected operation (orange background) */
.option-btn.active {
    background: #ffb000;  /* Brand orange */
    color: white;
    font-weight: 600;
}

/* Filters container - Container for search input fields */
.filters {
    display: flex;
    gap: 8px;
    width: 100%;
}

/* Multi-location wrap - Single input look: pill (count) + selected list + search input */
.location-multi-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    padding-left: 8px;
    gap: 8px;
    position: relative;
}
.location-multi-wrap .location-autocomplete {
    flex: 1;
    min-width: 0;
}
.location-multi-wrap .filter-input {
    border: 0;
    box-shadow: none;
    padding: 10px 12px;
}
.location-multi-wrap .filter-input:focus {
    outline: none;
}

/* Location pill - Count only (no "Ubicaciones"), click toggles list */
.location-selected-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #2563eb;
    background: #fff;
    color: #2563eb;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}
.location-selected-pill:hover {
    background: #eff6ff;
}
.location-count {
    line-height: 1;
}

/* Location selected list - Shown when pill is clicked */
.location-selected-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 200px;
    max-width: 320px;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 101;
    padding: 8px;
}
.location-selected-list.open {
    display: block;
}
.location-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    margin-bottom: 4px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 13px;
}
.location-chip:last-child {
    margin-bottom: 0;
}
.location-chip-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.location-chip-remove {
    width: 18px;
    flex-shrink: 0;
    margin-left: 8px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
}
.location-chip-remove:hover {
    color: #dc2626;
    background: #fee2e2;
}
#locationHiddenContainer,
#locationHiddenContainerListings {
    display: none;
}

/* Location autocomplete - Wrapper so dropdown aligns with input */
.location-autocomplete {
    position: relative;
    flex: 1;
    display: flex;
}
.location-autocomplete .filter-input {
    width: 100%;
}

/* Location suggestions dropdown - List below input (barrio, provincia) */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 2px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 240px;
    overflow-y: auto;
    z-index: 2;
    list-style: none;
    padding: 0;
    margin-left: 0;
}
.location-suggestion {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #000;
    border-bottom: 1px solid #f0f0f0;
}
.location-suggestion:last-child {
    border-bottom: 0;
}
.location-suggestion:hover {
    background: #f5f5f5;
}
.location-suggestion strong {
    font-weight: 600;
}

/* Filter inputs and selects - Styled form inputs */
.filters input,
.filters select {
    flex: 1;  /* Equal width distribution */
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

/* Search button - Orange submit button */
.search-btn {
    background-color: #ffb000;  /* Brand orange */
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;  /* Prevents text wrapping */
}

/* ============================================================================
   6. MULTI-SELECT COMPONENT
   ============================================================================ */

/* Multi-select wrapper - Container for toggle button and dropdown */
.multi-select {
    position: relative;  /* Allows absolute positioning of dropdown */
    flex: 1;  /* Takes equal space in flex container */
    min-width: 0;  /* Allows flex shrinking */
}

/* Multi-select toggle button - Button that opens/closes dropdown */
.multi-select-toggle {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 42px;  /* Matches other form inputs */
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
}

/* Toggle button hover state - Darker border on hover */
.multi-select-toggle:hover {
    border-color: #999;
}

/* Toggle button when dropdown is open - Rounded top corners only */
.multi-select.open .multi-select-toggle {
    border-radius: 8px 8px 0 0;  /* Top corners rounded */
    border-bottom-color: transparent;  /* Seamless connection to dropdown */
}

/* Toggle button text - Text content wrapper */
.multi-select-toggle-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;  /* Truncate long text with ... */
    white-space: nowrap;
}

/* Multi-select dropdown - Dropdown menu panel */
.multi-select-dropdown {
    position: absolute;
    top: 100%;  /* Starts exactly at bottom of toggle */
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 12px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;  /* Seamless connection to toggle */
    border-radius: 0 0 8px 8px;  /* Bottom corners rounded */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: none;  /* Hidden by default */
    z-index: 25;  /* Above other content */
    max-height: 240px;  /* Scrollable if content exceeds */
    overflow-y: auto;
}

/* Dropdown open state - Shows dropdown when active */
.multi-select-dropdown.open {
    display: block;
}

/* Operation select - Single-choice dropdown (Comprar/Alquilar/Emprendimientos), same look as multi-select */
.operation-select .operation-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin: 0 0 4px 0;
    border: 0;
    border-radius: 6px;
    background: none;
    font-size: 14px;
    color: #333;
    text-align: left;
    cursor: pointer;
}
.operation-select .operation-option:last-child {
    margin-bottom: 0;
}
.operation-select .operation-option:hover {
    background: #f5f5f5;
}

/* Multi-select option - Individual checkbox option */
.multi-select-option, .filter-checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;  /* Consistent spacing between checkbox and label */
    font-size: 14px;
    color: #333;
    margin: 0 0 6px 0;
    cursor: pointer;
}

/* Last option - Removes bottom margin */
.multi-select-option:last-child {
    margin-bottom: 0;
}

/* Multi-select checkbox - Styled checkbox input */
.multi-select-option input[type="checkbox"],
.filter-checkbox-option input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    margin: 0;
    flex: none;  /* Prevents checkbox from growing */
    padding: 0;
    border-radius: 2px;
    box-shadow: none;
    cursor: pointer;
    accent-color: #ffb000;  /* Orange when checked */
}

/* ============================================================================
   7. OPPORTUNIDADES SECTION (Home Page)
   ============================================================================ */

/* Oportunidades wrapper - Container for card and images */
.oportunidades-wrapper {
    display: flex;
    align-items: center;
    background-color: #FFA60045;  /* Semi-transparent orange */
    height: 60%;
    width: 100%;
}

/* Oportunidades card - White card with content */
.oportunidades-card {
    background-color: #FFFFFF;
    height: 60%;
    width: 25%;
    align-items: center;
    margin-left: 5%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

/* Card title - Centered heading */
.oportunidades-card-title {
    text-align: center;
}

/* Card text - Content paragraph */
.oportunidades-card-text {
    width: 83%;
}

/* Oportunidades images container - Container for overlapping images */
.oportunidades-images {
    position: relative;
    width: 20%;
    margin: auto;
    height: 70%;
    background-color: red;  /* Temporary background */
}

/* Oportunidades images - Base styles for all images */
.oportunidades-images .img {
    position: absolute;
    border: 10px solid #FFFFFF;
    border-radius: 20px;
}

/* Top image - Largest, frontmost image */
.oportunidades-images .top-img {
    max-height: 300px;
    top: 0;
    left: 10%;
    z-index: 3;  /* Above other images */
}

/* Middle image - Second layer image */
.oportunidades-images .middle-img {
    max-height: 250px;
    top: -60%;
    right: 0;
    z-index: 1;
}

/* Bottom image - Back layer image */
.oportunidades-images .bottom-img {
    max-height: 250px;
    top: 45%;
    right: 30%;
    z-index: 1;
}

/* Orange button - Brand orange button style */
.orange_button {
    background-color: orange;
    color: #ffffff;
}

/* Generic button - Base button styles */
button {
    padding: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 0;
    box-shadow: 0 4px 4px 0 #00000050;
    width: 150px;
    text-align: center;
    font-weight: 700;
    color: #7A7474;
    cursor: pointer;
}

/* ============================================================================
   8. DESTACADOS SECTION
   ============================================================================ */

/* Destacados container - Featured properties section */
#destacados-container {
    background-color: #F3F3F3;
    height: 428px;
    width: screen;
    display: flex;
    align-items: center;
}

/* Destacados links - Remove underline from links */
#destacados-container a:not(#subtitulo) {
    text-decoration: none;
}

/* Destacados wrapper - Content wrapper */
#destacados-wrapper {
    height: auto;
    margin: 5%;
}

/* Subtitulo - Section subtitle */
#subtitulo {
    font-size: x-large;
    color: #000000;
}

/* Ciudades destacadas - Featured cities container */
#ciudades-destacadas {
    margin: 20px;
}

/* Featured city link - Styled city link button */
#ciudades-destacadas a {
    background-color: #ffffff;
    color: #747474;
    width: 200px;
    padding: 11px;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 4px 0 rgb(0, 0, 0, 25%);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: large;
    font-weight: bold;
    display: inline-flex;
    justify-content: center;
}

/* Section title - Column section header */
.section {
    margin-left: 20px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: larger;
    color: #000000;
}

/* Column container - Flex column layout */
.column {
    display: flex;
}

/* Even spacing - Evenly distributed items */
.even {
    justify-content: space-evenly;
}

/* Column links - Styled links within columns */
.column a:not(.section) {
    margin-right: 20px;
    margin-top: 10px;
}

/* Column info links - Block display for info links */
.column-info a {
    display: block;
}

/* Column info block - Info section container */
.column-info-block {
    margin-left: 20px;
    font-family: 'Franklin Gothic', 'Arial Narrow', Arial, sans-serif;
    font-size: medium;
    color: #000000;
}

/* Column info block links - Grey colored links */
.column-info-block .column a {
    color: #747474;
}

/* Row container - Flex row layout */
.row {
    display: flex;
    margin: 10px;
}

/* ============================================================================
   9. PROPERTY LISTINGS PAGE
   ============================================================================ */

/* Listings filter bar - Top filter bar on listings page */
.listings-filter-bar {
    position: relative;
    height: 60px;
    width: 100%;
    background-color: #D9D9D9;  /* Light grey background */
    display: flex;
    align-items: center;
}

/* Listings mobile filter toggle - Hidden on desktop */
.listings-search-toggle {
    display: none;
}

/* Listings filter form - Form container; uses same .filters layout as home search */
.listings-filter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.listings-filter-form .filters {
    width: 100%;
    max-width: 1100px;
}

/* Filter input and select - Styled form inputs */
.filter-input,
.filter-select {
    padding-left: 20px;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 4px 4px 0 #00000050;
}

/* Placeholder text stays grey; input value color set in #search-container input */
.filter-input::placeholder {
    color: #BCB8B8;
}

/* Filter select - Additional padding for select elements */
.filter-select {
    padding: 0 2%;
}

/* Listings container - Main container for property listings */
.listings-container {
    position: relative;
    background-color: #F3F3F3;
}

/* Properties grid - Grid layout for property cards */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3 columns */
}

/* Results header - Header showing count and sort options */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

/* Filter toggle button - Button to show/hide additional filters */
.filter-toggle-btn {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-height: 42px;  /* Matches other form inputs */
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mas-filtros-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #ffb000;
    border-radius: 9px;
}
.mas-filtros-count[aria-hidden="true"] {
    display: none;
}

/* Más filtros wrap - Dropdown aligned with button (left edge) */
.mas-filtros-wrap {
    position: relative;
}
.mas-filtros-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    min-width: 320px;
    max-width: 420px;
    max-height: 70vh;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 110;
    overflow: hidden;
    flex-direction: column;
}
.mas-filtros-dropdown.open {
    display: flex;
}
.mas-filtros-inner {
    overflow-y: auto;
    padding: 16px;
}
.filter-section {
    margin-bottom: 16px;
}
.filter-section:last-of-type {
    margin-bottom: 0;
}
.filter-section-title {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}
.filter-range-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.filter-range-group {
    flex: 1;
    min-width: 80px;
}
.filter-range-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}
.filter-range-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.multi-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.multi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.multi-btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.multi-btn input:focus-visible + span {
    outline: 2px solid #ffb000;
    outline-offset: 2px;
}
.multi-btn span {
    pointer-events: none;
}
.multi-btn:has(input:checked) {
    border-color: #ffb000;
    background: #fff8eb;
}
.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.filter-checkboxes-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    align-items: start;
}

.filter-checkbox-option span {
    flex: 0 1 auto;
    line-height: 1.3;
}
.mas-filtros-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.mas-filtros-limpiar {
    padding: 8px 16px;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}
.mas-filtros-limpiar:hover {
    color: #333;
}
.mas-filtros-ver-resultados {
    padding: 8px 20px;
    border: 2px solid #ffb000;
    border-radius: 8px;
    background: #fff;
    color: #ffb000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.mas-filtros-ver-resultados:hover {
    background: #ffb000;
    color: #fff;
}

/* Pagination container - Container for page navigation */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

/* Pagination links - Page number links */
.pagination a {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
}

/* Active page - Current page indicator */
.pagination .active {
    padding: 8px 12px;
    background-color: #ffb000;
    color: #fff;
    border: 1px solid #ffb000;
    border-radius: 4px;
    font-weight: bold;
}

/* ============================================================================
   10. PROPERTY CARD COMPONENTS
   ============================================================================ */

/* Property card - Individual property card container (anchor: no underline) */
.cards {
    display: flex;
    flex-direction: column;
    background: #F3F3F3;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    margin: 15px;
    overflow: hidden;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}
.cards:hover {
    text-decoration: none;
}

/* Card image wrapper - Container for property image */
.card-image-wrapper {
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Card image - Property image styling */
.card-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Card content - Content section of card */
.card-content {
    background-color: #ffffff;
    padding: 20px;
}

/* Card title - Property title heading */
.card-content h2 {
    font-size: 20px;
    color: #333;
    margin: 0 0 10px;
}

/* Card price - Property price display */
.card-content .price {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin: 0 0 10px;
}

/* Card details - Property details text */
.card-content .details {
    font-size: 14px;
    color: #333;
}

/* Card details spans - Bold detail values */
.card-content .details span {
    font-weight: bold;
}

/* ============================================================================
   11. PROPERTY DETAIL PAGE
   ============================================================================ */

/* Property page container - Main container for property detail page */
.property-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Property content wrapper - Content container */
.property-content {
    max-height: auto;
    width: 70%;
}
.property-messages {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
    width: 70%;
}
.property-message {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.property-message--success {
    background: #d4edda;
    color: #155724;
}
.property-message--error {
    background: #f8d7da;
    color: #721c24;
}
.property-message--info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Property gallery - Main image left (~65%), thumbnail grid right (~35%) */
.property-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    height: 320px;
    background-color: #f5f5f5;
    margin-bottom: 2%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 4px 0 #00000080;
}
.gallery-main {
    padding: 6px;
    position: relative;
    min-height: 0;
    overflow: hidden;
}
.gallery-main-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
}
.gallery-main-prev,
.gallery-main-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}
.gallery-main-prev { left: 12px; }
.gallery-main-next { right: 12px; }
.gallery-main-prev:hover,
.gallery-main-next:hover {
    background: rgba(0,0,0,0.65);
}
.gallery-main-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 8px 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 13px;
}
.gallery-photo-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    min-height: 0;
    overflow-y: auto;
}
.gallery-thumb {
    position: relative;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    min-height: 0;
}
.gallery-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.2s;
}
.gallery-thumb:hover .gallery-thumb-img {
    opacity: 0.9;
}
.gallery-buttons {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}
.gallery-btn-360,
.gallery-ver-todas {
    width: fit-content;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.gallery-btn-360:hover,
.gallery-ver-todas:hover {
    background: #f8f8f8;
}
.gallery-lightbox-nav-hidden .gallery-lightbox-prev,
.gallery-lightbox-nav-hidden .gallery-lightbox-next,
.gallery-lightbox-nav-hidden .gallery-lightbox-counter {
    display: none;
}

/* Lightbox - Same-size container, object-fit: contain (no stretch, full quality) */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}
.gallery-lightbox[aria-hidden="false"] {
    display: flex;
}
.gallery-lightbox-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}
.gallery-lightbox-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}
.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}
.gallery-lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}
.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255,255,255,0.35);
}
.gallery-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 15px;
}

/* Property layout - Two column layout for details */
.property-layout {
    display: flex;
    justify-content: space-between;
    padding-bottom: 5%;
}

/* Property main column - Left column with main content */
.property-main-column {
    width: 58%;
}

/* Property summary card - Summary information card */
.property-summary-card {
    min-height: 120px;
    background-color: #FFFFFF;
    margin-bottom: 3%;
    border: none;
    box-shadow: 0 0 4px 0 #00000080;
    display: flex;
    flex-direction: column;
}

/* Property category tag - Category badge */
.property-category-tag {
    background-color: #F3F3F3;
    border: none;
    box-shadow: 0 0 4px 0 #00000080;
    width: fit-content;
    border-radius: 10px;
    color: #7A7474;
    margin: 3% 0 0 5%;
    padding: 0 1%;
}

/* Property summary body - Main content area of summary */
.property-summary-body {
    margin: 0;
    padding: 1rem 5%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Property price - Large price display */
.property-price {
    margin: 0;
    font-weight: bolder;
    font-size: xx-large;
    font-family: Arial, Helvetica, sans-serif;
}

/* Property features container - Responsive grid */
.property-features {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    gap: 0.75rem 1rem;
    align-items: start;
}
@media (max-width: 992px) {
    .property-features {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .property-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .property-feature img {
        height: 36px;
        width: 36px;
    }
    .property-summary-body {
        padding: 1rem 4%;
    }
}

/* Property feature - Individual feature item */
.property-feature {
    display: flex;
    flex-direction: column;
    min-height: 0;
    text-align: center;
    align-items: center;
    gap: 0.35rem;
}

/* Property feature icon - Feature icon image */
.property-feature img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Property feature - value (inside p) */
.property-feature p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #333;
}
/* Property feature - label text (e.g. "Totales", "Cubiertos") */
.property-feature {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.2;
}

/* Property details container - Container for description and services */
.property-details {
    min-height: 550px;
}

/* Property description card - Description section card */
.property-description-card {
    min-height: 60%;
    background-color: #FFFFFF;
    border: none;
    box-shadow: 0 0 4px 0 #00000080;
    display: flex;
    flex-direction: column;
}

/* Property services card - Services section card */
.property-services-card {
    min-height: 40%;
    background-color: #FFFFFF;
    border: none;
    box-shadow: 0 0 4px 0 #00000080;
    display: flex;
    flex-direction: column;
}

/* Property section title - Section heading */
.property-section-title {
    margin: 2% 0 0 5%;
}

/* Property description text - Description paragraph */
.property-description-text {
    margin-left: 5%;
    line-height: 1.5;
    max-width: 70%;
}

/* Property service item - Individual service list item */
.property-service-item {
    margin-left: 5%;
    line-height: 1.5;
}

/* Property detail tabs card - Tabbed section (Propiedad, Servicios, Características, Comodidades) */
.property-detail-tabs-card {
    background-color: #fff;
    box-shadow: 0 0 4px 0 #00000080;
    border: none;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}
.property-tabs-toggle {
    display: none;
}
.property-detail-tablist {
    display: flex;
    gap: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #eee;
}
.property-detail-tab {
    padding: 12px 20px;
    margin: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    position: relative;
    border-radius: 0 0;
    margin-bottom: -1px;
}
.property-detail-tab:hover {
    background-color: #f5f5f5;
}
.property-detail-tab--active {
    background-color: #e8e8e8;
    color: #333;
}
.property-detail-tab--active::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -1px;
    height: 3px;
    background-color: #ffb000;
    border-radius: 3px 3px 0 0;
}
.property-detail-panel {
    padding: 1.25rem 5%;
    min-height: 120px;
}
.property-detail-panel--active {
    display: block;
}
.property-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.property-detail-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    line-height: 1.4;
    border-bottom: 1px solid #f0f0f0;
}
.property-detail-list-item:last-child {
    border-bottom: none;
}
.property-detail-label {
    color: #666;
    font-size: 14px;
}
.property-detail-value {
    font-weight: 500;
    color: #333;
}
.property-detail-list--simple .property-detail-list-item {
    display: block;
    border-bottom: none;
    padding: 0.35rem 0;
}
.property-detail-list-item--muted {
    color: #999;
    font-style: italic;
}

/* Property sidebar - Right sidebar column */
.property-sidebar {
    width: 40%;
}

/* ============================================================================
   12. CONTACT FORM COMPONENTS
   ============================================================================ */

/* Contact card - Contact form card */
.contact-card {
    height: 350px;
    background-color: #FFFFFF;
    margin-bottom: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    box-shadow: 0 0 4px 0 #00000080;
}

/* Contact form - Form container */
.contact-form {
    display: flex;
    flex-direction: column;
    width: 80%;
}

/* Contact input - Form input fields */
.contact-input {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 4px 0 #00000080;
    margin: 10px 0;
    height: 40px;
    padding-left: 10%;
}

/* First contact input - Removes top margin */
.contact-input:first-child {
    margin-top: 0;
}

/* Contact actions - Button container */
.contact-actions {
    height: 40px;
    display: flex;
    margin-top: 10px;
    justify-content: space-between;
}

/* Contact button - Email/WhatsApp button */
.contact-btn {
    background-color: #FFA600;  /* Brand orange */
    height: auto;
    width: 120px;  
    border: none;
    box-shadow: 0 0 4px 0 #00000080;
    margin: 0;
    color: #F3F3F3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    cursor: pointer;
    text-decoration: none;
}
.contact-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* WhatsApp button variant - Green WhatsApp button */
.contact-btn--whatsapp {
    background-color: #1DCD00; /* WhatsApp green */
    width: 120px;  
    border-radius: 10px;
}

/* ============================================================================
   13. LOCATION COMPONENTS
   ============================================================================ */

/* Property location container - Location section container */
.property-location {
    height: 350px;
}

/* Location bar - Address bar above map */
.location-bar {
    height: 10%;
    box-shadow: 0 0 4px 0 #00000080;
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
}

/* Location icon - Address icon */
.location-icon {
    margin: 0 3% 0 5%;
    height: 70%;
}

/* Location map - Embedded map iframe */
.location-map {
    width: 100%;
    height: 90%;
    border: none;
    box-shadow: 0 0 4px 0 #00000080;
}

/* ============================================================================
   14. RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet: header becomes hamburger + mobile panel */
@media (max-width: 992px) {
    .nav-header-menu {
        display: none !important;
    }
    .nav-hamburger-btn {
        display: flex;
    }
    #inmobiliaria-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 380px;
    }
    #inmobiliaria-hero #hero {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    #inmobiliaria-hero #search-container {
        position: relative;
        z-index: 1;
        padding: 1rem;
        align-items: stretch;
    }
    #inmobiliaria-hero .search-bar {
        max-width: none;
        width: 100%;
    }
    #inmobiliaria-hero .options {
        flex-direction: row;
    }
    #inmobiliaria-hero .option-btn {
        width: fit-content;
        text-align: center;
    }
    #inmobiliaria-hero .filters {
        flex-direction: column;
        width: 100%;
    }
    #inmobiliaria-hero .search-btn {
        width: 100%;
    }
    #inmobiliaria-hero .location-multi-wrap,
    #inmobiliaria-hero .multi-select {
        width: 100%;
    }

    /* Oportunidades: hide images on phone */
    .oportunidades-images {
        display: none !important;
    }
    .oportunidades-wrapper {
        justify-content: center;
    }
    .oportunidades-card {
        margin: 0;
        width: 80%;
    }
    #landing-oportunidades {
        height: fit-content;
        padding: 2rem 0;
    }
    .column a:not(.section) {
        margin-right: 0;
    }
    #nav-footer-info {
        margin-right: 0;
    }
    /* Property detail tabs: dropdown on mobile (like header) */
    #propertyDetailTabsCard {
        position: relative;
    }
    .property-tabs-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: #333;
        color: #fff;
        border: 0;
        border-radius: 0;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }
    .property-tabs-toggle::after {
        content: '▾';
        font-size: 12px;
        margin-left: 8px;
    }
    .property-detail-tablist {
        display: none;
        position: absolute;
        top: 10%;
        left: 0;
        right: 0;
        z-index: 40;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        flex-direction: column;
    }
    #propertyDetailTabsCard.property-tabs-open .property-detail-tablist {
        display: flex;
    }
    .property-detail-tab {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    .property-detail-tab--active::after {
        display: none;
    }
}

/* Phone/tablet: hero search as list, oportunidades images hidden, destacados half */
@media (max-width: 768px) {
    /* Inmobiliaria hero: search form as list inside hero */
    #inmobiliaria-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 380px;
    }
    #inmobiliaria-hero #hero {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    #inmobiliaria-hero #search-container {
        position: relative;
        z-index: 1;
        padding: 1rem;
        align-items: stretch;
    }
    #inmobiliaria-hero .search-bar {
        max-width: none;
        width: 100%;
    }
    #inmobiliaria-hero .options {
        flex-direction: row;
    }
    #inmobiliaria-hero .option-btn {
        width: fit-content;
        text-align: center;
    }
    #inmobiliaria-hero .filters {
        flex-direction: column;
        width: 100%;
    }
    #inmobiliaria-hero .search-btn {
        width: 100%;
    }
    #inmobiliaria-hero .location-multi-wrap,
    #inmobiliaria-hero .multi-select {
        width: 100%;
    }

    /* Oportunidades: hide images on phone */
    .oportunidades-images {
        display: none !important;
    }
    .oportunidades-wrapper {
        justify-content: center;
    }
    .oportunidades-card {
        margin: 0;
        width: 80%;
    }
    #landing-oportunidades {
        height: fit-content;
        padding: 2rem 0;
    }

    /* Destacados: hide half of Comprar and half of Alquilar (second column-info in each) */
    #destacados-wrapper .column.even .columns .column .column-info:nth-child(2) {
        display: none;
    }
    #destacados-container {
        height: auto;
        min-height: 320px;
        padding: 1rem 0;
    }

    /* Property gallery - Single column on mobile */
    .property-gallery {
        grid-template-columns: 1fr;
        min-height: 280px;
        max-height: none;
    }
    .gallery-main-img {
        min-height: 240px;
    }
    .gallery-thumbs {
        max-height: 180px;
    }

    /* Filters - Stack vertically on mobile */
    .filters {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    /* Property detail tabs: dropdown on mobile (like header) */
    #propertyDetailTabsCard {
        position: relative;
    }
    .property-tabs-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: #333;
        color: #fff;
        border: 0;
        border-radius: 0;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }
    .property-tabs-toggle::after {
        content: '▾';
        font-size: 12px;
        margin-left: 8px;
    }
    .property-detail-tablist {
        display: none;
        position: absolute;
        top: 10%;
        left: 0;
        right: 0;
        z-index: 40;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        flex-direction: column;
    }
    #propertyDetailTabsCard.property-tabs-open .property-detail-tablist {
        display: flex;
    }
    .property-detail-tab {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    .property-detail-tab--active::after {
        display: none;
    }

    /* Listings filter bar: dropdown on mobile (like header menu) */
    .listings-filter-bar {
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
    }
    .listings-search-toggle {
        display: inline-block;
        margin: 10px 20px;
        padding: 10px 20px;
        background: #333;
        color: #fff;
        border: 0;
        border-radius: 6px;
        font-size: 1rem;
        cursor: pointer;
    }
    .listings-filter-form {
        flex-wrap: wrap;
        width: 100%;
    }
    .listings-filter-bar .listings-filter-form .filters {
        display: none;
        position: absolute;
        width: 90%;
        height: fit-content;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 50;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        max-height: 85vh;
        overflow-y: auto;
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }
    .listings-filter-bar.listings-filters-open .listings-filter-form .filters {
        display: flex;
    }
    
}

@media (max-width: 480px) {
    #header-logo {
        margin-left: 0;
        height: 50px;
        width: auto;
        max-width: 160px;
    }
}
