

:root {
    --bg: #fefefe;
    --muted: #8B8B8B;
    --accent: #C5A47E;
    --accent-dark: #A88B6A;
    --gold: #D4AF37;
    --dark: #1A1A1A;
    --dubai-blue: #0066CC;
    --dubai-sand: #E6D2B5;
    --card-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.92);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, Arial, sans-serif;
    background: linear-gradient(135deg, #fefefe 0%, #f8f6f2 100%);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    transition: all 0.3s ease;
    padding-top: 80px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.glass-nav {
    background: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(197, 164, 126, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.4s ease;
    padding: 12px 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    transition: all 0.3s ease;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--accent);
}

.hero {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 120px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--accent) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.filter-system {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    margin: 40px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border-color: var(--accent);
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.price-slider {
    width: 100%;
    margin: 10px 0;
}

.price-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
}

.scrolling-section {
    margin: 60px 0;
    position: relative;
}

.scroll-container {
    position: relative;
    overflow: hidden;
}

.scroll-row {
    display: flex;
    gap: 20px;
    padding: 20px 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .scroll-row {
        animation: none !important;
        transform: none !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .card-dubai {
        width: 280px;
        flex-shrink: 0;
    }

    .scrolling-section {
        margin: 40px 0;
    }

    .scroll-container {
        margin: 0 -15px;
        padding: 0 15px;
    }
}

@media (min-width: 769px) {
    .scroll-row.manual-scroll {
        cursor: grab;
    }

    .scroll-row.manual-scroll:active {
        cursor: grabbing;
    }
}

.scroll-arrows {
    display: none;
}

@media (min-width: 769px) {
    .scroll-arrows {
        display: flex;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        justify-content: space-between;
        padding: 0 20px;
        z-index: 10;
    }

    .scroll-arrow {
        background: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .scroll-arrow:hover {
        background: var(--accent);
        color: white;
        transform: scale(1.1);
    }
}

.card-dubai {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    width: 320px;
    flex-shrink: 0;
    position: relative;
}

.card-dubai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 2;
}

.card-dubai:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
}

.card-image-section {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-dubai:hover .card-image-section img {
    transform: scale(1.05);
}

.property-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.elite-badge {
    background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.premium-badge {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 20px;
}

.property-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--dark);
}

.property-features {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--muted);
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #F0F0F0;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.search-elite {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-control,
.form-select {
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(197, 164, 126, 0.1);
}

.btn-dubai {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 164, 126, 0.3);
    color: white;
}

.btn-dubai:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 164, 126, 0.4);
    color: white;
}

.testimonials-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 120px;
    color: var(--accent);
    opacity: 0.1;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4);
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.author-info h4 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    color: var(--dark);
}

.author-info p {
    margin: 5px 0 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.testimonial-stats {
    text-align: center;
    color: white;
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.stats-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f6f2 0%, #fefefe 100%);
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(197, 164, 126, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-description {
    color: var(--muted);
    line-height: 1.6;
}

.footer {
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer h5 {
    color: var(--accent);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .filter-options {
        grid-template-columns: 1fr;
    }

    .card-dubai {
        width: 280px;
    }

    .hero {
        min-height: 70vh;
    }

    .navbar-collapse {
        background: rgba(254, 254, 254, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: 12px;
        margin-top: 10px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .search-elite {
        padding: 20px;
    }

    .features-section,
    .testimonials-section {
        padding: 60px 0;
    }
}