/* ============================================================
   EDSA UNIVERSAL — DESIGN SYSTEM
   Plain CSS. All design tokens as custom properties.
   ============================================================ */

:root {
  /* Palette built from the official EDSA logo — a single navy/royal blue. No red. */
  --color-primary: #01136C;        /* EXACT logo blue (sampled from images/logo.png) */
  --color-primary-dark: #000C49;   /* hover/pressed */
  --color-primary-light: #3B5BDE;  /* brighter blue, same hue — accents on dark */
  --color-secondary: #071457;      /* deep brand blue — nav, footer, hero, dark sections */
  --color-secondary-light: #122070;/* cards on dark */
  --color-white: #FFFFFF;
  --color-off-white: #F8F9FB;      /* page background */
  --color-light-bg: #EEF1F8;       /* subtle cool section bg */
  --color-text: #14181F;
  --color-text-muted: #64707F;
  --color-border: #E1E6EF;

  --section-pad-desktop: 80px;
  --section-pad-mobile: 40px;

  --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 8px 28px rgba(0, 0, 0, 0.12);
  --container: 1200px;
  --nav-height: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Guards every element against a single very long unbroken run of characters
   (e.g. someone pastes a URL, or a long string with no spaces) pushing its
   container — and the whole page — wider than the screen. overflow-wrap only
   breaks a word when it would otherwise overflow; we deliberately do NOT use
   word-break: break-word, which chops normal words mid-character. */
* { overflow-wrap: break-word; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-off-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-text); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad-desktop) 0; }
.section--light { background: var(--color-light-bg); }
.section--white { background: var(--color-white); }
.section--dark { background: var(--color-secondary); color: var(--color-white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }

/* ---------- Section label + heading ---------- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.section--dark .section-label { color: var(--color-primary-light); }

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}
.section-intro {
  max-width: 680px;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.section--dark .section-intro { color: rgba(255,255,255,0.75); }
.section-head { margin-bottom: 48px; }
.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-align: center;
}
.btn--primary { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn--secondary { background: transparent; color: var(--color-secondary); border-color: var(--color-secondary); }
.btn--secondary:hover { background: var(--color-secondary); color: var(--color-white); }
.btn--light { background: var(--color-white); color: var(--color-secondary); border-color: var(--color-white); }
.btn--light:hover { background: transparent; color: var(--color-white); }
.btn--outline-light { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn--outline-light:hover { background: var(--color-white); color: var(--color-secondary); }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { background: var(--color-light-bg); }
.btn--block { display: block; width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}
.nav.nav--solid {
  background: var(--color-secondary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}
.nav__logo span { color: var(--color-primary-light); }
.nav__logo img { height: 28px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  color: var(--color-white);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--color-primary-light);
  transition: width 0.25s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--color-primary-light); }
.nav__cta { margin-left: 8px; }
.nav__cta a { padding: 10px 22px; background: var(--color-primary-light); color: #fff !important; }
.nav__cta a::after { display: none; }
.nav__cta a:hover { background: var(--color-primary); }

/* ---------- Signed-in tenant badge (injected by main.js) ----------
   When present, the nav links stop being the last flex item, so push them
   right and leave a gap before the avatar. */
.nav--has-tenant .nav__links { margin-left: auto; margin-right: 18px; }
.tenant-badge { position: relative; display: flex; align-items: center; }

/* Signed-OUT tenant login control (injected by main.js into the same nav slot
   as the signed-in badge). Sits outside .nav__links so it stays visible on
   mobile, where the links collapse into the closed dropdown. */
.tenant-login {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600;
  white-space: nowrap; transition: background .2s, border-color .2s;
}
.tenant-login:hover, .tenant-login:focus-visible { background: rgba(255,255,255,0.14); border-color: #fff; color: #fff; }
.tenant-login__ic { display: inline-flex; align-items: center; }
/* No colour flip for .nav--solid: that class swaps the nav to the brand NAVY
   (not white, as first assumed), so flipping the text to navy rendered the
   button invisible on every interior page — none of which has a hero, so all
   of them get .nav--solid immediately. White works on both states, which is
   exactly why every other nav link stays white too. */
/* Tight phones: keep the icon, drop the words. */
@media (max-width: 420px) {
  .tenant-login { padding: 8px 10px; }
  .tenant-login__label { display: none; }
}
.tenant-badge__btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); background: var(--color-primary-light);
  color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: .85rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, transform .2s; overflow: hidden; padding: 0;
}
.tenant-badge__btn:hover { border-color: #fff; transform: translateY(-1px); }
.tenant-badge__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.tenant-badge__dot {
  position: absolute; right: -1px; bottom: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #2E7D5B; border: 2px solid var(--color-secondary);
}
.tenant-badge__menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  min-width: 230px; background: #fff;
  box-shadow: 0 16px 38px rgba(5,13,64,0.28);
  border-top: 3px solid var(--color-primary-light);
  display: none; flex-direction: column; z-index: 1200;
}
.tenant-badge__menu.open { display: flex; }
.tenant-badge__who { padding: 14px 18px; border-bottom: 1px solid #e6e9f2; display: flex; flex-direction: column; gap: 2px; }
.tenant-badge__who strong { color: var(--color-secondary); font-size: .95rem; }
.tenant-badge__who span { color: #6b7280; font-size: .78rem; word-break: break-all; }
.tenant-badge__status { color: #2E7D5B !important; font-weight: 600; margin-top: 4px; }
.tenant-badge__menu a,
.tenant-badge__menu button {
  padding: 12px 18px; text-align: left; background: none; border: none;
  font-family: inherit; font-size: .88rem; font-weight: 500;
  color: var(--color-secondary); cursor: pointer; border-bottom: 1px solid #f1f3f9;
  transition: background .15s;
}
.tenant-badge__menu a:hover,
.tenant-badge__menu button:hover { background: #f4f6fc; color: var(--color-primary); }
.tenant-badge__menu button { color: #b3261e; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
}
.nav__toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--color-white); transition: all 0.3s ease;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  /* Self-contained brand gradient — no internet needed.
     [REPLACE: when a real site/property photo is available, use:
     background: linear-gradient(rgba(5,13,64,0.78), rgba(5,13,64,0.84)), url('images/hero.jpg') center/cover no-repeat; ] */
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(59,91,222,0.28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(1,19,108,0.55), transparent 65%),
    linear-gradient(150deg, #071457 0%, #01136C 55%, #050D3F 100%);
}
.hero__content { max-width: 760px; }
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 600px;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero banner (interior pages) ---------- */
.page-hero {
  margin-top: 0;
  padding: calc(var(--nav-height) + 70px) 0 70px;
  color: var(--color-white);
  text-align: center;
  /* Self-contained brand gradient — no internet needed.
     [REPLACE: swap in a real banner photo the same way as .hero when available] */
  background:
    radial-gradient(ellipse 70% 80% at 80% 10%, rgba(59,91,222,0.25), transparent 60%),
    linear-gradient(150deg, #071457 0%, #01136C 60%, #050D3F 100%);
}
.page-hero h1 { color: var(--color-white); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto; }
.page-hero__credit { font-size: 0.82rem; color: rgba(255,255,255,0.6) !important; margin-top: 8px !important; letter-spacing: .02em; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 12px; }
.breadcrumb a:hover { color: var(--color-primary-light); }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 3px solid transparent;
}
.card::before {
  content: ""; position: absolute; top: -3px; left: 0;
  width: 0; height: 3px; background: var(--color-primary);
  transition: width 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card:hover::before { width: 100%; }
.card__body { padding: 28px; }
.card__title { font-size: 1.25rem; margin-bottom: 10px; }
.card__text { color: var(--color-text-muted); font-size: 0.95rem; }
.card__link {
  display: inline-block; margin-top: 16px;
  color: var(--color-primary); font-weight: 600; font-size: 0.9rem;
}
.card__link:hover { color: var(--color-primary-dark); }
.card__link::after { content: " →"; }

/* Pillar / icon card */
.pillar-card { text-align: left; }
.pillar-card .icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-light-bg);
  color: var(--color-primary);
  margin-bottom: 18px;
}
.pillar-card .icon svg { width: 28px; height: 28px; }

/* Card image */
.card__img { aspect-ratio: 16/10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__img img { transform: scale(1.05); }

/* ---------- Stats bar ---------- */
.stats { background: var(--color-secondary); color: #fff; }
.stats .grid--4 { gap: 20px; }
.stat { text-align: center; padding: 16px; }
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--color-primary-light);
  line-height: 1;
}
.stat__value .plus { color: var(--color-primary-light); }
.stat__label {
  margin-top: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* ---------- About snapshot ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow-card); }
.split p { color: var(--color-text-muted); margin-bottom: 18px; }
.split--dark p { color: rgba(255,255,255,0.78); }

/* ---------- Mission / Vision cards ---------- */
.mv-card {
  background: var(--color-white);
  padding: 36px;
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-card);
}
.mv-card h3 { color: var(--color-primary); margin-bottom: 14px; font-size: 1.4rem; }
.mv-card p { color: var(--color-text-muted); }

/* ---------- Core values ---------- */
.value-card { text-align: center; padding: 32px 22px; background: var(--color-white); box-shadow: var(--shadow-card); }
.value-card .num {
  font-family: var(--font-heading);
  font-size: 2rem; color: var(--color-primary); font-weight: 700;
  display: block; margin-bottom: 10px;
}
.value-card h4 { margin-bottom: 8px; font-size: 1.05rem; }
.value-card p { color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Testimonials (carousel/slideshow) ---------- */
.testimonial-carousel { position: relative; max-width: 760px; margin: 0 auto; }
.testimonial-viewport { overflow: hidden; }
.testimonial-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.testimonial-track .testimonial { flex: 0 0 100%; box-sizing: border-box; }

.testimonial {
  background: var(--color-white); padding: 48px 40px; box-shadow: var(--shadow-card);
  border-top: 3px solid var(--color-primary); text-align: center;
}
.testimonial .quote-mark { font-family: var(--font-heading); font-size: 3.2rem; color: var(--color-primary); line-height: 0.6; }
.testimonial p { font-style: italic; color: var(--color-text); margin: 16px auto 22px; max-width: 560px; font-size: 1.08rem; line-height: 1.6; }
.testimonial .author { font-weight: 600; }
.testimonial .company { font-size: 0.85rem; color: var(--color-text-muted); }

.testimonial-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--color-border);
  background: var(--color-white); color: var(--color-primary); font-size: 1.4rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card); transition: background .2s, color .2s;
}
.testimonial-nav:hover { background: var(--color-primary); color: var(--color-white); }
.testimonial-nav--prev { left: -21px; }
.testimonial-nav--next { right: -21px; }

.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.testimonial-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--color-border);
  cursor: pointer; padding: 0; transition: background .2s, transform .2s;
}
.testimonial-dot.active { background: var(--color-primary); transform: scale(1.25); }

@media (max-width: 640px) {
  .testimonial { padding: 36px 24px; }
  .testimonial-nav { display: none; }
}

/* ---------- Services (grouped by pillar) ---------- */
.pillar-group { margin-bottom: 64px; }
.pillar-group:last-child { margin-bottom: 0; }
.pillar-group__head { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--color-border); }
.pillar-group__head h2 { font-size: 1.8rem; }
.pillar-group__head .section-label { margin-bottom: 6px; }

/* ---------- Category badge / filter tabs ---------- */
.badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; color: #fff; background: var(--color-primary);
}
.badge--navy { background: var(--color-secondary); }
.badge--unavailable { background: #b91c1c; margin-left: 8px; }

.property-detail__credit { font-size: .82rem; color: var(--color-text-muted); margin-top: 2px; }

/* Property no-longer-available notice (property-detail.html) */
.unavailable-notice {
  background: #fdecec; border: 1px solid #b91c1c; border-left-width: 4px;
  color: #7a1414; padding: 12px 16px; margin: 16px 0; font-size: .92rem;
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-tab {
  padding: 10px 22px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  color: var(--color-text); transition: all 0.2s;
}
.filter-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- Secondary filters (properties) ---------- */
.secondary-filters { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; align-items: center; }
.secondary-filters select {
  padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 2px;
  font-family: var(--font-body); font-size: 0.9rem; background: #fff; color: var(--color-text);
}

/* ---------- Property card ---------- */
.property-card { background: #fff; box-shadow: var(--shadow-card); position: relative; transition: transform .25s, box-shadow .25s; }
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.property-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ribbon {
  position: absolute; top: 14px; left: 0;
  background: var(--color-primary); color: #fff;
  padding: 6px 16px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ribbon--rent { background: var(--color-primary-light); }
.ribbon--land { background: #2E7D5B; }
.property-card__body { padding: 22px; }
.property-card__title { font-size: 1.15rem; margin-bottom: 6px; }
.property-card__loc { color: var(--color-text-muted); font-size: 0.88rem; margin-bottom: 12px; }
.property-card__loc::before { content: "📍 "; }
.property-card__price { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--color-primary); margin-bottom: 14px; }
.property-card__price small { font-size: 0.8rem; color: var(--color-text-muted); font-weight: 400; font-family: var(--font-body); }
.specs { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: 0.82rem; color: var(--color-text-muted); }
.specs span { display: inline-flex; align-items: center; gap: 5px; }
.property-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.property-card__actions .card__link { margin-top: 0; }
.btn--sm-pad { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Property detail ---------- */
.gallery__main { aspect-ratio: 16/9; overflow: hidden; box-shadow: var(--shadow-card); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs img { width: 100px; height: 70px; object-fit: cover; cursor: pointer; opacity: 0.65; transition: opacity .2s; border: 2px solid transparent; }
.gallery__thumbs img:hover, .gallery__thumbs img.active { opacity: 1; border-color: var(--color-primary); }

.detail-price { font-family: var(--font-heading); font-size: 2rem; color: var(--color-primary); font-weight: 700; margin: 8px 0 4px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.spec-table td:first-child { color: var(--color-text-muted); width: 45%; }
.spec-table td:last-child { font-weight: 600; }
.enquire-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.btn--whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1da851; border-color: #1da851; }

/* ---------- Blog ---------- */
.blog-card__date { font-size: 0.8rem; color: var(--color-primary); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.blog-card .card__body h3 { font-size: 1.2rem; margin: 8px 0 10px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination button {
  min-width: 40px; padding: 8px 12px; border: 1px solid var(--color-border);
  background: #fff; cursor: pointer; font-weight: 600; color: var(--color-text);
}
.pagination button:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary); }
.pagination button.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Blog post body */
.post-body { max-width: 760px; margin: 0 auto; }
.post-body img { margin: 24px 0; box-shadow: var(--shadow-card); }
.post-body p { margin-bottom: 18px; color: var(--color-text); }
.post-meta { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 24px; }
/* Blog post header meta row: category badge + date/author on one tidy line,
   below the "Back to Blog" link (which now sits on its own line). */
.post-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.post-head__meta { color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 56px; }
.quick-card {
  display: block; background: var(--color-white); padding: 28px 24px; box-shadow: var(--shadow-card);
  border-top: 3px solid var(--color-primary); transition: transform .2s, box-shadow .2s;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(1,19,108,.12); }
.quick-card__ic {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  background: var(--color-light-bg); color: var(--color-primary); border-radius: 50%; margin-bottom: 14px;
}
.quick-card__ic svg { width: 22px; height: 22px; }
.quick-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.quick-card p { color: var(--color-text-muted); font-size: .9rem; }
.quick-card--whatsapp .quick-card__ic { background: #e6f7ee; color: #1eae5e; }
.quick-card--whatsapp { border-top-color: #1eae5e; }

.contact-form-card { background: var(--color-white); padding: 40px; box-shadow: var(--shadow-card); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--color-border); border-radius: 2px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--color-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--color-primary); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none; padding: 14px 18px; background: #e8f5e9; color: #2e7d32;
  border: 1px solid #a5d6a7; margin-bottom: 18px; font-size: 0.92rem;
}
.form-success.show { display: block; }

.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item .ic {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  background: var(--color-light-bg); color: var(--color-primary); border-radius: 50%; flex-shrink: 0;
}
.contact-info-item .ic svg { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--color-text-muted); font-size: 0.92rem; }
.contact-info-item a:hover { color: var(--color-primary); }
.map-embed { margin-top: 8px; box-shadow: var(--shadow-card); overflow: hidden; }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--color-secondary); color: #fff; transition: background .2s, transform .2s;
}
.social-row a svg { width: 18px; height: 18px; }
.social-row a:hover { background: var(--color-primary); transform: translateY(-2px); }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--color-secondary); color: #fff; text-align: center; }
.cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--color-secondary); color: rgba(255,255,255,0.75); padding: 64px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer__logo { font-family: var(--font-heading); font-size: 1.5rem; color: #fff; margin-bottom: 12px; }
.footer__logo span { color: var(--color-primary-light); }
.footer__logo img { height: 34px; width: auto; display: block; }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: var(--color-primary-light); }
.footer .tagline { font-size: 0.95rem; margin-bottom: 16px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background .2s, border-color .2s, transform .2s;
}
.footer__social a svg { width: 18px; height: 18px; }
.footer__social a:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); color: #fff; transform: translateY(-2px); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap;
  text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.footer__legal-links a { margin: 0 2px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center-btn { text-align: center; margin-top: 40px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--color-text-muted); }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--color-primary); font-weight: 600; font-size: 0.9rem; }
.back-link::before { content: "← "; }

/* Share row (WhatsApp / Facebook / Copy link) on detail pages */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.share-row__label { font-weight: 600; font-size: .9rem; color: var(--color-text-muted); margin-right: 2px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; font-size: .85rem; font-weight: 600; line-height: 1;
  border: 1px solid var(--color-border); background: #fff; color: var(--color-text);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.share-btn svg { flex: 0 0 auto; }
.share-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.share-btn--wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share-btn--fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-btn--copy.is-copied { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
@media (max-width: 480px) {
  .share-row { gap: 8px; }
  .share-btn { padding: 8px 12px; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: var(--section-pad-mobile) 0; }
  .nav__toggle { display: flex; z-index: 1100; }
  /* Mobile menu: full-width dropdown that slides DOWN from under the nav bar */
  .nav__links {
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: var(--color-secondary);
    flex-direction: column; align-items: stretch;
    padding: 0; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 14px 28px rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links.open { max-height: 520px; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block; width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav__links a::after { display: none; } /* underline effect is for desktop */
  .nav__links a.active { background: rgba(59,91,222,0.18); border-left: 3px solid var(--color-primary-light); }
  /* .nav__links is absolutely positioned here (the dropdown), so the in-flow
     children are just logo | badge | hamburger — push the badge right so it
     sits beside the hamburger instead of floating in the middle. */
  .nav--has-tenant .nav__links { margin-left: 0; margin-right: 0; }
  .tenant-badge { margin-left: auto; margin-right: 14px; }
  .tenant-badge__btn { width: 36px; height: 36px; }
  .nav__cta { width: auto !important; margin: 10px 24px 16px; }
  .nav__cta a { text-align: center; border-bottom: none; }
  .nav { background: var(--color-secondary); }
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-card { padding: 28px 22px; }
  .hero { min-height: 90vh; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
}

@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .footer__bottom { display: flex; flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card__body, .property-card__body { padding: 20px; }
  .footer { padding: 48px 0 24px; }
}

/* ============================================================
   FLOATING ACTION BUTTONS (WhatsApp + back to top)
   ============================================================ */
#edsa-fabs { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fab {
  width: 54px; height: 54px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s, background .2s;
}
.fab:hover { transform: translateY(-3px); }
.fab--wa { background: #25D366; color: #fff; }
.fab--wa svg { width: 30px; height: 30px; }
.fab--top { background: var(--color-secondary); color: #fff; font-size: 1.4rem; line-height: 1; opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab--top.show { opacity: 1; pointer-events: auto; transform: none; }
.fab--top:hover { background: var(--color-primary); }
@media (max-width: 480px) { .fab { width: 48px; height: 48px; } #edsa-fabs { right: 14px; bottom: 14px; } }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 2000;
  background: var(--color-primary); color: #fff; padding: 10px 18px;
  font-weight: 600; font-size: .9rem; transition: top .2s;
}
.skip-link:focus { top: 12px; outline: 3px solid #fff; }
:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 2px; }
.nav__links a:focus-visible, .btn:focus-visible { outline-offset: 3px; }

/* ============================================================
   LEGAL / LONG-FORM CONTENT PAGES
   ============================================================ */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--color-text-muted); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose a { color: var(--color-primary); }
.prose a:hover { text-decoration: underline; }

/* ============================================================
   404
   ============================================================ */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 20px 60px; }
.error-page .code { font-family: var(--font-heading); font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; color: var(--color-primary); line-height: 1; }
.error-page h1 { font-size: 1.8rem; margin: 8px 0 14px; }
.error-page p { color: var(--color-text-muted); margin-bottom: 26px; }
