/* =========================================
   Frontend Liquid Glass Design System
   ========================================= */
:root {
    /* Liquid Colors */
    --primary: #3b82f6;
    --secondary: #fbbf24;
    --accent: #f472b6;
    
    /* Text */
    --text-main: #ffffff;
    --text-light: rgba(255, 255, 255, 0.7);
    
    /* Glass Variables */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shine: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
    
    /* Shadows */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

body {
    background: #050507;
    color: var(--text-main);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding-bottom: 100px;
}

/* =========================================
   1. Liquid Ambient Background
   ========================================= */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #050507;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: liquidFlow 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary), transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    animation-delay: -10s;
}

@keyframes liquidFlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* =========================================
   2. Glassmorphism Components
   ========================================= */

/* Common Glass Class */
.liquid-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* Shine Effect (Optical Realism) */
.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: 70px;
    z-index: 100;
    border-radius: 0;
    
    /* Liquid Glass Props - Transparent/Clean */
    background: rgba(255, 255, 255, 0.02); /* Very subtle */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    box-shadow: none; /* Removed heavy shadow */
    
    display: flex;
    align-items: center;
    padding: 0 30px;
    transition: all 0.4s ease;
}

.glass-header.scrolled {
    background: rgba(20, 20, 30, 0.4); /* Slightly darker on scroll */
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .glass-header.mobile-hidden {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }
    .desktop-nav { display: none !important; }
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: none;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
}

.desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
        gap: 30px;
        margin-left: auto;
    }
    .desktop-nav a {
        color: var(--text-light);
        text-decoration: none;
        font-weight: 500;
        transition: 0.3s;
        position: relative;
    }
    .desktop-nav a:hover, .desktop-nav a.active {
        color: white;
        text-shadow: none;
    }
    /* Floating underline */
    .desktop-nav a.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
        box-shadow: 0 0 10px var(--primary);
    }
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

/* Hide header action icons globally */
.header-actions {
    display: none !important;
}

.icon-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    border-color: var(--primary);
}

/* =========================================
   3. Hero Section (Immersive)
   ========================================= */
.hero-section {
    margin-top: 90px;
    position: relative;
    padding-bottom: 20px;
}

.hero-swiper {
    width: 90%;
    max-width: 1200px;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: var(--shadow-deep);
    border: 1px solid rgba(255,255,255,0.1);
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease; /* Slow zoom */
}

.swiper-slide-active .slide-image {
    transform: scale(1.1);
}

.slide-caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    
    /* Frosted Panel */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    
    /* Animation */
    transform: translateY(20px);
    opacity: 0;
    transition: 0.8s ease 0.3s;
}

.swiper-slide-active .slide-caption {
    transform: translateY(0);
    opacity: 1;
}

.slide-caption h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-caption p {
    font-size: 0.85rem;
}

/* Search Bar (Floating) */
.hero-search-wrapper {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    z-index: 150;
}

.hero-search-bar {
    background: rgba(30, 30, 40, 0.8);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: 0.3s;
}

.hero-search-bar:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border-color: var(--primary);
}

.hero-search-bar input {
    background: transparent;
    border: none;
    color: white;
    flex: 1;
    margin-left: 15px;
    font-size: 1.1rem;
    outline: none;
}

.search-filter-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
}

/* =========================================
   4. Quick Access (Liquid Bubbles)
   ========================================= */
.quick-access {
    margin-top: 24px;
    margin-bottom: 24px;
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.glass-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-light);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-item:hover {
    transform: translateY(-10px);
    color: white;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Glossy Overlay for Icons */
.icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
}

.gradient-1 { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.gradient-2 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.gradient-3 { background: linear-gradient(135deg, #34d399, #059669); }
.gradient-4 { background: linear-gradient(135deg, #f472b6, #db2777); }

/* =========================================
   5. Cards & Lists (3D Floating)
   ========================================= */
.container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-spacing { margin: 80px auto; }

/* Home: reduce spacing around Featured Properties */
#property-section.section-spacing {
    margin: 24px auto;
}

/* World Map Section removed */
.section-title h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary);
}

/* Legal/About Cards (Unified Layout) */
.glass-card {
    background: rgba(30, 35, 50, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.about-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 12px;
}
 
 .glass-weak {
     background: rgba(30, 35, 50, 0.4);
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
     border: 1px solid rgba(255, 255, 255, 0.1);
 }
 
 .glass-strong {
     background: rgba(30, 35, 50, 0.7);
     backdrop-filter: blur(30px);
     -webkit-backdrop-filter: blur(30px);
     border: 1px solid rgba(255, 255, 255, 0.15);
 }
 
 .depth-float {
     box-shadow: var(--shadow-deep);
 }
 
 .blur-10 {
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
 }
 
 .blur-20 {
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
 }

/* Filters */
.filter-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px 20px; /* Padding for shadows */
    margin-bottom: 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    flex-wrap: nowrap;
}
.filter-wrapper > * { flex: 0 0 auto; }

.filter-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 25px;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.discovery-filter-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.discovery-filter-btn {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 10px 18px;
    border-radius: 22px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.discovery-filter-btn:hover, .discovery-filter-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Swiper Cards */
.property-swiper .swiper-slide {
    width: 240px;
    height: auto;
    transition: transform 0.3s;
}

.filter-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}
.filter-left { display: flex; align-items: center; gap: 12px; }
.filter-right { display: flex; align-items: center; gap: 12px; }
@media (max-width: 768px) {
    .filter-left {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
    }
    .filter-left::-webkit-scrollbar { display: none; }
    .filter-left > * { flex: 0 0 auto; }
    .filter-right {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        padding-top: 2px;
        padding-bottom: 2px;
    }
    .filter-right::-webkit-scrollbar { display: none; }
    .filter-right > * { flex: 0 0 auto; }
}
.view-toggle { display: flex; gap: 8px; }
.sort-select select { min-width: 180px; }
.sort-select { position: relative; }
.sort-select select.glass-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 10px 36px 10px 12px;
    border-radius: 12px;
}
.sort-select::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.9rem;
}
.price-range { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.price-range .glass-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 10px 12px;
    border-radius: 12px;
}
/* Hide native number input arrows for unified style */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
@media (max-width: 640px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
@media (min-width: 641px) and (max-width: 768px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}
.properties-list .property-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
}
.properties-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.properties-list .card-image {
    height: 110px;
}
@media (max-width: 480px) {
    .properties-list .card-image {
        height: 95px;
    }
}
@media (max-width: 480px) {
    .properties-list .property-card {
        grid-template-columns: 110px 1fr;
        gap: 12px;
    }
    .properties-list .property-card .card-content h4 {
        font-size: 1rem;
    }
    .properties-list .property-card .card-subtitle {
        font-size: 0.9rem;
    }
}
.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }
.properties-list .property-card .card-image img { height: 100%; object-fit: cover; }
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.page-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.page-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-info { color: #94a3b8; padding: 0 8px; }

/* Mobile Horizontal Scroll (filters only) */
/* 3D Tilt Card Base */
.property-card, .passport-card {
    background: rgba(30, 35, 50, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Highlight top */
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.property-card:hover, .passport-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-deep);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Image Area */
.card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

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

/* Tags & Buttons */
.tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.like-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.like-btn:hover {
    background: white;
    color: #ef4444;
}

/* Content Area */
.card-content {
    padding: 16px;
    display: grid;
    gap: 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), transparent);
}

.card-content h4 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
    color: white;
    font-weight: 600;
}

.card-subtitle {
    color: var(--text-light);
    font-size: 0.85rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.price {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.specs {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   3. Passport Section (Swiper)
   ========================================= */
.passport-section {
    position: relative;
    padding: 0 20px;
}

.passport-swiper {
    padding: 40px 10px;
    overflow: hidden;
}

.passport-card {
    background: rgba(30, 35, 50, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 18px;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.passport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: var(--primary);
}

.passport-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid rgba(255,255,255,0.2);
}

.passport-info h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.passport-info span {
    color: var(--text-light);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.passport-info p {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.passport-btn {
    margin-top: auto;
    padding: 8px 20px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
}

.passport-btn:hover {
    background: var(--primary);
    color: white;
}

/* Responsive Swiper */
.swiper-slide {
    height: auto; /* Allow auto height for flex content */
}

/* =========================================
   6. Stats (Floating Tiles)
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.glass-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.glass-tile:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem; /* Reduced from 3rem */
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* =========================================
   7. CTA & Footer
   ========================================= */
.cta-card {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    backdrop-filter: blur(30px);
}

.cta-card h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255,255,255,0.4);
    text-decoration: none;
}

.site-footer {
    background: #020617;
    padding: 80px 0 30px;
    margin-top: 100px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 15px; }

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.accordion-item {
    background: rgba(30, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.06);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-body {
    padding: 12px 20px 16px;
    max-height: 500px;
    opacity: 1;
}

/* =========================================
   Forms (Unified Liquid Glass)
   ========================================= */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.glass-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(30, 35, 50, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.25s ease;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.glass-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(30, 35, 50, 0.7);
}

/* Submit Button (Unified) */
.submit-btn {
    width: 100%;
    background: white;
    color: var(--primary);
    border: none;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 10px 24px rgba(255,255,255,0.25);
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255,255,255,0.35);
}
.submit-btn:active {
    transform: translateY(0);
}

select.glass-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%), linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 4px), calc(100% - 15px) calc(50% - 4px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

textarea.glass-input {
    min-height: 120px;
    resize: vertical;
}

/* Auth Forms */
.auth-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 24px;
}
.auth-form {
    display: grid;
    gap: 12px;
}
.auth-links {
    text-align: center;
    color: #94a3b8;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    color: #64748b;
}

/* =========================================
   8. Mobile Navigation (Floating Dock)
   ========================================= */
/*.bottom-nav {*/
/*    display: none;*/
/*}*/

/* Floating Dock Navigation (Liquid Glass) */
.glass-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    width: 92%;
    max-width: 640px;
    height: 64px;
    z-index: 200;
    background: rgba(20, 24, 35, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
}

.glass-nav .nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: var(--text-light);
    transition: 0.25s ease;
}

.glass-nav .nav-link i {
    font-size: 1.3rem;
    transition: 0.25s ease;
    color: var(--text-light);
}

.glass-nav .nav-link span {
    font-size: 0.75rem;
}

.glass-nav .nav-link.active {
    color: #ffffff;
}

.glass-nav .nav-link.active i {
    color: var(--primary);
}

.glass-nav .nav-link:active {
    transform: translateY(1px);
}

/* =========================================
   Responsive Global Adjustments
   ========================================= */
@media (max-width: 1024px) {
    /* Tablet & Small Desktop */
    .hero-swiper { height: 500px; }
    .glass-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
    /* Mobile & Small Tablet */
    .header-content { padding: 0 15px; }
    .desktop-nav { display: none; }
    .hero-section { margin-top: 0; }
    .hero-swiper { height: 400px; width: 94%; border-radius: 20px; margin: 80px auto 20px; }
    
    .hero-search-wrapper { 
        width: 90%; 
        top: 20px; 
    }
    
    .slide-caption {
        left: 20px;
        bottom: 20px;
        padding: 20px;
        max-width: 85%;
    }

    .slide-caption h2 { font-size: 1.5rem; }
    
    /* Quick Access Grid */
    .glass-grid { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 10px; 
        padding: 15px;
    }
    
    .icon-wrapper { width: 50px; height: 50px; font-size: 1.2rem; margin-bottom: 8px; }
    .glass-item span { font-size: 0.75rem; }

    /* Stats */
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
    .stat-number { font-size: 1.8rem; }
    
    /* Swiper Adjustments */
    .passport-swiper, .property-swiper { padding: 20px 0 40px; }
    .passport-card { padding: 20px; }
    
    /* Footer (Mobile: 两列布局，产品服务与帮助中心左右横排) */
    .footer-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 24px; 
        text-align: left;
    }
    .footer-col:nth-child(1) { grid-column: 1; grid-row: 1; }
    .footer-col:nth-child(4) { grid-column: 2; grid-row: 1; }
    .footer-col:nth-child(2) { grid-column: 1; grid-row: 2; } /* 产品服务 */
    .footer-col:nth-child(3) { grid-column: 2; grid-row: 2; } /* 帮助中心 */
    
    .bottom-nav { display: flex; }
}

/* iPad / Tablet Specific */
@media (min-width: 768px) and (max-width: 1024px) {
    .glass-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .passport-card { min-height: 280px; }
}

.immigration-swiper {
    overflow: hidden;
}
.immigration-swiper .swiper-wrapper {
    align-items: stretch;
}
.immigration-swiper .swiper-slide {
    width: 280px !important;
}
.immigration-swiper .glass-card {
    height: 100%;
}

@media (min-width: 1024px) {
    .ambient-bg {
        display: none !important;
    }
}
@media (min-width: 769px) {
    .bottom-nav { display: none; }
}

.section-title {
    padding: 0 20px;
}