/* style.css - Total Rentals | Apple-Inspired Modern Design */

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    --primary-blue: #0071E3;
    --primary-orange: #FF6B2C;
    --dark-text: #1d1d1f;
    --light-text: #86868b;
    --bg-dark: #000000;
    --bg-section: #f5f5f7;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-dark: rgba(28, 28, 30, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-border-dark: rgba(255, 255, 255, 0.08);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    
    /* Lumina Tokens */
    --l-op: 0;
    --l-angle: 0deg;
}

/* =============================================
   BASE & TYPOGRAPHY
   ============================================= */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-text);
    background-color: white;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Global horizontal scroll lock */
}

html {
    overflow-x: hidden;
}

/* =============================================
   NAVIGATION
   ============================================= */
.transparent-nav {
    background: transparent !important;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 999;
    box-shadow: none;
    transition: var(--transition-smooth);
}

.transparent-nav .btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 980px;
    transition: var(--transition-smooth);
}

.transparent-nav .btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Sidenav */
.sidenav {
    width: 280px;
}

.sidenav .btn {
    background: var(--primary-orange);
    border-radius: 980px;
    width: 90%;
    margin: 10px 5%;
}

.sidenav-trigger {
    color: white !important;
    margin-left: 15px;
}

.solid-nav .sidenav-trigger {
    color: var(--dark-text) !important;
}

/* Logo */
.custom-logo {
    display: flex;
    align-items: center;
    height: 100%;
    color: white !important;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.logo-icon-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    margin-right: 12px;
    background: white;
    border-radius: 50%;
    padding: 3px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-text {
    font-weight: 400;
    letter-spacing: 1px;
}

.logo-text b {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Scrolled Nav (frosted glass) */
.solid-nav {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none !important;
}

.solid-nav .brand-logo,
.solid-nav #nav-mobile li a {
    color: var(--dark-text) !important;
}

.solid-nav .logo-text b {
    color: var(--primary-blue);
}

.solid-nav .btn {
    background: var(--primary-blue) !important;
    border: none;
    color: white !important;
    border-radius: 980px;
}

/* 1. Limpieza de Navbar */
.nav-wrapper {
    /* Eliminamos display: block !important para respetar Materialize nativo */
}

#nav-mobile li {
    display: inline-block !important;
    height: 64px !important;
    vertical-align: top;
}

/* 2. Botón Ingresar Premium (Sólido, Azul Apple, Pulido) */
.login-btn-premium {
    background-color: #0071e3 !important; /* Azul Marca + Apple Action */
    color: #ffffff !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 20px !important;
    border-radius: 980px !important;
    margin-top: 13px !important; /* Centrado preciso: (64-38)/2 */
    font-weight: 700 !important;
    text-transform: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2) !important;
    transition: all 0.2s ease;
    border: none !important;
}

.login-btn-premium:hover {
    background-color: #0077ed !important;
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.3) !important;
    transform: scale(1.03);
}

.login-btn-premium i {
    font-size: 18px !important;
}

@media only screen and (max-width: 992px) {
    .login-btn-premium { display: none !important; }
    nav, .nav-wrapper {
        height: 64px !important;
        line-height: 64px !important;
    }
    .nav-wrapper.container {
        width: 100% !important;
        position: relative !important;
    }
    .brand-logo.custom-logo { 
        position: absolute !important; 
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        height: 64px !important;
        width: max-content !important;
        text-align: center;
    }
    .custom-logo .logo-text {
        font-size: 1.1rem !important;
        white-space: nowrap;
    }
    .sidenav-trigger {
        position: absolute !important;
        left: 10px !important;
        margin: 0 !important;
        display: block !important;
        z-index: 1001;
        height: 64px !important;
        display: flex !important;
        align-items: center;
    }
}

.login-btn-premium i {
    margin-right: 8px !important;
    font-size: 20px !important;
}

.login-btn-premium i {
    font-size: 20px !important;
}

/* Glass Panel Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-lumina] {
    position: relative;
}

[data-lumina]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--l-angle), transparent, rgba(255,255,255,var(--l-op)), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

/* Nav links */
#nav-mobile li a {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
}

#nav-mobile li a:hover {
    opacity: 0.7;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: white;
    background: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.65;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

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

.hero-big-logo {
    width: 80px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-weight: 700;
    font-size: 3.8rem;
    margin-top: 0;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
    line-height: 1.05;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 45px;
    opacity: 0.85;
    letter-spacing: 0.2px;
}

/* =============================================
   SEARCH BOX (Frosted Glass Panel)
   ============================================= */
.search-box {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius-lg);
    padding: 20px 30px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--dark-text);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
}

.search-box .input-field .prefix {
    color: var(--primary-blue);
}

.search-box .input-field input {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

.search-box .input-field input:focus {
    border-bottom-color: var(--primary-blue) !important;
}

.search-btn {
    background: var(--primary-blue) !important;
    border-radius: var(--radius-sm);
    width: 100%;
    height: 50px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    transition: var(--transition-smooth);
}

.search-btn:hover {
    background: #005BB5 !important;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
    transform: translateY(-1px);
}

.search-btn i {
    line-height: 50px;
}

/* =============================================
   PROPERTIES SECTION
   ============================================= */
/* Frosted Reveal Animation */
@keyframes frostedReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.reveal-active {
    animation: frostedReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.properties-section {
    padding: 80px 0;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.properties-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.5) 60%,
        transparent 100%
    );
    animation: lightSweep 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--dark-text);
    letter-spacing: -0.8px;
}

/* =============================================
   SPLIT VIEW (Map & Sidebar)
   ============================================= */
.split-view {
    display: flex;
    height: calc(100vh - 64px);
    margin-top: 0;
    position: relative;
    overflow: hidden;
    background: white;
    width: 100vw;
    max-width: 100%;
}

.split-sidebar {
    width: 400px;
    min-width: 400px;
    background: white;
    overflow-y: auto;
    padding: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 10px 0 30px rgba(0,0,0,0.03);
}

.split-sidebar.collapsed {
    margin-left: -400px;
    transform: translateX(-100%);
}

.split-header {
    background: white;
    padding: 24px 20px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.split-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.split-map {
    flex-grow: 1;
    position: relative;
    height: 100%;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Floating Filters */
.floating-filters-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 1000px;
}

.floating-filters-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    padding: 8px 12px 8px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    border-right: 1px solid rgba(0,0,0,0.08);
    padding-right: 10px;
}

.filter-item:last-child, .filter-item.search-action {
    border-right: none;
    padding-right: 0;
}

.filter-item i {
    color: var(--primary-blue);
    font-size: 18px;
}

.filter-item input, .filter-item select {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    height: 36px !important;
    font-size: 0.9rem !important;
    color: var(--dark-text);
    cursor: pointer;
}

.filter-item input::placeholder {
    color: #999;
}

.filter-item select {
    padding: 0 !important;
}

.search-trigger {
    background: var(--primary-blue) !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3) !important;
    border: none !important;
    color: white !important;
}

.search-trigger i {
    font-size: 24px !important;
    line-height: 40px !important;
    margin: 0 !important;
    color: white !important;
    font-weight: 700 !important;
}

/* Sidebar Toggle Floating */
.sidebar-floating-toggle {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--dark-text) !important;
    color: white !important;
    border-radius: 30px !important;
    padding: 0 25px !important;
    height: 45px !important;
    line-height: 45px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
    transition: var(--transition-smooth) !important;
}

.sidebar-floating-toggle:hover {
    transform: translateX(-50%) translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3) !important;
}

/* =============================================
   PROPERTY CARDS
   ============================================= */
.property-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.property-card-content {
    cursor: pointer;
    padding: 18px 16px 14px;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
}

/* Custom Carousel */
.custom-carousel {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-content .custom-carousel {
    height: 400px;
    border-radius: var(--radius-md);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-img.active {
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 12px;
}

.carousel-bg-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 40px 15px 12px 15px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: none;
    opacity: 0.6;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
    transform: scale(1.1);
}

.carousel-btn i {
    color: white;
    font-size: 18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.property-card .card-title-custom {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
}

.property-card .pricing {
    font-weight: 600;
    color: var(--primary-orange);
}

/* =============================================
   MODAL (Frosted Glass)
   ============================================= */
#property-modal {
    max-height: 90%;
    height: 85%;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    background: white; /* More opaque for better contrast */
    border-top: 1px solid rgba(0,0,0,0.1);
}

#property-modal .modal-content {
    padding-bottom: 90px;
    height: calc(100% - 90px);
    overflow-y: auto;
}

.booking-floating-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px 25px;
    border-top: 1px solid #eee;
    z-index: 1010;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    display: block !important;
}

@media (max-width: 600px) {
    .booking-floating-bar {
        padding: 10px 15px;
    }
    .booking-floating-bar .btn-large {
        width: 100%;
        font-size: 0.9rem;
        padding: 0 15px;
    }
}

/* =============================================
   DATEPICKER FIX FOR MODALS
   ============================================= */
.datepicker-container, .datepicker-modal {
    z-index: 9999 !important;
}

#property-modal {
    z-index: 1003 !important;
}
.pricing-cards {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.price-chip {
    background: rgba(0, 113, 227, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 113, 227, 0.1);
    flex: 1;
    transition: var(--transition-smooth);
}

.price-chip:hover {
    background: rgba(0, 113, 227, 0.1);
    transform: translateY(-2px);
}

.price-chip.weekend-chip {
    background: rgba(255, 107, 44, 0.06);
    border-color: rgba(255, 107, 44, 0.12);
}

.price-chip.weekend-chip:hover {
    background: rgba(255, 107, 44, 0.1);
}

.price-title {
    font-size: 0.8rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.price-val {
    margin: 6px 0 0 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* =============================================
   BUTTONS
   ============================================= */
.book-btn {
    background: var(--primary-orange) !important;
    border-radius: 980px;
    box-shadow: 0 4px 15px rgba(255, 107, 44, 0.35);
    text-transform: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2px;
    padding: 0 30px;
    transition: var(--transition-smooth);
}

.book-btn:hover {
    box-shadow: 0 6px 25px rgba(255, 107, 44, 0.45);
    transform: translateY(-2px);
}

.airbnb-btn {
    display: inline-flex;
    align-items: center;
    background: #FF5A5F;
    color: white !important;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 90, 95, 0.25);
    margin-bottom: 15px;
}

.airbnb-btn:hover {
    background: #FF4449;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 90, 95, 0.35);
}

.airbnb-btn i {
    margin-right: 6px;
    font-size: 1.1rem;
}

.airbnb-btn {
    display: inline-flex;
    align-items: center;
    background: #FF5A5F;
    color: white !important;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 90, 95, 0.25);
    margin-bottom: 15px;
}

.airbnb-btn:hover {
    background: #FF4449;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 90, 95, 0.35);
}

.airbnb-btn i {
    margin-right: 6px;
    font-size: 1.1rem;
}

/* =============================================
   FEATURES
   ============================================= */
.feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.feature i {
    vertical-align: middle;
    color: var(--primary-blue);
    font-size: 20px;
}

/* =============================================
   FOOTER
   ============================================= */
.page-footer {
    margin-top: 0;
    background-color: var(--bg-dark) !important;
}

.page-footer a:hover {
    color: var(--primary-blue) !important;
}

.footer-copyright {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* =============================================
   AVAILABILITY CHECKER
   ============================================= */
.availability-checker {
    background: var(--bg-section) !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
}

/* =============================================
   SPINNER
   ============================================= */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin-icon {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* =============================================
   RESPONSIVE (max-width: 992px)
   ============================================= */
@media (max-width: 992px) {
    .split-sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100vw;
        max-width: 100%;
        height: auto;
        max-height: 380px;
        z-index: 990;
        margin-left: 0;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: none; /* Changed from visibility: hidden to display: none */
        background: transparent !important;
        border-right: none;
        box-shadow: none;
        overflow-y: hidden;
        overflow-x: auto;
        padding-bottom: 20px;
    }

    .split-sidebar:not(.collapsed) {
        transform: translateY(0);
        display: block !important;
    }

    .split-sidebar.collapsed {
        transform: translateY(100%);
        display: none !important;
    }

    .split-header {
        display: none; /* Hide the header on mobile to save space */
    }

    .split-cards {
        display: flex !important;
        flex-wrap: nowrap !important;
        padding: 0 10px 10px 10px;
        margin: 0 !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .split-cards .col.s12 {
        width: 320px !important;
        min-width: 320px !important;
        padding: 0 8px !important;
        flex: 0 0 auto;
    }

    .split-map {
        height: 100% !important;
        flex-shrink: 0;
    }

    .floating-filters-container {
        width: 95%;
        top: 10px;
    }

    .floating-filters-card {
        padding: 10px 15px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.95); /* More solid on mobile for readability */
    }

    .custom-logo {
        font-size: 18px !important;
    }

    .logo-icon-img {
        height: 32px;
        width: 32px;
        margin-right: 8px;
    }

    .filter-row {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .filter-item {
        flex: none;
        width: calc(50% - 6px); /* Perfect 2-column split with gap account */
        border-right: none;
        padding-right: 0;
        background: rgba(255, 255, 255, 0.5); /* Semi-transparent for better depth */
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 12px;
        padding: 4px 10px;
        height: 40px;
        font-size: 0.75rem;
    }

    .filter-item i {
        font-size: 16px !important;
        opacity: 0.8;
    }

    .filter-item.search-action {
        width: 100%;
        justify-content: center;
        background: transparent;
        margin-top: 5px;
    }

    .search-trigger {
        width: 100% !important;
        border-radius: 12px !important;
        height: 48px !important;
    }

    .sidebar-floating-toggle {
        bottom: 20px;
        transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .split-sidebar:not(.collapsed) + .split-map .sidebar-floating-toggle {
        bottom: 340px;
    }
}

/* =============================================
   RESPONSIVE (max-width: 600px)
   ============================================= */
@media (max-width: 600px) {
    .filter-item {
        width: 48% !important;
        height: 40px !important; /* Slightly shorter */
        padding: 4px 8px !important;
    }

    .filter-item input, .filter-item select {
        font-size: 0.8rem !important;
        height: 32px !important;
    }

    .floating-filters-card {
        padding: 8px 12px !important;
        border-radius: 20px;
    }

    .search-trigger {
        margin-top: 5px;
        height: 44px !important;
    }

    .search-box {
        padding: 10px 15px;
    }

    .modal-content .custom-carousel {
        height: 250px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .split-header h5 {
        font-size: 1.2rem;
    }

    .page-footer {
        display: none !important; /* Hide massive footer on mobile index to prevent white space */
    }
}

/* =============================================
   LEAFLET PRICE MARKERS
   ============================================= */
.price-marker {
    background: white;
    border-radius: 980px;
    padding: 6px 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    text-align: center;
    white-space: nowrap;
    transition: var(--transition-smooth);
    font-size: 0.85rem;
}

.price-marker:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: scale(1.12);
    z-index: 1000 !important;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}
/* =============================================
   MAP MARKERS (Custom)
   ============================================= */
.custom-price-marker .price-marker {
    background: var(--primary-blue);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 113, 227, 0.4);
    border: 1.5px solid white;
    transition: transform 0.2s;
}

.custom-price-marker:hover .price-marker {
    transform: scale(1.1);
    background: #005BB5;
    z-index: 1000;
}

.custom-place-marker .place-marker {
    background: #E53935;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.5);
    border: 2px solid white;
    transition: transform 0.2s;
}

.custom-place-marker:hover .place-marker {
    transform: scale(1.2);
    background: #C62828;
    z-index: 1001;
}

.sm-icon {
    font-size: 16px !important;
}
