/* Lightning Home Solutions - Luxurious Design System */
/* Beige & Gold Color Palette */

:root {
    /* Colors */
    --color-beige-light: #F5F5DC;
    --color-beige-medium: #E8D7C3;
    --color-beige-dark: #D4C5B0;
    --color-gold-primary: #D4AF37;
    --color-gold-secondary: #C9A961;
    --color-dark: #2C2416;
    --color-white: #FFFFFF;
    --color-error: #C94A4A;
    --color-success: #6B8E60;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 36, 22, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 36, 22, 0.12);
    --shadow-lg: 0 8px 32px rgba(44, 36, 22, 0.16);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-beige-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
    color: var(--color-dark);
    opacity: 0.9;
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(245, 245, 220, 0.98), rgba(245, 245, 220, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-link {
    position: relative;
    padding: var(--spacing-xs) 0;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold-primary), var(--color-gold-secondary));
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-beige-light) 0%, var(--color-beige-medium) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 10;
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1000px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--color-gold-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-heading);
}

.hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

/* Compact Hero with Integrated Search */
.hero-compact {
    min-height: auto;
    padding: 120px 0 3rem;
}

.hero-compact .hero-content {
    padding: var(--spacing-md);
    max-width: 1200px;
}

.hero-compact .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}

.hero-compact .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 1.5rem;
}

/* ========================================
   HERO VIDEO BACKGROUND
   ======================================== */

.hero-video {
    background: var(--color-dark);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

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

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 36, 22, 0.65) 0%,
        rgba(44, 36, 22, 0.45) 50%,
        rgba(44, 36, 22, 0.55) 100%
    );
    z-index: 2;
}

/* Video Hero Text Adjustments */
.hero-video .hero-title {
    color: var(--color-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-video .hero-subtitle {
    color: var(--color-gold-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Adjust filter card for video background */
.hero-video .hero-filter-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.85) 100%
    );
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-video-bg {
        display: none;
    }

    .hero-video {
        background: linear-gradient(135deg, var(--color-dark) 0%, #3d3526 100%);
    }
}

/* ========================================
   PREMIUM HERO FILTER CARD - GLASS MORPHISM
   ======================================== */

.hero-filter-card {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.88) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        0 25px 80px rgba(44, 36, 22, 0.15),
        0 10px 30px rgba(212, 175, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    max-width: 1100px;
    margin: 0 auto;
    animation: filterCardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
    overflow: hidden;
}

/* Animated Glow Effect */
.filter-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(212, 175, 55, 0.12) 0%,
        transparent 50%
    );
    animation: glowRotate 20s linear infinite;
    pointer-events: none;
    opacity: 0.8;
}

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

@keyframes filterCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Filter Header */
.filter-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.filter-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 0.5rem 0;
    background: linear-gradient(
        135deg,
        var(--color-dark) 0%,
        var(--color-gold-primary) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-header .filter-subtitle {
    font-size: 0.95rem;
    color: var(--color-dark);
    opacity: 0.65;
    font-weight: 400;
    margin: 0;
}

/* Filter Controls Header (Properties Page) */
.filter-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-controls-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Currency Control */
.currency-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.currency-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-dark);
    opacity: 0.7;
}

.currency-toggle {
    display: flex;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.currency-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--color-dark);
    opacity: 0.6;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.currency-btn:hover {
    opacity: 0.85;
    background: rgba(212, 175, 55, 0.1);
}

.currency-btn.active {
    background: linear-gradient(135deg, var(--color-gold-primary) 0%, #C9A961 100%);
    color: white;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--color-dark);
    opacity: 0.6;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-toggle-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
}

.view-toggle-btn:hover {
    opacity: 0.85;
    background: rgba(212, 175, 55, 0.1);
}

.view-toggle-btn.active {
    background: linear-gradient(135deg, var(--color-gold-primary) 0%, #C9A961 100%);
    color: white;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.view-toggle-btn.active svg {
    stroke: white;
}

/* Filter Controls Responsive */
@media (max-width: 768px) {
    .filter-controls-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-controls-right {
        justify-content: space-between;
    }

    .currency-control {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .filter-controls-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .currency-toggle,
    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    .currency-btn,
    .view-toggle-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Filter Grid Layout */
.hero-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    align-items: end;
    position: relative;
    z-index: 1;
}

/* Filter Groups */
.hero-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    animation: filterGroupFadeIn 0.6s ease backwards;
}

.hero-filter-group:nth-child(1) { animation-delay: 0.1s; }
.hero-filter-group:nth-child(2) { animation-delay: 0.15s; }
.hero-filter-group:nth-child(3) { animation-delay: 0.2s; }
.hero-filter-group:nth-child(4) { animation-delay: 0.25s; }
.hero-filter-group:nth-child(5) { animation-delay: 0.3s; }
.hero-filter-group:nth-child(6) { animation-delay: 0.35s; }
.hero-filter-group:nth-child(7) { animation-delay: 0.4s; }

@keyframes filterGroupFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Labels with Icons */
.hero-filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-dark);
    opacity: 0.75;
    transition: all var(--transition-fast);
}

.hero-filter-group label svg {
    width: 16px;
    height: 16px;
    color: var(--color-gold-primary);
    stroke-width: 2.5;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.hero-filter-group:hover label {
    opacity: 1;
    color: var(--color-gold-primary);
}

.hero-filter-group:hover label svg {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.4));
}

/* Premium Select Inputs */
.hero-filter-select {
    position: relative;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-dark);
    background: linear-gradient(
        135deg,
        rgba(245, 245, 220, 0.6) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    width: 100%;
}

.hero-filter-select:hover {
    border-color: var(--color-gold-primary);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 4px 16px rgba(212, 175, 55, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.hero-filter-select:focus {
    outline: none;
    border-color: var(--color-gold-primary);
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 8px 24px rgba(212, 175, 55, 0.15),
        0 0 0 4px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* Price Range Special Layout */
.filter-group-price {
    grid-column: span 2;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-range-inputs .hero-filter-select {
    flex: 1;
    min-width: 0;
}

.filter-separator {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-gold-primary);
    opacity: 0.6;
    flex-shrink: 0;
}

/* Premium Search Button */
.hero-search-btn {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: linear-gradient(
        135deg,
        var(--color-gold-primary) 0%,
        #C9A961 50%,
        var(--color-gold-primary) 100%
    );
    background-size: 200% 100%;
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow:
        0 8px 30px rgba(212, 175, 55, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}

.hero-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.hero-search-btn:hover::before {
    left: 100%;
}

.hero-search-btn:hover {
    background-position: 100% 0;
    box-shadow:
        0 12px 40px rgba(212, 175, 55, 0.45),
        0 4px 15px rgba(212, 175, 55, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
}

.hero-search-btn:active {
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(212, 175, 55, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-search-btn svg {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
    transition: transform var(--transition-fast);
}

.hero-search-btn:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

/* Premium Quick Links */
.hero-quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-dark);
    opacity: 0.7;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.hero-quick-link svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
    color: var(--color-gold-primary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.hero-quick-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.1),
        rgba(212, 175, 55, 0.05)
    );
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.hero-quick-link:hover {
    opacity: 1;
    color: var(--color-gold-primary);
    transform: translateY(-2px);
}

.hero-quick-link:hover::before {
    opacity: 1;
}

.hero-quick-link:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.35));
}

/* ========================================
   COMPACT HERO FILTER (Landing Page)
   ======================================== */

.hero-filter-compact {
    padding: 1.25rem 1.5rem;
    max-width: 900px;
    border-radius: 16px;
}

.hero-filter-compact .filter-card-glow {
    opacity: 0.5;
}

.hero-filter-grid-compact {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-filter-compact .hero-filter-group {
    flex: 1;
    min-width: 120px;
    gap: 0.4rem;
}

.hero-filter-compact .hero-filter-group label {
    font-size: 0.65rem;
    gap: 0.35rem;
}

.hero-filter-compact .hero-filter-group label svg {
    width: 12px;
    height: 12px;
}

.hero-filter-compact .hero-filter-select {
    padding: 0.65rem 2rem 0.65rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 10px;
}

/* Location Input Styling */
.hero-filter-input {
    background-image: none !important;
    padding-right: 0.85rem !important;
}

.hero-filter-input::placeholder {
    color: var(--color-dark);
    opacity: 0.4;
}

.hero-filter-location {
    flex: 1.5;
    min-width: 180px;
}

/* Compact Search Button */
.hero-search-btn-compact {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.85rem !important;
    border-radius: 10px;
    gap: 0.5rem;
    margin-top: 0;
    flex: 0 0 auto;
    min-width: auto;
    grid-column: auto;
}

.hero-search-btn-compact svg {
    width: 16px;
    height: 16px;
}

/* Map View Button */
.hero-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    color: var(--color-dark);
    cursor: pointer;
    transition: all var(--transition-normal);
    flex: 0 0 auto;
}

.hero-map-btn svg {
    width: 16px;
    height: 16px;
    color: var(--color-gold-primary);
    transition: all var(--transition-fast);
}

.hero-map-btn:hover {
    background: var(--color-gold-primary);
    border-color: var(--color-gold-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.hero-map-btn:hover svg {
    color: white;
    transform: scale(1.1);
}

/* Compact Responsive */
@media (max-width: 768px) {
    .hero-filter-compact {
        padding: 1rem 1.25rem;
    }

    .hero-filter-grid-compact {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-filter-compact .hero-filter-group {
        min-width: 100%;
    }

    .hero-filter-location {
        min-width: 100%;
    }

    .hero-filter-grid-compact .hero-search-btn-compact,
    .hero-filter-grid-compact .hero-map-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .hero-filter-grid-compact {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-filter-location {
        grid-column: span 2;
    }

    .hero-search-btn-compact {
        grid-column: span 1;
    }

    .hero-map-btn {
        grid-column: span 1;
    }
}

/* ========================================
   HERO FILTER - RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .hero-filter-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .filter-group-price {
        grid-column: span 1;
    }

    .price-range-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-separator {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-filter-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .filter-header {
        margin-bottom: 1.5rem;
    }

    .filter-title {
        font-size: 1.5rem;
    }

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

    .filter-group-price {
        grid-column: span 2;
    }

    .hero-filter-select {
        padding: 1rem 2.5rem 1rem 1rem;
        font-size: 0.95rem;
        min-height: 52px;
        border-radius: 10px;
    }

    .hero-search-btn {
        padding: 1.125rem 2rem !important;
        font-size: 1rem !important;
        min-height: 56px;
        border-radius: 12px;
    }

    .hero-quick-links {
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .hero-quick-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.625rem;
    }
}

@media (max-width: 480px) {
    .hero-filter-card {
        padding: 1.5rem 1rem;
        border-radius: 14px;
    }

    .filter-header {
        margin-bottom: 1.25rem;
    }

    .filter-title {
        font-size: 1.35rem;
    }

    .hero-filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-group-price {
        grid-column: span 1;
    }

    .hero-filter-group label {
        font-size: 0.7rem;
        gap: 0.4rem;
    }

    .hero-filter-group label svg {
        width: 14px;
        height: 14px;
    }

    .hero-quick-links {
        gap: 0.5rem;
    }

    .hero-quick-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }

    .hero-quick-link svg {
        width: 12px;
        height: 12px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-filter-card,
    .filter-card-glow,
    .hero-filter-group,
    .hero-search-btn::before {
        animation: none !important;
    }

    .hero-filter-select:hover,
    .hero-search-btn:hover,
    .hero-quick-link:hover {
        transform: none !important;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-secondary));
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.btn-secondary:hover {
    background: var(--color-dark);
    color: var(--color-beige-light);
}

/* Section Styles */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-gold-primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.project-card {
    position: relative;
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-content {
    padding: var(--spacing-md);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-dark);
}

.project-location {
    font-size: 1rem;
    color: var(--color-gold-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.project-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--color-dark);
    opacity: 0.7;
}

/* House Grid */
.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* Enhanced House Card - Flex column layout for stable structure */
.house-card {
    position: relative;
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.house-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Shimmer effect on hover */
.house-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.08), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.house-card:hover::before {
    left: 100%;
}

.project-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-secondary));
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.house-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.house-card:hover .house-image {
    transform: scale(1.03);
}

/* Card content - fills remaining space */
.house-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.house-header {
    margin-bottom: var(--spacing-sm);
}

/* Title wrapper with ellipsis for long titles */
.house-title-wrapper {
    margin-bottom: 0.5rem;
}

.house-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.3;
    /* Prevent overflow - max 2 lines with ellipsis */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 3.25em;
}

.house-subtitle {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0.25rem 0 0 0;
}

.house-address {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.house-address svg {
    color: var(--color-gold-primary);
    flex-shrink: 0;
    opacity: 0.8;
}

.house-address span {
    font-size: 0.85rem;
    opacity: 0.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.house-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold-primary);
    margin-top: 0.75rem;
    transition: color var(--transition-fast);
}

.house-card:hover .house-price {
    color: var(--color-gold-secondary);
}

.house-currency {
    font-size: 0.7em;
    opacity: 0.7;
    font-weight: 500;
}

.house-specs {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-beige-medium);
    font-size: 0.95rem;
}

.house-spec {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.house-spec svg {
    color: var(--color-gold-primary);
    transition: transform var(--transition-fast);
}

.house-card:hover .house-spec svg {
    transform: scale(1.1);
}

.house-spec span {
    font-weight: 500;
}

/* Meta row - status and photos count */
.house-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.house-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.house-status.disponible {
    background: linear-gradient(135deg, rgba(107, 142, 96, 0.1), rgba(107, 142, 96, 0.2));
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.house-status.vendida {
    background: linear-gradient(135deg, rgba(201, 74, 74, 0.1), rgba(201, 74, 74, 0.2));
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

.house-photos {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-gold-primary);
}

.house-photos span {
    font-weight: 500;
}

/* Action buttons - ALWAYS at bottom */
.house-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-beige-medium);
}

.house-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
    white-space: nowrap;
    min-height: 44px;
}

.house-btn svg {
    flex-shrink: 0;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Forms */
.form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-white);
    border: 2px solid var(--color-beige-dark);
    border-radius: 2px;
    transition: border-color var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-gold-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.form-success {
    color: var(--color-success);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-beige-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--color-gold-primary);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: var(--color-beige-light);
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0.7;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-beige-medium);
    border-top-color: var(--color-gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-gold-primary);
}

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.admin-card {
    background: var(--color-white);
    border-radius: 4px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--color-beige-medium);
}

.admin-table th {
    font-weight: 600;
    color: var(--color-gold-primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-danger {
    background: var(--color-error);
    color: var(--color-white);
}

.btn-danger:hover {
    background: #A03838;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Floating WhatsApp Button */
/* Floating CTA Button - Elegant Design */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--color-dark) 0%, #3d3526 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(44, 36, 22, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.floating-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(44, 36, 22, 0.35), 0 0 20px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

.floating-cta-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-secondary));
    border-radius: 50%;
    flex-shrink: 0;
}

.floating-cta-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
    stroke: none;
}

.floating-cta-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.floating-cta-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--color-gold-primary);
    border-radius: 50%;
    border: 2px solid var(--color-dark);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Mobile: Show compact version */
@media (max-width: 576px) {
    .floating-cta {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        bottom: 16px;
        right: 16px;
    }
    .floating-cta-text {
        font-size: 0.8rem;
    }
}

/* Legacy support - hide old whatsapp button */
.whatsapp-float {
    display: none;
}

/* Responsive Breakpoints */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Navigation Mobile Styles */
    .nav-toggle {
        display: flex;
    }

    .nav-overlay {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right var(--transition-normal);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        padding: 1rem 0;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--color-beige-medium);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active,
    .nav-link:hover {
        color: var(--color-gold-primary);
    }

    /* Keep navbar logo and text horizontal on mobile */
    .nav-logo {
        flex-direction: row !important;
        align-items: center !important;
    }

    .nav-logo span {
        display: inline !important;
        white-space: nowrap;
    }

    /* Container Adjustments */
    .container {
        padding: 0 1.25rem;
    }

    .container-narrow {
        padding: 0 1.25rem;
    }

    /* Typography Mobile Scaling */
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    h3 {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    p {
        font-size: 1rem;
    }

    /* Hero Section Mobile */
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Logo in Hero - Mobile Optimization */
    .hero-content img {
        max-width: 160px !important;
        margin-bottom: 1rem !important;
    }

    /* Hero Search CTA Mobile */
    .hero-search-cta {
        padding: 0 0.5rem;
    }

    .hero-cta-title {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .quick-filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .quick-filter-chip {
        padding: 1rem 0.75rem;
    }

    .quick-filter-chip svg {
        width: 18px;
        height: 18px;
    }

    .quick-filter-chip span {
        font-size: 0.8rem;
    }

    .hero-search-btn {
        font-size: 1rem !important;
        padding: 1rem 1.5rem !important;
    }

    .hero-secondary-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-secondary-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Compact Hero Mobile */
    .hero-compact {
        padding: 100px 0 2rem;
    }

    .hero-compact .hero-content {
        padding: 1rem;
    }

    .hero-compact .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.35rem;
    }

    .hero-compact .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    /* Hero Filter Card Mobile */
    .hero-filter-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .hero-filter-grid {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-filter-group {
        width: 100%;
        min-width: unset;
    }

    .hero-filter-group:first-child {
        flex: unset;
        width: 100%;
        min-width: unset;
        flex-direction: row;
        gap: 0.5rem;
    }

    .hero-filter-group:first-child label {
        display: block;
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .hero-filter-select {
        padding: 0.75rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .filter-separator {
        display: none;
    }

    .hero-search-btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
    }

    .hero-quick-links {
        gap: 1rem;
        margin-top: 0.75rem;
    }

    .hero-quick-link {
        font-size: 0.8rem;
    }

    /* Button Mobile Styles */
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 100%;
    }

    /* Projects and Houses Grid Mobile */
    .projects-grid,
    .houses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Project and House Cards Mobile */
    .project-card,
    .house-card {
        max-width: 100%;
    }

    .project-image,
    .house-image {
        height: 220px;
    }

    .project-content,
    .house-content {
        padding: 1.25rem;
    }

    /* Filter Card Mobile */
    .filter-card {
        padding: 1.5rem;
        border-radius: 6px;
    }

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

    /* Gallery Mobile */
    .gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        aspect-ratio: 16/10;
    }

    /* Forms Mobile */
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.875rem;
        font-size: 16px;
        min-height: 48px;
    }

    .form-textarea {
        min-height: 120px;
    }

    /* Footer Mobile */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    /* Modal Mobile */
    .modal-content {
        margin: 2rem 1rem !important;
        padding: 1.5rem !important;
        max-width: calc(100% - 2rem) !important;
    }

    .modal-content h2 {
        font-size: 1.5rem !important;
    }

    /* Section Spacing Mobile */
    .section {
        padding: var(--spacing-lg) 0;
    }

    /* Value Cards Mobile */
    .value-card {
        padding: 1.75rem !important;
    }

    /* Contact Info Items Mobile */
    .contact-info-item {
        padding: 1.25rem !important;
    }

    /* Hide desktop-only elements on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile-only elements */
    .mobile-only {
        display: block !important;
    }

    /* Enhanced house card mobile styles */
    .house-number {
        font-size: 1.125rem;
        -webkit-line-clamp: 2;
    }

    .house-price {
        font-size: 1.35rem;
    }

    /* Stack action buttons vertically on mobile */
    .house-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .house-btn {
        width: 100%;
        font-size: 0.9rem !important;
        padding: 0.875rem 1rem !important;
        min-height: 48px;
    }

    /* Property detail page mobile adjustments */
    .property-header {
        flex-direction: column !important;
    }

    /* Admin table mobile - make scrollable */
    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* Further reduce spacing on small screens */
    .container {
        padding: 0 1rem;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-content {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .hero-content img {
        max-width: 140px !important;
    }

    /* Stack buttons vertically on very small screens */
    .btn-group,
    [style*="display: flex"][style*="gap"] {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn,
    [style*="display: flex"][style*="gap"] .btn {
        width: 100% !important;
    }

    /* Smaller cards */
    .project-card,
    .house-card {
        border-radius: 3px;
    }

    .project-content,
    .house-content {
        padding: 1rem;
    }

    /* Filter card - more compact */
    .filter-card {
        padding: 1.25rem;
    }

    /* Modal - full screen on very small devices */
    .modal-content {
        margin: 1rem !important;
        padding: 1.25rem !important;
        border-radius: 6px !important;
    }

    /* House specs - keep horizontal on mobile */
    .house-specs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem !important;
        -webkit-overflow-scrolling: touch;
    }

    .house-spec {
        flex-shrink: 0;
    }

    /* Footer - more compact */
    .footer {
        padding: var(--spacing-md) 0;
    }

    .footer-section h3 {
        font-size: 1.25rem;
    }

    .footer-section p {
        font-size: 0.95rem;
    }

    /* Adjust icon sizes for very small screens */
    .icon-elegant {
        width: 48px !important;
        height: 48px !important;
    }

    .icon-elegant svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Smaller spacing variables for mobile */
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
}

/* Large tablets (between 768px and 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .houses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .nav-link {
        min-height: 44px;
        padding: 0.75rem 0;
    }

    .form-input,
    .form-select,
    .form-textarea {
        min-height: 48px;
    }

    /* Remove hover effects on touch devices */
    .project-card:hover,
    .house-card:hover,
    .value-card:hover {
        transform: none;
    }

    /* Add active states instead */
    .project-card:active,
    .house-card:active {
        transform: scale(0.98);
    }

    .btn:active {
        transform: scale(0.97);
    }
}

/* Filter Card */
.filter-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
}

.filter-results {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--color-beige-light);
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    color: var(--color-gold-primary);
}

/* Icon Elegant Styles */
.icon-elegant {
    transition: all 0.3s ease;
}

.icon-elegant:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
}

/* Value Card Hover Effects */
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
}

.value-card:hover .icon-elegant {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
}

/* Contact Info Item Hover */
.contact-info-item:hover {
    background: linear-gradient(135deg, rgba(232, 215, 195, 0.3), rgba(245, 245, 220, 0.3));
}

.contact-info-item:hover .icon-elegant {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
}

/* Enhanced House Specs Icons */
.house-spec svg {
    transition: all 0.3s ease;
}

.house-card:hover .house-spec svg {
    transform: scale(1.1);
}

/* Refined Typography for Specs */
.house-spec span {
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

/* Enhanced Project Tag */
.project-tag {
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Elegant SVG Icon Animations */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.icon-elegant:hover svg {
    animation: iconPulse 1s ease-in-out infinite;
}

/* Enhanced Status Badges */
.house-status {
    letter-spacing: 0.08em;
    font-family: var(--font-body);
    font-size: 0.8rem;
    border: 1px solid currentColor;
}

.house-status.disponible {
    background: linear-gradient(135deg, rgba(107, 142, 96, 0.1), rgba(107, 142, 96, 0.2));
    border-color: var(--color-success);
}

.house-status.vendida {
    background: linear-gradient(135deg, rgba(201, 74, 74, 0.1), rgba(201, 74, 74, 0.2));
    border-color: var(--color-error);
}

/* Refined Gallery Hover */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Sophisticated Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Elegant Divider Line */
.elegant-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
    margin: 2rem auto;
}

/* Enhanced Form Focus States */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Luxury Gradient Backgrounds */
.luxury-gradient {
    background: linear-gradient(135deg,
        var(--color-beige-light) 0%,
        var(--color-beige-medium) 50%,
        var(--color-beige-light) 100%);
}

/* Professional Icon Containers */
.icon-container {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-secondary));
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
}

.icon-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    overflow-y: auto;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .nav,
    .btn,
    .footer,
    .modal {
        display: none;
    }
}

/* Financing Calculator Styles */
.financing-calculator {
    animation: fadeInUp 0.6s ease;
}

.financing-calculator input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
}

.financing-calculator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-secondary));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
    transition: transform 0.2s ease;
}

.financing-calculator input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.6);
}

.financing-calculator input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-secondary));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
    transition: transform 0.2s ease;
}

.financing-calculator input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.6);
}

.financing-calculator .term-btn:hover:not(.active) {
    border-color: var(--color-gold-secondary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.financing-calculator .term-btn.active {
    box-shadow: var(--shadow-md);
}

/* Mobile adjustments for financing calculator */
@media (max-width: 768px) {
    .financing-calculator h3 {
        font-size: 1.5rem;
    }

    .financing-calculator .term-btn {
        font-size: 0.875rem;
        padding: 0.6rem 0.4rem;
    }

    #calculator-results > div > div:first-child > div:nth-child(2) {
        font-size: 2rem !important;
    }
}
