/* ============================
   MAVO NECHASIM — Modern RTL
   ============================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #1565C0;
  --blue-dark: #0d47a1;
  --blue-mid:  #1976D2;
  --gold:      #F5B731;
  --gold-dark: #f0a500;
  --dark:      #0a0f1e;
  --dark2:     #111827;
  --dark3:     #1e293b;
  --text:      #1a1a2e;
  --text-muted:#64748b;
  --light:     #f8fafc;
  --white:     #ffffff;
  --radius:    16px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  overflow-x: hidden;
}

/* ---- UTILS ---- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-dark { background: var(--dark); }
.section-light { background: var(--light); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: rgba(21,101,192,.1);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-tag.light { background: rgba(245,183,49,.15); color: var(--gold); }
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.accent { color: var(--blue); }
/* margin-right on accent span = gap between accent (visual-left in RTL) and text (visual-right) */
/* Works for both Hebrew RTL and English (RTL body). No trailing space in text nodes needed. */
/* white-space: nowrap prevents "On The Map" from splitting into "On The ... Map" across lines */
.section-title .accent { white-space: nowrap; }
html.site-ltr .section-title { text-transform: capitalize; }
.gradient-text {
  background: linear-gradient(135deg, var(--gold), #f97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.center-btn { text-align: center; margin-top: 48px; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: var(--white);
  font-family: 'Heebo', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(21,101,192,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21,101,192,.45); }
.btn-primary.large { padding: 16px 36px; font-size: 1.05rem; margin-top: 2rem; }
.btn-primary.full { width: 100%; justify-content: center; border-radius: 12px; padding: 16px; }

.btn-outline-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  font-family: 'Heebo', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 50px;
  cursor: pointer;
  transition: all .25s;
}
.btn-outline-primary:hover { background: var(--blue); color: #fff; }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 2000;
  transition: all .3s;
  padding: 0;
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
/* Logo PNG image */
@keyframes logoGlow {
  0%,100% { box-shadow: 0 0 6px rgba(245,183,49,.3), 0 0 0 0 rgba(245,183,49,0); }
  50%      { box-shadow: 0 0 16px rgba(245,183,49,.6), 0 0 0 4px rgba(245,183,49,.1); }
}
.logo-img {
  width: 52px; height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  animation: logoGlow 3s ease-in-out infinite;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275), box-shadow .3s, filter .3s;
  cursor: pointer;
}
/* Transparent logo state (after bg removal via Canvas) */
.logo-img.logo-transparent {
  border-radius: 0 !important;
  background: transparent !important;
  width: 58px; height: 58px;
  object-fit: contain;
  animation: logoGlowDrop 3s ease-in-out infinite;
}
@keyframes logoGlowDrop {
  0%,100% { filter: drop-shadow(0 0 6px rgba(245,183,49,.5)) drop-shadow(0 2px 8px rgba(0,0,0,.3)); }
  50%      { filter: drop-shadow(0 0 18px rgba(245,183,49,.9)) drop-shadow(0 0 32px rgba(245,183,49,.4)) drop-shadow(0 2px 8px rgba(0,0,0,.3)); }
}
.logo-img.small { width: 40px; height: 40px; border-radius: 9px; }
.logo-img.small.logo-transparent { width: 44px; height: 44px; }

.logo:hover .logo-img {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 0 0 3px var(--gold), 0 6px 20px rgba(245,183,49,.5) !important;
  animation: none;
}
.logo:hover .logo-img.logo-transparent {
  box-shadow: none !important;
  filter: drop-shadow(0 0 24px rgba(245,183,49,1)) drop-shadow(0 0 48px rgba(245,183,49,.6)) !important;
  transform: scale(1.18) rotate(-5deg);
  animation: none;
}
.logo:hover .logo-main { color: var(--gold) !important; }
.logo:hover .logo-sub  { color: rgba(245,183,49,.7) !important; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 1.2rem; font-weight: 800; color: var(--white); line-height: 1.1; transition: color .3s; }
.logo-sub { font-size: .65rem; font-weight: 500; color: rgba(255,255,255,.7); letter-spacing: .05em; transition: color .3s; }
.navbar.scrolled .logo-main { color: var(--dark); }
.navbar.scrolled .logo-sub { color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-search {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px; padding: 7px 14px; color: #fff;
  transition: background .2s, border-color .2s; max-width: 240px;
}
.nav-search:focus-within { background: rgba(255,255,255,.22); border-color: var(--gold, #F5B731); }
.nav-search svg { flex-shrink: 0; opacity: .85; }
.nav-search input {
  background: transparent; border: none; outline: none; color: #fff;
  font-family: inherit; font-size: .85rem; width: 100%;
}
.nav-search input::placeholder { color: rgba(255,255,255,.65); }
.navbar.scrolled .nav-search { background: rgba(15,27,45,.06); border-color: rgba(15,27,45,.15); color: #0f1b2d; }
.navbar.scrolled .nav-search input { color: #0f1b2d; }
.navbar.scrolled .nav-search input::placeholder { color: #64748b; }
@media (max-width: 980px) { .nav-search { display: none; } }
.nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .2s;
}
.nav-links a:hover { color: var(--gold); background: rgba(255,255,255,.08); }
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a:hover { color: var(--blue); background: rgba(21,101,192,.06); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-phone {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.3);
  transition: all .2s;
  direction: ltr;
}
.btn-phone:hover { border-color: var(--gold); color: var(--gold); }
.navbar.scrolled .btn-phone { color: var(--text); border-color: #e2e8f0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px;
  margin-right: auto;
}
.hamburger:focus, .hamburger:focus-visible { outline: none; box-shadow: none; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.navbar.scrolled .hamburger span { background: var(--dark); }

select {
  background-color: var(--white) !important;
  color: var(--text) !important;
}
select option {
  background-color: var(--white) !important;
  color: var(--text) !important;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  padding: 16px 24px 24px;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--dark, #1a202c);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: right;
  direction: rtl;
  display: block;
  width: 100%;
}
/* Higher specificity (0,0,2,0) beats .mobile-menu a (0,0,1,1) */
.mobile-menu .mobile-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  direction: ltr;
  text-decoration: none;
  width: auto;
  text-align: center;
  transition: background 0.2s;
}
.mobile-menu .mobile-phone:hover { background: var(--blue-dark); color: var(--white); }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #08244a 45%, #11539e 70%, #1a237e 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(245,183,49,.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
}
.hero-shapes { position: absolute; inset: 0; overflow: hidden; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
}
.shape-1 { width: 600px; height: 600px; background: var(--gold); top: -200px; right: -200px; }
.shape-2 { width: 400px; height: 400px; background: #2196F3; bottom: -100px; left: -100px; }
.shape-3 { width: 300px; height: 300px; background: var(--gold); bottom: 100px; right: 30%; }

.hero-content {
  position: relative; z-index: 2;
  padding-top: 60px;
  padding-bottom: 8px;
}
/* Mobile: content starts near navbar, hero fills viewport, scroll hint at bottom */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    justify-content: flex-start;
  }
  .hero-content {
    padding-top: 24px;
    padding-bottom: 32px;
  }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,183,49,.12);
  border: 1px solid rgba(245,183,49,.3);
  color: var(--gold);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 26px;
}
/* Short viewports: compact the WHOLE hero so it fits down to the wave without scrolling */
@media (min-width: 769px) and (max-height: 860px) {
  .hero-content { padding-top: 48px; }
  .hero-badge { margin-bottom: 8px; }
  .hero-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
  .hero-subtitle { margin-bottom: 12px; font-size: 1rem; }
  .search-fields { padding: 14px 20px; gap: 10px; }
  .hero-stats { padding: 10px 0; }
  .stat-num { font-size: 1.9rem; }
  .stat-divider { height: 38px; }
}
@media (min-width: 769px) and (max-height: 760px) {
  .hero-content { padding-top: 38px; padding-bottom: 0; }
  .hero-badge { margin-bottom: 8px; font-size: .73rem; padding: 5px 12px; }
  .hero-title { font-size: clamp(1.55rem, 2.9vw, 1.95rem); margin-bottom: 8px; }
  .hero-subtitle { display: none; }            /* hide on short screens to make room */
  .search-tabs { padding: 4px; }
  .tab { padding: 7px; font-size: .84rem; }
  .search-fields { padding: 11px 16px; gap: 9px; }
  .field-group label { font-size: .69rem; }
  .field-group select, .field-group input { padding: 7px 10px; font-size: .85rem; }
  .search-btn { padding: 8px 22px; }
  .hero-tags { margin-top: 14px; gap: 12px; }
  .hero-scroll-hint { margin: 7px auto 14px; }
  .hero-wave-bottom { height: 26px; }
}

/* Neighborhood English Name — giant background watermark, anchored to the right */
.hero-en-inline {
  position: absolute;
  bottom: 10%;
  right: -4%;
  font-size: clamp(5rem, 18vw, 15rem);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.06);
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
/* Hero content must sit above the watermark and pushed higher */
.hero-content { position: relative; z-index: 2; padding-top: 78px; }

/* Neighborhood pages: content flows from top, compact hero */
.hero:has(.hood-breadcrumb) {
  min-height: auto;
  justify-content: flex-start;
}
.hero:has(.hood-breadcrumb) .hero-content {
  padding-top: 100px;
  padding-bottom: 32px;
}
.hero:has(.hood-breadcrumb) .hero-stats {
  margin-top: 0;
}
.hero:has(.hood-breadcrumb) .hood-breadcrumb {
  margin-bottom: 10px;
}
@media (max-width: 768px){
  .hero:has(.hood-breadcrumb) .hero-content {
    padding-top: 90px;
    padding-bottom: 20px;
    text-align: center;
  }
  .hero:has(.hood-breadcrumb) .hero-subtitle {
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero:has(.hood-breadcrumb) .hero-cta {
    justify-content: center;
  }
  .hero:has(.hood-breadcrumb) .hood-breadcrumb {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
  }
  .hero:has(.hood-breadcrumb) .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
}
.hero:has(.hood-breadcrumb) .hero-badge {
  margin-bottom: 20px;
}

/* ============================
   NEIGHBORHOODS GRID
   ============================ */
.hoods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .hoods-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hoods-grid { grid-template-columns: 1fr; } }

.hood-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 6px 28px rgba(0,0,0,.18);
}
.hood-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.28); }

.pg-hidden { display: none !important; }

.hood-card-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transition: transform .4s, opacity .3s;
}
.hood-card:hover .hood-card-photo { transform: scale(1.04); }

.hood-card-bg {
  position: absolute;
  inset: 0; z-index: 1;
  opacity: 0.72;
  transition: transform .4s, opacity .3s;
}
.hood-card:hover .hood-card-bg { opacity: 0.6; }

/* Neighborhood photo section (replaces duplicate mainMap on neighborhood pages) */
.hood-gallery-section { position: relative; overflow: hidden; height: 380px; }
.hood-gallery-section img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(.65);
  transition: transform .6s;
}
.hood-gallery-section:hover img { transform: scale(1.03); }
.hood-gallery-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; color: #fff; text-align: center; padding: 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 100%);
}
.hood-gallery-badge {
  background: rgba(255,255,255,.12); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.22); padding: 6px 20px;
  border-radius: 50px; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
}
.hood-gallery-title { font-size: 2.2rem; font-weight: 900; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.hood-gallery-sub { font-size: .95rem; opacity: .8; max-width: 480px; }
@media (max-width: 600px) { .hood-gallery-section { height: 280px; } .hood-gallery-title { font-size: 1.5rem; } }

.hood-card-en {
  position: absolute;
  top: 14px;
  inset-inline-end: 16px;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  white-space: nowrap;
}

.hood-card-body {
  position: relative;
  z-index: 2;
  padding: 20px 20px 22px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
}
.hood-card-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 6px;
}
.hood-card-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}
.hood-card-stat {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}

/* Search Box */
.glass {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.search-box { padding: 0; overflow: hidden; max-width: 900px; }
.search-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 6px;
  gap: 4px;
}
.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-family: 'Heebo', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
}
.tab.active { background: #10b981; color: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.tab:hover:not(.active) { color: var(--blue); }

.search-fields {
  display: flex; align-items: flex-end; gap: 12px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
.field-group { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.field-group select, .field-group input {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Heebo', sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
}
.field-group select:focus, .field-group input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}
.search-btn {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: 'Heebo', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(21,101,192,.4);
  height: 42px;
}
.search-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(21,101,192,.5); }

.hero-tags {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 14px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
}
.hero-tags a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 5px 14px;
  border-radius: 50px;
  transition: all .2s;
  font-size: .82rem;
}
.hero-tags a:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* Hero Stats Bar */
.hero-stats {
  position: relative; z-index: 6;
  margin-top: auto;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  padding: 14px 0;
}
.hero-stats-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 48px;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-suffix { font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 4px; font-weight: 500; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,.15); }

/* Stats compaction for short viewports — placed AFTER base stats rules so it wins the cascade */
@media (min-width: 769px) and (max-height: 860px) {
  .hero-stats { padding: 9px 0; }
  .stat-item { padding: 5px 40px; }
  .stat-num { font-size: 1.9rem; }
  .stat-suffix { font-size: 1.1rem; }
  .stat-divider { height: 34px; }
}
@media (min-width: 769px) and (max-height: 760px) {
  .hero-stats { padding: 5px 0; margin-bottom: 10px; }
  .stat-item { padding: 2px 36px; }
  .stat-num { font-size: 1.45rem; }
  .stat-suffix { font-size: .9rem; }
  .stat-label { font-size: .65rem; margin-top: 1px; }
  .stat-divider { height: 22px; }
}

/* ============================
   PROPERTIES
   ============================ */
.filter-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.filter-group-main, .filter-group-cities {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.filter-divider {
  width: 2px; height: 32px; background: #e2e8f0; border-radius: 2px; margin: 0 4px;
}
.dynamic-hoods {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px; margin-bottom: 40px; padding: 12px;
  background: #f8fafc; border-radius: 12px;
}
.hood-label {
  font-size: .75rem; color: #94a3b8; font-weight: 700;
  padding: 4px 6px; white-space: nowrap; margin-right: 8px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid #e2e8f0;
  background: var(--white);
  font-family: 'Heebo', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { background: #f8fafc; }
.filter-btn.active {
  background: #10b981;
  color: var(--white);
  border-color: #10b981;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.prop-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
  border: 1px solid #f1f5f9;
  cursor: pointer;
}
.prop-card:focus-visible { outline: 3px solid rgba(21, 101, 192, .28); outline-offset: 3px; }
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prop-card.hidden { display: none; }

.prop-img {
  position: relative;
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.prop-icon-big { font-size: 5rem; opacity: .35; user-select: none; }
.prop-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 50px; text-transform: uppercase;
}
.prop-badge.sale { background: var(--gold); color: #1a1a1a; }
.prop-badge.rent { background: #10b981; color: #fff; }
.prop-badge.luxury-badge { top: 14px; right: auto; left: 14px; background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.prop-badge.new-badge { top: 14px; right: auto; left: 14px; background: #7c3aed; color: #fff; }

.prop-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.4));
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 14px;
}
.prop-card:hover .prop-overlay { opacity: 1; }
.btn-fav {
  background: rgba(255,255,255,.9); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  transition: all .2s; color: #ef4444;
}
.btn-fav:hover { background: #fff; transform: scale(1.1); }

.prop-body { padding: 20px; }
.prop-price { font-size: 1.45rem; font-weight: 900; color: var(--blue); margin-bottom: 6px; }
.prop-price small { font-size: .7rem; font-weight: 500; color: var(--text-muted); }
.prop-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.prop-loc {
  display: flex; align-items: center; gap: 4px;
  font-size: .82rem; color: var(--text-muted);
  margin-bottom: 14px;
}
.prop-features {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.prop-features span {
  font-size: .78rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}
.prop-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.agent-mini { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.agent-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.prop-actions { display: flex; align-items: center; gap: 6px; }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 5px;
  background: #25D366; color: #fff;
  text-decoration: none; font-size: .8rem; font-weight: 700;
  padding: 7px 12px; border-radius: 8px;
  transition: all .2s; white-space: nowrap;
}
.btn-whatsapp:hover { background: #1da851; transform: scale(1.04); }

.btn-details {
  font-size: .82rem; font-weight: 700; color: var(--blue);
  text-decoration: none; padding: 7px 12px;
  border: 1.5px solid var(--blue); border-radius: 8px;
  transition: all .2s; white-space: nowrap;
  background: none; cursor: pointer; font-family: inherit;
}
.btn-details:hover { background: var(--blue); color: #fff; }

/* Available dot — pulsing green indicator */
@keyframes availablePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.55), 0 0 0 0 rgba(34,197,94,.3); }
  60%      { box-shadow: 0 0 0 5px rgba(34,197,94,.15), 0 0 0 10px rgba(34,197,94,0); }
}
.available-dot {
  position: absolute;
  bottom: 12px; left: 12px;
  width: 11px; height: 11px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  animation: availablePulse 2.2s ease-in-out infinite;
  z-index: 4;
}
.available-dot::before {
  content: 'זמין';
  position: absolute;
  bottom: 16px; left: 0;
  font-size: .62rem; font-weight: 700;
  color: #fff;
  background: rgba(34,197,94,.9);
  padding: 2px 6px; border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  transform: translateY(2px);
}
.prop-card:hover .available-dot::before { opacity: 1; transform: translateY(0); }

/* ============================
   INLINE SVG LOGO
   ============================ */
.logo-svg {
  width: 52px; height: 52px;
  flex-shrink: 0; cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(245,183,49,.5)) drop-shadow(0 2px 6px rgba(0,0,0,.25));
  animation: logoGlowDrop 3s ease-in-out infinite;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275), filter .3s;
}
.logo-svg.small { width: 38px; height: 38px; }
.logo-svg .logo-key {
  transition: transform .4s cubic-bezier(.175,.885,.32,1.275);
  transform-origin: 24px 39px;
  transform-box: fill-box;
}
.logo-svg .logo-house {
  transition: transform .3s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.logo:hover .logo-svg {
  animation: none;
  filter: drop-shadow(0 0 20px rgba(245,183,49,1)) drop-shadow(0 0 40px rgba(245,183,49,.5));
}
.logo:hover .logo-svg .logo-house {
  transform: scale(1.06);
}
.logo:hover .logo-svg .logo-key {
  transform: rotate(22deg) translateX(2px);
}

/* ============================
   WHY US
   ============================ */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.why-desc { color: rgba(255,255,255,.7); line-height: 1.75; margin-bottom: 32px; font-size: 1rem; }
.why-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 8px; }
.why-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color .2s;
}
.why-item:hover { border-color: rgba(245,183,49,.3); }
.why-icon { font-size: 1.6rem; flex-shrink: 0; }
.why-item strong { display: block; color: var(--white); font-size: .95rem; margin-bottom: 4px; }
.why-item p { color: rgba(255,255,255,.55); font-size: .85rem; }

.why-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.big-logo-display {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
}
.big-logo-display svg { width: 100%; height: auto; }

.floating-cards {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  font-size: .82rem;
  animation: floatCard 4s ease-in-out infinite;
}
.card-1 { top: 10%; right: -20px; animation-delay: 0s; }
.card-2 { bottom: 25%; right: -30px; animation-delay: 1.5s; }
.card-3 { top: 40%; left: -30px; animation-delay: 3s; }

@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fc-icon { font-size: 1.4rem; }
.fc-val { font-size: 1rem; font-weight: 800; color: var(--text); }
.fc-lab { font-size: .72rem; color: var(--text-muted); }

/* ============================
   SERVICES
   ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.service-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 4px; height: 0;
  background: linear-gradient(to bottom, var(--blue), var(--gold));
  transition: height .3s;
}
.service-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { height: 100%; }
.featured-service {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  border-color: var(--blue);
  color: var(--white);
}
.featured-service::before { display: none; }
.featured-service h3, .featured-service p { color: var(--white); }
.featured-service p { opacity: .8; }
.featured-service .service-link { color: var(--gold); }

.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.service-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.service-link { font-size: .85rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.service-link:hover { text-decoration: underline; }
.service-popular {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold);
  color: var(--dark);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: .04em;
}

/* ============================
   AGENTS
   ============================ */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.agent-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #f1f5f9;
  transition: all .3s;
  text-align: center;
}
.agent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.agent-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.agent-initials { font-size: 2.5rem; font-weight: 900; color: rgba(255,255,255,.9); }
.agent-info { padding: 20px; }
.agent-info h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.agent-title { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }
.agent-stats {
  display: flex; justify-content: center; gap: 16px;
  font-size: .82rem; font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.agent-spec { font-size: .78rem; color: var(--blue); font-weight: 600; margin-bottom: 16px; }
.btn-agent {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  transition: all .2s;
}
.btn-agent:hover { background: var(--blue-dark); transform: scale(1.03); }

/* ============================
   TESTIMONIALS (Video + Text)
   ============================ */
.video-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  transition: all .3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.video-card video { width: 100%; height: 220px; object-fit: cover; display: block; border-bottom: 2px solid var(--blue); }
.vc-info { padding: 18px; text-align: center; }
.vc-info strong { display: block; font-size: 1.1rem; color: var(--text); margin-bottom: 4px; }
.vc-info span { font-size: .85rem; color: var(--text-muted); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.testi-card {
  background: var(--white);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
}
.testi-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.featured-testi {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  border-color: var(--blue);
}
.featured-testi .stars { color: var(--gold); }
.featured-testi .testi-text { color: rgba(255,255,255,.9); }
.featured-testi strong { color: var(--white) !important; }
.featured-testi span { color: rgba(255,255,255,.6) !important; }

.stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text { font-size: .9rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.testi-author strong { display: block; font-size: .9rem; }
.testi-author span { font-size: .78rem; color: var(--text-muted); }

/* === TESTIMONIAL CARDS — refined editorial style === */
.testimonial-card {
  position: relative;
  background: #f8fafc;
  border-radius: 24px;
  border: 1px solid rgba(15,23,42,.05);
  padding: 32px 28px 28px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
  margin: 0;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(15,23,42,.12), 0 4px 12px -4px rgba(15,23,42,.08);
  background: #ffffff;
}
.testimonial-card .t-quote {
  position: absolute;
  top: -16px;
  right: 24px;
  width: 40px; height: 40px;
  color: #F5B731;
  filter: drop-shadow(0 4px 8px rgba(245,183,49,.3));
}
.testimonial-card .t-stars {
  display: flex; gap: 2px;
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.testimonial-card .t-quote-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 24px;
  font-weight: 400;
  quotes: none;
}
.testimonial-card .t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.testimonial-card .t-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  display: grid; place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.testimonial-card .t-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}
.testimonial-card .t-info span {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
  display: block;
}
@media (max-width: 768px) {
  .testimonial-card { padding: 28px 22px 22px; }
  .testimonial-card .t-quote { width: 34px; height: 34px; top: -12px; right: 20px; }
  .testimonial-card .t-quote-text { font-size: 0.9rem; }
}

/* ============================
   CONTACT
   ============================ */
.contact-header-top { margin-bottom: 48px; }
.contact-brand { margin-bottom: 20px; padding-top: 8px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: stretch; }
/* form is first in DOM but should appear on left (col 2) in RTL desktop */
.contact-form-wrap { grid-column: 2; grid-row: 1; align-self: stretch; }
.contact-info { grid-column: 1; grid-row: 1; }
.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.ci-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; color: var(--white); font-size: .9rem; margin-bottom: 2px; }
.contact-item span { font-size: .85rem; color: rgba(255,255,255,.6); word-break: break-word; overflow-wrap: break-word; min-width: 0; }

.contact-direct-call {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 1.05rem; font-weight: 700;
  text-decoration: none; margin-top: 8px;
  padding: 10px 20px; border-radius: 50px;
  border: 1.5px solid rgba(245,183,49,.4);
  transition: all .2s;
}
.contact-direct-call:hover { background: rgba(245,183,49,.1); border-color: var(--gold); }
.social-links { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all .2s;
}
.social-btn:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.contact-form h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Heebo', sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  resize: vertical;
  direction: rtl;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); outline: none;
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}
.form-group select {
  background-color: var(--white) !important;
  color: var(--text) !important;
}
.form-group select option {
  background: var(--white) !important;
  color: var(--dark) !important;
}
.form-note { font-size: .75rem; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* Marketing consent checkbox */
.form-consent { margin-top: 4px; }
.consent-label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: 13px; color: #475569; line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0;
  cursor: pointer; accent-color: #1d4ed8;
}
.consent-note { font-size: 12px; color: #94a3b8; margin-top: 8px; margin-right: 27px; }
.consent-note a { color: #1d4ed8; text-decoration: underline; }

/* ============================
   FOOTER
   ============================ */
/* ============================
   PRE-FOOTER: מי אנחנו
   ============================ */
.prefooter {
  background: #0d1626;
  border-top: 3px solid var(--gold);
  padding: 80px 0 70px;
}

.prefooter-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Brand column */
.pf-brand .logo { margin-bottom: 20px; }
.pf-brand .logo-main { color: var(--white) !important; }
.pf-brand .logo-sub  { color: rgba(255,255,255,.5) !important; }

.pf-desc {
  color: rgba(255,255,255,.6);
  font-size: .92rem;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 340px;
}

.pf-stats {
  display: flex;
  gap: 28px;
}

.pf-stat {
  display: flex;
  flex-direction: column;
}

.pf-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.pf-lbl {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  margin-top: 5px;
  letter-spacing: .04em;
}

/* Column title */
.pf-title {
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Services list */
.pf-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pf-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  line-height: 1.4;
}

.pf-chevron {
  color: var(--gold);
  flex-shrink: 0;
}

.pf-all-link {
  display: inline-block;
  color: var(--gold);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  margin: 16px 0 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  transition: opacity .2s;
}

.pf-all-link:hover {
  opacity: .8;
}

/* Contact column */
.pf-contact-items {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 26px;
}

.pf-ci {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pf-ci-icon {
  font-size: .95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.pf-ci span {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  line-height: 1.5;
}

.pf-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
  margin-bottom: 22px;
}

.pf-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.pf-social {
  display: flex;
  gap: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
  .prefooter-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .pf-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .prefooter-grid { grid-template-columns: 1fr; gap: 36px; }
  .pf-brand { grid-column: auto; }
  .prefooter { padding: 52px 0 44px; }
  .pf-stats { gap: 20px; }
}

/* LTR overrides */
html.site-ltr .prefooter-grid { direction: ltr; }
html.site-ltr .pf-list li { direction: ltr; }
html.site-ltr .pf-desc { direction: ltr; text-align: left; max-width: 340px; }
html.site-ltr .pf-ci { direction: ltr; }
html.site-ltr .pf-brand .logo { flex-direction: row; }

/* ---- FOOTER ---- */
.footer { background: #07101f; padding-top: 80px; }
.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-tagline { color: rgba(255,255,255,.45); font-size: .85rem; margin-top: 16px; line-height: 1.6; }
.footer-brand .logo { margin-bottom: 8px; }
.footer-brand .logo-main { color: var(--white) !important; }
.footer-brand .logo-sub { color: rgba(255,255,255,.5) !important; }

.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h4 { color: var(--white); font-size: .85rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-size: .85rem;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-col span { display: block; color: rgba(255,255,255,.45); font-size: .85rem; margin-bottom: 8px; line-height: 1.5; }

.footer-bottom { padding: 20px 0; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom-inner span { font-size: .8rem; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: .8rem; color: rgba(255,255,255,.3); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,.6); }

/* ============================
   TOAST & SCROLL TOP
   ============================ */
.toast {
  position: fixed; bottom: 32px; right: 32px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  font-size: .9rem;
  z-index: 9999;
  transform: translateX(150%);
  transition: transform .4s cubic-bezier(.175,.885,.32,1.275);
}
.toast.show { transform: translateX(0); }
.toast-icon { font-size: 1.5rem; }
.toast strong { display: block; font-weight: 700; }
.toast p { color: var(--text-muted); font-size: .8rem; }

.scroll-top {
  position: fixed; bottom: 32px; left: 32px;
  width: 44px; height: 44px;
  background: var(--blue);
  color: var(--white);
  border: none; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(21,101,192,.4);
  transition: all .3s;
  opacity: 0; pointer-events: none;
  z-index: 999;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ============================
   MAP SECTION
   ============================ */
.map-section { background: var(--light); padding-bottom: 80px; }

.map-controls {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.map-filter-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 50px;
  border: 1.5px solid #e2e8f0; background: var(--white);
  font-family: 'Heebo', sans-serif; font-size: .88rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all .2s;
}
.map-filter-btn.active, .map-filter-btn:hover {
  background: #10b981; color: var(--white); border-color: #10b981;
}
.mf-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mf-dot.all        { background: linear-gradient(135deg, #10b981, #059669); }
.mf-dot.sale       { background: #34d399; }
.mf-dot.rent       { background: #10b981; }
.mf-dot.commercial  { background: #059669; }
.mf-dot.commercial-r{ background: #059669; }

@media(max-width:600px){
  .map-controls { gap: 6px; justify-content: center; }
  .map-filter-btn { padding: 6px 12px; font-size: .78rem; gap: 5px; }
  .mf-dot { width: 8px; height: 8px; }
}

.featured-service {
  background: var(--blue);
}
.featured-service h3,
.featured-service p {
  color: #ffffff !important;
}
.map-count { font-size: .85rem; color: var(--text-muted); font-weight: 600; margin-top: 12px; text-align: right; }

.map-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
  border: 2px solid #e2e8f0;
}
#mainMap { height: 580px; width: 100%; }

.map-legend {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  z-index: 500;
}
.legend-item { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--text); }
.leg-pin { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px rgba(0,0,0,.15); }
.sale-pin           { background: #10b981; }
.rent-pin           { background: #10b981; }
.commercial-sale-pin{ background: #059669; }
.commercial-rent-pin{ background: #059669; }

/* Custom Map Markers */
.map-pin {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
}
.map-pin-bubble {
  background: var(--white);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: 'Heebo', sans-serif;
  font-weight: 800;
  font-size: .75rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  border: 2px solid var(--gold);
  position: relative;
  color: var(--text);
  transition: transform .2s, box-shadow .2s;
}
.map-pin-bubble::after {
  content: '';
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid currentColor;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.15));
}
.map-pin-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 1px; flex-shrink: 0; }
.map-pin:hover .map-pin-bubble { transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.map-pin:hover .map-pin-dot { transform: scale(1.4); }
.map-pin-dot { transition: transform .2s; }

/* Leaflet popup override */
.leaflet-popup-content-wrapper { display: none; }

/* ============================
   PROPERTY MODAL
   ============================ */
.prop-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.prop-modal-overlay.open { opacity: 1; pointer-events: all; }

.prop-modal {
  background: var(--white);
  border-radius: 24px;
  width: 100%; max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(.92) translateY(20px);
  transition: transform .35s cubic-bezier(.175,.885,.32,1.275);
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
}
.prop-modal-overlay.open .prop-modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: 16px; left: 16px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: var(--white);
  border: none; font-size: .95rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: var(--blue); }

/* Gallery */
.modal-gallery { position: relative; height: 280px; background: #0d47a1; overflow: hidden; border-radius: 24px 24px 0 0; }
.gallery-main {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem; color: rgba(255,255,255,.25);
  background-size: cover; background-position: center;
  transition: all .4s;
}
.gallery-thumbs {
  position: absolute; bottom: 12px; right: 12px;
  display: flex; gap: 6px;
}
.gallery-thumb {
  width: 52px; height: 38px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,.4);
  cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: rgba(0,0,0,.3);
  transition: border-color .2s;
}
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb:hover { border-color: var(--white); }
.gallery-thumb { position: relative; }
.gallery-thumb.is-video::after {
  content: '▶'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .95rem; text-shadow: 0 1px 4px rgba(0,0,0,.85); pointer-events: none;
}
.gallery-main.is-video { cursor: default; }

/* Card "video available" badge */
.prop-video-badge {
  position: absolute; bottom: 12px; left: 12px; z-index: 3;
  background: rgba(0,0,0,.7); color: #fff;
  border-radius: 50px; padding: 4px 11px; font-size: .72rem; font-weight: 600;
  display: flex; align-items: center; gap: 4px; pointer-events: none;
  backdrop-filter: blur(4px);
}

/* Honeypot anti-spam field — clipped to 1px (NOT left:-9999px, which broke mobile scroll).
   Stays in the DOM so bots fill it, but adds zero overflow. */
.hp-field {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Fullscreen image lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-img {
  max-width: 92vw; max-height: 86vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 12px 60px rgba(0,0,0,.6);
}
.lb-close {
  position: absolute; top: 18px; right: 24px;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.9rem; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 2.2rem; line-height: 1;
  cursor: pointer; transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: .9rem; letter-spacing: .04em;
}
@media (max-width: 768px) {
  .lb-nav { width: 44px; height: 44px; font-size: 1.8rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 10px; right: 12px; }
}
.gallery-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  padding: 5px 14px; border-radius: 50px; text-transform: uppercase;
}
.gallery-badge.sale { background: var(--gold); color: #1a1a1a; }
.gallery-badge.rent { background: #10b981; color: #fff; }

/* Modal Body */
.modal-body {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 0;
  min-height: 340px;
}
.modal-left { padding: 28px 32px; border-left: 1px solid #f1f5f9; }
.modal-price { font-size: 1.8rem; font-weight: 900; color: var(--blue); margin-bottom: 6px; }
.modal-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.modal-location {
  display: flex; align-items: center; gap: 5px;
  font-size: .88rem; color: var(--text-muted); margin-bottom: 18px;
}
.modal-features {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.modal-features span {
  font-size: .82rem; background: #f8fafc;
  border: 1px solid #e2e8f0; color: var(--text);
  padding: 6px 12px; border-radius: 8px; font-weight: 500;
}
.modal-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.modal-agent {
  display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border-radius: 12px; padding: 12px 16px;
  margin-bottom: 20px;
}
.modal-agent-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-agent-name { font-size: .9rem; font-weight: 700; }
.modal-agent-title { font-size: .78rem; color: var(--text-muted); }

.modal-nav-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-whatsapp-modal {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#25D366,#128C7E);
  color: var(--white);
  text-decoration: none; font-family: 'Heebo', sans-serif;
  font-size: .95rem; font-weight: 800;
  padding: 13px 24px; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: all .25s; flex: 1;
}
.btn-whatsapp-modal:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.5); }

.btn-waze {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #33ccff, #00aaff);
  color: var(--white);
  text-decoration: none; font-family: 'Heebo', sans-serif;
  font-size: .95rem; font-weight: 800;
  padding: 13px 28px; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,170,255,.35);
  transition: all .25s;
}
.btn-waze:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,170,255,.5); }
.btn-waze svg { flex-shrink: 0; }

/* Modal Form */
.modal-right { padding: 28px 28px; background: #f8fafc; border-radius: 0 0 24px 0; }
.modal-form-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 800; margin-bottom: 6px;
}
.modal-form-sub { font-size: .8rem; color: var(--text-muted); margin-bottom: 16px; }
.mform-group { margin-bottom: 10px; }
.mform-group input, .mform-group select, .mform-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-family: 'Heebo', sans-serif; font-size: .88rem;
  color: var(--text); background: var(--white); resize: vertical; direction: rtl;
  transition: border-color .2s;
}
.mform-group input:focus, .mform-group select:focus, .mform-group textarea:focus {
  border-color: var(--blue); outline: none;
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}
.mform-group select {
  background-color: var(--white) !important;
  color: var(--text) !important;
}
.mform-group select option {
  background-color: var(--white) !important;
  color: var(--text) !important;
}
.modal-submit { border-radius: 10px !important; padding: 13px !important; }
.modal-phone-row {
  margin-top: 12px; text-align: center;
  font-size: .8rem; color: var(--text-muted); display: flex; gap: 6px; justify-content: center; align-items: center;
}
.modal-phone-link { font-weight: 700; color: var(--blue); text-decoration: none; direction: ltr; }

/* Desktop: hide logo/social from contact-info (shown in footer); equalizes column heights */
@media (min-width: 1025px) {
  .contact-info .contact-brand { display: none; }
  .contact-info .social-links { display: none; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-visual { display: flex; order: -1; transform: none; margin: 0 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { grid-column: auto; grid-row: auto; align-self: auto; }
  .contact-info { grid-column: auto; grid-row: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-inner { flex-direction: row; justify-content: space-between; gap: 16px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; margin-right: 0; }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-inner { flex-direction: row; justify-content: space-between; }
  .hamburger { margin-right: 0; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  /* ---- Hero compression on mobile ---- */
  .hero-content { padding-top: 24px; padding-bottom: 32px; }
  .hero-badge { font-size: .72rem; padding: 5px 12px; margin-bottom: 10px; }
  .hero-title { font-size: 1.85rem; margin-bottom: 8px; }
  .hero-subtitle { font-size: .88rem; line-height: 1.5; margin-bottom: 14px; }
  .hero-tags { margin-top: 10px; font-size: .78rem; gap: 7px; }
  .hero-tags a { padding: 4px 10px; font-size: .75rem; }

  /* Search box: tighter spacing */
  .search-tabs { padding: 4px; gap: 3px; }
  .tab { padding: 8px 4px; font-size: .8rem; }

  /* Search fields: 2×2 grid instead of 4 stacked columns */
  .search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    align-items: end;
  }
  .field-group { min-width: 0; width: auto; }
  .field-group label { font-size: .68rem; }
  .field-group select, .field-group input { padding: 7px 10px; font-size: .85rem; }
  .search-btn { grid-column: 1 / -1; width: 100%; justify-content: center; height: 38px; }
  .stat-item { padding: 12px 20px; }
  .stat-num { font-size: 1.8rem; }
  /* Center only logo + social in contact-info, not the detail items */
  .contact-info .social-links { justify-content: center; width: 100%; }
  .contact-brand { display: flex; flex-direction: column; align-items: center; }
  .contact-brand .logo { justify-content: center; width: 100%; }
  
  .properties-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 1rem;
    padding-bottom: 1rem;
    padding-inline: 24px;
    margin-inline: -24px;
    scrollbar-width: none;
  }
  .properties-grid::-webkit-scrollbar { display: none; }
  .prop-card { flex: 0 0 82vw; max-width: 300px; scroll-snap-align: start; }

  .services-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 1rem;
    padding-bottom: 1rem;
    padding-inline: 24px;
    margin-inline: -24px;
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card { flex: 0 0 82vw; max-width: 300px; scroll-snap-align: start; }

  .agents-grid, .team-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 1rem;
    padding-bottom: 1rem;
    padding-inline: 24px;
    margin-inline: -24px;
    scrollbar-width: none;
  }
  .agents-grid::-webkit-scrollbar,
  .team-grid::-webkit-scrollbar { display: none; }
  .agent-card, .team-card { flex: 0 0 82vw; max-width: 300px; scroll-snap-align: start; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
  .footer-brand { text-align: center; }
  .footer-brand .logo { justify-content: center; }
  .footer-tagline { margin-top: 0; text-align: center; }
  .contact-info .social-links { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .section { padding: 60px 0; }
  .footer { padding-top: 40px; }
  .hero-stats-inner { gap: 0; flex-wrap: wrap; }
  #mainMap { height: 420px; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-left { border-left: none; border-bottom: 1px solid #f1f5f9; padding: 20px; }
  .modal-right { padding: 20px; border-radius: 0 0 24px 24px; }
  .modal-gallery { height: 220px; }
  .modal-price { font-size: 1.4rem; }
  .why-visual {
    order: -1;
    transform: none;
    overflow: visible;
    margin: 0 30px;
  }
  .big-logo-display {
    max-width: 240px;
    padding: 20px;
    margin: 0 auto;
  }
  .float-card {
    font-size: 0.7rem;
    padding: 7px 10px;
    gap: 7px;
  }
  .fc-val { font-size: 0.8rem; }
  .fc-icon { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .agents-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-col h4 { font-size: .78rem; margin-bottom: 10px; }
  .footer-col a { font-size: .78rem; margin-bottom: 6px; }
  /* Hero stats: ultra-compact 3-column horizontal row (saves height vs 2x2) */
  .hero-stats { display: block; padding: 0 !important; }
  .hero-stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
  }
  .hero-stats .stat-item {
    padding: 10px 4px;
    align-items: center;
    text-align: center;
  }
  .hero-stats .stat-item + .stat-item {
    border-left: 1px solid rgba(255,255,255,.08);
  }
  .hero-stats .stat-divider { display: none; }
  .hero-stats .stat-num { font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1; }
  .hero-stats .stat-suffix { font-size: 0.75rem; }
  .hero-stats .stat-label { font-size: 0.58rem; margin-top: 3px; opacity: 0.7; line-height: 1.1; }
  .prop-modal { border-radius: 16px; }
  .modal-right { border-radius: 0 0 16px 16px; }
}

/* Short phones / small windows (<769px wide & short): compact the hero so the whole
   thing — search box, stats, "גלול למטה" hint AND the wave — fits on the first screen.
   (Desktop already has max-height tiers gated to min-width:769px; this covers below that.) */
@media (max-width: 768px) and (max-height: 800px) {
  .hero-content { padding-top: 14px; padding-bottom: 8px; }
  .hero-badge { margin-bottom: 6px; }
  .hero-title { font-size: 1.5rem; margin-bottom: 6px; }
  .hero-subtitle { display: none; }            /* hide on short screens to make room */
  .hero-tags { margin-top: 6px; gap: 6px; }
  .search-fields { padding: 10px; gap: 7px; }
  .field-group label { font-size: .64rem; }
  .field-group select, .field-group input { padding: 6px 9px; font-size: .82rem; }
  .search-tabs { padding: 3px; }
  .tab { padding: 6px 4px; }
  .hero-stats { margin-bottom: 10px; }
  .stat-item { padding: 8px 20px; }
  .hero-scroll-hint { margin: 0 auto 48px; }
}

/* Tiny / very short screens (old Androids, landscape): squeeze the last ~30px */
@media (max-width: 768px) and (max-height: 680px) {
  .hero-content { padding-top: 8px; }
  .hero-badge { margin-bottom: 4px; }
  .hero-title { font-size: 1.32rem; margin-bottom: 4px; }
  .hero-tags { margin-top: 4px; }
  .search-fields { padding: 8px; gap: 6px; }
  .tab { padding: 5px 4px; }
  .stat-item { padding: 5px 18px; }
  .hero-scroll-hint { margin: 0 auto 44px; }
}

/* ============================
   EXTRA DESIGN UPGRADES
   ============================ */

/* --- Card shimmer on hover --- */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.prop-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255,255,255,.08) 50%,
    transparent 60%
  );
  background-size: 200% auto;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 1;
}
.prop-card { position: relative; }
.prop-card:hover::after {
  opacity: 1;
  animation: shimmer 1.4s linear;
}

/* --- Keep property text stable on hover --- */
.prop-price { transition: none; }
.prop-card:hover .prop-price {
  color: var(--blue);
  text-shadow: none;
}

/* --- Hot badge --- */
.hot-badge {
  position: absolute; bottom: 12px; right: 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; font-size: .65rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 50px;
  box-shadow: 0 2px 10px rgba(239,68,68,.45);
  animation: hotPulse 1.8s ease-in-out infinite;
  z-index: 4;
}
@keyframes hotPulse {
  0%,100% { box-shadow: 0 2px 10px rgba(239,68,68,.45); }
  50%      { box-shadow: 0 2px 22px rgba(239,68,68,.75); }
}

/* --- Wave dividers --- */
.wave-divider {
  width: 100%; overflow: hidden;
  line-height: 0; display: block;
}
.wave-divider svg { display: block; width: 100%; }
.wave-top { margin-bottom: -2px; }
.wave-bottom { margin-top: -2px; }

/* --- Hero wave bottom (overlay inside hero — preserves gradient continuity) --- */
.hero-wave-bottom {
  position: absolute;
  bottom: -1px;            /* -1px hides any sub-pixel seam to next section */
  left: 0;
  width: 100%;
  height: 36px;
  z-index: 5;
  pointer-events: none;
  display: block;
}

/* --- Floating WhatsApp button --- */
.float-wa {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  cursor: pointer; z-index: 9000;
  transition: transform .25s cubic-bezier(.175,.885,.32,1.275), box-shadow .25s;
  text-decoration: none;
  animation: waBounce 3s ease-in-out infinite;
}
.float-wa svg { width: 30px; height: 30px; fill: #fff; }
.float-wa:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 32px rgba(37,211,102,.7);
  animation: none;
}
.float-wa-tooltip {
  position: absolute;
  left: 66px; top: 50%;
  transform: translateY(-50%);
  background: #1a1a2e; color: #fff;
  font-size: .8rem; font-weight: 600;
  white-space: nowrap; padding: 7px 14px;
  border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.float-wa:hover .float-wa-tooltip { opacity: 1; }
@keyframes waBounce {
  0%,100% { transform: translateY(0); }
  40%      { transform: translateY(-6px); }
  60%      { transform: translateY(-3px); }
}

/* --- Filter bar upgraded with city pill style --- */
.filter-bar {
  gap: 8px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  margin-bottom: 36px;
}
.filter-btn[onclick*="filterByCity"] {
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: var(--white) !important;
  border-color: transparent !important;
}
.filter-btn[onclick*="filterByCity"].active {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1a1a !important;
}

/* --- Section hero scroll hint --- */
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: .8; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: .4; }
}
.hero-scroll-hint {
  position: relative;
  margin: 10px auto 50px;      /* below the stats, clear above the 36px wave */
  align-self: center;
  display: flex; flex-direction: row; align-items: center; gap: 5px;
  color: rgba(255,255,255,.7); font-size: .78rem; white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);   /* stays readable even near the wave edge */
  animation: scrollBounce 1.8s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
  z-index: 10;
}
.hero-scroll-hint svg { width: 18px; height: 18px; }
/* Mobile: scroll hint flows naturally between content and stats grid */
@media (max-width: 768px) {
  .hero-wave-bottom { height: 40px; }
  /* Scroll hint sits just below the stats, with enough room to clear the 40px wave */
  .hero-scroll-hint {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 0 auto 52px;          /* 52 > 40px wave → text never lands on the white */
    align-self: center;
    z-index: 6;
    animation: scrollBounceFlow 1.8s ease-in-out infinite;
  }
  /* Small gap from the stats bar to the hint right beneath it */
  .hero-stats { margin-bottom: 14px; }
}
@keyframes scrollBounceFlow {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50%      { transform: translateY(8px); opacity: .4; }
}
/* Neighborhood pages: scroll hint pinned just above the wave at hero bottom */
.hero:has(.hood-breadcrumb) .hero-scroll-hint {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 6;
  animation: scrollBounce 1.8s ease-in-out infinite;
  color: rgba(255,255,255,.7);
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
@media (min-width: 769px) {
  /* On desktop, neighborhood pages don't need the scroll hint (stats anchor the bottom) */
  .hero:has(.hood-breadcrumb) .hero-scroll-hint { display: none; }
}

/* --- Prop card price tag chip --- */
.prop-price-wrap {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px;
}

/* --- Section accent line --- */
.section-title .accent-line {
  display: block;
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 2px;
  margin: 10px auto 0;
}

/* --- Improved prop-name --- */
.prop-name {
  position: relative;
}

/* --- view all button animation --- */
.btn-outline-primary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--blue); color: var(--blue);
  font-family: 'Heebo', sans-serif; font-weight: 700;
  padding: 13px 32px; border-radius: 50px;
  background: transparent; cursor: pointer; font-size: 1rem;
  transition: all .3s; position: relative; overflow: hidden;
}
.btn-outline-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
  z-index: 0;
}
.btn-outline-primary:hover::before { transform: scaleX(1); }
.btn-outline-primary:hover { color: var(--white); border-color: var(--blue-mid); }
.btn-outline-primary > * { position: relative; z-index: 1; }

/* --- Smooth card border on hover --- */
.prop-card:hover {
  border-color: rgba(21,101,192,.18);
  box-shadow: 0 16px 56px rgba(21,101,192,.12), 0 4px 16px rgba(0,0,0,.08);
}

/* Logo blend mode */
.navbar.scrolled .logo-img { mix-blend-mode: multiply; }

/* =============================================
   Accessibility Widget
   ============================================= */
.a11y-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }

.a11y-toggle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 1.5rem;
  border: 2px solid transparent;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.a11y-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.a11y-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.a11y-menu {
  position: absolute; bottom: 58px; right: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  width: 220px; padding: 14px 12px 12px;
  display: flex; flex-direction: column; gap: 6px;
  transform: scale(0.92) translateY(8px); opacity: 0; pointer-events: none;
  transform-origin: bottom right; transition: transform .18s ease, opacity .18s ease;
  border: 1px solid #e2e8f0;
}
.a11y-widget.open .a11y-menu {
  transform: scale(1) translateY(0); opacity: 1; pointer-events: all;
}

.a11y-menu-header {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 0 4px 6px; border-bottom: 1px solid #e2e8f0; margin-bottom: 4px;
}
.a11y-section-label {
  font-size: 10px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 4px 2px;
}
.a11y-divider { height: 1px; background: #e2e8f0; margin: 4px 0; }

.a11y-btn {
  width: 100%; padding: 9px 10px; border: 1px solid transparent;
  background: #f8fafc; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; color: #334155; text-align: right;
  transition: background .15s, border-color .15s, color .15s;
  display: block;
}
.a11y-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.a11y-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.a11y-btn--active {
  background: #eff6ff; border-color: var(--blue); color: var(--blue);
}
.a11y-btn--active::before { content: '✓ '; }

/* Font size row */
.a11y-font-row {
  display: flex; align-items: center; gap: 6px;
}
.a11y-font-btn {
  width: 36px !important; padding: 6px; text-align: center; flex-shrink: 0;
  font-size: 13px;
}
.a11y-font-label {
  flex: 1; text-align: center; font-size: 12px; color: #64748b; font-weight: 600;
}
.a11y-font-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Reset & statement */
.a11y-reset-btn { color: #ef4444; }
.a11y-reset-btn:hover { background: #fef2f2; border-color: #fca5a5; color: #ef4444; }
.a11y-statement-btn {
  text-align: center; text-decoration: none; font-size: 12px;
  color: #64748b; background: transparent; border-color: transparent;
}
.a11y-statement-btn:hover { background: #f1f5f9; color: #334155; }

/* =============================================
   Accessibility feature classes (applied to <html>)
   ============================================= */

/* High contrast / invert / grayscale — applied via JS filter on html element */

/* Readable font */
html.a11y-readable-font,
html.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Underline all links */
html.a11y-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Stop animations */
html.a11y-stop-animations *,
html.a11y-stop-animations *::before,
html.a11y-stop-animations *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* Big cursor */
html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M6 2l20 13-9 1.5 5.5 9.5-3.5 2-5.5-9.5L8 22z' fill='black' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E") 6 2, auto !important;
}

/* ========================================
   RTL → LTR FULL LAYOUT FLIP
   Applies when htmlhtml.site-ltr (EN/FR/DE/ES)
   Arabic stays RTL like Hebrew
   ======================================== */

html.site-ltr { direction: ltr; }
/* Override body's explicit RTL direction */
html.site-ltr body { direction: ltr; }

/* Lang panel: move to RIGHT edge in LTR */
html.site-ltr .lang-panel-wrapper { left: auto; right: 0; }
html.site-ltr .lang-side-panel {
  border-radius: 12px 0 0 12px;
  box-shadow: -2px 0 12px rgba(0,0,0,.2);
}
html.site-ltr .lang-side-panel.collapsed .lang-collapse-btn {
  left: auto;
  right: 0;
  border-radius: 18px 0 0 18px;
  box-shadow: -2px 0 10px rgba(0,0,0,.25);
}

/* Dropdown arrow on right side in LTR */
html.site-ltr .field-group select,
html.site-ltr .form-group select {
  background-position: right 12px center;
  padding-left: 14px;
  padding-right: 36px;
}

/* Navbar */
html.site-ltr .navbar,
html.site-ltr .nav-inner { direction: ltr; flex-direction: row; }
html.site-ltr .logo { order: 1; margin-right: auto; margin-left: 0; }
html.site-ltr .nav-links { order: 2; margin: 0 auto; direction: ltr; }
html.site-ltr .nav-right { order: 3; }
html.site-ltr .nav-links a { direction: ltr; text-transform: capitalize; }

/* Mobile menu */
html.site-ltr .mobile-menu a { text-align: left; direction: ltr; }
html.site-ltr .mobile-phone { text-align: left !important; direction: ltr !important; }

/* Language side panel — right edge in LTR */
html.site-ltr .lang-side-panel {
  left: auto;
  right: 0;
  border-radius: 12px 0 0 12px;
  box-shadow: -2px 0 12px rgba(0,0,0,.2);
}
/* In LTR, panel is on right — active bar faces LEFT (toward content) */
html.site-ltr .lang-side-panel .lang-items button.active {
  border-right: none;
  border-left: 3px solid var(--blue);
}

/* Filter bars */
html.site-ltr .filter-bar,
html.site-ltr .filter-group,
html.site-ltr .filter-group-main,
html.site-ltr .filter-group-cities,
html.site-ltr .hood-filters,
html.site-ltr .filters-bar { justify-content: flex-start; direction: ltr; }
html.site-ltr .filter-btn,
html.site-ltr .city-btn { direction: ltr; text-transform: capitalize; }

/* Base direction for LTR — text-align handled per section to avoid breaking centered headings */
html.site-ltr { direction: ltr; }
html.site-ltr input, html.site-ltr select, html.site-ltr textarea {
  direction: ltr;
  text-align: left;
}
/* Search bar fields */
html.site-ltr .search-fields select,
html.site-ltr .search-fields input,
html.site-ltr .field-group select,
html.site-ltr .field-group label { direction: ltr; text-align: left; }
html.site-ltr .search-fields { direction: ltr; }
html.site-ltr .search-tabs { direction: ltr; }
html.site-ltr .search-tab { text-transform: capitalize; }

/* Property cards */
html.site-ltr .prop-card { direction: ltr; text-align: left; }
html.site-ltr .prop-body { direction: ltr; text-align: left; }
html.site-ltr .prop-price { text-align: left; }
html.site-ltr .prop-name { text-align: left; }
html.site-ltr .prop-loc { direction: ltr; }
html.site-ltr .prop-features { justify-content: flex-start; direction: ltr; }
html.site-ltr .prop-features span { direction: ltr; }
html.site-ltr .prop-footer { direction: ltr; flex-direction: row; }
html.site-ltr .prop-footer .agent-mini { direction: ltr; }
html.site-ltr .prop-footer .prop-actions { direction: ltr; }
html.site-ltr .prop-card .card-footer { flex-direction: row; }
html.site-ltr .card-meta { justify-content: flex-start; }

/* Hero section */
html.site-ltr .hero-content { direction: ltr; text-align: left; }
html.site-ltr .hero-actions { justify-content: flex-start; }
html.site-ltr .hero h1, html.site-ltr .hero p { text-align: left; }

/* Stats bar */
html.site-ltr .stats-bar, html.site-ltr .stat-item { direction: ltr; }

/* Services */
html.site-ltr .service-card { direction: ltr; text-align: left; }
html.site-ltr .service-card * { direction: ltr; text-align: left; }
html.site-ltr .service-card h3,
html.site-ltr .service-card p { text-align: left; }
html.site-ltr .service-card a { text-align: left; }
html.site-ltr .service-card .service-icon { text-align: left; }
html.site-ltr .service-card::before { right: auto; left: 0; }
html.site-ltr .services-grid { direction: ltr; }
html.site-ltr .properties-grid { direction: ltr; }

/* Agents */
html.site-ltr .agent-card { direction: ltr; text-align: left; }
html.site-ltr .agent-info { text-align: left; }
html.site-ltr .agent-info h3,
html.site-ltr .agent-title,
html.site-ltr .agent-spec { text-align: left; }
html.site-ltr .agent-stats { justify-content: flex-start; }
html.site-ltr .agent-mini { direction: ltr; }

/* Contact form */
html.site-ltr .contact-form,
html.site-ltr .contact-form input,
html.site-ltr .contact-form select,
html.site-ltr .contact-form textarea { direction: ltr; text-align: left; }

/* Modal */
html.site-ltr .modal-content { direction: ltr; text-align: left; }
html.site-ltr .modal-content h2,
html.site-ltr .modal-content p { text-align: left; }

/* Footer */
html.site-ltr footer,
html.site-ltr .footer-col { direction: ltr; text-align: left; }
html.site-ltr .footer-col ul { padding-right: 0; padding-left: 1rem; }

/* Map controls */
html.site-ltr .map-controls,
html.site-ltr .map-filter-bar { direction: ltr; justify-content: flex-start; }

/* Accessibility widget */
html.site-ltr #a11yWidget { direction: ltr; text-align: left; }

/* Testimonials */
html.site-ltr .testimonial-card,
html.site-ltr .testimonial-card * { direction: ltr; text-align: left; }

/* Section labels / tags — stay centered (they're in centered section headers) */
/* Do NOT force text-align:left on section-title — it breaks map/services headings */

/* Why us section */
html.site-ltr .why-text { direction: ltr; text-align: left; }
html.site-ltr .why-desc { text-align: left; }
html.site-ltr .why-item { flex-direction: row; text-align: left; }
html.site-ltr .why-item strong,
html.site-ltr .why-item p { text-align: left; }
html.site-ltr .why-grid { direction: ltr; }

/* Contact section */
html.site-ltr .contact-info { direction: ltr; text-align: left; }
html.site-ltr .contact-details { direction: ltr; }
html.site-ltr .contact-details > div { direction: ltr; text-align: left; }
html.site-ltr .contact-form { direction: ltr; }
html.site-ltr .contact-form label { text-align: left; display: block; }
html.site-ltr .contact-form input,
html.site-ltr .contact-form select,
html.site-ltr .contact-form textarea { direction: ltr; text-align: left; }
html.site-ltr .contact-form-wrap { direction: ltr; }

/* Navbar — mobile: fix row-reverse in LTR */
@media (max-width: 768px) {
  html.site-ltr .nav-inner { flex-direction: row; }
}

/* Nav actions button text in LTR */
html.site-ltr .btn-primary,
html.site-ltr .nav-actions { direction: ltr; }

/* Footer logo area */
html.site-ltr .footer-brand { direction: ltr; text-align: left; }
html.site-ltr .footer-brand .logo { flex-direction: row; }

/* Stats bar */
html.site-ltr .stats-bar { direction: ltr; }
html.site-ltr .stat-item { direction: ltr; text-align: left; }

/* Agents section */
html.site-ltr .agent-info,
html.site-ltr .agent-name,
html.site-ltr .agent-title { text-align: left; direction: ltr; }

/* Language Side Panel */
.lang-panel-wrapper {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
}
.lang-side-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 2px 0 12px rgba(0,0,0,.2);
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.05);
  max-height: 90vh;
  padding-top: 20px;
}
/* Lang items wrapper — collapses smoothly */
.lang-items {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 400px;
  transition: max-height 0.3s ease;
}
.lang-side-panel.collapsed .lang-items { max-height: 0; }
.lang-side-panel.collapsed { border-color: transparent; box-shadow: none; background: transparent; padding-top: 0; border: none; overflow: visible; }
.lang-side-panel.collapsed .lang-collapse-btn {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 36px;
  border-radius: 0 18px 18px 0;
  background: var(--blue);
  color: var(--white);
  box-shadow: 2px 0 10px rgba(0,0,0,.25);
  border-bottom: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-side-panel .lang-items button {
  background: transparent;
  border: none;
  padding: 14px 12px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--dark);
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s;
  font-family: 'Heebo', sans-serif;
}
.lang-items button:last-child { border-bottom: none; }
.lang-side-panel .lang-items button:hover,
.lang-side-panel .lang-items button:focus-visible {
  background: var(--blue); color: var(--white);
}
.lang-side-panel .lang-items button.active {
  background: rgba(21,101,192,.08);
  color: var(--blue);
  font-weight: 900;
  border-right: 3px solid var(--blue);
}
/* Collapse toggle — absolute inside panel at top-left, zero flex-gap with HE */
.lang-collapse-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--white);
  border: none;
  cursor: pointer;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  transition: background 0.15s;
  border-bottom: 1px solid #e2e8f0;
  z-index: 2;
}
.lang-collapse-btn:hover { background: #f1f5f9; }

@media (max-width: 768px) {
  /* Compact vertical side panel on mobile */
  .lang-side-panel {
    flex-direction: column;
  }
  .lang-side-panel .lang-items button {
    padding: 9px 10px;
    font-size: 0.72rem;
  }
  .lang-side-panel { padding-top: 18px; }
  .lang-collapse-btn { height: 18px; font-size: 0.7rem; }
}
/* Hide Google Translate UI bar only — do NOT hide iframes (needed for translation engine) */
.goog-te-banner-frame,
.goog-logo-link,
.goog-te-gadget-icon,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-xl07Ob-OEVmcd,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
/* Prevent GT from pushing body down */
body { top: 0 !important; }
html body { margin-top: 0 !important; }

/* Global Accessibility Focus Ring */
*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}


/* === LOAD MORE BUTTON === */
.load-more-btn {
  display: block;
  margin: 2rem auto;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, #1565C0, #0d47a1);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(21,101,192,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.45);
}

/* === FILTER ROWS - mobile wrapping === */
.filter-group, .hood-filters, .filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.5rem 0;
}
.filter-btn {
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .filter-btn, .hood-btn, .city-btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
  }
  .hood-label {
    width: 100%;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted, #666);
    margin-bottom: 0.25rem;
  }
}

/* === LAZY SECTIONS === */
.lazy-section { opacity: 1; }
.lazy-loaded { opacity: 1; }


/* === LOGO ON WHITE NAVBAR === */
.logo-img.logo-on-white {
  border-radius: 12px !important;
  background: #1565C0 !important;
  object-fit: cover !important;
  filter: none !important;
}
.logo-img.logo-on-white.logo-transparent {
  /* override the transparent state when on white bg */
  border-radius: 12px !important;
  background: #1565C0 !important;
}

/* === MOBILE FIXES === */

/* 1. עדויות - קרוסלה במובייל */
@media (max-width: 768px) {
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 1rem 1.5rem;
    scrollbar-width: none;
    grid-template-columns: unset;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .video-card {
    flex: 0 0 78vw;
    max-width: 280px;
    scroll-snap-align: start;
  }
  .video-card video {
    height: 160px;
  }
}

/* 2. תפריט מובייל - z-index גבוה, לא מכסה navbar */
.mobile-menu {
  position: fixed;
  top: 72px;
  right: 0; left: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
  border-bottom: 2px solid var(--blue, #1565C0);
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark, #1a202c);
  border-bottom: 1px solid #f1f5f9;
  text-align: right;
  direction: rtl;
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: none; }

/* 3. כרטיסי נכסים - גובה תמונה קטן יותר במובייל */
@media (max-width: 640px) {
  .prop-img, .prop-card .prop-img-wrap {
    height: 160px;
  }
  .prop-card {
    font-size: 0.92rem;
  }
  .prop-price {
    font-size: 1.1rem;
  }
}

/* === NAVBAR MOBILE FIX === */
/* navbar mobile padding removed */

/* === MOBILE MENU REDESIGN === */
.mobile-menu {
  position: fixed !important;
  top: 72px !important;
  right: 0; left: 0;
  background: #ffffff;
  z-index: 998;
  padding: 0;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-bottom: 3px solid var(--blue, #1565C0);
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark, #1a202c) !important;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  text-align: right;       /* Hebrew RTL: text starts from right */
  direction: rtl;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:active,
.mobile-menu a:hover {
  background: #f0f6ff;
  color: var(--blue, #1565C0) !important;
}
.mobile-menu .mobile-phone {
  color: var(--blue, #1565C0) !important;
  font-size: 1rem;
  font-weight: 700;
  text-align: left !important;   /* phone number: LTR digits, show at left (RTL end) */
  direction: ltr !important;
  background: #f8fafc;
}

/* === VIEWPORT & NAVBAR FIXES === */

/* 1. navbar top safe area - handles browser address bar */
.navbar {
  top: 0;
  position: fixed !important;
}

/* 2. hero - use dvh on desktop, auto on mobile to avoid dead space */
@supports (height: 100dvh) {
  @media (min-width: 769px) {
    .hero { min-height: 100dvh; }
  }
}

/* 3. testimonials carousel - correct class name */
@media (max-width: 768px) {
  .video-testimonials-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 1rem !important;
    padding: 0.5rem 1rem 1.5rem !important;
    scrollbar-width: none !important;
    grid-template-columns: unset !important;
  }
  .video-testimonials-grid::-webkit-scrollbar { display: none; }
  .video-testimonials-grid .video-card {
    flex: 0 0 80vw !important;
    max-width: 300px !important;
    scroll-snap-align: start !important;
  }
  .video-card video { height: 180px !important; }
}

/* 4. navbar always white on mobile, no transparency */
@media (max-width: 768px) {
  .navbar {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
  }
}

/* === NAVBAR FINAL FIX === */
@media (max-width: 768px) {
  /* navbar: transparent at top, white when scrolled */
  .navbar {
    background: transparent !important;
    box-shadow: none !important;
    transition: background 0.3s, box-shadow 0.3s;
  }
  .navbar.scrolled {
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
  }
  /* hero on mobile: fills viewport, content starts near top */
  .hero {
    min-height: 100svh;
    padding-top: 80px;
    box-sizing: border-box;
    justify-content: flex-start;
  }
}

/* ============================================================
   NEIGHBORHOOD PAGE ENHANCEMENTS
   ============================================================ */

/* Map wrapper: identical look to main site map */
#hoodMap { height: 340px; width: 100%; display: block; }

/* English translation first-letter capitalisation:
   Google Translate lowercases the word after <br/> in h1 — this forces it
   back to uppercase. Hebrew has no case, so no visual change there. */
.gradient-text::first-letter { text-transform: uppercase; }

/* Highlight cards always 2-up on all viewports */
.highlights-grid { grid-template-columns: 1fr 1fr !important; }

/* ── Neighborhood mobile — Editorial Card Hero ── */
@media (max-width: 768px) {
  /* Watermark removed (collides with title); breadcrumb hidden (badge replaces it) */
  .hero-en-inline { display: none; }
  .hero:has(.hood-breadcrumb) .hood-breadcrumb { display: none; }

  /* Hero structure: content top, stats grid anchors bottom, no dead space */
  .hero:has(.hood-breadcrumb) {
    min-height: 100svh;
    justify-content: space-between;
    padding-bottom: 60px; /* room for wave overlay */
  }

  /* Hero content: tighter rhythm, balanced spacing */
  .hero:has(.hood-breadcrumb) .hero-content {
    padding-top: 90px;
    padding-bottom: 24px;
    padding-inline-end: 58px;
    text-align: center;
  }

  /* Refined badge — pill with neighborhood accent dot */
  .hero:has(.hood-breadcrumb) .hero-badge {
    display: inline-flex;
    font-size: 0.7rem;
    padding: 6px 14px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
  }

  /* Title: tightened typography */
  .hero:has(.hood-breadcrumb) .hero-title {
    font-size: 1.95rem;
    margin-bottom: 14px;
    line-height: 1.15;
    letter-spacing: -0.015em;
  }

  /* Subtitle: tighter line-height for readability */
  .hero:has(.hood-breadcrumb) .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 320px;
  }

  /* CTA preceded by a refined accent line — visual breath before action */
  .hero:has(.hood-breadcrumb) .hero-cta {
    position: relative;
    justify-content: center;
    padding-top: 18px;
    margin-top: 4px;
  }
  .hero:has(.hood-breadcrumb) .hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  }

  /* === STATS GRID — the editorial anchor at bottom of hero === */
  .hero:has(.hood-breadcrumb) .hero-stats {
    display: block;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.18) 100%);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 0;
    margin-top: 0;
    z-index: 3;
    position: relative;
  }
  .hero:has(.hood-breadcrumb) .hero-stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 100%;
    padding: 0;
  }
  .hero:has(.hood-breadcrumb) .hero-stats .stat-item {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: transparent;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero:has(.hood-breadcrumb) .hero-stats .stat-item:nth-child(odd) {
    border-left: 1px solid rgba(255,255,255,.06);
  }
  .hero:has(.hood-breadcrumb) .hero-stats .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .hero:has(.hood-breadcrumb) .hero-stats .stat-divider {
    display: none;
  }
  .hero:has(.hood-breadcrumb) .hero-stats .stat-num {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
  }
  .hero:has(.hood-breadcrumb) .hero-stats .stat-label {
    font-size: 0.68rem;
    margin-top: 4px;
    letter-spacing: 0.04em;
    text-transform: none;
    opacity: 0.7;
  }

  /* Collapse about+map grid; shrink map on mobile */
  .about-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  #hoodMap { height: 240px !important; }
  .young-renters-grid { grid-template-columns: 1fr !important; }
  .contact-form .form-row { grid-template-columns: 1fr !important; }
}

/* Small mobile: stats stay visible (override global hide) */
@media (max-width: 480px) {
  .hero:has(.hood-breadcrumb) .hero-stats { display: block !important; }
  .hero:has(.hood-breadcrumb) .hero-title { font-size: 1.75rem; }
  .hero:has(.hood-breadcrumb) .hero-subtitle { font-size: 0.85rem; }
  .hero:has(.hood-breadcrumb) .hero-stats .stat-num { font-size: 1.3rem; }
  .hero:has(.hood-breadcrumb) .hero-stats .stat-label { font-size: 0.65rem; }
}

@media (max-width: 480px) {
  #hoodMap { height: 200px !important; }
  .highlights-grid { gap: 10px !important; }
  .highlight-card { padding: 10px 12px; }
  .highlight-card strong { font-size: .82rem; }
  .highlight-card p { font-size: .75rem; }
}
