/* =========================================================
   Yasha Group – Customer Website
   ========================================================= */

:root {
  --primary: #1a56db;
  --primary-dark: #1342a6;
  --primary-light: #ebf5ff;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --danger: #ef4444;

  --bg: #ffffff;
  --bg2: #f8fafc;
  --bg3: #f1f5f9;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #334155;
  --text-muted: #64748b;
  --nav-bg: rgba(11,15,26,.95);

  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
  --shadow-xl: 0 40px 100px rgba(0,0,0,.18);

  --container: 1240px;
  --transition: .25s ease;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: rgba(59,130,246,.15);
  --bg: #0b0f1a;
  --bg2: #111827;
  --bg3: #1e293b;
  --card-bg: #1e293b;
  --border: #2d3748;
  --text: #f8fafc;
  --text-2: #e2e8f0;
  --text-muted: #94a3b8;
  --nav-bg: rgba(11,15,26,.95);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* RTL */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .nav-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .hero-content { direction: rtl; }
[dir="rtl"] .hero-visual { left: 0; right: 50%; }
[dir="rtl"] .hero-card-img::after { background: linear-gradient(to left, #0a0e1a 0%, rgba(10,14,26,.3) 30%, transparent 100%); }
[dir="rtl"] .hero .container { padding-left: 0; padding-right: clamp(24px, 5vw, 80px); }
[dir="rtl"] .hero .hero-content { margin-left: auto; margin-right: 0; }
[dir="rtl"] .project-card-loc { flex-direction: row-reverse; }
[dir="rtl"] .project-card-footer { flex-direction: row-reverse; }
[dir="rtl"] .section-header { text-align: center; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }

/* ── Scrollbar ─────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ── Container ─────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Navbar ────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  height: 70px;
  transition: all var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.navbar .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav-logo { font-size: 1.3rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: #fff; }
.nav-logo-img { height: 56px; width: auto; display: block; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link { padding: 8px 14px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.75); transition: all var(--transition); }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-nav { padding: 8px 18px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); }
.btn-nav-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-nav-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-nav-primary { background: var(--primary); color: #fff; }
.btn-nav-primary:hover { background: var(--primary-dark); }
.lang-select { border: 1.5px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); padding: 7px 10px; font-size: .85rem; background: #0b0f1a; color: rgba(255,255,255,.85); cursor: pointer; }
.lang-select option { background: #0b0f1a; color: #f8fafc; }
.theme-toggle { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1.5px solid rgba(255,255,255,.2); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,.7); transition: all var(--transition); }
.theme-toggle:hover { border-color: var(--primary); color: #fff; background: rgba(255,255,255,.1); }
.hamburger { display: none; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1.5px solid rgba(255,255,255,.2); background: transparent; cursor: pointer; align-items: center; justify-content: center; color: #fff; }

/* ── Buttons ───────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); text-decoration: none; }
.btn-primary {
  background-image: linear-gradient(90deg, var(--primary), #38bdf8, var(--primary));
  background-size: 300% 100%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,.35);
  animation: badgeShimmer 3s linear infinite;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: badgeShine 3s ease-in-out infinite;
  pointer-events: none;
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(59,130,246,.55);
  transform: translateY(-2px);
}
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-accent { background: var(--accent); color: #000; font-weight: 700; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); }

/* ── Hero ──────────────────────── */
.hero {
  min-height: 75vh;
  background: linear-gradient(135deg, #0a0e1a 0%, #0d1f3c 50%, #0a1628 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}
.hero::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(26,86,219,.2) 0%, transparent 65%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.1) 0%, transparent 65%);
  bottom: -100px; left: -100px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: calc(75vh - 70px); padding-top: 40px; padding-bottom: 60px; max-width: 100%; width: 100%; margin: 0; padding-left: 0; padding-right: 0; }
.hero .hero-content { width: 50%; padding-left: clamp(24px, 5vw, 80px); padding-right: 40px; box-sizing: border-box; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(26,86,219,.2); border: 1px solid rgba(26,86,219,.3); border-radius: 40px; padding: 6px 16px; font-size: .8rem; font-weight: 700; color: #93c5fd; letter-spacing: .04em; margin-bottom: 24px; }
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #60a5fa; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(135deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: nowrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.hero-stat-value { font-size: 1.75rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.5); }
.hero-content { position: relative; z-index: 2; }
.hero-visual { position: absolute; inset: 0; left: 50%; z-index: 0; }
.hero-card { width: 100%; height: 100%; position: relative; }
.hero-card-img { position: absolute; inset: 0; }
.hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, #0a0e1a 0%, rgba(10,14,26,.3) 30%, transparent 100%); }
.hero-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 32px; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%); }
.hero-card-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.hero-card-loc { font-size: .85rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 6px; }
.hero-card-price { font-size: 1.4rem; font-weight: 800; color: #60a5fa; margin-top: 12px; }
.hero-card-stats { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-card-stat { font-size: .8rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 6px; }
.floating-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--accent);
  color: #000;
  font-size: .75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 40px;
  letter-spacing: .04em;
}

/* ── Section ───────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); background: var(--primary-light); padding: 4px 14px; border-radius: 40px; margin-bottom: 14px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2; }
.section-sub { font-size: 1.05rem; color: var(--text-muted); margin-top: 12px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* ── Project Cards ─────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.home-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.home-grid .project-card-img { height: 160px; }
.home-grid .project-card-body { padding: 16px; }
.home-grid .project-card-name { font-size: .95rem; margin-bottom: 6px; }
.home-grid .project-card-loc { font-size: .78rem; margin-bottom: 10px; }
.home-grid .project-card-desc { display: none; }
.home-grid .project-card-footer { padding-top: 12px; }
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.project-card-img { height: 220px; position: relative; overflow: hidden; background: var(--bg3); }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%); }
.project-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.project-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 40px;
  color: #fff;
  background-size: 300% 100%;
  background-position: 0% 50%;
  animation: badgeShimmer 3s linear infinite;
  box-shadow: 0 4px 14px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.2);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  letter-spacing: .03em;
  text-transform: capitalize;
  border: 1px solid rgba(255,255,255,.25);
  position: relative;
  overflow: hidden;
}
.project-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: badgeShine 3s ease-in-out infinite;
}
@keyframes badgeShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes badgeShine {
  0%, 100% { left: -100%; }
  50%      { left: 130%; }
}
.project-badge-featured {
  background: linear-gradient(135deg, var(--accent), #fcd34d);
  background-size: 200% 200%;
  color: #1a1a1a;
  text-shadow: none;
}
.project-badge-currency {
  background: linear-gradient(135deg, rgba(0,0,0,.65), rgba(30,30,30,.55));
  color: #fff;
  backdrop-filter: blur(10px);
}
.project-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project-card-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.project-card-loc { font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-bottom: 14px; }
.project-card-loc svg { width: 14px; height: 14px; flex-shrink: 0; }
.project-card-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; max-height: 3.2em; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%); mask-image: linear-gradient(to bottom, black 40%, transparent 100%); }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); margin-top: auto; flex-shrink: 0; }
.project-card-units { font-size: .82rem; color: var(--text-muted); }
.project-card-units strong { color: var(--text); }

/* ── Apartment Cards ───────────── */
.apt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.apt-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}
.apt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.apt-card-img { height: 170px; background: var(--bg3); position: relative; overflow: hidden; }
.apt-card-img img { width: 100%; height: 100%; object-fit: cover; }
.apt-status-badge { position: absolute; top: 12px; right: 12px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 40px; }
.status-available { background: #d1fae5; color: #065f46; }
.status-reserved { background: #fef3c7; color: #92400e; }
.status-sold { background: #fee2e2; color: #991b1b; }
.apt-card-body { padding: 18px; }
.apt-card-number { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.apt-card-meta { display: flex; gap: 12px; font-size: .82rem; color: var(--text-muted); flex-wrap: wrap; }
.apt-card-meta span { display: flex; align-items: center; gap: 4px; }
.apt-card-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-top: 10px; }

/* ── Blocks ────────────────────── */
.block-section { margin-bottom: 48px; }
.block-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.block-tag { background: var(--primary); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 40px; }
.block-title { font-size: 1.2rem; font-weight: 700; }
.block-count { font-size: .85rem; color: var(--text-muted); }

/* ── Detail Page ───────────────── */
.project-hero { height: 480px; position: relative; overflow: hidden; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 100%); }
.project-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 48px 40px; }
.project-hero-name { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; color: #fff; }
.project-hero-loc { font-size: 1rem; color: rgba(255,255,255,.8); margin-top: 8px; }
.project-meta-bar { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 16px 0; }
.project-meta-bar .container { display: flex; gap: 32px; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; }
.meta-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.meta-value { font-size: .95rem; font-weight: 700; color: var(--text); margin-top: 2px; }

/* ── Facility Pills ────────────── */
.facility-list { display: flex; flex-wrap: wrap; gap: 10px; }
.facility-pill { background: var(--bg3); border: 1px solid var(--border); border-radius: 40px; padding: 6px 16px; font-size: .85rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.facility-pill svg { width: 16px; height: 16px; color: var(--primary); }

/* ── Gallery ───────────────────── */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.gallery-grid .gallery-item:first-child { grid-row: span 2; }
.gallery-item { overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* ── Video ─────────────────────── */
.video-container { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.video-container iframe { width: 100%; height: 100%; border: none; }
.video-placeholder { background: var(--bg3); aspect-ratio: 16/9; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px dashed var(--border); }

/* ── Tabs ──────────────────────── */
.tab-nav { border-bottom: 1px solid var(--border); display: flex; gap: 0; margin-bottom: 32px; overflow-x: auto; }
.tab-btn { padding: 14px 22px; font-size: .95rem; font-weight: 600; color: var(--text-muted); border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--transition); white-space: nowrap; }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Footer ────────────────────── */
.footer { background: #0b0f1a; color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { font-size: .9rem; line-height: 1.8; margin-top: 16px; color: rgba(255,255,255,.5); max-width: 320px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; }
.footer-logo-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.footer-logo-img { height: 60px; width: auto; display: block; object-fit: contain; filter: brightness(0) invert(1); }
.footer-col-title { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: .9rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-link:hover { color: #fff; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: all var(--transition); }
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 10px; }

/* ── Badges ────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 40px; font-size: .76rem; font-weight: 700; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }

/* ── Lightbox ──────────────────── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 9999; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }
.lightbox-close { position: fixed; top: 20px; right: 24px; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; }

/* ── Auth Modal ────────────────── */
.auth-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.auth-modal-overlay.open { display: flex; }
.auth-modal { background: var(--card-bg); border-radius: 20px; padding: 48px; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-xl); }
.auth-modal h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.auth-modal p { color: var(--text-muted); margin-bottom: 28px; }
.btn-google { background: #fff; color: #3c4043; border: 1.5px solid #dadce0; display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer; width: 100%; justify-content: center; transition: all var(--transition); }
.btn-google:hover { background: #f8f9fa; box-shadow: 0 2px 12px rgba(0,0,0,.1); }

/* ── Toast ─────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; min-width: 260px; max-width: 360px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; animation: slideUp .3s ease; font-size: .875rem; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Loader ────────────────────── */
.page-loader { position: fixed; inset: 0; background: var(--bg); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity .4s ease; }
.page-loader.hidden { opacity: 0; pointer-events: none; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────── */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-grid .gallery-item:first-child { grid-row: span 1; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--nav-bg); backdrop-filter: blur(20px); padding: 16px; border-bottom: 1px solid var(--border); z-index: 99; }
  .hamburger { display: flex; }
  .hero .hero-content { width: 100%; padding-left: 24px; padding-right: 24px; }
  .hero-visual { position: relative; inset: auto; left: auto; width: 100%; height: 280px; margin-top: 32px; border-radius: 16px; overflow: hidden; }
  .hero-card { border-radius: 16px; }
  .projects-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .project-hero { height: 320px; }
  .project-hero-content { padding: 24px 20px; }
  .project-meta-bar .container { gap: 16px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .apt-grid { grid-template-columns: 1fr; }
}

/* ── User account dropdown ─────────────────────── */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
  border: none; cursor: pointer;
  font-size: .88rem; font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
}
.user-menu-trigger:hover { background: var(--primary-dark); }
.user-menu-trigger img {
  width: 26px; height: 26px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.4);
  flex-shrink: 0;
}
.user-menu-trigger .chevron {
  width: 14px; height: 14px;
  color: rgba(255,255,255,.75);
  transition: transform .2s;
  flex-shrink: 0;
}
.user-menu.open .chevron { transform: rotate(180deg); }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  z-index: 200;
  overflow: hidden;
  display: none;
  animation: dropIn .15s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.user-menu.open .user-dropdown { display: block; }
.user-dropdown-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.user-dropdown-header-name { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dropdown-header-email { font-size: .75rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  font-size: .875rem; font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background .12s;
  border: none; background: none; width: 100%; text-align: left;
  text-decoration: none;
}
.user-dropdown-item:hover { background: var(--bg3); color: var(--primary); }
.user-dropdown-item svg { flex-shrink: 0; color: var(--text-muted); }
.user-dropdown-item:hover svg { color: var(--primary); }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-dropdown-item.danger:hover { background: #fef2f2; color: #ef4444; }
.user-dropdown-item.danger:hover svg { color: #ef4444; }

/* ── Favourite button on cards ─────────────────── */
.fav-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: transform .2s, background .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.fav-btn:hover { transform: scale(1.15); background: #fff; }
.fav-btn svg { transition: fill .2s, stroke .2s; }
.fav-btn.active svg { fill: #ef4444; stroke: #ef4444; }
[data-theme="dark"] .fav-btn { background: rgba(30,41,59,.92); }
[data-theme="dark"] .fav-btn:hover { background: #1e293b; }

/* ── Dashboard page ────────────────────────────── */
.dash-layout { padding: 88px 0 60px; min-height: 100vh; background: var(--bg); }
.dash-profile-card {
  background: linear-gradient(135deg, #1a56db 0%, #0d1f3c 100%);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex; align-items: center; gap: 28px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.dash-avatar {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,.3);
  flex-shrink: 0;
}
.dash-avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 3px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.dash-profile-info { flex: 1; min-width: 0; }
.dash-profile-name { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.dash-profile-email { font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: 12px; }
.dash-profile-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.dash-meta-chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 4px 14px;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.85);
  display: flex; align-items: center; gap: 6px;
}
.dash-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.dash-stat {
  flex: 1; min-width: 120px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  text-align: center;
}
.dash-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.dash-stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.dash-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.dash-tab-btn {
  padding: 10px 22px; border: none; background: none;
  font-size: .9rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .15s; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.dash-tab-btn:hover { color: var(--primary); background: var(--primary-light); }
.dash-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.dash-fav-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.dash-fav-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dash-fav-img { height: 160px; background: var(--bg3); position: relative; overflow: hidden; }
.dash-fav-img img { width: 100%; height: 100%; object-fit: cover; }
.dash-fav-body { padding: 14px 16px; }
.dash-fav-name { font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.dash-fav-loc { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.dash-fav-footer { display: flex; align-items: center; justify-content: space-between; }
.dash-fav-price { font-weight: 700; color: var(--primary); font-size: .88rem; }
.dash-remove-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px;
  font-size: .75rem; color: var(--text-muted);
  cursor: pointer; transition: all .15s;
}
.dash-remove-btn:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.dash-search-list { display: flex; flex-direction: column; gap: 10px; }
.dash-search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all .15s;
}
.dash-search-item:hover { border-color: var(--primary); background: var(--primary-light); }
.dash-search-query { flex: 1; font-weight: 600; font-size: .9rem; }
.dash-search-time { font-size: .75rem; color: var(--text-muted); flex-shrink: 0; }
.dash-profile-form { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.dash-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-form-group { display: flex; flex-direction: column; gap: 6px; }
.dash-form-group label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.dash-form-input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-size: .9rem; font-family: inherit;
  transition: border-color .15s;
  outline: none;
}
.dash-form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.dash-form-input[readonly] { background: var(--bg3); color: var(--text-muted); cursor: not-allowed; }
.dash-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.dash-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.dash-empty svg { margin: 0 auto 16px; display: block; opacity: .3; }
@media (max-width: 768px) {
  .dash-profile-card { padding: 24px 20px; gap: 16px; }
  .dash-profile-name { font-size: 1.15rem; }
  .dash-fav-grid { grid-template-columns: 1fr; }
  .dash-form-row { grid-template-columns: 1fr; }
  .dash-tabs { overflow-x: auto; }
  .dash-tab-btn { white-space: nowrap; }
}

/* ── Scroll animations ─────────────────────────── */
[data-anim] {
  opacity: 0;
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
[data-anim="fade-up"]    { transform: translateY(32px); }
[data-anim="fade-down"]  { transform: translateY(-24px); }
[data-anim="fade-left"]  { transform: translateX(32px); }
[data-anim="fade-right"] { transform: translateX(-32px); }
[data-anim="zoom-in"]    { transform: scale(.92); }
[data-anim].anim-visible {
  opacity: 1;
  transform: none;
}
/* Stagger children inside a group */
[data-anim-group] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
[data-anim-group] > *.anim-visible {
  opacity: 1;
  transform: none;
}
/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [data-anim], [data-anim-group] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Search / Filter bar ───────────────────────── */
#search-section input:focus,
#search-section select:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}
#search-section select option { background: var(--bg); color: var(--text); }
@media (max-width: 768px) {
  #search-section { position: relative; top: auto; }
  #search-section .container > div:last-child { flex-wrap: wrap; }
  #search-section select,
  #search-section input[type="number"] { font-size: .8rem; }
}
/* ── Country section headers ───────────────── */
.country-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 4px;
  margin-top: 16px;
  border-bottom: 2px solid var(--border);
}
.country-section-header:first-child { margin-top: 0; }
.country-section-header img { border-radius: 3px; display: block; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.country-name { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.country-count {
  font-size: .75rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  margin-left: 4px;
}
/* City sub-header — appears under the country header, before that city's cards */
.city-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 6px 14px;
  margin-top: 8px;
  border-left: 3px solid var(--accent);
}
.city-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.city-count {
  font-size: .7rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg2);
  border-radius: 12px;
  padding: 1px 8px;
  margin-left: auto;
}

/* ── Service cards ─────────────────────────── */
.service-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.45) 100%);
}
.service-card-badge {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}

/* Contact section two-column → single column on mobile */
@media (max-width: 700px) {
  #contact .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
