    *{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    :root {
        --primary-color: #0a1f2e;
        --secondary-color: #1e3a5a;
        --accent-color: #d4af37;
        --gold-light: #f9e79f;
        --gold-dark: #b8941f;
        --med-blue: #1a5276;
        --med-light: #3498db;
        --text-light: #ecf0f1;
        --text-muted: #95a5a6;
        --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body {
        font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        color: var(--primary-color);
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* LUXURY MARBELLA HEADER */
    .luxury-header {
        position: relative;
        background: linear-gradient(180deg, #0a1f2e 0%, #1e3a5a 50%, #0a1f2e 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    .header-decoration {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, var(--gold-dark) 0%, var(--accent-color) 25%, var(--gold-light) 50%, var(--accent-color) 75%, var(--gold-dark) 100%);
        background-size: 200% 100%;
        animation: shimmer 3s linear infinite;
    }

    @keyframes shimmer {
        0% {
            background-position: -200% 0;
        }

        100% {
            background-position: 200% 0;
        }
    }

    .header-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        position: relative;
        z-index: 10;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .contact-info {
        display: flex;
        gap: 30px;
        align-items: center;
    }

    .contact-item {
        display: flex;
        align-items: center;
        color: var(--text-light);
        font-size: 0.9rem;
        font-weight: 400;
        transition: var(--transition);
    }

    .contact-item:hover {
        color: var(--accent-color);
        transform: translateY(-2px);
    }

    .contact-item i {
        margin-right: 8px;
        color: var(--accent-color);
        font-size: 1rem;
    }

    .header-actions {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .language-switcher {
        display: flex;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 30px;
        padding: 3px;
        position: relative;
        backdrop-filter: blur(10px);
    }

    .lang-btn {
        padding: 10px 18px;
        border: none;
        background: transparent;
        color: var(--text-light);
        cursor: pointer;
        border-radius: 27px;
        font-size: 0.9rem;
        font-weight: 500;
        transition: var(--transition);
        z-index: 2;
        position: relative;
    }

    .lang-btn.active {
        background: var(--accent-color);
        color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }

    .lang-slider {
        position: absolute;
        top: 3px;
        left: 3px;
        height: calc(100% - 6px);
        background: var(--accent-color);
        border-radius: 27px;
        transition: var(--transition);
        z-index: 1;
    }

    .appointment-btn {
        background: linear-gradient(135deg, var(--accent-color), var(--gold-light));
        border: none;
        padding: 12px 24px;
        border-radius: 30px;
        color: var(--primary-color);
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }

    .appointment-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    }

    .header-main {
        padding: 40px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .brand-section {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .brand-logo {
        position: relative;
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
        background: linear-gradient(135deg, var(--accent-color), var(--gold-light));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
        position: relative;
        overflow: hidden;
    }

    .logo-icon::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
        animation: rotate 3s linear infinite;
    }

    @keyframes rotate {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .logo-icon i {
        font-size: 2rem;
        color: var(--primary-color);
        z-index: 1;
        position: relative;
    }

    .brand-text {
        display: flex;
        flex-direction: column;
    }

    .brand-name {
        font-family: 'Playfair Display', serif;
        font-size: 2.5rem;
        font-weight: 900;
        color: var(--text-light);
        line-height: 1;
        letter-spacing: -1px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .brand-tagline {
        font-size: 0.95rem;
        color: var(--text-muted);
        font-weight: 300;
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-top: 5px;
    }

    .header-stats {
        display: flex;
        gap: 40px;
    }

    .stat-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 12px;
        padding: 20px 25px;
        text-align: center;
        backdrop-filter: blur(10px);
        transition: var(--transition);
        position: relative;
        overflow: hidden;
    }

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-color) 0%, var(--gold-light) 100%);
        background-size: 200% 100%;
        animation: shimmer 3s linear infinite;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        border-color: var(--accent-color);
        box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
    }

    .stat-number {
        font-family: 'Playfair Display', serif;
        font-size: 2rem;
        font-weight: 700;
        color: var(--accent-color);
        margin-bottom: 5px;
        line-height: 1;
    }

    .stat-label {
        font-size: 0.85rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 500;
    }

    .header-nav {
        background: rgba(255, 255, 255, 0.03);
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        padding: 20px 0;
    }

    .nav-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }

    .nav-link {
        color: var(--text-light);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        position: relative;
        transition: var(--transition);
        padding: 8px 0;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: var(--transition);
        transform: translateX(-50%);
    }

    .nav-link:hover {
        color: var(--accent-color);
        transform: translateY(-2px);
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .nav-link.active {
        color: var(--accent-color);
    }

    .nav-link.active::after {
        width: 100%;
    }

    /* Header Particles */
    .header-particles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
    }

    .particle {
        position: absolute;
        background: var(--accent-color);
        border-radius: 50%;
        opacity: 0;
        animation: float-up 4s linear infinite;
    }

    .particle:nth-child(1) {
        width: 4px;
        height: 4px;
        left: 10%;
        animation-delay: 0s;
        animation-duration: 6s;
    }

    .particle:nth-child(2) {
        width: 3px;
        height: 3px;
        left: 30%;
        animation-delay: 1s;
        animation-duration: 5s;
    }

    .particle:nth-child(3) {
        width: 5px;
        height: 5px;
        left: 60%;
        animation-delay: 2s;
        animation-duration: 7s;
    }

    .particle:nth-child(4) {
        width: 2px;
        height: 2px;
        left: 80%;
        animation-delay: 3s;
        animation-duration: 4s;
    }

    .particle:nth-child(5) {
        width: 3px;
        height: 3px;
        left: 95%;
        animation-delay: 4s;
        animation-duration: 6s;
    }

    @keyframes float-up {
        0% {
            opacity: 0;
            transform: translateY(100vh) scale(0);
        }

        10% {
            opacity: 0.4;
        }

        90% {
            opacity: 0.4;
        }

        100% {
            opacity: 0;
            transform: translateY(-100vh) scale(0.5);
        }
    }

    /* Filter Section */
    .filter-section {
        background: white;
        padding: 30px 0;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        position: relative;
        z-index: 50;
    }

    .filter-wrapper {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 15px;
        padding: 25px;
        margin: 10px 0;
        border: 1px solid rgba(212, 175, 55, 0.1);
    }

    .filter-row {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
        align-items: flex-end;
    }

    .filter-row:last-child {
        margin-bottom: 0;
    }

    .filter-group {
        flex: 1;
        min-width: 0;
    }

    .filter-group.small {
        flex: 0.8;
    }

    .filter-group.medium {
        flex: 1.2;
    }

    .filter-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--primary-color);
        font-size: 0.95rem;
    }

    .filter-select,
    .filter-input {
        width: 100%;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 0.95rem;
        transition: var(--transition);
        background: white;
    }

    .filter-select:focus,
    .filter-input:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    }

    .filter-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 10px 18px;
        border: 1px solid #ddd;
        background: white;
        border-radius: 8px;
        cursor: pointer;
        transition: var(--transition);
        font-weight: 500;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .filter-btn.active {
        background: var(--accent-color);
        color: var(--primary-color);
        border-color: var(--accent-color);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    }

    .filter-btn:hover:not(.active) {
        background: #f5f5f5;
        transform: translateY(-2px);
        border-color: var(--accent-color);
    }

    .price-slider-container {
        position: relative;
    }

    .price-slider {
        width: 100%;
        height: 6px;
        border-radius: 5px;
        background: #ddd;
        outline: none;
        -webkit-appearance: none;
        margin: 15px 0 8px 0;
    }

    .price-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--accent-color);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
    }

    .price-slider::-moz-range-thumb {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--accent-color);
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
    }

    .price-display {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
        color: var(--primary-color);
        font-weight: 600;
    }

    .price-value {
        background: var(--accent-color);
        color: var(--primary-color);
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 600;
    }

    /* Results Section */
    .results-section {
        padding: 40px 0;
    }

    .results-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        flex-wrap: wrap;
        gap: 20px;
    }

    .results-left {
        display: flex;
        align-items: center;
        gap: 25px;
        flex-wrap: wrap;
    }

    .results-count {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--primary-color);
    }

    .sort-group {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .sort-label {
        font-weight: 600;
        color: var(--primary-color);
        font-size: 0.95rem;
    }

    .sort-select {
        padding: 8px 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 0.9rem;
        min-width: 200px;
        background: white;
    }

    .view-options {
        display: flex;
        gap: 12px;
    }

    .view-btn {
        padding: 10px 15px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        cursor: pointer;
        transition: var(--transition);
    }

    .view-btn.active {
        background: var(--accent-color);
        color: var(--primary-color);
        border-color: var(--accent-color);
    }

    .properties-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 30px;
    }

    .property-card {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        position: relative;
    }

    .property-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    }

    .property-image-container {
        position: relative;
        height: 240px;
        overflow: hidden;
    }

    .property-image-link {
        display: block;
        width: 100%;
        height: 100%;
        position: relative;
    }

    .property-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

    .property-image-link:hover .property-image {
        transform: scale(1.08);
    }

    .property-badge {
        position: absolute;
        top: 20px;
        left: 20px;
        padding: 6px 15px;
        background: var(--accent-color);
        color: var(--primary-color);
        border-radius: 25px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        z-index: 2;
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }

    .property-badge.rent {
        background: var(--med-blue);
        color: white;
    }

    .property-actions {
        position: absolute;
        top: 20px;
        right: 20px;
        display: flex;
        gap: 10px;
        z-index: 2;
    }

    .property-action-btn {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
        color: var(--primary-color);
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .property-action-btn:hover {
        background: white;
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .property-action-btn i {
        font-size: 1.1rem;
    }

    .property-content {
        padding: 25px;
    }

    .property-price {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--accent-color);
        margin-bottom: 12px;
    }

    .property-name {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--primary-color);
    }

    .property-location {
        display: flex;
        align-items: center;
        color: #666;
        margin-bottom: 18px;
    }

    .property-location i {
        margin-right: 8px;
        color: var(--accent-color);
    }

    .property-features {
        display: flex;
        gap: 18px;
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid #eee;
    }

    .feature {
        display: flex;
        align-items: center;
        font-size: 0.95rem;
    }

    .feature i {
        margin-right: 6px;
        color: var(--accent-color);
    }

    .property-type {
        display: inline-block;
        padding: 5px 12px;
        background: linear-gradient(135deg, var(--accent-color), var(--gold-light));
        border-radius: 6px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
/*        margin-top: 12px; */
        color: var(--primary-color);
    }

    .property-date {
        display: flex;
        align-items: center;
        color: #999;
        font-size: 0.85rem;
        margin-top: 10px;
    }

    .property-date i {
        margin-right: 6px;
        color: var(--accent-color);
    }

    /* Loading State */
    .loading {
        text-align: center;
        padding: 50px;
        display: none;
    }

    .loading.active {
        display: block;
    }

    .spinner {
        border: 4px solid rgba(212, 175, 55, 0.1);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border-left-color: var(--accent-color);
        animation: spin 1s ease infinite;
        margin: 0 auto 20px;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* No Results Message */
    .no-results {
        text-align: center;
        padding: 50px;
        display: none;
    }

    .no-results.active {
        display: block;
    }

    .no-results i {
        font-size: 3.5rem;
        color: #ddd;
        margin-bottom: 20px;
    }

    .no-results h3 {
        font-size: 1.6rem;
        margin-bottom: 12px;
        color: var(--primary-color);
    }

    /* Error Message */
    .error-message {
        background: linear-gradient(135deg, #fee, #fdd);
        border: 1px solid #fcc;
        border-radius: 10px;
        padding: 20px;
        margin: 30px 0;
        color: var(--accent-color);
        display: none;
    }

    .error-message.active {
        display: block;
    }

    .error-message i {
        margin-right: 12px;
        font-size: 1.2rem;
    }

    /* LUXURY MARBELLA FOOTER */
    footer {
        position: relative;
        background: linear-gradient(180deg, #0c1a2b 0%, #1a3351 50%, #0c1a2b 100%);
        color: white;
        padding: 0;
        margin-top: 80px;
        overflow: hidden;
    }

    .footer-wave {
        position: absolute;
        top: -60px;
        left: 0;
        width: 100%;
        height: 60px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f8f9fa' fill-opacity='1' d='M0,32L48,80C96,128,192,224,288,224C384,224,480,128,576,122.7C672,117,768,181,864,181C960,181,1056,117,1152,90.7C1248,64,1344,32,1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
        background-size: cover;
    }

    .footer-container {
        position: relative;
        z-index: 1;
        padding: 80px 0 40px;
    }

    .footer-top {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    .footer-brand {
        position: relative;
    }

    .footer-logo {
        font-family: 'Playfair Display', serif;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 20px;
        color: white;
        display: flex;
        align-items: center;
    }

    .footer-logo i {
        margin-right: 12px;
        color: var(--accent-color);
        font-size: 2rem;
    }

    .footer-tagline {
        font-size: 1.1rem;
        font-weight: 300;
        margin-bottom: 25px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
    }

    .footer-description {
        margin-bottom: 30px;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.7;
    }

    .footer-awards {
        display: flex;
        align-items: center;
        margin-top: 30px;
    }

    .award-badge {
        display: flex;
        align-items: center;
        background: rgba(212, 175, 55, 0.2);
        padding: 8px 15px;
        border-radius: 30px;
        margin-right: 15px;
        font-size: 0.85rem;
    }

    .award-badge i {
        color: var(--accent-color);
        margin-right: 8px;
    }

    .footer-section h3 {
        font-family: 'Playfair Display', serif;
        font-size: 1.4rem;
        margin-bottom: 25px;
        position: relative;
        padding-bottom: 15px;
        color: white;
    }

    .footer-section h3:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--accent-color);
    }

    .footer-links {
        list-style: none;
    }

    .footer-links li {
        margin-bottom: 14px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: var(--transition);
        display: flex;
        align-items: center;
    }

    .footer-links a i {
        margin-right: 10px;
        color: var(--accent-color);
        font-size: 0.9rem;
        width: 16px;
        text-align: center;
    }

    .footer-links a:hover {
        color: white;
        padding-left: 5px;
    }

    .footer-contact {
        list-style: none;
    }

    .footer-contact li {
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        color: rgba(255, 255, 255, 0.8);
    }

    .footer-contact i {
        margin-right: 12px;
        color: var(--accent-color);
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }

    .footer-newsletter {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 25px;
        margin-top: 20px;
    }

    .newsletter-title {
        font-family: 'Playfair Display', serif;
        font-size: 1.2rem;
        margin-bottom: 15px;
        color: white;
    }

    .newsletter-desc {
        margin-bottom: 20px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
    }

    .newsletter-form {
        display: flex;
        margin-bottom: 15px;
    }

    .newsletter-input {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px 0 0 4px;
        color: white;
        font-size: 0.9rem;
    }

    .newsletter-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    .newsletter-btn {
        padding: 12px 20px;
        background: var(--accent-color);
        border: none;
        border-radius: 0 4px 4px 0;
        color: var(--primary-color);
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
    }

    .newsletter-btn:hover {
        background: var(--gold-light);
    }

    .newsletter-privacy {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .footer-middle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 30px 0;
        margin-bottom: 40px;
    }

    .footer-gallery {
        display: flex;
        gap: 15px;
    }

    .gallery-thumb {
        width: 80px;
        height: 80px;
        border-radius: 4px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        transition: var(--transition);
    }

    .gallery-thumb:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .gallery-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(212, 175, 55, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: var(--transition);
    }

    .gallery-thumb:hover .gallery-overlay {
        opacity: 1;
    }

    .gallery-overlay i {
        color: white;
        font-size: 1.2rem;
    }

    .footer-social {
        display: flex;
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: var(--transition);
        font-size: 1.1rem;
    }

    .social-icon:hover {
        background: var(--accent-color);
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    }

    .footer-map {
        position: relative;
        height: 200px;
        background: url('https://picsum.photos/seed/marbella-map/1200/200.jpg') no-repeat center center;
        background-size: cover;
        border-radius: 8px;
        margin-bottom: 40px;
        overflow: hidden;
    }

    .map-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(26, 82, 118, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .map-pin {
        font-size: 2.5rem;
        color: var(--accent-color);
        margin-bottom: 10px;
        animation: bounce 2s infinite;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-10px);
        }

        60% {
            transform: translateY(-5px);
        }
    }

    .map-text {
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        color: white;
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 30px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .copyright {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .footer-bottom-links {
        display: flex;
        gap: 20px;
    }

    .footer-bottom-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.9rem;
        transition: var(--transition);
    }

    .footer-bottom-links a:hover {
        color: var(--accent-color);
    }

    .marbella-silhouette {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 300px;
        height: 200px;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200" fill="none"><path d="M0,200 C30,150 60,100 100,120 C140,140 180,80 220,100 C260,120 300,100 300,200 Z" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat;
        z-index: 0;
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .filter-row {
            flex-wrap: wrap;
        }

        .filter-group {
            min-width: 220px;
        }
    }

    @media (max-width: 992px) {
        .properties-grid {
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        }

        .footer-top {
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
    }

    @media (max-width: 768px) {
        .header-main {
            flex-direction: column;
            gap: 30px;
        }

        .header-stats {
            gap: 20px;
        }

        .stat-card {
            padding: 15px 20px;
        }

        .stat-number {
            font-size: 1.5rem;
        }

        .nav-container {
            flex-wrap: wrap;
            gap: 20px;
        }

        .filter-row {
            flex-direction: column;
            gap: 20px;
        }

        .filter-group {
            width: 100%;
            min-width: auto;
        }

        .filter-buttons {
            justify-content: center;
        }

        .properties-grid {
            grid-template-columns: 1fr;
        }

        .results-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 20px;
        }

        .results-left {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }

        .footer-top {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .footer-middle {
            flex-direction: column;
            gap: 30px;
        }

        .footer-bottom {
            flex-direction: column;
            gap: 20px;
            text-align: center;
        }

        .marbella-silhouette {
            display: none;
        }

        .form-row {
            grid-template-columns: 1fr;
        }

        .modal-overlay {
                display: none;
            }

        .modal-overlay.active {
            display: flex !important;
        }
        
        .contact-modal {
            width: 95%;
            max-height: 85vh;
        }

        .modal-header {
            padding: 30px 20px;
        }

        .modal-body {
            padding: 25px 20px;
        }

        .form-row {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 480px) {
        .header-top {
            flex-direction: column;
            gap: 15px;
        }

        .contact-info {
            flex-direction: column;
            gap: 10px;
            text-align: center;
        }

        .header-actions {
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }

        .appointment-btn {
            width: 100%;
            text-align: center;
        }

        .brand-section {
            flex-direction: column;
            text-align: center;
            gap: 15px;
        }

        .brand-name {
            font-size: 2rem;
        }

        .filter-buttons {
            flex-direction: column;
        }

        .filter-btn {
            width: 100%;
            text-align: center;
        }

        .sort-select {
            min-width: auto;
            width: 100%;
        }

        .lang-btn {
            padding: 8px 14px;
            font-size: 0.8rem;
        }

        .footer-gallery {
            justify-content: center;
        }

        .footer-social {
            justify-content: center;
        }
        .contact-modal {
            width: 95%;
        }

        .modal-header {
            padding: 30px 20px;
        }

        .modal-body {
            padding: 25px 20px;
        }

        .form-row {
            grid-template-columns: 1fr;
        }
    }
    /* Contact Modal/Popup */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 46, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.contact-modal {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .contact-modal {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 40px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--accent-color) 25%, var(--gold-light) 50%, var(--accent-color) 75%, var(--gold-dark) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.modal-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

.modal-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.modal-body {
    padding: 40px;
}

.contact-info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info-row:last-child {
    margin-bottom: 0;
}

.contact-info-row i {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1rem;
}

.contact-info-text {
    flex: 1;
}

.contact-info-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 3px;
}

.contact-info-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.form-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #ddd 50%, transparent 100%);
}

.form-divider-text {
    background: white;
    padding: 0 20px;
    position: relative;
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.form-checkbox-label a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.form-checkbox-label a:hover {
    text-decoration: underline;
}

.modal-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-light));
    border: none;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.modal-submit-btn i {
    margin-right: 8px;
}

.success-message {
    display: none;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: #155724;
    text-align: center;
}

.success-message.active {
    display: block;
}

.success-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #28a745;
}

.success-message h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}