/* =============================================================
   MARKETPLACE GLASSMORPHISM - iOS Vision Pro Style
   Colors: Gold #C5A059 | Black #111827
   ============================================================= */

:root {
    --mp-gold: #C5A059;
    --mp-gold-light: #D4B978;
    --mp-gold-dark: #A88A42;
    --gold-gradient: linear-gradient(135deg, #DFBD69 0%, #926F34 100%);
    --mp-black: #111827;
    --mp-black-light: #1F2937;
    --mp-glass-bg: rgba(255, 255, 255, 0.08);
    --mp-glass-bg-light: rgba(255, 255, 255, 0.12);
    --mp-glass-border: rgba(255, 255, 255, 0.15);
    --mp-glass-border-light: rgba(255, 255, 255, 0.25);
    --mp-shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.12);
    --mp-shadow-medium: 0 12px 48px rgba(0, 0, 0, 0.2);
    --mp-radius-lg: 20px;
    --mp-radius-xl: 28px;
    --mp-radius-2xl: 36px;
    --font-system: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --mp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Light Mode Variables ===== */
body.light-mode {
    --mp-bg-primary: #FAFAFA;
    --mp-bg-secondary: #FFFFFF;
    --mp-text-primary: #111827;
    --mp-text-secondary: #4B5563;
    --mp-text-muted: #9CA3AF;
    --mp-glass-bg: rgba(255, 255, 255, 0.75);
    --mp-glass-bg-light: rgba(255, 255, 255, 0.85);
    --mp-glass-border: rgba(0, 0, 0, 0.06);
    --mp-glass-border-light: rgba(0, 0, 0, 0.1);
    --mp-card-bg: #FFFFFF;
    --mp-card-hover-bg: #F9FAFB;
}

/* ===== DARK PREMIUM HEADER (Like Inmobiliarias) ===== */
nav.dark-premium-header,
.dark-premium-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 70px !important;
    z-index: 1000 !important;
    background: #000000 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

nav.dark-premium-header .nav-content,
.dark-premium-header .nav-content {
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    display: flex !important;
    width: 100% !important;
}

/* Header Button Style */
.nav-links .btn-gold,
.nav-links a.btn-gold {
    background: var(--gold-gradient) !important;
    color: #000 !important;
    font-weight: 800;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.nav-links .btn-gold:hover,
.nav-links a.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: #000 !important;
}

nav.dark-premium-header .logo,
.dark-premium-header .logo {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: white !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
}

nav.dark-premium-header .logo i,
.dark-premium-header .logo i {
    color: var(--mp-gold) !important;
    font-size: 1.2rem !important;
}

nav.dark-premium-header .nav-links,
.dark-premium-header .nav-links {
    display: none !important;
    gap: 2rem !important;
    align-items: center !important;
}

@media (min-width: 900px) {

    nav.dark-premium-header .nav-links,
    .dark-premium-header .nav-links {
        display: flex !important;
    }
}

nav.dark-premium-header .nav-links a,
.dark-premium-header .nav-links a {
    text-decoration: none !important;
    color: #A0A0A0 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    padding: 0.5rem 0 !important;
    position: relative !important;
}

nav.dark-premium-header .nav-links a:not(.btn):hover,
nav.dark-premium-header .nav-links a:not(.btn).active,
.dark-premium-header .nav-links a:not(.btn):hover,
.dark-premium-header .nav-links a:not(.btn).active {
    color: white !important;
}

nav.dark-premium-header .nav-links a:not(.btn)::after,
.dark-premium-header .nav-links a:not(.btn)::after {
    display: none !important;
}

/* 
nav.dark-premium-header .nav-links .btn-gold,
nav.dark-premium-header .nav-links a.btn-gold,
.dark-premium-header .nav-links .btn-gold,
.dark-premium-header .nav-links a.btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #F9E493 50%, #D4AF37 100%) !important;
    color: #000 !important;
    font-weight: 800 !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    transition: all 0.3s !important;
    border: none !important;
}

nav.dark-premium-header .nav-links .btn-gold:hover,
nav.dark-premium-header .nav-links a.btn-gold:hover,
.dark-premium-header .nav-links .btn-gold:hover,
.dark-premium-header .nav-links a.btn-gold:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
}
*/

nav.dark-premium-header .mobile-menu-btn,
.dark-premium-header .mobile-menu-btn {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    z-index: 150 !important;
}

nav.dark-premium-header .mobile-menu-btn span,
.dark-premium-header .mobile-menu-btn span {
    width: 24px !important;
    height: 2px !important;
    background: white !important;
    transition: all 0.3s ease !important;
    border-radius: 2px !important;
}

@media (min-width: 900px) {

    nav.dark-premium-header .mobile-menu-btn,
    .dark-premium-header .mobile-menu-btn {
        display: none !important;
    }
}

/* ===== HERO SECTION WITH CAROUSEL ===== */
.marketplace-hero {
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #111;
    min-height: 420px;
    /* Note: Layout provides 70px spacer, so no margin-top needed */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(17, 17, 17, 0.6) 50%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.marketplace-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.marketplace-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

/* Hero Badges */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-badge i {
    color: var(--mp-gold);
    font-size: 1.1rem;
}

/* Market Tabs in Hero */
.market-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.market-tabs .tab-btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.market-tabs .tab-btn.active {
    background: var(--mp-gold);
    border-color: var(--mp-gold);
    color: white;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
}

.market-tabs .tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Spacer for fixed nav */
.nav-spacer {
    height: 70px;
}

/* ===== HEADER GLASS NAVBAR (HIGH SPECIFICITY) ===== */
nav.glass-header,
.glass-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body:not(.light-mode) nav.glass-header,
body:not(.light-mode) .glass-header {
    background: rgba(17, 24, 39, 0.82) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Glass Header Content */
nav.glass-header .nav-content,
.glass-header .nav-content {
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0.875rem 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Glass Header Logo */
nav.glass-header .logo,
.glass-header .logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    font-family: var(--font-system) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: var(--mp-black) !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body:not(.light-mode) nav.glass-header .logo,
body:not(.light-mode) .glass-header .logo {
    color: #fff !important;
}

nav.glass-header .logo i,
.glass-header .logo i {
    color: var(--mp-gold) !important;
    font-size: 1.15rem !important;
}

/* Glass Header Navigation Links */
nav.glass-header .nav-links,
.glass-header .nav-links {
    display: none !important;
    gap: 2rem !important;
    align-items: center !important;
}

@media (min-width: 900px) {

    nav.glass-header .nav-links,
    .glass-header .nav-links {
        display: flex !important;
    }
}

nav.glass-header .nav-links a,
.glass-header .nav-links a {
    text-decoration: none !important;
    color: var(--mp-text-secondary, #4B5563) !important;
    font-family: var(--font-system) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    padding: 0.5rem 0.25rem !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

nav.glass-header .nav-links a:not(.btn):hover,
.glass-header .nav-links a:not(.btn):hover {
    color: var(--mp-text-primary, #111827) !important;
}

nav.glass-header .nav-links a:not(.btn)::after,
.glass-header .nav-links a:not(.btn)::after {
    content: '' !important;
    position: absolute !important;
    width: 0 !important;
    height: 2px !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: var(--mp-gold) !important;
    transition: width 0.3s ease !important;
    border-radius: 2px !important;
}

nav.glass-header .nav-links a:not(.btn):hover::after,
nav.glass-header .nav-links a:not(.btn).active::after,
.glass-header .nav-links a:not(.btn):hover::after,
.glass-header .nav-links a:not(.btn).active::after {
    width: 100% !important;
}

nav.glass-header .nav-links a.active,
.glass-header .nav-links a.active {
    color: var(--mp-gold) !important;
    font-weight: 600 !important;
}

/* Glass Header Button */
nav.glass-header .nav-links .btn-gold,
nav.glass-header .nav-links a.btn-gold,
.glass-header .nav-links .btn-gold,
.glass-header .nav-links a.btn-gold {
    background: linear-gradient(135deg, var(--mp-gold) 0%, var(--mp-gold-dark) 100%) !important;
    color: white !important;
    padding: 0.65rem 1.5rem !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35) !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

nav.glass-header .nav-links .btn-gold:hover,
nav.glass-header .nav-links a.btn-gold:hover,
.glass-header .nav-links .btn-gold:hover,
.glass-header .nav-links a.btn-gold:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.45) !important;
}

nav.glass-header .nav-links .btn-gold::after,
nav.glass-header .nav-links a.btn-gold::after,
.glass-header .btn-gold::after,
.glass-header a.btn-gold::after {
    display: none !important;
}

/* Glass Header Mobile Menu Button */
nav.glass-header .mobile-menu-btn,
.glass-header .mobile-menu-btn {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    z-index: 150 !important;
}

nav.glass-header .mobile-menu-btn span,
.glass-header .mobile-menu-btn span {
    width: 22px !important;
    height: 2px !important;
    background: var(--mp-text-primary, #111827) !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
}

@media (min-width: 900px) {

    nav.glass-header .mobile-menu-btn,
    .glass-header .mobile-menu-btn {
        display: none !important;
    }
}

/* Glass Header Mobile Menu */
nav.glass-header~.mobile-menu,
.glass-header~.mobile-menu,
.glass-header .mobile-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 100% !important;
    max-width: 380px !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 1050 !important;
    padding: 7rem 2rem 2rem !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1) !important;
}

nav.glass-header~.mobile-menu.open,
.glass-header~.mobile-menu.open,
.glass-header .mobile-menu.open {
    right: 0 !important;
}

/* Glass Search Box in Header */
.header-search-box {
    flex: 1;
    max-width: 480px;
    margin: 0 2rem;
}

.header-search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--mp-transition);
}

.header-search-container:focus-within {
    border-color: var(--mp-gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.header-search-container input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--mp-text-primary);
    outline: none;
}

.header-search-container input::placeholder {
    color: var(--mp-text-muted);
}

.header-search-container .search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mp-gold) 0%, var(--mp-gold-dark) 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mp-transition);
}

.header-search-container .search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
}

/* ===== STICKY CATEGORY FILTER BAR (AIRBNB STYLE) ===== */
.category-filter-bar {
    position: sticky;
    top: 70px;
    /* Height of dark-premium-header */
    z-index: 900;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    transition: var(--mp-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body:not(.light-mode) .category-filter-bar {
    background: rgba(17, 24, 39, 0.8);
}

.category-filter-bar .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.category-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.category-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

/* Category Item (Airbnb Style) */
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    min-width: fit-content;
    transition: var(--mp-transition);
    border-bottom: 2px solid transparent;
    opacity: 0.7;
}

.category-item:hover {
    opacity: 1;
}

.category-item.active {
    opacity: 1;
    border-bottom-color: var(--mp-gold);
}

.category-item .cat-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--mp-text-secondary);
    transition: var(--mp-transition);
}

.category-item.active .cat-icon {
    color: var(--mp-gold);
}

.category-item .cat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mp-text-secondary);
    white-space: nowrap;
    transition: var(--mp-transition);
}

.category-item.active .cat-label {
    color: var(--mp-text-primary);
    font-weight: 600;
}

/* Category Navigation Arrows */
.cat-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--mp-shadow-soft);
    transition: var(--mp-transition);
}

.cat-nav-arrow:hover {
    background: var(--mp-card-hover-bg);
    box-shadow: var(--mp-shadow-medium);
}

.cat-nav-arrow.left {
    left: 0;
    background: linear-gradient(90deg, var(--mp-card-bg) 60%, transparent);
    padding-right: 20px;
    border-radius: 0 50% 50% 0;
}

.cat-nav-arrow.right {
    right: 0;
    background: linear-gradient(-90deg, var(--mp-card-bg) 60%, transparent);
    padding-left: 20px;
    border-radius: 50% 0 0 50%;
}

/* ===== SECONDARY FILTERS ROW ===== */
.secondary-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

body:not(.light-mode) .secondary-filters {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--mp-glass-bg);
    border: 1px solid var(--mp-glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mp-text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--mp-transition);
}

.filter-pill:hover {
    background: var(--mp-glass-bg-light);
    border-color: var(--mp-glass-border-light);
}

.filter-pill.active {
    background: var(--mp-black);
    color: white;
    border-color: var(--mp-black);
}

body:not(.light-mode) .filter-pill.active {
    background: var(--mp-gold);
    border-color: var(--mp-gold);
    color: var(--mp-black);
}

.filter-pill i {
    font-size: 0.75rem;
}

/* Filters Button (Airbnb Style) */
.filters-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-glass-border-light);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mp-text-primary);
    cursor: pointer;
    transition: var(--mp-transition);
}

.filters-toggle-btn:hover {
    border-color: var(--mp-black);
}

.filters-toggle-btn .filter-count {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--mp-gold);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESULTS SECTION ===== */
.results-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--mp-text-secondary);
}

.results-count strong {
    color: var(--mp-text-primary);
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-wrapper label {
    font-size: 0.85rem;
    color: var(--mp-text-muted);
}

.sort-select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--mp-glass-border);
    background: var(--mp-card-bg);
    font-size: 0.85rem;
    color: var(--mp-text-primary);
    cursor: pointer;
    transition: var(--mp-transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--mp-gold);
}

/* ===== PROPERTIES GRID ===== */
.properties-grid-glass {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

@media (max-width: 768px) {
    .properties-grid-glass {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ===== PROPERTY CARD - GLASS DESIGN ===== */
.property-card-glass {
    display: block;
    text-decoration: none;
    background: var(--mp-card-bg);
    border-radius: var(--mp-radius-xl);
    overflow: hidden;
    border: 1px solid var(--mp-glass-border);
    transition: var(--mp-transition);
}

.property-card-glass:hover {
    transform: translateY(-4px);
    box-shadow: var(--mp-shadow-medium);
    border-color: var(--mp-glass-border-light);
}

.property-card-glass .card-image-container {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--mp-radius-xl) var(--mp-radius-xl) 0 0;
}

.property-card-glass .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card-glass:hover .card-image {
    transform: scale(1.05);
}

/* Image Carousel Dots */
.card-image-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.card-image-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--mp-transition);
}

.card-image-dots .dot.active {
    background: white;
    width: 8px;
    height: 8px;
}

/* Card Badges */
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.badge-glass {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-glass.venta {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.badge-glass.renta {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.badge-glass.development {
    background: linear-gradient(135deg, var(--mp-gold) 0%, var(--mp-gold-dark) 100%);
    color: white;
}

/* Favorite Button */
.favorite-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    color: var(--mp-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mp-transition);
}

.favorite-btn:hover {
    background: white;
    color: #ef4444;
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ef4444;
}

.favorite-btn.active i {
    font-weight: 900;
}

/* Card Content */
.property-card-glass .card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.property-card-glass .card-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.property-card-glass .card-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mp-text-primary);
}

.property-card-glass .card-location i {
    color: var(--mp-gold);
    font-size: 0.75rem;
}

.property-card-glass .card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mp-text-primary);
}

.property-card-glass .card-rating i {
    color: var(--mp-gold);
    font-size: 0.8rem;
}

.property-card-glass .card-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--mp-text-secondary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-glass .card-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.property-card-glass .feature-tag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--mp-text-muted);
}

.property-card-glass .feature-tag i {
    font-size: 0.75rem;
}

.property-card-glass .card-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mp-text-primary);
}

.property-card-glass .card-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--mp-text-muted);
}

/* Agency Badge */
.card-agency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--mp-gold-dark);
}

.card-agency-badge i {
    font-size: 0.7rem;
}

/* ===== DEVELOPMENT CARD (Premium) ===== */
.property-card-glass.development-card {
    background: linear-gradient(135deg, var(--mp-black) 0%, var(--mp-black-light) 100%);
    border-color: rgba(197, 160, 89, 0.2);
}

.property-card-glass.development-card .card-body {
    color: white;
}

.property-card-glass.development-card .card-location,
.property-card-glass.development-card .card-title,
.property-card-glass.development-card .card-price,
.property-card-glass.development-card .card-rating {
    color: white;
}

.property-card-glass.development-card .card-title,
.property-card-glass.development-card .feature-tag {
    color: rgba(255, 255, 255, 0.7);
}

.dev-premium-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mp-gold);
    margin-bottom: 0.5rem;
}

.dev-progress-bar {
    margin-top: 0.75rem;
}

.dev-progress-bar .bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.dev-progress-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mp-gold) 0%, var(--mp-gold-light) 100%);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.dev-progress-bar .bar-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== ADVANCED FILTER PANEL (Desktop + Mobile) ===== */

/* Filter Overlay - shared between desktop and mobile */
.filter-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--mp-transition);
}

.filter-panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Desktop: Side Panel from Right */
@media (min-width: 769px) {
    .advanced-filter-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: 480px;
        max-width: 90vw;
        height: 100vh;
        background: var(--mp-card-bg, #FFFFFF);
        z-index: 1101;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        display: flex;
        flex-direction: column;
        box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    }

    .advanced-filter-panel.open {
        transform: translateX(0);
    }

    .filter-panel-handle {
        display: none;
    }

    .filter-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 32px;
        border-bottom: 1px solid var(--mp-glass-border);
    }

    .filter-panel-header h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--mp-text-primary);
        margin: 0;
    }

    .filter-panel-subtitle {
        font-size: 0.8rem;
        color: var(--mp-text-muted);
        margin-top: 4px;
    }

    .filter-panel-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #F3F4F6;
        border: none;
        color: var(--mp-text-secondary);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        transition: var(--mp-transition);
    }

    .filter-panel-close:hover {
        background: #E5E7EB;
        color: var(--mp-text-primary);
    }

    .filter-panel-content {
        flex: 1;
        overflow-y: auto;
        padding: 24px 32px;
    }

    .filter-panel-section {
        margin-bottom: 28px;
    }

    .filter-section-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--mp-text-primary);
        margin-bottom: 14px;
    }

    .filter-section-title i {
        color: var(--mp-gold);
        font-size: 0.9rem;
    }

    .filter-panel-footer {
        padding: 20px 32px;
        border-top: 1px solid var(--mp-glass-border);
        display: flex;
        gap: 12px;
        background: #FAFAFA;
    }

    .filter-panel-footer .btn-clear-filters {
        flex: 1;
        padding: 14px;
        background: white;
        border: 1px solid #E5E7EB;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--mp-text-primary);
        cursor: pointer;
        transition: var(--mp-transition);
    }

    .filter-panel-footer .btn-clear-filters:hover {
        border-color: #D1D5DB;
        background: #F9FAFB;
    }

    .filter-panel-footer .btn-apply-filters {
        flex: 2;
        padding: 14px;
        background: var(--mp-black);
        border: none;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 600;
        color: white;
        cursor: pointer;
        transition: var(--mp-transition);
    }

    .filter-panel-footer .btn-apply-filters:hover {
        background: #1F2937;
        transform: translateY(-1px);
    }
}

/* Mobile: Bottom Sheet */
@media (max-width: 768px) {
    .advanced-filter-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 90vh;
        background: var(--mp-card-bg, #FFFFFF);
        border-radius: 24px 24px 0 0;
        z-index: 1101;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        display: flex;
        flex-direction: column;
    }

    .advanced-filter-panel.open {
        transform: translateY(0);
    }

    .filter-panel-handle {
        width: 40px;
        height: 4px;
        background: #D1D5DB;
        border-radius: 2px;
        margin: 12px auto 8px;
    }

    .filter-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px 16px;
        border-bottom: 1px solid var(--mp-glass-border);
    }

    .filter-panel-header h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--mp-text-primary);
        margin: 0;
    }

    .filter-panel-subtitle {
        display: none;
    }

    .filter-panel-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #F3F4F6;
        border: none;
        color: var(--mp-text-secondary);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .filter-panel-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
    }

    .filter-panel-section {
        margin-bottom: 24px;
    }

    .filter-section-title {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--mp-text-muted);
        margin-bottom: 12px;
    }

    .filter-section-title i {
        color: var(--mp-gold);
    }

    .filter-panel-footer {
        padding: 16px 20px;
        border-top: 1px solid var(--mp-glass-border);
        display: flex;
        gap: 12px;
        background: #FAFAFA;
    }

    .filter-panel-footer .btn-clear-filters {
        flex: 1;
        padding: 14px;
        background: white;
        border: 1px solid #E5E7EB;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--mp-text-primary);
        cursor: pointer;
    }

    .filter-panel-footer .btn-apply-filters {
        flex: 2;
        padding: 14px;
        background: var(--mp-black);
        border: none;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 600;
        color: white;
        cursor: pointer;
    }
}

/* Filter Panel Inputs */
.filter-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.filter-input-group.full-width {
    grid-template-columns: 1fr;
}

.filter-input {
    width: 100%;
    padding: 12px 14px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--mp-text-primary);
    transition: var(--mp-transition);
}

.filter-input:focus {
    outline: none;
    border-color: var(--mp-black);
    background: white;
}

.filter-input::placeholder {
    color: #9CA3AF;
}

.filter-select {
    width: 100%;
    padding: 12px 14px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--mp-text-primary);
    cursor: pointer;
    transition: var(--mp-transition);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--mp-black);
    background-color: white;
}

/* Quick Select Buttons */
.filter-quick-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-quick-btn {
    padding: 10px 16px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mp-text-secondary);
    cursor: pointer;
    transition: var(--mp-transition);
}

.filter-quick-btn:hover {
    border-color: #D1D5DB;
    color: var(--mp-text-primary);
}

.filter-quick-btn.active {
    background: var(--mp-black);
    border-color: var(--mp-black);
    color: white;
}

/* Amenities Checkboxes */
.filter-amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.filter-amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--mp-transition);
}

.filter-amenity-item:hover {
    border-color: #D1D5DB;
}

.filter-amenity-item.checked {
    background: #F0FDF4;
    border-color: #22C55E;
}

.filter-amenity-item input[type="checkbox"] {
    display: none;
}

.filter-amenity-check {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--mp-transition);
}

.filter-amenity-item.checked .filter-amenity-check {
    background: #22C55E;
    border-color: #22C55E;
    color: white;
}

.filter-amenity-label {
    font-size: 0.85rem;
    color: var(--mp-text-primary);
}

.filter-amenity-label i {
    margin-right: 6px;
    color: var(--mp-text-muted);
    width: 16px;
}

/* Range Slider Styling */
.filter-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--mp-text-secondary);
    margin-bottom: 8px;
}

.filter-range-display strong {
    color: var(--mp-text-primary);
}

/* Active Filter Tags */
.active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 8px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4338CA;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: #6366F1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.active-filter-tag button:hover {
    color: #4338CA;
}

/* Mobile Filter FAB (same as before) */
.mobile-filter-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.875rem 1.5rem;
    background: var(--mp-black);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 800;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    transition: var(--mp-transition);
}

.mobile-filter-fab:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.35);
}

.mobile-filter-fab i {
    margin-right: 0.5rem;
}

.mobile-filter-fab .filter-count {
    background: var(--mp-gold);
    color: black;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .mobile-filter-fab {
        display: flex;
        align-items: center;
    }

    .secondary-filters {
        display: none;
    }

    .header-search-box {
        display: none;
    }

    .glass-header .nav-links {
        display: none;
    }
}

/* Legacy drawer classes - keep for backwards compatibility */
.mobile-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--mp-transition);
}

.mobile-filter-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-filter-drawer {
    display: none; /* Hidden in favor of new panel */
}

.drawer-handle { display: none; }
.drawer-header { display: none; }
.drawer-close-btn { display: none; }
.drawer-content { display: none; }
.drawer-section { display: none; }
.drawer-section-title { display: none; }
.drawer-footer { display: none; }

/* ===== INPUT STYLES ===== */
.glass-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--mp-glass-bg);
    border: 1px solid var(--mp-glass-border);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--mp-text-primary);
    transition: var(--mp-transition);
}

.glass-input:focus {
    outline: none;
    border-color: var(--mp-gold);
    background: var(--mp-glass-bg-light);
}

.glass-input::placeholder {
    color: var(--mp-text-muted);
}

.glass-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--mp-glass-bg);
    border: 1px solid var(--mp-glass-border);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--mp-text-primary);
    cursor: pointer;
    transition: var(--mp-transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.glass-select:focus {
    outline: none;
    border-color: var(--mp-gold);
}

/* ===== PAGINATION ===== */
.pagination-glass {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.pagination-glass .page-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-glass-border);
    color: var(--mp-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mp-transition);
}

.pagination-glass .page-btn:hover:not(:disabled) {
    background: var(--mp-glass-bg-light);
    border-color: var(--mp-glass-border-light);
}

.pagination-glass .page-btn.active {
    background: var(--mp-black);
    border-color: var(--mp-black);
    color: white;
}

body:not(.light-mode) .pagination-glass .page-btn.active {
    background: var(--mp-gold);
    border-color: var(--mp-gold);
    color: var(--mp-black);
}

.pagination-glass .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-glass .page-ellipsis {
    color: var(--mp-text-muted);
    padding: 0 0.5rem;
}

/* ===== EMPTY STATE - Enhanced No Results ===== */
.empty-state-glass {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, #FAFAFA 0%, #F3F4F6 100%);
    border-radius: var(--mp-radius-xl);
    border: 1px solid #E5E7EB;
}

.empty-state-glass .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

.empty-state-glass .empty-icon i {
    font-size: 2rem;
    color: #B45309;
}

.empty-state-glass h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--mp-text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-glass p {
    font-size: 0.95rem;
    color: var(--mp-text-secondary);
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.empty-state-glass .empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state-glass .btn-outline-gold {
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 2px solid var(--mp-gold);
    border-radius: 10px;
    color: #92400E;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mp-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.empty-state-glass .btn-outline-gold:hover {
    background: #FEF3C7;
    border-color: #B45309;
}

.empty-state-glass .btn-solid-gold {
    padding: 0.875rem 1.5rem;
    background: var(--mp-black);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mp-transition);
}

.empty-state-glass .btn-solid-gold:hover {
    background: #1F2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ===== NO RESULTS - Lead Capture Inline Form ===== */
.no-results-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px 0;
}

.no-results-empty-state {
    text-align: center;
    padding: 48px 32px;
    background: white;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.no-results-empty-state .empty-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-empty-state .empty-icon i {
    font-size: 2.25rem;
    color: #B45309;
}

.no-results-empty-state h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.no-results-empty-state p {
    font-size: 1rem;
    color: #6B7280;
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.no-results-empty-state .empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.no-results-empty-state .btn-outline {
    padding: 12px 24px;
    background: white;
    border: 2px solid #D4AF37;
    border-radius: 10px;
    color: #92400E;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mp-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.no-results-empty-state .btn-outline:hover {
    background: #FFFBEB;
}

.no-results-empty-state .btn-primary {
    padding: 12px 24px;
    background: #111827;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mp-transition);
}

.no-results-empty-state .btn-primary:hover {
    background: #1F2937;
}

/* Inline Lead Capture Form */
.no-results-lead-form {
    background: white;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lead-form-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.lead-form-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lead-form-icon i {
    font-size: 1.25rem;
    color: #1D4ED8;
}

.lead-form-header-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.lead-form-header-text p {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

.lead-form-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.lead-form-inputs input {
    flex: 1;
    padding: 14px 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #111827;
    transition: var(--mp-transition);
}

.lead-form-inputs input:focus {
    outline: none;
    border-color: #111827;
    background: white;
}

.lead-form-inputs input::placeholder {
    color: #9CA3AF;
}

.lead-form-submit {
    width: 100%;
    padding: 14px;
    background: #111827;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mp-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lead-form-submit:hover {
    background: #1F2937;
}

.lead-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lead-form-disclaimer {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 12px;
    text-align: center;
}

.lead-form-success {
    text-align: center;
    padding: 24px;
}

.lead-form-success .success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-form-success .success-icon i {
    font-size: 1.75rem;
    color: #059669;
}

.lead-form-success h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.lead-form-success p {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
}

@media (max-width: 768px) {
    .no-results-lead-form {
        padding: 24px 20px;
    }

    .lead-form-inputs {
        flex-direction: column;
    }

    .lead-form-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ===== LOADING SPINNER ===== */
.loading-overlay-glass {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--mp-transition);
}

.loading-overlay-glass.show {
    opacity: 1;
    visibility: visible;
}

body:not(.light-mode) .loading-overlay-glass {
    background: rgba(17, 24, 39, 0.85);
}

.loading-spinner-glass {
    width: 48px;
    height: 48px;
    border: 3px solid var(--mp-glass-border);
    border-top-color: var(--mp-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== SEO FOOTER SECTION ===== */
.seo-footer-glass {
    background: var(--mp-black);
    padding: 4rem 2rem;
    margin-top: 3rem;
}

.seo-footer-glass .container {
    max-width: 1440px;
    margin: 0 auto;
}

.seo-footer-glass .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.seo-footer-glass h4 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--mp-gold);
    margin-bottom: 1rem;
}

.seo-footer-glass ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.seo-footer-glass a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--mp-transition);
}

.seo-footer-glass a:hover {
    color: white;
}

.seo-footer-glass .about-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== HERO SECTION (MINIMAL) ===== */
.marketplace-hero-minimal {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.hero-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mp-text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--mp-transition);
}

.hero-tab:hover {
    background: var(--mp-glass-bg);
}

.hero-tab.active {
    background: var(--mp-black);
    color: white;
}

body:not(.light-mode) .hero-tab.active {
    background: var(--mp-gold);
    color: var(--mp-black);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .results-section {
        padding: 1.5rem;
    }

    .properties-grid-glass {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .category-filter-bar {
        top: 62px;
    }

    .category-filter-bar .container {
        padding: 0 1rem;
    }

    .category-scroll {
        gap: 1.25rem;
    }

    .results-section {
        padding: 1rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .marketplace-hero-minimal {
        padding: 1rem;
    }

    .hero-tabs {
        flex-wrap: wrap;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card-glass {
    animation: fadeInUp 0.5s ease forwards;
}

.property-card-glass:nth-child(1) {
    animation-delay: 0.05s;
}

.property-card-glass:nth-child(2) {
    animation-delay: 0.1s;
}

.property-card-glass:nth-child(3) {
    animation-delay: 0.15s;
}

.property-card-glass:nth-child(4) {
    animation-delay: 0.2s;
}

.property-card-glass:nth-child(5) {
    animation-delay: 0.25s;
}

.property-card-glass:nth-child(6) {
    animation-delay: 0.3s;
}

/* ============================================================
   AGENCY MARKETPLACE STYLES (Synced from legacy blade)
   ============================================================ */

/* Agency Search */
.search-filters-container {
    max-width: 1200px;
    margin: -2.5rem auto 4rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--mp-radius-xl);
    box-shadow: var(--mp-shadow-medium);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: minmax(250px, 3fr) minmax(200px, 2fr) minmax(130px, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.search-input-group {
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mp-text-muted);
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--mp-radius-lg);
    font-size: 1rem;
    background: #FAFAFA;
    font-family: var(--font-system);
}

.search-input:focus {
    outline: none;
    border-color: var(--mp-gold);
    background: white;
}

.btn-search {
    background: var(--mp-black);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--mp-radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-search:hover {
    background: black;
    transform: translateY(-1px);
}

/* Agency Grid */
/* Agency List Layout */
.agency-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.agency-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: row;
    /* Horizontal Layout */
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    min-height: 140px;
}

.agency-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--mp-gold);
}

.agency-header {
    width: 160px;
    /* Fixed width sidebar */
    height: auto;
    background: linear-gradient(135deg, #1a1a1a, #333);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agency-logo-wrapper {
    position: relative;
    bottom: auto;
    left: auto;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.agency-logo-wrapper img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.agency-logo-wrapper .logo-placeholder {
    font-size: 2rem;
    color: var(--mp-gold);
    font-family: 'Playfair Display', serif;
}

.agency-content {
    padding: 1.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agency-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--mp-text-primary);
}

.agency-location {
    color: var(--mp-text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.agency-stats {
    display: flex;
    gap: 3rem;
    border-top: none;
    padding-top: 0;
    margin-top: 0.5rem;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 1.25rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mp-text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--mp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agency-footer-card {
    padding: 0 2rem;
    background: transparent;
    border-top: none;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.btn-view-profile {
    display: inline-block;
    font-weight: 600;
    color: var(--mp-text-primary);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.agency-card:hover .btn-view-profile {
    color: var(--mp-gold);
}

@media (max-width: 900px) {
    .agency-card {
        flex-direction: column;
        min-height: auto;
    }

    .agency-header {
        width: 100%;
        height: 100px;
    }

    .agency-logo-wrapper {
        position: absolute;
        bottom: -30px;
        left: 2rem;
        width: 80px;
        height: 80px;
    }

    .agency-content {
        padding: 3rem 1.5rem 1.5rem;
    }

    .agency-footer-card {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: 1.5rem;
        min-width: auto;
    }

    .agency-stats {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-top: 1.5rem;
    }

    .stat-item {
        text-align: center;
        flex: 1;
    }

    .search-filters-container {
        grid-template-columns: 1fr;
        margin-top: -1.5rem;
    }
}

/* ============================================================
   PAGINATION STYLES
   ============================================================ */
.pagination-glass {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    align-items: center;
}

.page-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--mp-radius-lg);
    background: white;
    cursor: pointer;
    transition: 0.3s;
    color: var(--mp-text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.page-btn.active {
    background: var(--mp-black);
    color: white;
    border-color: var(--mp-black);
}

.page-btn:hover:not(.active):not(:disabled) {
    border-color: var(--mp-gold);
    color: var(--mp-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--mp-text-muted);
    padding: 0 0.5rem;
}