/* ==========================================================================
   Homes PK Marketing — global stylesheet
   Theme: dark navy navbar/footer, periwinkle accent, off-white page bg
   Headings: Playfair Display (serif) — Body: Inter (sans)
   ========================================================================== */

:root {
  --navy: #0F1E38;
  --navy-light: #16294c;
  --accent: #7B8FE0;
  --bg: #F8F8F6;
  --text: #2B2B2B;
  --muted: #8A8A8A;
  --card-border: #E8E8E4;
  --whatsapp: #25D366;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(15, 30, 56, 0.08);
  --shadow-sm: 0 4px 14px rgba(15, 30, 56, 0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Lato", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }

.accent-italic {
  font-style: italic;
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head p.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.section-head p.lead {
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #1fb955; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar .phones { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--accent); }
.topbar .tagline { font-style: italic; color: var(--accent); }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}
.logo svg { flex-shrink: 0; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); border-bottom-color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 14px; }
.icon-link {
  color: var(--white);
  position: relative;
  display: inline-flex;
}
.icon-link .badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

@media (max-width: 900px) {
  .logo { font-size: 1.1rem; white-space: nowrap; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 24px 20px;
    gap: 14px;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .topbar .container { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .logo { font-size: 0.95rem; gap: 6px; }
  .logo svg { width: 20px; height: 20px; }
  .navbar .container { gap: 6px; padding: 0 14px; }
  .nav-right { gap: 6px; }
  .nav-right .btn-sm { padding: 8px 14px; font-size: 0.8rem; }
  .icon-link svg { width: 20px; height: 20px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(15,30,56,0.72), rgba(15,30,56,0.82)),
    url("https://images.unsplash.com/photo-1449844908441-8829872d2607?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  color: var(--white);
}
.hero-content { max-width: 760px; padding: 100px 0 70px; }
.hero h1 { color: var(--white); }
.hero p.subtitle {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin: 16px 0 36px;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  max-width: 600px;
}

.hero-sentence { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-sentence-box {
  background: rgba(15, 30, 56, 0.5);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.hero-sentence-box p {
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  margin: 0 0 14px;
}
.hero-sentence-box p:last-child { margin-bottom: 0; }
.hero-sentence-box select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.55);
  color: var(--accent);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.1rem;
  padding: 0 20px 4px 2px;
  margin: 0 2px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B8FE0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 13px;
}
.hero-sentence-box select:focus { outline: none; }
.hero-sentence-box select option { color: var(--text); font-style: normal; }

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.85);
  background: transparent;
  color: var(--white);
  padding: 15px 38px;
  border-radius: var(--radius-pill);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.14); }

@media (max-width: 760px) {
  .hero-sentence-box { padding: 22px 22px; }
  .hero-sentence-box p { font-size: 1rem; }
  .btn-hero-outline { width: 100%; }
}

/* ---------- Filter pills (dropdowns) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  align-items: center;
}
.filter-pill {
  border: 1px solid var(--card-border);
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--text);
  font-family: "Inter", sans-serif;
  cursor: pointer;
}
.filter-pill:focus { outline: none; border-color: var(--accent); }
.tab-pill {
  border: 1px solid var(--card-border);
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tab-pill.active, .tab-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Service / feature cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.service-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(123, 143, 224, 0.14);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Neighbourhood cards */
.neigh-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-sm);
}
.neigh-card img { width: 100%; height: 100%; object-fit: cover; }
.neigh-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,30,56,0) 30%, rgba(15,30,56,0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  color: var(--white);
}
.neigh-card .count-badge {
  align-self: flex-start;
  background: var(--accent);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.neigh-card h3 { color: var(--white); margin-bottom: 4px; }
.neigh-card p { margin: 0; color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* Property card */
.prop-card { position: relative; }
.prop-image { position: relative; height: 220px; overflow: hidden; }
.prop-image img { width: 100%; height: 100%; object-fit: cover; }

.status-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.status-badge.sold { background: #B23A3A; }

.verified-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 10px 5px 8px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 4px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.verified-badge svg { color: var(--accent); }

.prop-image .price-overlay {
  position: absolute;
  bottom: 12px; left: 14px;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
  z-index: 2;
}
.prop-image .price-overlay small { display: block; font-family: "Inter", sans-serif; font-size: 0.62rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.prop-image .size-overlay {
  position: absolute;
  bottom: 14px; right: 14px;
  color: var(--white);
  font-variant: small-caps;
  font-size: 0.78rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
  z-index: 2;
}
.prop-image.sold-overlay img {
  opacity: 0.78;
  filter: saturate(0.85);
}
.prop-image.sold-overlay::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(15,30,56,0.28);
  z-index: 1;
}
.prop-image.sold-overlay::after {
  content: "SOLD";
  position: absolute;
  top: 50%; left: -18%;
  width: 136%;
  transform: translateY(-50%) rotate(-8deg);
  background: rgba(178, 58, 58, 0.9);
  color: var(--white);
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  padding: 7px 0;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  z-index: 1;
}

.prop-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prop-location {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.prop-title { font-size: 1.1rem; margin: 0; }
.prop-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}
.prop-meta span { display: inline-flex; align-items: center; gap: 5px; }
.prop-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
}
.prop-actions .icon-btns { display: flex; gap: 10px; }
.icon-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--card-border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-circle:hover { background: var(--navy); color: var(--white); }
.icon-circle.whatsapp:hover { background: var(--whatsapp); color: var(--white); border-color: var(--whatsapp); }
.icon-circle.fav.active { background: #E0435A; color: var(--white); border-color: #E0435A; }
.icon-circle.fav.active svg { fill: currentColor; }

/* Project cards */
.project-card .badge-status {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy); color: var(--white);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-pill); z-index: 2;
}

/* ---------- Prices ---------- */
.price {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  color: var(--navy);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.badges-row { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.affil-badge {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--card-border);
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.affil-badge svg { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; margin: 26px 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .ic { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field.checkbox-field { display: flex; align-items: center; gap: 10px; }
.form-field.checkbox-field input { width: auto; }
.form-field.checkbox-field label { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--card-border); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 0.9rem; }
.footer ul li a:hover { color: var(--accent); }
.footer .footer-logo { display: flex; align-items: center; gap: 10px; font-family: "Playfair Display", serif; font-size: 1.3rem; color: var(--white); margin-bottom: 14px; }
.footer .footer-logo svg { color: var(--accent); }
.footer-bottom { padding: 22px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.social-row { display: flex; gap: 12px; margin-top: 4px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 200;
  transition: transform 0.15s;
}
.floating-whatsapp:hover { transform: scale(1.08); }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  padding: 12px 16px;
  z-index: 199;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
}
.sticky-call-bar a { width: 100%; }
@media (max-width: 760px) {
  .sticky-call-bar.enabled { display: flex; gap: 10px; }
  body.has-sticky-call { padding-bottom: 76px; }
  body.has-sticky-call .floating-whatsapp { display: none; }
}

/* ---------- Detail page ---------- */
.gallery-main { border-radius: var(--radius); overflow: hidden; height: 440px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 92px; height: 68px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: 0.75; }
.gallery-thumbs img.active { border-color: var(--accent); opacity: 1; }

.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin: 26px 0 6px; }
.detail-price { font-family: "Playfair Display", serif; font-size: 2rem; color: var(--navy); }
.detail-badges { display: flex; gap: 10px; margin-bottom: 10px; }

.detail-table { width: 100%; border-collapse: collapse; margin: 18px 0 28px; }
.detail-table td { padding: 12px 0; border-bottom: 1px solid var(--card-border); font-size: 0.95rem; }
.detail-table td:first-child { color: var(--muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; font-weight: 600; width: 40%; }

.features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; list-style: none; padding: 0; margin: 18px 0; }
.features-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.features-list li svg { color: var(--accent); flex-shrink: 0; }

.calc-box { background: var(--white); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-result { background: rgba(123,143,224,0.1); border-radius: var(--radius-sm); padding: 20px; text-align: center; margin-top: 10px; }
.calc-result .amount { font-family: "Playfair Display", serif; font-size: 1.9rem; color: var(--navy); }
.calc-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

.contact-card { background: var(--white); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.contact-card .agent-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.contact-card .agent-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-size: 1.3rem;
}
.contact-card .btn { margin-bottom: 10px; width: 100%; }

.video-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; padding-top: 56.25%; height: 0; }
.video-wrap iframe, .video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty-state svg { color: var(--accent); margin-bottom: 18px; }
.empty-state p { font-size: 1.05rem; max-width: 420px; margin: 0 auto; }

/* ---------- Misc ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }

.bg-navy-section { background: var(--navy); color: rgba(255,255,255,0.85); }
.bg-navy-section h2 { color: var(--white); }

.form-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-top: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: rgba(37,211,102,0.12); color: #17843f; }
.form-msg.error { background: rgba(178,58,58,0.1); color: #B23A3A; }

/* ---------- Admin panel ---------- */
.admin-main { padding: 44px 0 100px; max-width: 980px; }
.admin-logout-btn { background: transparent; border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); }
.admin-logout-btn:hover { background: rgba(255,255,255,0.1); }

.login-card {
  max-width: 420px;
  margin: 60px auto;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.login-card h2 { margin-bottom: 6px; }
.login-card p.lead { margin-bottom: 26px; }
.login-card form { text-align: left; }

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.admin-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.admin-row .row-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg); }
.admin-row .row-info { flex: 1; min-width: 180px; }
.admin-row .row-info .row-title { font-weight: 600; color: var(--navy); }
.admin-row .row-info .row-meta { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.admin-row .row-price { font-family: "Playfair Display", serif; color: var(--navy); white-space: nowrap; }
.admin-row .row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.status-pill { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; padding: 4px 11px; border-radius: var(--radius-pill); letter-spacing: 0.05em; white-space: nowrap; }
.status-pill.st-sale { background: rgba(123,143,224,0.16); color: var(--navy); }
.status-pill.st-rent { background: rgba(37,211,102,0.14); color: #1a8f4c; }
.status-pill.st-sold { background: rgba(178,58,58,0.12); color: #B23A3A; }

.upload-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.upload-thumb { position: relative; width: 88px; height: 88px; border-radius: 8px; overflow: hidden; border: 1px solid var(--card-border); flex-shrink: 0; }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb .remove-thumb {
  position: absolute; top: 3px; right: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(15,30,56,0.75); color: var(--white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.upload-dropzone {
  border: 1.5px dashed var(--card-border);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color 0.15s, color 0.15s;
}
.upload-dropzone:hover, .upload-dropzone.dragover { border-color: var(--accent); color: var(--accent); }
.upload-dropzone input[type="file"] { display: none; }

.spinner {
  display: inline-block; width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: var(--white);
  border-radius: 50%; animation: admin-spin 0.7s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
.spinner.dark { border-color: rgba(15,30,56,0.25); border-top-color: var(--navy); }
@keyframes admin-spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--navy); color: var(--white);
  padding: 13px 24px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow); font-size: 0.9rem;
  z-index: 400; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #B23A3A; }

@media (max-width: 640px) {
  .admin-row { flex-direction: column; align-items: flex-start; }
  .admin-row .row-actions { width: 100%; margin-left: 0; }
  .admin-row .row-actions .btn { flex: 1; }
}
