/* ==========================================================================
   PORTAL INMOBILIARIO - MAIN CSS (MOBILE FIRST & LUXURY AESTHETICS)
   ========================================================================== */

/* 1. Design Tokens & CSS Variables */
:root {
    --primary: #0f172a;        /* Slate 900 - Deep Luxury Black/Navy */
    --primary-light: #1e293b;  /* Slate 800 */
    --primary-dark: #020617;   /* Slate 950 */
    
    --accent: #2563eb;         /* Royal Blue */
    --accent-hover: #1d4ed8;
    --gold: #d97706;           /* Amber / Gold Luxury */
    --gold-light: #fef3c7;
    --gold-hover: #b45309;
    
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    
    --bg-main: #f8fafc;        /* Clean Pearl/Slate */
    --bg-card: #ffffff;
    --bg-surface: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    --border-focus: #3b82f6;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --shadow-float: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Outfit', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset & Base Styles (Mobile First) */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

/* 3. Utility Classes */
.container {
    width: 100%;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-venta {
    background-color: rgba(37, 99, 235, 0.12);
    color: var(--accent);
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-renta {
    background-color: rgba(217, 119, 6, 0.12);
    color: var(--gold);
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.badge-destacada {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.badge-disponible {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-apartado {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-vendido, .badge-rentado {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* 4. Header & Navigation (Mobile First) */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-main.scrolled {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    padding: 0.5rem 0;
    gap: 0.75rem;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
    letter-spacing: -0.02em;
    text-decoration: none;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .logo-brand {
        font-size: 1.35rem;
    }
}

.logo-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-serif);
    font-weight: 800;
    color: var(--primary);
}

.logo-accent {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.btn-admin-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.btn-admin-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-whatsapp-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
}

.btn-whatsapp-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   5. HERO SECTION (HIGH IMPACT LUXURY DESIGN & EFFECT WOW)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 4.5rem 0 5.5rem;
    background: #090e1a;
    color: white;
    overflow: hidden;
}

.hero-bg-media {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat;
    opacity: 0.32;
    filter: brightness(0.8);
    transform: scale(1.02);
    animation: heroZoom 24s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-glow-orb.orb-1 {
    top: -15%;
    left: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, transparent 70%);
    filter: blur(60px);
}

.hero-glow-orb.orb-2 {
    bottom: -15%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.3) 0%, transparent 70%);
    filter: blur(55px);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.02em;
}

.hero-pill i {
    color: #fbbf24;
    font-size: 0.95rem;
    animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 45%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.65;
    padding: 0 0.75rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Hero Trust Bar */
.hero-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f1f5f9;
}

.trust-item i {
    color: #fbbf24;
}

/* 6. Instant Search & Filter Bar */
.search-filter-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
    margin-top: -1.75rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-tab-btn {
    flex: 1;
    min-width: 90px;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.filter-tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .filter-grid {
        grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr auto;
        align-items: end;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 0.85rem;
    color: var(--text-light);
    pointer-events: none;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 0.85rem 0.75rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.btn-filter-search {
    background: linear-gradient(135deg, var(--accent), #1d4ed8);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
    width: 100%;
}

.btn-filter-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.category-chips-wrapper {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.chip-btn:hover, .chip-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 7. Properties Catalog Section */
.catalog-section {
    padding: 3rem 0 5rem;
}

.catalog-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .catalog-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.catalog-title-group h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.catalog-title-group p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

.catalog-counter {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    align-self: flex-start;
}

.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Property Card */
.property-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.3);
}

.property-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #cbd5e1;
    overflow: hidden;
}

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

.property-card:hover .property-img {
    transform: scale(1.08);
}

.property-badges-top {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.property-badges-left {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.property-photo-count {
    background: rgba(15, 23, 42, 0.75);
    color: white;
    backdrop-filter: blur(4px);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.property-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.property-price-period {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.property-type-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.property-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.property-location i {
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.property-specs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--text-main);
    font-weight: 600;
}

.spec-item i {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.property-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

.btn-card-details {
    flex: 1;
    background: var(--bg-surface);
    color: var(--primary);
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.btn-card-details:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-card-wa {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-card-wa:hover {
    background: var(--whatsapp-green);
    color: white;
    border-color: var(--whatsapp-green);
}

.empty-catalog {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.empty-catalog-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-catalog h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.empty-catalog p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   8. PROPERTY DETAIL MODAL (CLEAN & COMPLETE WITHOUT OVERLAP)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-sheet {
    background: var(--bg-card);
    width: 100%;
    max-height: 94vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-float);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-sheet {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
        padding: 1.5rem;
    }
    .modal-sheet {
        max-width: 900px;
        max-height: 90vh;
        border-radius: var(--radius-lg);
        transform: scale(0.95) translateY(20px);
    }
    .modal-overlay.active .modal-sheet {
        transform: scale(1) translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.85);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 50;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

/* Swiper Gallery Container */
.modal-gallery-container {
    width: 100%;
    height: 280px;
    background: #020617;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

@media (min-width: 640px) {
    .modal-gallery-container {
        height: 380px;
    }
}

@media (min-width: 1024px) {
    .modal-gallery-container {
        height: 440px;
    }
}

.propertyModalSwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #020617;
}

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

/* Content Body inside Modal */
.modal-content-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-card);
}

@media (min-width: 768px) {
    .modal-content-body {
        padding: 2rem 2.25rem;
    }
}

.modal-header-info {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.modal-badges-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.modal-location-badge i {
    color: var(--accent);
}

.modal-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    word-break: break-word;
}

@media (min-width: 768px) {
    .modal-title {
        font-size: 1.85rem;
    }
}

/* Specs Grid */
.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    background: var(--bg-surface);
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

@media (min-width: 640px) {
    .modal-specs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.modal-spec-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-spec-card .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.modal-spec-card .val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-description {
    color: var(--text-main);
    line-height: 1.75;
    font-size: 0.95rem;
    white-space: pre-line;
}

.amenities-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.modal-media-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.property-map-container {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    z-index: 10;
}

.video-responsive-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: #000;
}

.video-responsive-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Modal Bottom Sticky CTA */
.modal-footer-cta {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 30;
}

.btn-modal-wa {
    flex: 1;
    background: var(--whatsapp-green);
    color: white;
    border: none;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
}

.btn-modal-wa:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
}

/* 9. Floating WhatsApp Widget */
.whatsapp-float-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-bubble-popup {
    background: white;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: bounceSlow 3s infinite;
    cursor: pointer;
}

.whatsapp-bubble-popup .status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
}

.whatsapp-float-btn {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    z-index: -1;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* 10. Footer */
.footer-main {
    background: var(--primary);
    color: #94a3b8;
    padding: 3.5rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid var(--primary-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1.5fr 1.5fr;
    }
}

.footer-brand h4 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: white;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-col h5 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li a {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--primary-light);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
}

/* Custom Leaflet Map Pin */
.custom-map-marker {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    padding: 0.4rem 0.75rem;
    font-weight: 700;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    white-space: nowrap;
}

.custom-map-marker i {
    color: var(--gold);
}
