:root {
      --primary: #0d9488;
      --primary-dark: #0f766e;
      --primary-light: #14b8a6;
      --accent: #f59e0b;
      --text: #0f172a;
      --text-light: #64748b;
      --bg: #ffffff;
      --bg-light: #f8fafc;
      --bg-dark: #0f172a;
      --border: #e2e8f0;
      --danger: #ef4444;
      --success: #10b981;
      --gradient: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
      --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
      --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.15);
      --radius: 12px;
      --radius-lg: 20px;
      --transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { font-family: 'Cairo', sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; line-height: 1.7; }
    html[lang="en"] { direction: ltr; }
    h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.3; }
    a { text-decoration: none; color: inherit; transition: var(--transition); }
    img { max-width: 100%; height: auto; }
    .hidden-lang { display: none !important; }
    .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
    .section { padding: 100px 0; }
    .text-center { text-align: center; }
    .text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

    /* Buttons */
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 32px; border-radius: 50px; font-weight: 700; font-size: 16px; cursor: pointer; border: none; transition: var(--transition); font-family: inherit; }
    .btn-primary { background: var(--gradient); color: white; box-shadow: 0 4px 15px rgba(13,148,136,0.4); }
    .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(13,148,136,0.5); }
    .btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
    .btn-outline:hover { background: var(--primary); color: white; }
    .btn-white { background: white; color: var(--primary); box-shadow: var(--shadow-lg); }
    .btn-white:hover { transform: translateY(-3px); }

    /* Navigation */
    .navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: var(--transition); }
    .navbar.scrolled { background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); box-shadow: var(--shadow); padding: 15px 0; }
    .navbar .container { display: flex; justify-content: space-between; align-items: center; }
    .nav-logo { font-size: 28px; font-weight: 900; color: white; display: flex; align-items: center; gap: 12px; }
    .navbar.scrolled .nav-logo { color: var(--primary); }
    .nav-menu { display: flex; gap: 8px; list-style: none; align-items: center; }
    .nav-menu a, .nav-menu button { padding: 12px 20px; font-weight: 600; color: rgba(255,255,255,0.9); background: none; border: none; cursor: pointer; transition: var(--transition); font-size: 15px; border-radius: 8px; font-family: inherit; }
    .navbar.scrolled .nav-menu a, .navbar.scrolled .nav-menu button { color: var(--text); }
    .nav-menu a:hover, .nav-menu button:hover { background: rgba(255,255,255,0.15); }
    .navbar.scrolled .nav-menu a:hover, .navbar.scrolled .nav-menu button:hover { background: var(--bg-light); color: var(--primary); }
    .nav-menu .btn-book { background: var(--accent); color: var(--bg-dark) !important; padding: 12px 24px; border-radius: 50px; font-weight: 700; }
    .nav-menu .btn-book:hover { background: #e68a00; transform: scale(1.05); }
    .nav-right { display: flex; align-items: center; gap: 15px; }
    .lang-toggle { width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.15); color: white; border: none; cursor: pointer; font-weight: 700; font-size: 14px; transition: var(--transition); }
    .navbar.scrolled .lang-toggle { background: var(--bg-light); color: var(--text); }
    .mobile-toggle { display: none; width: 45px; height: 45px; border-radius: 10px; background: rgba(255,255,255,0.15); color: white; border: none; cursor: pointer; font-size: 20px; align-items: center; justify-content: center; }
    .navbar.scrolled .mobile-toggle { background: var(--bg-light); color: var(--text); }

    @media (max-width: 1024px) {
      .mobile-toggle { display: flex; }
      .nav-menu { position: fixed; top: 0; right: -100%; width: 80%; max-width: 400px; height: 100vh; background: var(--bg-dark); flex-direction: column; padding: 100px 30px 30px; gap: 10px; transition: var(--transition); z-index: 999; }
      .nav-menu.open { right: 0; }
      .nav-menu a, .nav-menu button { color: white !important; width: 100%; text-align: center; padding: 15px; }
      .nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 998; }
      .nav-overlay.open { opacity: 1; visibility: visible; }
    }

    /* Hero */
    .hero { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }
    .hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #0f172a; background-position: center; background-size: cover;
      background-image: radial-gradient(circle at 82% 18%, rgba(20,184,166,0.45), transparent 45%), radial-gradient(circle at 12% 88%, rgba(14,165,233,0.30), transparent 42%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 30px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 30px); }
    .hero-bg::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(13,148,136,0.35) 0%, rgba(15,23,42,0.25) 100%); }
    .hero-bg.has-photo::before { background: linear-gradient(135deg, rgba(13,148,136,0.85) 0%, rgba(15,23,42,0.9) 100%); }
    .hero-content { position: relative; z-index: 10; max-width: 800px; color: white; padding: 0 20px; }
    .hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: 10px 20px; border-radius: 50px; font-size: 14px; font-weight: 600; margin-bottom: 30px; }
    .hero-title { font-size: clamp(40px, 7vw, 72px); font-weight: 700; margin-bottom: 25px; line-height: 1.1; }
    .hero-subtitle { font-size: clamp(18px, 2.5vw, 22px); opacity: 0.9; margin-bottom: 40px; line-height: 1.8; }
    .hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }
    .hero-stats { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); display: flex; gap: 60px; z-index: 10; }
    .hero-stat { text-align: center; color: white; }
    .hero-stat-number { font-size: 48px; font-weight: 900; display: block; line-height: 1; }
    .hero-stat-label { font-size: 14px; opacity: 0.8; margin-top: 5px; }

    @media (max-width: 768px) { .hero-stats { gap: 30px; bottom: 50px; } .hero-stat-number { font-size: 32px; } }

    /* Search Box */
    .search-box { background: white; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); margin-top: -80px; position: relative; z-index: 20; }
    .search-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 20px; align-items: end; }
    .search-field { display: flex; flex-direction: column; gap: 8px; }
    .search-field label { font-size: 13px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
    .search-field select, .search-field input { padding: 15px 20px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 15px; font-family: inherit; transition: var(--transition); background: var(--bg-light); }
    .search-field select:focus, .search-field input:focus { outline: none; border-color: var(--primary); background: white; }
    .search-btn { height: 55px; padding: 0 40px; }

    @media (max-width: 1024px) { .search-form { grid-template-columns: repeat(2, 1fr); } .search-btn { grid-column: span 2; } }
    @media (max-width: 600px) { .search-form { grid-template-columns: 1fr; } .search-btn { grid-column: span 1; } }

    /* Features */
    .features { background: var(--bg-light); }
    .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
    .feature-card { background: white; padding: 40px 30px; border-radius: var(--radius-lg); text-align: center; transition: var(--transition); border: 1px solid var(--border); }
    .feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
    .feature-icon { width: 80px; height: 80px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; font-size: 32px; color: white; }
    .feature-title { font-size: 20px; margin-bottom: 15px; font-family: 'Cairo', sans-serif; font-weight: 700; }
    .feature-desc { color: var(--text-light); font-size: 15px; }

    @media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

    /* Properties */
    .section-title { font-size: clamp(32px, 5vw, 48px); margin-bottom: 20px; }
    .section-subtitle { font-size: 18px; color: var(--text-light); max-width: 600px; margin-bottom: 50px; }
    .properties-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 50px; flex-wrap: wrap; gap: 20px; }
    .properties-filters { display: flex; gap: 10px; flex-wrap: wrap; }
    .filter-btn { padding: 12px 24px; border: 2px solid var(--border); border-radius: 50px; background: white; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit; }
    .filter-btn:hover, .filter-btn.active { border-color: var(--primary); background: var(--primary); color: white; }

    .property-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
    .property-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
    .property-image { position: relative; height: 250px; overflow: hidden; }
    .property-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
    .property-card:hover .property-image img { transform: scale(1.1); }
    .property-badge { position: absolute; top: 15px; right: 15px; background: var(--primary); color: white; padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; }
    .property-badge.featured { background: var(--accent); }
    .property-favorite { position: absolute; top: 15px; left: 15px; width: 40px; height: 40px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow); }
    .property-favorite:hover { background: var(--danger); color: white; }
    .property-content { padding: 25px; }
    .property-price { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
    .property-price span { font-size: 14px; font-weight: 500; color: var(--text-light); }
    .property-title { font-size: 20px; margin-bottom: 15px; font-family: 'Cairo', sans-serif; font-weight: 700; }
    .property-location { display: flex; align-items: center; gap: 8px; color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
    .property-features { display: flex; gap: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
    .property-feature { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); }
    .property-feature i { color: var(--primary); }
    .property-actions { display: flex; gap: 10px; margin-top: 20px; }
    .property-actions .btn { flex: 1; padding: 12px; font-size: 14px; }

    .swiper-pagination-bullet { width: 12px; height: 12px; background: var(--primary); opacity: 0.3; }
    .swiper-pagination-bullet-active { opacity: 1; width: 30px; border-radius: 6px; }

    /* About */
    .about { background: var(--bg-dark); color: white; position: relative; overflow: hidden; }
    .about::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: var(--gradient); opacity: 0.1; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%); }
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
    .about-image { position: relative; }
    .about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
    .about-image-badge { position: absolute; bottom: -30px; right: -30px; background: var(--gradient); color: white; padding: 30px; border-radius: var(--radius-lg); text-align: center; }
    .about-image-badge .number { font-size: 48px; font-weight: 900; display: block; }
    .about-content .section-title { color: white; }
    .about-content .section-subtitle { color: rgba(255,255,255,0.7); }
    .about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 40px; }
    .about-feature { display: flex; gap: 15px; }
    .about-feature-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary-light); flex-shrink: 0; }
    .about-feature-title { font-weight: 700; margin-bottom: 5px; font-family: 'Cairo', sans-serif; }
    .about-feature-desc { font-size: 14px; color: rgba(255,255,255,0.6); }

    @media (max-width: 1024px) { .about-grid { grid-template-columns: 1fr; gap: 50px; } .about-image-badge { right: 20px; bottom: -20px; } }

    /* Areas */
    .areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .area-card { position: relative; height: 300px; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
    .area-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
    .area-card:hover img { transform: scale(1.1); }
    .area-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 20px; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); color: white; transition: var(--transition); }
    .area-card:hover .area-overlay { background: linear-gradient(to top, var(--primary) 0%, transparent 100%); }
    .area-name { font-size: 22px; font-weight: 700; margin-bottom: 5px; font-family: 'Cairo', sans-serif; }
    .area-count { font-size: 14px; opacity: 0.9; }

    @media (max-width: 1024px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 600px) { .areas-grid { grid-template-columns: 1fr; } .area-card { height: 200px; } }

    /* CTA */
    .cta { background: var(--gradient); padding: 100px 0; text-align: center; color: white; position: relative; overflow: hidden; }
    .cta-content { position: relative; z-index: 10; }
    .cta-title { font-size: clamp(32px, 5vw, 48px); margin-bottom: 20px; }
    .cta-subtitle { font-size: 18px; opacity: 0.9; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
    .cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

    /* Contact */
    .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
    .contact-info { background: var(--bg-dark); color: white; padding: 50px; border-radius: var(--radius-lg); }
    .contact-info .section-title { color: white; font-size: 32px; }
    .contact-details { margin-top: 40px; }
    .contact-item { display: flex; gap: 20px; margin-bottom: 30px; }
    .contact-icon { width: 60px; height: 60px; background: rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary-light); flex-shrink: 0; }
    .contact-label { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 5px; }
    .contact-value { font-size: 18px; font-weight: 600; }
    .contact-value a { color: white; }
    .contact-value a:hover { color: var(--primary-light); }
    .contact-social { display: flex; gap: 15px; margin-top: 40px; }
    .social-link { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; transition: var(--transition); }
    .social-link:hover { background: var(--primary); transform: translateY(-5px); }

    .contact-form-wrapper { background: white; padding: 50px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
    .form-title { font-size: 28px; margin-bottom: 30px; font-family: 'Cairo', sans-serif; }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .form-group { margin-bottom: 20px; }
    .form-group.full-width { grid-column: span 2; }
    .form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text); }
    .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 15px 20px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 15px; font-family: inherit; transition: var(--transition); }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
    .form-group textarea { resize: vertical; min-height: 120px; }

    @media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } .form-group.full-width { grid-column: span 1; } }

    /* Footer */
    .footer { background: var(--bg-dark); color: white; padding: 80px 0 30px; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
    .footer-logo { font-size: 28px; font-weight: 900; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; color: white; }
    .footer-desc { color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 25px; }
    .footer-title { font-size: 18px; font-weight: 700; margin-bottom: 25px; font-family: 'Cairo', sans-serif; }
    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 12px; }
    .footer-links a { color: rgba(255,255,255,0.6); transition: var(--transition); }
    .footer-links a:hover { color: var(--primary-light); padding-right: 10px; }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
    .footer-copyright { color: rgba(255,255,255,0.6); }

    @media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

    /* Loading */
    .loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-dark); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s, visibility 0.5s; }
    .loader.hidden { opacity: 0; visibility: hidden; }
    .loader-content { text-align: center; color: white; }
    .loader-logo { font-size: 36px; font-weight: 900; margin-bottom: 30px; display: flex; align-items: center; justify-content: center; gap: 15px; }
    .loader-spinner { width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Back to Top */
    .back-to-top { position: fixed; bottom: 100px; right: 25px; width: 50px; height: 50px; background: white; color: var(--primary); border: none; border-radius: 50%; cursor: pointer; font-size: 20px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; }
    .back-to-top.visible { opacity: 1; visibility: visible; }
    .back-to-top:hover { background: var(--primary); color: white; transform: translateY(-5px); }

    /* ===== SARA CHAT WIDGET ===== */
    .chat-widget { position: fixed; bottom: 25px; right: 25px; z-index: 1000; }
    .chat-btn { width: 65px; height: 65px; border-radius: 50%; background: var(--gradient); color: white; border: none; cursor: pointer; font-size: 26px; box-shadow: 0 4px 20px rgba(13,148,136,0.4); transition: var(--transition); display: flex; align-items: center; justify-content: center; }
    .chat-btn:hover { transform: scale(1.1); }
    .chat-badge { position: absolute; top: -5px; right: -5px; width: 22px; height: 22px; background: var(--danger); color: white; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
    
    .chat-popup { position: fixed; bottom: 100px; right: 25px; width: 380px; background: white; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); overflow: hidden; z-index: 1001; display: none; }
    .chat-popup.open { display: block; animation: slideUp 0.3s ease; }
    @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    
    .chat-header { background: var(--gradient); color: white; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
    .chat-avatar { width: 50px; height: 50px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; }
    .chat-info { flex: 1; }
    .chat-info h4 { margin: 0 0 3px 0; font-size: 17px; font-family: 'Cairo', sans-serif; }
    .chat-info span { font-size: 13px; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
    .chat-online { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; }
    .chat-close { background: rgba(255,255,255,0.2); border: none; color: white; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; transition: var(--transition); }
    .chat-close:hover { background: rgba(255,255,255,0.3); }
    
    .chat-messages { height: 320px; overflow-y: auto; padding: 20px; background: #f1f5f9; display: flex; flex-direction: column; gap: 15px; }
    .chat-msg { display: flex; gap: 10px; max-width: 85%; animation: msgFade 0.3s ease; }
    @keyframes msgFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .chat-msg.bot { align-self: flex-start; }
    .chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
    .chat-msg .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
    .chat-msg.user .avatar { background: #64748b; color: white; }
    .chat-msg .text { background: white; padding: 12px 16px; border-radius: 18px; border-top-left-radius: 4px; font-size: 14px; line-height: 1.5; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
    .chat-msg.user .text { background: var(--gradient); color: white; border-radius: 18px; border-top-right-radius: 4px; }
    
    .chat-typing { display: flex; gap: 4px; padding: 12px 16px; background: white; border-radius: 18px; width: fit-content; }
    .chat-typing span { width: 8px; height: 8px; background: #94a3b8; border-radius: 50%; animation: bounce 1.4s infinite; }
    .chat-typing span:nth-child(2) { animation-delay: 0.2s; }
    .chat-typing span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
    
    .chat-quick { padding: 12px 20px; background: white; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px; }
    .chat-quick button { padding: 8px 16px; background: var(--bg-light); border: 1px solid var(--border); border-radius: 20px; font-size: 13px; cursor: pointer; transition: var(--transition); font-family: inherit; }
    .chat-quick button:hover { border-color: var(--primary); color: var(--primary); background: rgba(13,148,136,0.1); }
    
    .chat-input { display: flex; gap: 10px; padding: 15px 20px; background: white; border-top: 1px solid var(--border); }
    .chat-input input { flex: 1; padding: 12px 18px; border: 2px solid var(--border); border-radius: 25px; font-size: 14px; font-family: inherit; }
    .chat-input input:focus { outline: none; border-color: var(--primary); }
    .chat-input button { width: 46px; height: 46px; background: var(--gradient); color: white; border: none; border-radius: 50%; cursor: pointer; font-size: 18px; transition: var(--transition); }
    .chat-input button:hover { transform: scale(1.05); }
    
    @media (max-width: 480px) { .chat-popup { width: calc(100% - 20px); right: 10px; bottom: 100px; } }

/* ===== v51 additions (no inline styles: required by the strict CSP) ===== */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-subtitle.centered { margin: 0 auto 50px; }
.properties-swiper { padding-bottom: 60px; }
.properties-swiper[hidden], .empty-state[hidden] { display: none !important; }
.empty-state { text-align: center; color: var(--text-light); padding: 40px; }
.empty-state .empty-icon { font-size: 48px; color: var(--border); display: block; margin-bottom: 15px; }
.empty-state .btn { margin-top: 20px; }
.property-image .no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-light); color: var(--border); font-size: 56px; }
.photo-count { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.7); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 12px; }
.property-favorite { border: none; font-size: 16px; color: var(--text); }
.property-favorite.active { background: var(--danger); color: #fff; }
.property-desc { color: var(--text-light); font-size: 14px; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.property-features { flex-wrap: wrap; }
.area-card { border: none; padding: 0; text-align: inherit; font: inherit; color: inherit; width: 100%; display: block; }
.area-card:focus-visible, .filter-btn:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-status { margin-top: 15px; padding: 15px; border-radius: var(--radius); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #d1fae5; color: #065f46; }
.form-status.err { background: #fee2e2; color: #991b1b; }
.form-status .btn { margin-top: 12px; padding: 10px 18px; font-size: 14px; }
.selected-property { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(13,148,136,0.08); border: 1px solid var(--primary); border-radius: var(--radius); padding: 10px 15px; margin-bottom: 20px; font-weight: 600; }
.selected-property[hidden] { display: none; }
.selected-property button { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: 16px; }
.results-note { color: var(--text-light); font-size: 14px; margin: -30px 0 20px; }
.results-note button { background: none; border: none; color: var(--primary); font-weight: 700; cursor: pointer; font-family: inherit; text-decoration: underline; }

/* Chat */
.chat-msg .text { white-space: pre-line; word-break: break-word; }
.chat-msg.bot .avatar { color: #fff; }
.chat-quick .wa-btn { background: #25d366; color: #fff; border: 2px solid #25d366; padding: 10px 16px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.chat-quick .chip-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-badge[hidden] { display: none; }
.chat-header .chat-close + .chat-close { margin-inline-start: 6px; }
.chat-note { font-size: 11px; color: var(--text-light); text-align: center; padding: 0 20px 10px; background: #fff; }

/* Mobile menu: keep the off-canvas menu from widening the page on phones */
html { overflow-x: clip; }
@media (max-width: 1024px) {
  .nav-menu { right: 0; transform: translateX(110%); visibility: hidden; transition: transform .4s cubic-bezier(0.4,0,0.2,1), visibility .4s; }
  html[dir="ltr"] .nav-menu { right: auto; left: 0; transform: translateX(-110%); }
  .nav-menu.open, html[dir="ltr"] .nav-menu.open { transform: none; visibility: visible; }
}

/* Area cards: designed, no stock photos (swap in real Ajman photos later if wanted) */
.area-card {
  position: relative; height: 230px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--radius-lg); overflow: hidden; color: #fff; cursor: pointer; isolation: isolate;
  background: var(--area-bg); box-shadow: var(--shadow); transition: var(--transition);
}
.area-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.12;
  background-image:
    repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 22px);
}
.area-card::after {
  content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; z-index: -1;
  inset-inline-end: -70px; bottom: -90px; background: rgba(255,255,255,0.10);
}
.area-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.area-nuaimiya  { --area-bg: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); }
.area-rashidiya { --area-bg: linear-gradient(135deg, #0f766e 0%, #0f172a 100%); }
.area-rawda     { --area-bg: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
.area-corniche  { --area-bg: linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%); }
.area-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.area-text { display: block; }
.area-card .area-name { font-size: 26px; margin-bottom: 2px; }
.area-card .area-count { font-size: 14px; opacity: 0.9; }
.area-cta { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; opacity: 0.85; transition: var(--transition); }
.area-card:hover .area-cta { opacity: 1; gap: 12px; }
html[dir="ltr"] .area-arrow { transform: scaleX(-1); }
@media (max-width: 600px) { .area-card { height: 180px; padding: 22px; } }

/* Office location */
.directions-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--primary-light); }
.directions-link:hover { color: #fff; }
.map-embed { margin-top: 10px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); height: 220px; background: rgba(255,255,255,0.05); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== Property page (/p/:id) ===== */
body.subpage { padding-top: 90px; background: var(--bg-light); }
body.no-scroll { overflow: hidden; }
.subpage .navbar { position: fixed; }
.subpage .navbar.scrolled .nav-logo { color: var(--primary); }
.nav-back { padding: 10px 18px; font-size: 14px; }
@media (max-width: 600px) { .nav-back .text-ar, .nav-back .text-en { display: none; } .nav-back { padding: 10px 14px; } }
.prop-page { padding: 20px 0 60px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs > span { color: var(--text); font-weight: 600; }
.crumb-sep { font-size: 10px; opacity: 0.6; }
html[dir="ltr"] .crumb-sep { transform: scaleX(-1); }

.prop-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 30px; align-items: start; }
@media (max-width: 960px) { .prop-layout { grid-template-columns: 1fr; } }

.prop-gallery { min-width: 0; }
.prop-main { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border: none; padding: 0; border-radius: var(--radius-lg); overflow: hidden; background: #e2e8f0; cursor: zoom-in; box-shadow: var(--shadow); }
.prop-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop-count, .prop-zoom { position: absolute; bottom: 14px; background: rgba(15,23,42,0.75); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 700; padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px; }
.prop-count { inset-inline-start: 14px; }
.prop-zoom { inset-inline-end: 14px; width: 36px; height: 36px; padding: 0; justify-content: center; }
.prop-nophoto { cursor: default; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-light); font-weight: 700; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.prop-nophoto i { font-size: 72px; color: #cbd5e1; }
.prop-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.prop-thumb { flex: 0 0 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; background: #e2e8f0; opacity: 0.7; transition: var(--transition); }
.prop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop-thumb.active, .prop-thumb:hover { opacity: 1; border-color: var(--primary); }

.prop-info { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); position: sticky; top: 100px; }
@media (max-width: 960px) { .prop-info { position: static; } }
.prop-badge { display: inline-flex; align-items: center; gap: 6px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.prop-title { font-family: 'Cairo', sans-serif; font-size: clamp(24px, 3vw, 32px); line-height: 1.35; margin-bottom: 8px; overflow-wrap: anywhere; }
.prop-location { color: var(--text-light); display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.prop-location i { color: var(--primary); }
.prop-price { font-size: 34px; font-weight: 900; color: var(--primary); margin-bottom: 20px; line-height: 1.2; }
.prop-price span { font-size: 15px; font-weight: 600; color: var(--text-light); }
.prop-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.prop-fact { background: var(--bg-light); border-radius: var(--radius); padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.prop-fact i { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; background: rgba(13,148,136,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.prop-fact > span { font-size: 12px; color: var(--text-light); }
.prop-fact strong { font-size: 15px; }
.prop-actions { display: flex; flex-direction: column; gap: 10px; }
.prop-actions .btn { padding: 14px 20px; }
.prop-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb457; transform: translateY(-2px); }
.prop-office { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-light); display: flex; flex-direction: column; gap: 8px; }
.prop-office i { color: var(--primary); width: 18px; text-align: center; }
.prop-office a { color: var(--primary); font-weight: 700; }
.prop-desc { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); margin-top: 30px; }
.prop-desc h2 { font-family: 'Cairo', sans-serif; font-size: 22px; margin-bottom: 12px; }
.prop-desc p { white-space: pre-line; color: #334155; overflow-wrap: anywhere; }
.prop-similar { padding: 20px 0 80px; }
.prop-similar .section-title { font-size: 28px; font-family: 'Cairo', sans-serif; }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .similar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .similar-grid { grid-template-columns: 1fr; } }
.similar-card { display: block; }
.similar-card .property-image { height: 200px; }
.prop-missing { padding: 120px 0; }
.prop-missing-icon { font-size: 64px; color: #cbd5e1; margin-bottom: 20px; }
.footer-slim { padding: 30px 0; }
.footer-slim .footer-bottom { border-top: none; padding-top: 0; }
.footer-home { color: rgba(255,255,255,0.7); }
.footer-home:hover { color: #fff; }
.float-wa { position: fixed; bottom: 25px; inset-inline-end: 25px; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 6px 20px rgba(37,211,102,0.45); z-index: 900; transition: var(--transition); }
.float-wa:hover { transform: scale(1.08); }
.toast-msg { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: var(--bg-dark); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; z-index: 3000; }
.toast-msg[hidden] { display: none; }

/* Full-screen photo viewer */
.lightbox { position: fixed; inset: 0; background: rgba(2,6,23,0.94); z-index: 2500; display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; }
.lb-close, .lb-nav { position: absolute; border: none; background: rgba(255,255,255,0.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-nav[hidden] { display: none; }
.lb-counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; background: rgba(255,255,255,0.12); padding: 4px 14px; border-radius: 999px; }
@media (max-width: 600px) { .lightbox { padding: 60px 8px; } .lb-nav { top: auto; bottom: 10px; transform: none; } }

/* Home: cards link to the property page */
.property-image > a, .property-title a { color: inherit; display: block; height: 100%; }
.property-title a:hover { color: var(--primary); }

/* Hero stats only show real numbers */
.hero-stat[hidden], .about-image-badge[hidden] { display: none; }
.about-image-badge .number { line-height: 1.1; }

/* About: designed panel (replaced by an uploaded photo when one is set in admin) */
.about-visual { border-radius: var(--radius-lg); padding: 40px; min-height: 380px; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background-color: #0f766e; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.18), transparent 40%), repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 24px), linear-gradient(135deg, #0d9488, #0f172a); }
.about-visual-logo { width: 84px; height: 84px; border-radius: 22px; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.about-visual-name { font-size: 30px; font-weight: 900; }
.about-visual-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; opacity: 0.95; }
.about-visual-list i { width: 22px; color: #5eead4; }
.about-photo { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.chat-link { display: inline-block; margin: 4px 0; padding: 4px 12px; border-radius: 999px; background: rgba(13,148,136,0.1); color: var(--primary); font-weight: 700; }
.chat-link:hover { background: var(--primary); color: #fff; }

/* "Since 1997" badge: sit on the empty side of the panel (left in Arabic, right in English), never over the text */
.about-image-badge { right: auto; left: auto; inset-inline-end: -24px; bottom: -28px; padding: 18px 26px; box-shadow: 0 12px 30px rgba(13,148,136,0.35); }
.about-image-badge .number { font-size: 40px; }
.about-image-badge > span:not(.number) { font-size: 15px; font-weight: 700; opacity: 0.9; }
.about-visual { padding-bottom: 70px; }
@media (max-width: 1024px) { .about-image-badge { inset-inline-end: 16px; right: auto; bottom: -24px; } }
@media (max-width: 600px) { .about-image-badge { padding: 12px 20px; } .about-image-badge .number { font-size: 30px; } }
