/*
Theme Name: Developer Starter Theme
Theme URI: https://developer.starter
Author: Starter Theme
Description: Multi-Project Real Estate Landing Page Theme - Create unlimited landing pages with customizable colors, content, and settings per project.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: Proprietary
Text Domain: developer-starter
Tags: one-page, landing-page, rtl-ready, responsive, multi-project
*/

/* ========================================
   CSS Variables - Dynamic Colors
   These will be overridden by project-specific colors
   ======================================== */
:root {
    /* Primary Colors - Will be overridden per project */
    --primary-color: #1E3A5F;
    --primary-dark: #142740;
    --primary-light: #3A7AB8;
    
    /* Secondary Colors */
    --secondary-color: #C8A86B;
    --secondary-dark: #A68B4B;
    --secondary-light: #FDF8EF;
    
    /* Accent Color (darkened for WCAG contrast on white) */
    --accent-color: #B8923F;
    --accent-dark: #9A7A2E;
    --accent-light: #E6C77A;
    
    /* Text Colors */
    --text-dark: #1A1A1A;
    --text-light: #5A5A5A;
    --text-white: #FFFFFF;
    
    /* Background Colors */
    --bg-light: #F9F7F4;
    --bg-white: #FFFFFF;
    --bg-dark: #0D1117;
    
    /* Borders */
    --border-light: #E8E4DD;
    --border-dark: #C5BFB3;
    
    /* WhatsApp */
    --whatsapp-color: #25D366;
    --whatsapp-dark: #1DA851;
    
    /* Typography */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    
    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s ease-in-out;
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 900;
    --z-header: 1000;
    --z-floating: 1100;
    --z-popup: 1200;
    --z-overlay: 2000;
    
    /* Safe Areas */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ========================================
   Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-en);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.lang-ar {
    font-family: var(--font-ar);
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

button, a, [role="button"] {
    touch-action: manipulation;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-color);
    color: var(--text-white);
    z-index: calc(var(--z-header) + 1);
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
}

/* ========================================
   Lucide Icons
   ======================================== */
i[data-lucide] {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    display: inline-flex;
    vertical-align: middle;
}

.spin {
    animation: spin 1s linear infinite;
}

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

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: transparent;
    padding: var(--spacing-md) 0;
    transition: var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
}

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

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    transition: var(--transition-fast);
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}
@media (min-width: 769px) {
    .header-actions { gap: var(--spacing-sm); }
}

.lang-switcher .lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.scrolled .lang-btn {
    background: var(--secondary-light);
    color: var(--primary-color);
}

.lang-btn:hover {
    background: var(--primary-light);
    color: var(--text-white);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--whatsapp-color);
    color: var(--text-white);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.header-cta:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-cta span {
    display: none;
}

/* Click-to-Call Button */
.header-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.header-call-btn i, .header-call-btn svg { width: 20px; height: 20px; }
.header-call-btn:active { transform: scale(0.95); }
@media (min-width: 769px) { .header-call-btn { display: none; } }
.scrolled .header-call-btn { background: var(--primary-color); }

/* Sticky CTA */
.header-sticky-cta {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.header-sticky-cta i, .header-sticky-cta svg { width: 18px; height: 18px; }
.header-sticky-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
.scrolled .header-sticky-cta { display: flex; }
.scrolled .header-cta { display: none; }

@media (min-width: 769px) { .scrolled .header-sticky-cta span { display: inline; } }
@media (max-width: 768px) {
    .header-sticky-cta { padding: 10px; border-radius: 50%; width: 40px; height: 40px; justify-content: center; }
    .header-sticky-cta span { display: none; }
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    padding: calc(80px + var(--spacing-xxl)) var(--spacing-md) var(--spacing-xxl);
    overflow: visible;
}

.hero-section.has-video {
    background: #000;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.hero-section.has-video .hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--spacing-xl);
}

.hero-text {
    color: var(--text-white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--accent-color);
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 500px;
    margin-bottom: var(--spacing-lg);
}

.hero-developer {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255,255,255,0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--secondary-color);
}
.hero-developer i { width: 18px; height: 18px; }

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    font-size: 0.8rem;
    color: var(--text-light);
}
.form-note i { width: 14px; height: 14px; }

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: var(--spacing-xs);
}

/* Hero Form */
.hero-form-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
}

.form-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.form-group label i {
    width: 16px;
    height: 16px;
    color: var(--primary-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(58, 122, 184, 0.15);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236C7A89' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

[dir="rtl"] .form-group select {
    background-position: left 12px center;
    padding-right: var(--spacing-md);
    padding-left: 40px;
}

/* Phone Input */
.form-group {
    position: relative;
    z-index: 1;
}

.form-group:has(.phone-input-wrapper) {
    z-index: 100;
}

.form-group:focus-within {
    z-index: 100;
}

.phone-input-wrapper {
    position: relative;
    z-index: 1;
}

.phone-input-wrapper .country-dropdown {
    z-index: var(--z-dropdown);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-white);
    opacity: 0.5;
    animation: gentleBounce 3s ease-in-out infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(-8px); opacity: 0.8; }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(184, 146, 63, 0.4);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.form-submit {
    width: 100%;
}

.btn-text,
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Form Message */
.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    text-align: center;
}

.form-message.success {
    background: rgba(37, 211, 102, 0.15);
    color: var(--whatsapp-dark);
    border: 1px solid var(--whatsapp-color);
}

.form-message.error {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* ========================================
   Sections Common
   ======================================== */
section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
}

.section-title i {
    color: var(--accent-color);
}

/* ========================================
   Units Section
   ======================================== */
.units-section {
    background: var(--secondary-light);
}

.units-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.unit-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

/* hover handled by @media(hover:hover) block */

.unit-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--border-light) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.unit-image__placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
}
.unit-image__placeholder i { width: 48px; height: 48px; color: rgba(255,255,255,0.5); }

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

/* hover handled by @media(hover:hover) block */

.unit-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--whatsapp-color);
    color: var(--text-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

[dir="rtl"] .unit-badge {
    left: auto;
    right: var(--spacing-md);
}

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

.unit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.unit-location {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.unit-location i {
    width: 16px;
    height: 16px;
    color: var(--primary-light);
}

.unit-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.spec-item i {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
}

.unit-price {
    margin-bottom: var(--spacing-md);
}

.price-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.price-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.unit-btn {
    width: 100%;
}

.no-units {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xxl);
    color: var(--text-light);
    text-align: center;
}

/* ========================================
   Features Section
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-normal);
}

/* hover handled by @media(hover:hover) block */

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.feature-icon i {
    width: 28px;
    height: 28px;
    color: var(--text-white);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ========================================
   Location Section
   ======================================== */
.location-section {
    background: var(--secondary-light);
}

.location-content {
    display: grid;
    gap: var(--spacing-xl);
}

.location-info {
    order: 2;
}

.location-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.location-highlights {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.highlight-icon i {
    width: 22px;
    height: 22px;
    color: var(--text-white);
}

.highlight-item span {
    font-weight: 500;
    color: var(--text-dark);
}

.location-map {
    order: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 250px;
    background: var(--bg-white);
}

.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 250px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border: none;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 250px;
    color: var(--text-light);
    gap: var(--spacing-md);
}

.map-placeholder i {
    width: 48px;
    height: 48px;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--border-light) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* hover handled by @media(hover:hover) block */

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

/* hover handled by @media(hover:hover) block */

.gallery-overlay i {
    width: 32px;
    height: 32px;
    color: var(--text-white);
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-normal);
}

/* hover handled by @media(hover:hover) block */

.gallery-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xxl);
    color: var(--text-light);
    text-align: center;
    gap: var(--spacing-md);
}

.gallery-placeholder i {
    width: 48px;
    height: 48px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: var(--spacing-lg);
    right: var(--spacing-lg);
}

[dir="rtl"] .lightbox-close {
    right: auto;
    left: var(--spacing-lg);
}

.lightbox-prev {
    left: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
}

[dir="rtl"] .lightbox-prev {
    left: auto;
    right: var(--spacing-lg);
}

[dir="rtl"] .lightbox-next {
    right: auto;
    left: var(--spacing-lg);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-content {
    display: grid;
    gap: var(--spacing-xl);
}

.contact-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.contact-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.contact-methods {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.contact-method:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.contact-method.whatsapp:hover {
    border-color: var(--whatsapp-color);
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--secondary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method.whatsapp .method-icon {
    background: rgba(37, 211, 102, 0.15);
    color: var(--whatsapp-color);
}

.contact-method.phone .method-icon {
    color: var(--primary-light);
}

.contact-method.email .method-icon {
    color: var(--accent-color);
}

.method-icon i {
    width: 24px;
    height: 24px;
}

.method-info {
    flex: 1;
}

.method-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}

.method-value {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-hours {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--secondary-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}
.contact-hours i { width: 18px; height: 18px; color: var(--accent-color); flex-shrink: 0; }

.method-arrow { width: 18px; height: 18px; color: var(--text-light); flex-shrink: 0; transition: var(--transition-fast); }
.contact-method:hover .method-arrow { color: var(--primary-color); }
[dir="rtl"] .method-arrow { transform: rotate(180deg); }

.contact-form-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.footer-developer {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-developer i {
    width: 16px;
    height: 16px;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.footer-title i {
    width: 18px;
    height: 18px;
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    min-height: 44px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-inline-start: var(--spacing-sm);
}

.footer-links i {
    width: 14px;
    height: 14px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: var(--spacing-md);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-contact i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.copyright i {
    width: 14px;
    height: 14px;
}

/* ========================================
   Floating WhatsApp (inside .floating-buttons)
   ======================================== */
.whatsapp-label {
    display: none;
    font-weight: 600;
}

/* ========================================
   Scroll Popup
   ======================================== */
.scroll-popup {
    position: fixed;
    bottom: calc(90px + var(--safe-bottom));
    left: var(--spacing-md);
    right: var(--spacing-md);
    z-index: var(--z-popup);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.scroll-popup.active {
    opacity: 1;
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--secondary-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
}

[dir="rtl"] .popup-close {
    right: auto;
    left: var(--spacing-sm);
}

.popup-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.popup-text {
    flex: 1;
}

.popup-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

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

.popup-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--whatsapp-color);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.popup-btn:hover {
    background: var(--whatsapp-dark);
}

/* ========================================
   Fade Up Animation
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 400px;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .units-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .location-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .location-info {
        order: 1;
    }
    
    .location-map {
        order: 2;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .header-cta span {
        display: inline;
    }
    
    .whatsapp-label {
        display: inline;
    }
}

/* ========================================
   Responsive - Desktop
   ======================================== */
@media (min-width: 992px) {
    .units-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   Responsive - Mobile
   ======================================== */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--spacing-xl);
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .scroll-popup {
        display: block;
    }
    
}

/* Very Small Screens */
@media (max-width: 359px) {
    .dst-sticky-wa, .dst-sticky-call { width: 50px; height: 50px; }
    .dst-sticky-brochure { width: 50px; height: 50px; }
    .hero-title { font-size: 1.4rem; }
    .section-title { font-size: 1.2rem; }
    .hero-form-wrapper { padding: var(--spacing-md); }
    .dst-exit-body { padding: 24px 16px 20px; }
    .dst-exit-body h3 { font-size: 17px; }
    .header-brochure-btn { width: 36px; height: 36px; }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .site-header,
    .floating-buttons,
    .scroll-popup,
    .lightbox {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    .hero-section {
        min-height: auto;
        padding: 20pt;
        background: none !important;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-text {
        color: #000;
    }
}

/* ============================================
   EXIT-INTENT POPUP
   ============================================ */
.dst-exit-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.dst-exit-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dst-exit-popup {
    background: var(--bg-white, #fff);
    border-radius: 20px;
    padding: 0;
    max-width: 460px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), opacity 0.3s ease;
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}
.dst-exit-overlay.is-visible .dst-exit-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.dst-exit-close {
    position: absolute; top: 10px; right: 10px; background: #f3f4f6; border: 1px solid #e5e7eb;
    color: var(--text-dark, #333); cursor: pointer; z-index: 2;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.2s; font-size: 24px; font-weight: 700; line-height: 1;
}
[dir="rtl"] .dst-exit-close { right: auto; left: 10px; }
.dst-exit-close:hover { background: #e5e7eb; color: #000; }

.dst-exit-body { padding: 36px 32px 28px; text-align: center; }
.dst-exit-icon { font-size: 48px; margin-bottom: 12px; }
.dst-exit-body h3 {
    font-size: 22px; font-weight: 700; color: var(--text-dark, #1a1a1a);
    margin: 0 0 10px;
}
.dst-exit-body > p {
    font-size: 14px; color: var(--text-light, #5a5a5a); line-height: 1.6;
    margin: 0 0 24px; max-width: 360px; margin-left: auto; margin-right: auto;
}

.dst-exit-fields { margin-bottom: 4px; }
.dst-exit-fields .form-group { margin-bottom: 10px; }
.dst-exit-fields input,
.dst-exit-fields select {
    width: 100%; padding: 13px 16px; border: 2px solid var(--border-light, #e8e4dd);
    border-radius: 10px; font-size: 15px; font-family: inherit;
    color: var(--text-dark); background: var(--bg-white); transition: border-color 0.2s;
    box-sizing: border-box;
}
.dst-exit-fields input:focus,
.dst-exit-fields select:focus { outline: none; border-color: var(--primary-color); }
.dst-exit-fields input::placeholder { color: #aaa; }

.dst-exit-submit { width: 100%; border-radius: 10px; padding: 14px; font-size: 16px; }

.dst-exit-or {
    display: flex; align-items: center; gap: 12px; margin: 18px 0;
    color: var(--text-light); font-size: 13px;
}
.dst-exit-or::before, .dst-exit-or::after {
    content: ''; flex: 1; height: 1px; background: var(--border-light, #e8e4dd);
}

.dst-exit-direct { display: flex; gap: 10px; justify-content: center; }
.dst-exit-wa, .dst-exit-call {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
    border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none;
    transition: all 0.2s;
}
.dst-exit-wa { background: #25D366; color: #fff; }
.dst-exit-wa:hover { background: #1fb855; transform: translateY(-2px); }
.dst-exit-call { background: var(--primary-color, #1E3A5F); color: #fff; }
.dst-exit-call:hover { opacity: 0.9; transform: translateY(-2px); }
.dst-exit-wa i, .dst-exit-call i { width: 16px; height: 16px; }

.dst-exit-note {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    margin-top: 16px; font-size: 12px; color: var(--text-light); margin-bottom: 0;
}
.dst-exit-note i { width: 13px; height: 13px; }

/* ============================================
   STICKY MOBILE CTA BAR
   ============================================ */
.dst-sticky-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-white, #fff);
    padding: 12px 16px calc(12px + var(--safe-bottom));
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: var(--z-sticky);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-top: 1px solid var(--border-light, #e8e4dd);
    transform: translateY(0);
    visibility: visible;
}

.dst-sticky-form-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--primary-color, #1E3A5F); color: #fff; padding: 16px 16px;
    border-radius: 12px; font-weight: 700; font-size: 16px;
    text-decoration: none; transition: opacity 0.2s; min-height: 54px;
}
.dst-sticky-form-btn:hover { opacity: 0.9; color: #fff; }
.dst-sticky-form-btn i { width: 20px; height: 20px; }

.dst-sticky-wa {
    width: 54px; height: 54px; background: #25D366; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; text-decoration: none; color: #fff; transition: background 0.2s;
}
.dst-sticky-wa:hover { background: #1fb855; color: #fff; }
.dst-sticky-wa i { width: 26px; height: 26px; }

.dst-sticky-call {
    width: 54px; height: 54px; background: var(--primary-light, #3A7AB8); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; text-decoration: none; color: #fff; transition: opacity 0.2s;
}
.dst-sticky-call:hover { opacity: 0.9; color: #fff; }
.dst-sticky-call i { width: 26px; height: 26px; }

/* Adjust floating buttons position on mobile */
/* Desktop sticky bar is now visible (styled in DESKTOP STICKY BAR section) */

/* ============================================
   EXIT POPUP RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .dst-exit-popup { border-radius: 16px; }
    .dst-exit-body { padding: 28px 20px 22px; }
    .dst-exit-body h3 { font-size: 19px; }
    .dst-exit-body > p { font-size: 13px; }
    .dst-exit-direct { flex-direction: column; }
    .dst-exit-wa, .dst-exit-call, .dst-exit-brochure { justify-content: center; }
}

/* ============================================
   PRINT — HIDE NEW ELEMENTS
   ============================================ */
@media print {
    .dst-exit-overlay,
    .dst-sticky-bar,
    .dst-idle-popup,
    .dst-welcome-popup,
    .dst-viewing-toast,
    .inline-cta-strip,
    .dst-countdown-strip,
    .dst-urgency-banner,
    .floating-buttons { display: none !important; }
}

/* ============================================
   SHIMMER / SKELETON ANIMATION
   ============================================ */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   PROJECTS LIST PAGE (index.php)
   ============================================ */
.projects-list-section {
    padding: 100px 0 60px;
}

.section-title--lg {
    font-size: 2.5rem;
}

.section-subtitle {
    color: var(--text-light);
    margin-top: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.project-card__link {
    display: block;
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--border-light) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

.project-image__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image__placeholder i {
    width: 64px;
    height: 64px;
    color: rgba(255,255,255,0.3);
}

.project-status {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

[dir="rtl"] .project-status {
    left: auto;
    right: 15px;
}

.status--active { background: #22c55e; }
.status--coming_soon { background: #f59e0b; }
.status--sold_out { background: #ef4444; }

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

.project-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.project-developer {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-developer i { width: 16px; height: 16px; }

.project-subtitle {
    font-weight: 600;
    font-size: 0.95rem;
}

.project-cta {
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-cta__text {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-cta__text i { width: 18px; height: 18px; }

[dir="rtl"] .project-cta__text i[data-lucide="arrow-right"] {
    transform: rotate(180deg);
}

.projects-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xxl);
}

.projects-pagination a,
.projects-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition-fast);
}

.projects-pagination a {
    background: var(--bg-light);
    color: var(--text-dark);
}

.projects-pagination a:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.projects-pagination .current {
    background: var(--primary-color);
    color: var(--text-white);
}

.projects-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.projects-empty i {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

/* ============================================
   HOVER-ONLY (prevent sticky hover on touch)
   ============================================ */
@media (hover: hover) {
    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }
    .project-card:hover .project-image img {
        transform: scale(1.1);
    }
    .unit-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    .unit-card:hover .unit-image img {
        transform: scale(1.05);
    }
    .feature-card:hover {
        border-color: var(--primary-light);
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
    }
    .gallery-item:hover img {
        transform: scale(1.1);
    }
    .gallery-item:hover .gallery-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    .gallery-item:hover .gallery-overlay i {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RTL ARROW FIX
   ============================================ */
[dir="rtl"] .footer-links i[data-lucide="chevron-right"] {
    transform: rotate(180deg);
}

/* ============================================
   FOCUS-VISIBLE (keyboard accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* ============================================
   FADE-UP with CSS custom property delay
   ============================================ */
.fade-up {
    transition-delay: calc(var(--delay, 0) * 0.1s);
}

/* ============================================
   PREFERS-REDUCED-MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-up { opacity: 1; transform: none; }
    .scroll-indicator { animation: none; }
    html { scroll-behavior: auto; }
}

/* ============================================
   GALLERY CONTENT GATING
   ============================================ */
.gallery-gated {
    position: relative;
}
.gallery-gated img {
    filter: blur(8px);
}
.gallery-gate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--text-white);
    z-index: 2;
}
.gallery-gate-overlay i { width: 28px; height: 28px; }
.gallery-gate-overlay span { font-size: 0.9rem; font-weight: 500; }
.gallery-gate-btn {
    margin-top: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--accent-color);
    color: var(--text-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(184, 146, 63, 0.4);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}
.gallery-gate-btn:hover {
    background: var(--accent-dark);
    color: var(--text-white);
}

/* ============================================
   PRICE GATING
   ============================================ */
.price-gated {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(184, 146, 63, 0.4);
    border-radius: var(--radius-full);
    animation: pricePulse 2s ease-in-out infinite;
}
.price-gated:hover {
    color: var(--text-white);
    transform: scale(1.05);
}
.price-gated i { width: 16px; height: 16px; }

@keyframes pricePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(184, 146, 63, 0.4), 0 0 0 0 rgba(184, 146, 63, 0.4); }
    50% { box-shadow: 0 2px 8px rgba(184, 146, 63, 0.4), 0 0 0 8px rgba(184, 146, 63, 0); }
}

/* ============================================
   BROCHURE BUTTON STYLES
   ============================================ */
.header-brochure-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--text-white);
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition-fast);
}
/* Visible on both transparent and scrolled header */
.site-header:not(.scrolled) .header-brochure-btn {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.header-brochure-btn i { width: 20px; height: 20px; }
.header-brochure-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--text-white); }
.scrolled .header-brochure-btn { background: var(--accent-color); }

.floating-buttons {
    position: fixed;
    bottom: calc(var(--spacing-lg) + var(--safe-bottom));
    right: var(--spacing-lg);
    z-index: var(--z-floating);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-end;
}
[dir="rtl"] .floating-buttons { right: auto; left: var(--spacing-lg); }

@media (max-width: 768px) {
    .floating-buttons { bottom: calc(90px + var(--safe-bottom)); }
}
@media (max-width: 359px) {
    .floating-buttons { bottom: calc(85px + var(--safe-bottom)); }
}

.floating-brochure {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--accent-color);
    color: var(--text-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(184, 146, 63, 0.4), var(--shadow-lg);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}
.floating-brochure:hover { background: var(--accent-dark); transform: scale(1.05); color: var(--text-white); }
.floating-brochure i { width: 24px; height: 24px; }
.brochure-label { display: none; font-weight: 600; }

.floating-whatsapp {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--whatsapp-color);
    color: var(--text-white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}
.floating-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    color: var(--text-white);
}
.floating-whatsapp i { width: 28px; height: 28px; }

.dst-sticky-brochure {
    width: 54px; height: 54px;
    background: var(--accent-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(184, 146, 63, 0.4);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; text-decoration: none; color: var(--text-white);
    transition: background 0.2s;
}
.dst-sticky-brochure:hover { background: var(--accent-dark); color: var(--text-white); }
.dst-sticky-brochure i { width: 26px; height: 26px; }

.dst-exit-brochure {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(184, 146, 63, 0.4);
    border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none;
    transition: all 0.2s; background: var(--accent-color); color: var(--text-white);
}
.dst-exit-brochure:hover { background: var(--accent-dark); transform: translateY(-2px); color: var(--text-white); }
.dst-exit-brochure i { width: 16px; height: 16px; }

.contact-method.brochure .method-icon {
    background: rgba(184, 146, 63, 0.15);
    color: var(--accent-color);
}

@media (min-width: 768px) {
    .brochure-label { display: inline; }
}

/* ============================================
   INLINE CTA STRIP
   ============================================ */
.inline-cta-strip {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-xl) 0;
}
.inline-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}
.inline-cta-text h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
}
.inline-cta-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}
.inline-cta-register {
    background: var(--accent-color);
    color: var(--text-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(184, 146, 63, 0.4);
}
.inline-cta-register:hover { background: var(--accent-dark); color: var(--text-white); }
.inline-cta-brochure {
    background: rgba(255,255,255,0.15);
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.3);
}
.inline-cta-brochure:hover { background: rgba(255,255,255,0.25); color: var(--text-white); }
.inline-cta-wa {
    background: var(--whatsapp-color);
    color: var(--text-white);
}
.inline-cta-wa:hover { background: var(--whatsapp-dark); color: var(--text-white); }

@media (max-width: 767px) {
    .inline-cta-inner { flex-direction: column; text-align: center; }
    .inline-cta-actions { justify-content: center; width: 100%; }
    .inline-cta-actions .btn { flex: 1; min-width: 0; font-size: 0.85rem; padding: var(--spacing-sm) var(--spacing-md); }
}

/* ============================================
   DESKTOP STICKY BAR
   ============================================ */
@media (min-width: 769px) {
    .dst-sticky-bar {
        padding: 8px 20px;
        justify-content: center;
        gap: 12px;
    }
    .dst-sticky-form-btn { flex: none; padding: 14px 28px; font-size: 15px; }
    .dst-sticky-wa, .dst-sticky-call, .dst-sticky-brochure { width: 48px; height: 48px; }
    .dst-sticky-wa i, .dst-sticky-call i, .dst-sticky-brochure i { width: 22px; height: 22px; }
}

/* ============================================
   INACTIVITY POPUP
   ============================================ */
.dst-idle-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: var(--z-overlay);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
    max-width: 360px;
}
[dir="rtl"] .dst-idle-popup { left: 50%; right: auto; }
.dst-idle-popup.is-visible { transform: translate(-50%, -50%) scale(1); opacity: 1; }

.dst-idle-close {
    position: absolute; top: 10px; right: 10px; background: #f3f4f6; border: 1px solid #e5e7eb;
    color: var(--text-dark); cursor: pointer; font-size: 22px; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    font-weight: 700; line-height: 1; transition: all 0.2s;
}
[dir="rtl"] .dst-idle-close { right: auto; left: 10px; }
.dst-idle-close:hover { background: #e5e7eb; color: #000; }

.dst-idle-content {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--spacing-md);
}
.dst-idle-icon {
    width: 56px; height: 56px; background: var(--secondary-light);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dst-idle-icon i { width: 22px; height: 22px; color: var(--primary-color); }
.dst-idle-text h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.dst-idle-text p { font-size: 0.8rem; color: var(--text-light); }
.dst-idle-wa {
    width: 44px; height: 44px; background: var(--whatsapp-color); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-white);
}
.dst-idle-wa:hover { background: var(--whatsapp-dark); color: var(--text-white); }
.dst-idle-wa i { width: 20px; height: 20px; }

/* ============================================
   TAB-SWITCH WELCOME BACK POPUP
   ============================================ */
.dst-welcome-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: var(--z-overlay);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 400px;
    border-left: 4px solid var(--accent-color);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    max-width: 340px;
}
[dir="rtl"] .dst-welcome-popup {
    left: 50%; right: auto;
}
.dst-welcome-popup.is-visible { transform: translate(-50%, -50%) scale(1); opacity: 1; }

.dst-welcome-close {
    position: absolute; top: 10px; right: 10px; background: #f3f4f6; border: 1px solid #e5e7eb;
    color: var(--text-dark); cursor: pointer; font-size: 22px; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    font-weight: 700; line-height: 1; transition: all 0.2s;
}
[dir="rtl"] .dst-welcome-close { right: auto; left: 10px; }
.dst-welcome-close:hover { background: #e5e7eb; color: #000; }

.dst-welcome-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--spacing-md); }
.dst-welcome-icon {
    width: 56px; height: 56px; background: var(--secondary-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dst-welcome-icon i { width: 24px; height: 24px; color: var(--accent-color); }
.dst-welcome-text h4 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.dst-welcome-text p { font-size: 0.9rem; color: var(--text-light); }
.dst-welcome-btn {
    padding: var(--spacing-md) var(--spacing-xl); background: var(--primary-color);
    color: var(--text-white); border-radius: var(--radius-full); font-weight: 600;
    font-size: 1rem; white-space: nowrap;
}
.dst-welcome-btn:hover { background: var(--primary-dark); color: var(--text-white); }

/* ============================================
   URGENCY BANNER
   ============================================ */
.dst-urgency-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-overlay);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.dst-urgency-banner.is-visible {
    transform: translateY(0);
}
.dst-urgency-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}
.dst-urgency-link:hover { background: linear-gradient(135deg, #b02a37 0%, #8b2131 100%); color: #fff; }
.dst-urgency-pulse {
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: urgencyPulse 1.5s ease-in-out infinite;
}
@keyframes urgencyPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}
.dst-urgency-text strong { color: #FFD700; }
.dst-urgency-arrow { font-size: 24px; flex-shrink: 0; }
[dir="ltr"] .dst-urgency-arrow { transform: rotate(180deg); }
@media (max-width: 480px) {
    .dst-urgency-link { font-size: 15px; padding: 16px 16px; gap: 10px; }
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.dst-countdown-strip {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(220,53,69,0.15);
    border: 1px solid rgba(220,53,69,0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
}
.dst-countdown-strip i { width: 16px; height: 16px; }
.dst-countdown-strip strong {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ============================================
   SOCIAL PROOF — Viewing Toast
   ============================================ */
.dst-viewing-toast {
    position: fixed;
    bottom: calc(var(--spacing-lg) + var(--safe-bottom));
    left: var(--spacing-lg);
    z-index: var(--z-popup);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--text-dark);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
    max-width: 320px;
}
[dir="rtl"] .dst-viewing-toast { left: auto; right: var(--spacing-lg); }
.dst-viewing-toast.is-visible { transform: translateY(0); opacity: 1; }
.dst-viewing-toast i { width: 18px; height: 18px; color: var(--primary-light); flex-shrink: 0; }
.dst-viewing-toast strong { color: var(--primary-color); }

@media (max-width: 767px) {
    .dst-viewing-toast {
        left: var(--spacing-md);
        right: var(--spacing-md);
        bottom: calc(160px + var(--safe-bottom));
        max-width: none;
    }
}

/* ============================================
   SOCIAL PROOF — Registered Today Counter
   ============================================ */
.dst-registered-today {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: calc(-1 * var(--spacing-sm));
    margin-bottom: var(--spacing-md);
}

/* ============================================
   SOCIAL PROOF — Pulse Dot
   ============================================ */
.dst-pulse-dot {
    width: 8px; height: 8px;
    background: var(--whatsapp-color);
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 2s ease-in-out infinite;
}
.dst-pulse-dot--red { background: #ef4444; }

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
}

/* ============================================
   SOCIAL PROOF — Limited Units Badge
   ============================================ */
.unit-limited-badge {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(0,0,0,0.7);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
[dir="rtl"] .unit-limited-badge { left: auto; right: var(--spacing-md); }

/* ============================================
   MOBILE — Adjust floating positions
   ============================================ */
@media (max-width: 768px) {
    .dst-idle-popup { width: 92%; }
    [dir="rtl"] .dst-idle-popup { left: 50%; right: auto; }
}
