/* ═══════════════════════════════════════════════════════
   MASHROOAK — Brand Redesign
   Colors: Navy #0a183b · Gold #c39c73
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --navy:        #0a183b;
  --navy-mid:    #122049;
  --navy-light:  #1c2f5e;
  --navy-glass:  rgba(10,24,59,.55);
  --gold:        #c39c73;
  --gold-dark:   #a8845e;
  --gold-light:  #f0e8dc;
  --gold-fade:   rgba(195,156,115,.12);
  --rent-color:  #1a6e65;
  --sale-color:  #0a183b;
  --invest-color:#a05e28;
  --text:        #0a183b;
  --text-med:    #3d4f6b;
  --text-light:  #7a8fa8;
  --bg:          #f8f5f0;
  --white:       #ffffff;
  --border:      #e8e2d8;
  --shadow-sm:   0 2px 10px rgba(10,24,59,.07);
  --shadow-md:   0 8px 28px rgba(10,24,59,.12);
  --shadow-lg:   0 20px 56px rgba(10,24,59,.20);
  --radius:      16px;
  --radius-sm:   10px;
  --nav-h:       92px;
  --transition:  .3s ease;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }

.wrap { width: min(1180px, 94%); margin-inline: auto; }
.hidden { display: none !important; }

/* ── Logo image ─────────────────────────────────────── */
.logo-img {
  display: block;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
/* Navbar & footer: on dark navy — render logo pure white */
.nav-logo .logo-img {
  height: clamp(132px, 14.5vw, 168px);
  filter: brightness(0) invert(1);
}
/* Footer brand logo */
.footer .nav-logo .logo-img {
  height: clamp(118px, 14.5vw, 150px);
  filter: brightness(0) invert(1);
}
/* Admin login card: white background — show original colors */
.login-logo-img {
  height: 260px;
  filter: none !important;
}
/* Admin header: dark background — white */
.adm-logo-img {
  height: 96px;
  filter: brightness(0) invert(1);
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  background: transparent;
  overflow: visible;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--navy-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(195,156,115,.15);
}
.nav-inner {
  width: min(1180px, 94%);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 6px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-inline-end: auto;
}
.nav-links,
.nav-actions { display: none; }
.btn-lang {
  background: rgba(195,156,115,.15);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(195,156,115,.3);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-lang:hover { background: rgba(195,156,115,.3); color: white; }
.mobile-lang {
  background: rgba(195,156,115,.12) !important;
  border-radius: 8px;
  margin: 4px 24px 0 !important;
  text-align: center;
}
.footer-lang-link {
  display: inline-block;
  margin-top: 10px;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  transition: color var(--transition);
}
.footer-lang-link:hover { color: var(--gold); }
.logo-text {
  font-size: 26px;
  font-weight: 900;
  color: white;
  letter-spacing: -.5px;
}
.logo-icon { width: 44px; height: 32px; flex-shrink: 0; }

.nav-links {
  display: none !important;
  gap: 4px;
  margin-inline-start: auto;
}
.nav-link {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,.1); color: white; }

.btn-admin {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-admin:hover { background: var(--gold-dark); transform: translateY(-1px); }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
  margin-inline-start: 0;
}
.hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: white; border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background: rgba(10,24,59,.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 0 16px;
  border-top: 1px solid rgba(195,156,115,.2);
  border-bottom: 1px solid rgba(195,156,115,.2);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.96);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 22px;
  margin: 0 14px 8px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.mobile-nav a:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); border-color: rgba(195,156,115,.3); }
.mobile-admin {
  margin: 6px 14px 0 !important;
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-radius: 10px;
  padding: 12px 24px !important;
  text-align: center;
  font-weight: 700 !important;
}
.mobile-lang {
  margin-top: 2px !important;
}

/* ── Hero ───────────────────────────────────────────── */
/* ── Hero ── photo background, text in sky, buildings below */
.hero {
  min-height: 100svh;
  background-color: #080614;
  background-image: url('/hero-bg.jpg');
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* Subtle top-only darkening so text pops in the sky area */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(4,6,22,.36) 0%,
    rgba(4,6,22,.10) 30%,
    transparent      55%,
    rgba(0,0,0,.05)  80%,
    rgba(0,0,0,.14)  100%
  );
  z-index: 0;
  pointer-events: none;
}
.hero::after { display: none; }

/* Hero inner — text sits in the clear upper sky */
.hero-inner {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 20px 0;
  max-width: 860px;
  margin-inline: auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Invisible spacer that fills the building zone */
.hero-spacer {
  flex: 1;
  min-height: 0;
}

/* SVG cityscape hidden when using photo */
.hero-cityscape { display: none; }

/* Stars canvas hidden when using photo */
#heroStars { display: none; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(195,156,115,.1);
  border: 1px solid rgba(195,156,115,.25);
  padding: 6px 18px;
  border-radius: 50px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow:
    0 2px 0 rgba(255,255,255,.08),
    0 6px 20px rgba(0,0,0,.4),
    0 16px 40px rgba(0,0,0,.25);
  animation: heroTitleIn .7s ease both;
}
.hero-accent {
  color: var(--gold);
  position: relative;
  animation: glowPulse 3.2s ease-in-out infinite;
}
.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 18px;
  animation: heroSubIn .8s ease both;
}

@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSubIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 0 rgba(195,156,115,0); }
  50% { text-shadow: 0 0 18px rgba(195,156,115,.35); }
}
/* ── Page-based routing — only active section is shown ── */
.page-section { display: none; }
.page-section.active { display: block; }
/* Hero uses flex layout */
.hero.active { display: flex; }
/* Non-hero pages need top padding to clear the fixed navbar */
.page-section.active:not(.hero) { padding-top: calc(var(--nav-h) + 40px); }

/* kept for syncTypeTabs() selector */
.htype { transition: all var(--transition); }

/* ── Hero category bubbles — full-hero overlay ──────── */
.hero-cards-row {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  display: block;
  z-index: 3;
  pointer-events: none;
}

/* ── Hero Category Cards ────────────────────────────── */
.hcat-card {
  --bubble-x: 0px;
  --bubble-y: 0px;
  --bubble-rot: 0deg;
  --bubble-glow: rgba(195,156,115,.22);
  --bubble-border: rgba(255,255,255,.22);
  --bubble-pulse-color: rgba(195,156,115,.30);
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 136px;
  aspect-ratio: 1 / 1;
  padding: 16px;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  background:
    radial-gradient(circle at 32% 28%,
      rgba(255,255,255,.14) 0%,
      rgba(255,255,255,.06) 30%,
      rgba(14,22,52,.10) 65%,
      rgba(8,12,32,.15) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--bubble-border);
  box-shadow:
    0 0 18px 2px var(--bubble-pulse-color),
    0 6px 20px rgba(0,0,0,.18),
    0 1px 0 rgba(255,255,255,.18) inset,
    0 -4px 14px var(--bubble-glow) inset;
  transform-style: preserve-3d;
  transform: perspective(900px) translate3d(var(--bubble-x), var(--bubble-y), 0) rotate(var(--bubble-rot));
  animation: bubbleFloat3d 7s ease-in-out infinite, bubblePulse 3s ease-in-out infinite;
  transition:
    transform .25s cubic-bezier(.25,.8,.25,1),
    box-shadow .3s ease,
    border-color .3s ease;
}

/* — per-bubble accent colours — */
.hcat-contact  { --bubble-glow: rgba(195,156,115,.28); --bubble-border: rgba(195,156,115,.35); --bubble-pulse-color: rgba(195,156,115,.22); animation-delay: 0s;   animation: bubbleFloat3d 7s ease-in-out infinite, bubblePulse 3s ease-in-out 0s infinite; }
.hcat-listings { --bubble-glow: rgba(120,170,230,.24); --bubble-border: rgba(140,190,255,.32); --bubble-pulse-color: rgba(120,170,230,.20); animation-delay: 1.4s; animation: bubbleFloat3d 7s 1.4s ease-in-out infinite, bubblePulse 3s 0.6s ease-in-out infinite; }
.hcat-val      { --bubble-glow: rgba(195,156,115,.26); --bubble-border: rgba(195,156,115,.33); --bubble-pulse-color: rgba(195,156,115,.21); animation-delay: 2.8s; animation: bubbleFloat3d 7s 2.8s ease-in-out infinite, bubblePulse 3s 1.2s ease-in-out infinite; }
.hcat-invest   { --bubble-glow: rgba(90,195,130,.24);  --bubble-border: rgba(100,210,140,.32); --bubble-pulse-color: rgba(90,195,130,.20);  animation-delay: 0.7s; animation: bubbleFloat3d 7s 0.7s ease-in-out infinite, bubblePulse 3s 1.8s ease-in-out infinite; }
.hcat-loc      { --bubble-glow: rgba(180,150,220,.24); --bubble-border: rgba(190,160,230,.32); --bubble-pulse-color: rgba(180,150,220,.20); animation-delay: 2.1s; animation: bubbleFloat3d 7s 2.1s ease-in-out infinite, bubblePulse 3s 2.4s ease-in-out infinite; }

/* — 5 bubbles positioned to match user-indicated locations — */
.hcat-card:nth-child(1) { top: 43%; left: 24%;              --bubble-y: -8px;  --bubble-rot: -5deg; }
.hcat-card:nth-child(2) { top: 40%; right: 24%; left: auto; --bubble-x: 8px;   --bubble-y:  6px;  --bubble-rot:  5deg; }
.hcat-card:nth-child(3) { top: 51%; left: 50%; transform: perspective(900px) translateX(-50%) rotate(-3deg); --bubble-rot: -3deg; }
.hcat-card:nth-child(4) { top: 66%; left: 20%;              --bubble-x: 8px;   --bubble-y: 10px;  --bubble-rot:  6deg; }
.hcat-card:nth-child(5) { top: 66%; right: 30%; left: auto; --bubble-x: -6px;  --bubble-y:  8px;  --bubble-rot: -5deg; }

.hcat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.22), rgba(255,255,255,0) 52%);
  pointer-events: none;
}
.hcat-card::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.05);
  pointer-events: none;
}
.hcat-card:hover,
.hcat-card:focus-visible {
  border-color: rgba(255,255,255,.50);
  transform: perspective(900px) translate3d(var(--bubble-x), calc(var(--bubble-y) - 8px), 24px) rotate(var(--bubble-rot)) rotateX(8deg) rotateY(-8deg) scale(1.07);
  animation: bubbleFloat3d 7s ease-in-out infinite, bubbleWobble3d 1.2s ease-in-out infinite;
  box-shadow:
    0 0 28px 6px var(--bubble-pulse-color),
    0 12px 32px rgba(0,0,0,.24),
    0 2px 0 rgba(255,255,255,.22) inset,
    0 -8px 18px var(--bubble-glow) inset;
}
.hcat-card:nth-child(3):hover,
.hcat-card:nth-child(3):focus-visible {
  transform: perspective(900px) translateX(-50%) translate3d(var(--bubble-x), calc(var(--bubble-y) - 8px), 24px) rotate(var(--bubble-rot)) rotateX(8deg) rotateY(-8deg) scale(1.07);
}
.hcat-card:active {
  transform: perspective(900px) translate3d(var(--bubble-x), calc(var(--bubble-y) - 2px), 10px) rotate(var(--bubble-rot)) scale(.97);
  animation: bubbleFloat3d 7s ease-in-out infinite, bubbleJitter3d .24s linear 3;
}
.hcat-card:nth-child(3):active {
  transform: perspective(900px) translateX(-50%) translate3d(var(--bubble-x), calc(var(--bubble-y) - 2px), 10px) rotate(var(--bubble-rot)) scale(.97);
}

/* Icon wrapper — colored circle */
.hcat-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 4px 12px rgba(0,0,0,.20), 0 1px 0 rgba(255,255,255,.16) inset;
  transform: translateZ(22px);
}
.hcat-icon {
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.50));
  transform: translateZ(22px);
}
.hcat-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.96);
  text-shadow: 0 1px 6px rgba(0,0,0,.70), 0 0 12px rgba(255,255,255,.30);
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  transform: translateZ(16px);
  letter-spacing: .02em;
}
/* Round count badge at bottom of card */
.hcat-count {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: white;
  background: rgba(195,156,115,.25);
  border: 1.5px solid rgba(195,156,115,.5);
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  transform: translateZ(24px);
}

@keyframes bubbleFloat3d {
  0%, 100% { transform: perspective(900px) translate3d(0,0,0) rotateX(0deg) rotateY(0deg); }
  25% { transform: perspective(900px) translate3d(0,-6px,8px) rotateX(4deg) rotateY(-4deg); }
  50% { transform: perspective(900px) translate3d(0,-1px,4px) rotateX(-2deg) rotateY(5deg); }
  75% { transform: perspective(900px) translate3d(0,-8px,10px) rotateX(5deg) rotateY(3deg); }
}

@keyframes bubbleWobble3d {
  0%, 100% { transform: perspective(900px) translate3d(0,-7px,20px) rotateX(8deg) rotateY(-9deg); }
  25% { transform: perspective(900px) translate3d(2px,-9px,24px) rotateX(10deg) rotateY(6deg); }
  50% { transform: perspective(900px) translate3d(-3px,-6px,18px) rotateX(4deg) rotateY(-10deg); }
  75% { transform: perspective(900px) translate3d(2px,-8px,22px) rotateX(9deg) rotateY(10deg); }
}

@keyframes bubbleJitter3d {
  0%   { transform: perspective(900px) translate3d(0,-2px,10px) rotateX(5deg) rotateY(0deg); }
  20%  { transform: perspective(900px) translate3d(-2px,-1px,8px) rotateX(3deg) rotateY(-8deg); }
  40%  { transform: perspective(900px) translate3d(2px,-3px,12px) rotateX(7deg) rotateY(7deg); }
  60%  { transform: perspective(900px) translate3d(-1px,-2px,9px) rotateX(4deg) rotateY(-6deg); }
  80%  { transform: perspective(900px) translate3d(2px,-2px,11px) rotateX(6deg) rotateY(6deg); }
  100% { transform: perspective(900px) translate3d(0,-2px,10px) rotateX(5deg) rotateY(0deg); }
}

@keyframes bubblePulse {
  0%, 100% { box-shadow: 0 0 10px 1px var(--bubble-pulse-color), 0 6px 20px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.18) inset, 0 -4px 14px var(--bubble-glow) inset; }
  50%       { box-shadow: 0 0 24px 6px var(--bubble-pulse-color), 0 6px 20px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.18) inset, 0 -4px 14px var(--bubble-glow) inset; }
}

@media (prefers-reduced-motion: reduce) {
  .hcat-card,
  .hcat-card:hover,
  .hcat-card:focus-visible,
  .hcat-card:active {
    animation: none !important;
    transform: none !important;
  }
}

/* Stats bar — hidden */
.hero-stats-bar { display: none; }
/* old hero-type-btns hidden — replaced by hero-cards-row */
.hero-type-btns { display: none; }

/* ── Listings ───────────────────────────────────────── */
.listings { padding: 80px 0; background: var(--white); }

.sec-head { margin-bottom: 40px; }
.sec-head.center { text-align: center; }
.sec-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.2px;
}
.sec-sub { color: var(--text-med); font-size: 16px; }
.sec-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sec-badge.light {
  background: rgba(195,156,115,.2);
  color: var(--gold-light);
}
.sec-title.light, .sec-sub.light { color: white; }
.sec-sub.light { opacity: .82; }

/* Type tabs */
.type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ttab {
  background: var(--bg);
  color: var(--text-med);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 10px;
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.ttab:hover { border-color: var(--gold); color: var(--navy); }
.ttab.active { background: var(--navy); color: white; border-color: var(--navy); }

/* Advanced filters */
.adv-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--text-med);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  margin-bottom: 12px;
  transition: all var(--transition);
}
.adv-toggle:hover { border-color: var(--gold); color: var(--navy); }
#advArrow { font-size: 12px; transition: transform var(--transition); }
.adv-toggle.open #advArrow { transform: rotate(180deg); }

.adv-filters {
  display: none;
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.adv-filters.open { display: block; }

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  align-items: end;
}
.fgrp { display: flex; flex-direction: column; gap: 6px; }
.fgrp label { font-size: 13px; font-weight: 600; color: var(--text-med); }
.fgrp input, .fgrp select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition);
  background: white;
}
.fgrp input:focus, .fgrp select:focus { border-color: var(--gold); }
.fgrp-btns { flex-direction: row; gap: 8px; align-items: flex-end; }

.btn-apply {
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-apply:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-reset {
  background: var(--bg);
  color: var(--text-med);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-reset:hover { border-color: var(--gold); color: var(--navy); }

.results-meta {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
  font-weight: 500;
}

/* ── Property Grid ──────────────────────────────────── */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #ede8e1 25%, #f5f1ec 50%, #ede8e1 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
  height: 360px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Property card — 3D hover */
.pcard {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s ease, border-color .3s ease;
  cursor: pointer;
  animation: fadeUp .5s ease both;
  will-change: transform;
}
.pcard:hover {
  transform: perspective(900px) translateY(-16px) rotateX(6deg) rotateY(-1.5deg);
  box-shadow:
    0 32px 64px rgba(10,24,59,.28),
    0 8px 24px rgba(0,0,0,.18),
    0 0 0 2px rgba(195,156,115,.45);
  border-color: rgba(195,156,115,.55);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pcard-photo {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg);
}
.pcard-photo img, .pcard-photo video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--bg);
  transition: transform .5s ease;
}
.pcard:hover .pcard-photo img, .pcard:hover .pcard-photo video { transform: scale(1.04); }

.pcard-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
}

.type-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  color: white;
  letter-spacing: .3px;
}
.badge-rent    { background: var(--rent-color); }
.badge-sale    { background: var(--navy); }
.badge-invest  { background: var(--invest-color); }

.photo-count {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(10,24,59,.6);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

.pcard-body { padding: 20px 22px 24px; }
.pcard-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.pcard-details {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.pcard-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.kbadge {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold-fade);
  border: 1px solid rgba(195,156,115,.35);
  padding: 4px 10px;
  border-radius: 999px;
}
.pcard-detail {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-med);
  font-weight: 500;
}
.pcard-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.pcard-cta {
  width: 100%;
  background: var(--gold-light);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  padding: 11px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.pcard-cta:hover { background: var(--navy); color: white; }

/* WhatsApp card button */
.pcard-wa-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
  z-index: 3;
}
.pcard-wa-btn:hover { transform: scale(1.12); box-shadow: 0 4px 14px rgba(37,211,102,.45); }

/* Empty state */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p  { color: var(--text-light); margin-bottom: 24px; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-empty-call {
  display: inline-block;
  padding: 10px 24px;
  background: #25d366;
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .2s;
}
.btn-empty-call:hover { background: #1da850; }

/* Similar properties in modal */
.modal-similar { padding: 24px 28px 8px; border-top: 1px solid rgba(0,0,0,.08); }
.modal-similar-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.sim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .sim-grid { grid-template-columns: 1fr; } }
.sim-card { border-radius: 10px; overflow: hidden; border: 1px solid rgba(0,0,0,.1); cursor: pointer; transition: box-shadow .2s; }
.sim-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.sim-photo-wrap { position: relative; height: 90px; overflow: hidden; }
.sim-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.sim-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.sim-badge { position: absolute; top: 6px; right: 6px; font-size: 10px; padding: 2px 6px; }
.sim-info { padding: 8px 10px; }
.sim-title { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-price { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 2px; }
.sim-area { font-size: 11px; color: var(--text-light); }

/* ── About ──────────────────────────────────────────── */
.about {
  padding: 90px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* 3D decorative background ring */
.about::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(195,156,115,.06);
  top: -200px; left: -200px;
  pointer-events: none;
  transform: perspective(800px) rotateX(15deg);
}

.about .sec-title { color: white; }
.about .sec-sub   { color: rgba(255,255,255,.65); }
.about .sec-badge {
  background: rgba(195,156,115,.15);
  color: var(--gold);
  border: 1px solid rgba(195,156,115,.25);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Glassmorphism about cards */
.acard {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(195,156,115,.15);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.acard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.acard:hover {
  background: rgba(195,156,115,.1);
  border-color: rgba(195,156,115,.4);
  transform: perspective(800px) translateY(-8px) rotateX(2deg);
  box-shadow: 0 24px 48px rgba(0,0,0,.3);
}
.acard:hover::before { opacity: 1; }
.acard:hover h3, .acard:hover p { color: white; }
.acard-icon { font-size: 42px; margin-bottom: 18px; }
.acard h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: rgba(255,255,255,.9);
  transition: color var(--transition);
}
.acard p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}

/* ── Contact ────────────────────────────────────────── */
.contact {
  padding: 90px 0;
  background: var(--bg);
}
.contact .sec-title { color: var(--text); }
.contact .sec-sub   { color: var(--text-med); }
.contact .sec-badge {
  background: var(--gold-light);
  color: var(--gold-dark);
}
.contact .sec-title.light,
.contact .sec-sub.light { color: var(--text); }
.contact .sec-badge.light {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.ccard {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  color: var(--text);
  transition: all var(--transition);
  display: block;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.ccard::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.ccard:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: perspective(700px) translateY(-8px) rotateX(4deg);
  box-shadow: 0 24px 48px rgba(10,24,59,.32), 0 4px 12px rgba(0,0,0,.18);
}
.ccard:hover::before { opacity: 1; }
.ccard:hover .ccard-ico, .ccard:hover h3, .ccard:hover p { color: white; }
.ccard-wa { border-color: #25d366; }
.ccard-wa:hover { background: #128c4a; border-color: #128c4a; }
.ccard-ico { font-size: 36px; margin-bottom: 12px; }
.ccard h3  { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.ccard p   { font-size: 14px; color: var(--text-med); transition: color var(--transition); }

.address-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.address-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.address-box p  { font-size: 14px; color: var(--text-med); line-height: 1.6; }

.hours-box {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 500px;
  margin-inline: auto;
  color: white;
}
.hours-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--gold); }
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.hours-row:last-child { border-bottom: none; }

/* ── Footer ─────────────────────────────────────────── */
.footer { background: var(--navy); padding: 64px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 10px; line-height: 1.6; }

.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

/* Keep phone/email Latin text LTR, but align consistently in Arabic footer */
html[dir="rtl"] .footer-col a[dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  color: rgba(255,255,255,.35);
  font-size: 13px;
}

/* ── Modal ──────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,24,59,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: white;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 90svh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .3s ease;
  border: 1px solid rgba(195,156,115,.2);
  box-shadow: 0 40px 80px rgba(10,24,59,.4);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-x {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10,24,59,.06);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition);
}
.modal-x:hover { background: var(--navy); color: white; }

.modal-main-media {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
}
.modal-placeholder {
  height: 260px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.modal-gallery {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
  overflow-x: auto;
}
.modal-thumb {
  width: 70px;
  height: 52px;
  object-fit: cover;
  background: #000;
  border-radius: 8px;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.modal-thumb.active { border-color: var(--gold); }

.modal-info { padding: 24px 28px 32px; }
.modal-badge {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
}
.modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--navy);
}
.modal-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.modal-detail strong { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 3px; }
.modal-detail span   { font-size: 15px; font-weight: 600; color: var(--text); }

.modal-desc { margin-bottom: 24px; }
.modal-desc h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.modal-desc p  { font-size: 14px; line-height: 1.8; color: var(--text-med); }

.modal-actions { display: flex; gap: 12px; }
.modal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  transition: all var(--transition);
  text-align: center;
}
.modal-btn-call {
  background: var(--navy);
  color: white;
}
.modal-btn-call:hover { background: var(--navy-mid); }
.modal-btn-wa {
  background: #25d366;
  color: white;
}
.modal-btn-wa:hover { background: #128c4a; }
.modal-btn-visit {
  background: var(--gold-dark);
  color: #fff;
}
.modal-btn-visit:hover { background: #8f6f4d; }
.modal-btn-share {
  background: var(--navy);
  color: #fff;
  opacity: .85;
}
.modal-btn-share:hover { opacity: 1; }

/* Copy-link toast */
.copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a2332;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 30px;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal-sticky-cta {
  display: none;
  gap: 10px;
  position: sticky;
  bottom: 0;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%);
}

/* ── Hero bubbles + valuation section ───────────────── */
.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}

.bubble {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), rgba(195,156,115,.08) 65%, rgba(195,156,115,.02));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 6px 18px rgba(10,24,59,.15), inset 0 1px 6px rgba(255,255,255,.12);
  backdrop-filter: blur(1px);
  animation: floatBubble 14s ease-in-out infinite;
}

.bubble.b1 { width: 120px; height: 120px; top: 12%; right: 10%; animation-delay: 0s; }
.bubble.b2 { width: 84px;  height: 84px;  top: 56%; right: 24%; animation-delay: 1.5s; }
.bubble.b3 { width: 164px; height: 164px; top: 18%; left: 8%;  animation-delay: 3s; }
.bubble.b4 { width: 64px;  height: 64px;  top: 70%; left: 22%; animation-delay: 2.2s; }
.bubble.b5 { width: 98px;  height: 98px;  top: 44%; left: 42%; animation-delay: 4.2s; }

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  25%      { transform: translateY(-14px) translateX(8px) scale(1.03); }
  50%      { transform: translateY(-4px) translateX(-10px) scale(.98); }
  75%      { transform: translateY(12px) translateX(6px) scale(1.02); }
}

.valuation {
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
  padding: 84px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.valuation-page .valuation.standalone {
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 40px);
}

.valuation-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.valuation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.valuation-form .fgrp {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.valuation-form .fgrp label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-med);
}

.valuation-form input,
.valuation-form select,
.valuation-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.valuation-form textarea {
  min-height: 120px;
  resize: vertical;
}

.valuation-form input:focus,
.valuation-form select:focus,
.valuation-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(195,156,115,.16);
}

.valuation-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Field validation error states ──────────────────── */
.fgrp.has-error input,
.fgrp.has-error select,
.fgrp.has-error textarea {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,.12);
}

.field-error {
  font-size: 12px;
  font-weight: 600;
  color: #e53e3e;
}

/* ── File input upload zone ──────────────────────────── */
.valuation-form input[type="file"] {
  padding: 14px 12px;
  cursor: pointer;
  background: var(--gold-fade);
  border: 2px dashed var(--border);
  color: var(--text-med);
  border-radius: 11px;
}
.valuation-form input[type="file"]:hover {
  border-color: var(--gold) !important;
  background: rgba(195,156,115,.1);
}

/* ── Status message box ──────────────────────────────── */
.valuation-message {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-med);
  border-radius: 10px;
  transition: all .25s;
  min-height: 0;
}
.valuation-message:not(:empty) {
  padding: 12px 16px;
}
.valuation-message.sending {
  background: rgba(10,24,59,.05);
  color: var(--text-med);
  border: 1px solid var(--border);
}
.valuation-message.success {
  color: #1a6e65;
  background: rgba(26,110,101,.08);
  border: 1px solid rgba(26,110,101,.25);
}
.valuation-message.error {
  color: #b83232;
  background: rgba(184,50,50,.07);
  border: 1px solid rgba(184,50,50,.25);
}

.photo-preview-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.valuation-preview-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.valuation-media-thumb {
  width: 100%;
  height: 86px;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
}

.valuation-preview-item span {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.valuation-success {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px 22px;
  text-align: center;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.valuation-success h3 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}

.valuation-success p {
  color: var(--text-med);
  margin-bottom: 18px;
}

.success-ref-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--gold);
  background: var(--gold-fade);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 18px;
}

/* ── Fixed contact pill (bottom-left) ───────────────── */
.fixed-contact-pill {
  position: fixed;
  bottom: 28px;
  left: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.fcp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10,24,59,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(195,156,115,.35);
  border-radius: 999px;
  padding: 9px 16px 9px 12px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  box-shadow:
    0 6px 24px rgba(0,0,0,.38),
    0 1px 0 rgba(255,255,255,.08) inset;
  transform: perspective(500px) translateZ(0);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease,
    border-color .25s ease;
}
.fcp-item:hover {
  background: rgba(195,156,115,.28);
  border-color: var(--gold);
  transform: perspective(500px) translateY(-3px) rotateX(4deg) translateZ(4px);
  box-shadow:
    0 14px 36px rgba(0,0,0,.42),
    0 1px 0 rgba(255,255,255,.12) inset;
  color: white;
}
.fcp-icon {
  font-size: 16px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.fcp-text { direction: ltr; unicode-bidi: isolate; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .valuation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hcat-card:nth-child(1) { top: 43%; left: 16%; }
  .hcat-card:nth-child(2) { top: 40%; right: 16%; }
  .hcat-card:nth-child(3) { top: 51%; left: 50%; }
  .hcat-card:nth-child(4) { top: 66%; left: 12%; }
  .hcat-card:nth-child(5) { top: 66%; right: 20%; }
}
@media (max-width: 700px) {
  .nav-links, .btn-admin { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pgrid { grid-template-columns: 1fr; }
  .modal-details { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .modal-actions .modal-btn-visit,
  .modal-actions .modal-btn-call:first-child { display: none; }
  .modal-sticky-cta { display: flex; }
  .pcard:hover { transform: translateY(-6px); }
  .valuation-actions { flex-direction: column; align-items: stretch; }

  /* ── Bubbles: stay absolute but pushed below the text zone ── */
  .hero-inner { padding-top: 22px; }
  .hero-cards-row {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .hcat-card { width: 92px; padding: 10px; pointer-events: auto; }

  /* all 5 scattered in the 46-70% zone — text ends ~43%, buildings start ~72% */
  .hcat-card:nth-child(1) { top: 47%; left: 6%;  right: auto; --bubble-rot: -6deg; }
  .hcat-card:nth-child(2) { top: 44%; right: 6%; left: auto;  --bubble-rot:  5deg; }
  .hcat-card:nth-child(3) { top: 57%; left: 50%; transform: perspective(900px) translateX(-50%) rotate(-3deg); --bubble-rot: -3deg; }
  .hcat-card:nth-child(4) { top: 67%; left: 9%;  right: auto; --bubble-rot:  7deg; }
  .hcat-card:nth-child(5) { top: 64%; right: 9%; left: auto;  --bubble-rot: -5deg; }

  .hcat-card:nth-child(3):hover,
  .hcat-card:nth-child(3):focus-visible {
    transform: perspective(900px) translateX(-50%) translate3d(0, -8px, 24px) rotateX(8deg) rotateY(-8deg) scale(1.07);
  }
  .hcat-card:nth-child(3):active {
    transform: perspective(900px) translateX(-50%) translate3d(0, -2px, 10px) scale(.97);
  }
  .hcat-icon { font-size: 20px; }
  .hcat-label { font-size: 11px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: 1fr; }
  .hero-inner { padding: 18px 18px 0; }
  .valuation-grid { grid-template-columns: 1fr; }
  .nav-logo .logo-img { height: 110px; }
  .hcat-card { width: 78px; padding: 8px; }
  .hcat-card:nth-child(1) { top: 47%; left: 4%;  }
  .hcat-card:nth-child(2) { top: 44%; right: 4%; }
  .hcat-card:nth-child(3) { top: 57%; left: 50%; }
  .hcat-card:nth-child(4) { top: 67%; left: 5%;  }
  .hcat-card:nth-child(5) { top: 64%; right: 5%; }
  .hcat-icon { font-size: 17px; }
  .hcat-label { font-size: 10px; }
  .fcp-item:last-child { display: none; }
}
