/* ===================================================================
   DESIGN TOKENS
   Palette: deep teal (trust, established) + warm gold (verified/premium)
   Display: Fraunces (warm, architectural serif — property/craft feel)
   Body: Inter (clean, bilingual-friendly, highly legible)
   Signature element: the "verified" wax-seal badge on trusted listings
=================================================================== */
:root {
  --ink: #1A2634;
  --ink-soft: #334155;
  --bg: #faf8f4;
  --bg-alt: #f1ede4;
  --line: #dde3e8;
  --primary: #1A2634;
  --primary-light: #334155;
  --accent: #6E0D25;
  --accent-soft: #f1dde1;
  --white: #ffffff;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --radius: 4px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary-light);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #1A2634;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 98px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--white);
}
.logo svg { width: 30px; height: 30px; }
.site-header .logo img { height: 64px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.68);
  transition: color .15s;
}
.main-nav a:hover { color: var(--white); }
.main-nav a.active { color: var(--white); font-weight: 600; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header .btn-primary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.site-header .btn-primary:hover { background: var(--accent); border-color: var(--accent); }

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,0.08);
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  color: rgba(255,255,255,0.65);
}
.lang-toggle button.active {
  background: var(--white);
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #0d1826; }
.btn-accent { background: var(--primary-light); color: var(--white); }
.btn-accent:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--primary); background: var(--white); }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn svg { width: 16px; height: 16px; }
.btn-google {
  background: var(--white);
  color: #3c4043;
  border: 1px solid var(--line);
}
.btn-google:hover { background: #f7f7f7; }
.btn-google svg { width: 18px; height: 18px; }

.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Sección de suscripción (home) ---------- */
.subs-chat-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 24px;
  align-items: stretch;
}

.subscribe-section {
  background: linear-gradient(135deg, #0d1420 0%, var(--primary) 100%);
  color: var(--white);
  border-radius: 14px;
  padding: 34px 36px;
}
.subscribe-section .eyebrow { color: var(--white); }
.subscribe-section h2 { color: var(--white); margin: 6px 0 8px; font-size: 23px; }
.subscribe-section p.lead { color: rgba(255,255,255,0.7); font-size: 13.5px; margin: 0 0 22px 0; }
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subscribe-form input[type="text"],
.subscribe-form input[type="email"],
.subscribe-form input[type="tel"] {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #eef0f2;
  color: #1A2634;
  font-size: 13.5px;
}
.subscribe-form input::placeholder { color: #6b7480; }
.subscribe-form-row { display: flex; gap: 8px; }
.subscribe-form-row input { flex: 1; min-width: 0; }
.subscribe-form .btn-accent { border-radius: 10px; padding: 13px 20px; justify-content: center; white-space: nowrap; }
.subscribe-divider { flex: 1; text-align: center; color: rgba(255,255,255,0.4); font-size: 12px; position: relative; }
.subscribe-divider::before, .subscribe-divider::after {
  content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: rgba(255,255,255,0.15);
}
.subscribe-divider::before { left: 0; }
.subscribe-divider::after { right: 0; }
.btn-google {
  border-radius: 10px;
  background: #eef0f2;
  color: #1A2634;
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
}
.subscribe-note { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 14px; }

/* ---------- Bloque: preview del Asistente Virtual ---------- */
.chat-preview {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
}
.chat-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.chat-preview-header svg { width: 16px; height: 16px; stroke: var(--ink-soft); }
.chat-preview h3 { font-size: 19px; margin: 16px 0 18px; color: var(--ink); }
.chat-bubbles { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble {
  max-width: 78%;
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.chat-bubble-user {
  align-self: flex-end;
  background: var(--bg-alt);
  color: var(--ink);
  border-bottom-right-radius: 3px;
}
.chat-bubble-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-avatar svg { width: 13px; height: 13px; stroke: #fff; }
.chat-bubble-bot {
  background: var(--bg-alt);
  color: var(--ink);
  border-bottom-left-radius: 3px;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.chat-input-row input {
  flex: 1;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
  color: var(--ink-soft);
}
.chat-input-row button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  opacity: 0.55;
  cursor: not-allowed;
}
.chat-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-soft);
  margin: 12px 0 0 0;
}
.chat-note svg { width: 13px; height: 13px; stroke: var(--accent); }

@media (max-width: 860px) {
  .subs-chat-grid { grid-template-columns: minmax(0,1fr); }
}

/* ---------- Fotos existentes con checkbox de eliminar ---------- */
.existing-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.existing-photo {
  position: relative;
  width: 110px;
  text-align: center;
}
.existing-photo img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.existing-photo label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: #b23b3b;
  margin-top: 5px;
  text-transform: none;
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #0a0f16 0%, #14202c 100%);
  color: var(--white);
  padding: 88px 0 60px 0;
  overflow: hidden;
}
.hero-inner { max-width: 640px; position: relative; z-index: 2; }
.hero .eyebrow { color: rgba(255,255,255,0.55); margin-bottom: 18px; display: block; }
.hero h1 {
  font-size: 46px;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 17px;
  color: #c3ccd6;
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; }

/* ---------- Hero map layout ---------- */
.hero-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.hero-flex .hero-inner { flex: 1 1 46%; max-width: none; }
.hero-map {
  flex: 1 1 54%;
  max-width: 380px;
  margin-left: auto;
  position: relative;
  z-index: 2;
}
.hero-tagline {
  flex: 1 0 100%;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  margin-top: 36px;
  letter-spacing: .01em;
}

.verify-banner {
  background: #000000;
}
.verify-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 28px;
  text-align: center;
}
.verify-banner-inner svg { width: 20px; height: 20px; stroke: rgba(255,255,255,0.7); flex-shrink: 0; }
.verify-banner-inner p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.75); }

.scroll-cue {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 16px 0;
  background: #FFFFFF;
}
.scroll-cue svg {
  width: 22px; height: 22px;
  stroke: var(--ink);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(8px); opacity: 1; }
}

.home-search {
  max-width: 520px;
  margin: 26px auto 0 auto;
  display: flex;
  gap: 10px;
}
.home-search input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
}
.home-search button {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
}

html, body { overflow-x: hidden; max-width: 100%; }
.map-tip {
  position: absolute;
  display: none;
  pointer-events: none;
  background: #6E0D25;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transform: translate(-50%, -130%);
  z-index: 10;
}
#map-svg .canton-static path {
  fill: rgba(255,255,255,0.06);
  stroke: rgba(255,255,255,0.22);
  stroke-width: 1.5;
}
#map-svg .canton-static text {
  fill: rgba(255,255,255,0.42);
  font-size: 12.5px;
  pointer-events: none;
}
#map-svg .canton-active path {
  fill: rgba(255,255,255,0.14);
  stroke: rgba(255,255,255,0.5);
  stroke-width: 1.5;
  cursor: pointer;
  transition: transform .2s ease, fill .2s ease;
  transform-box: fill-box;
  transform-origin: center;
}
#map-svg .canton-active text {
  fill: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
}
#map-svg .canton-active:hover path {
  transform: translateY(-10px);
  fill: var(--accent);
}
#map-svg .canton-active:hover text {
  fill: #FFFFFF;
}

@media (max-width: 980px) {
  .hero-flex { flex-direction: column; }
  .hero-map { max-width: 300px; margin: 30px auto 0 auto; }
}

/* Search bar overlapping hero */
.search-bar {
  position: relative;
  z-index: 10;
  max-width: var(--container);
  margin: -64px auto 0 auto;
  padding: 0 28px;
}
.search-bar-inner {
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 20px 50px -12px rgba(15,61,62,0.25);
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) auto;
  gap: 14px;
  align-items: end;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field select, .field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
}
.search-bar .btn-primary { height: 44px; padding: 0 26px; justify-content: center; }

/* ---------- Home services teaser (dark theme) ---------- */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  max-width: 940px;
  margin: 0 auto;
}
.home-service-card {
  background: linear-gradient(160deg, #0a1c30 0%, #123a5c 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.25);
}
.home-service-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #cfe8f9;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px auto;
}
.home-service-icon svg { width: 21px; height: 21px; }
.home-service-card h3 { font-size: 15px; margin-bottom: 6px; color: #fff; }
.home-service-card p { font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,0.72); margin: 0; }
.home-services-cta {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
}
.home-services-cta:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

@media (max-width: 860px) {
  .home-services-grid { grid-template-columns: minmax(0,1fr); max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ---------- Home interactive map ---------- */
.map-section .section-head p { margin-top: 6px; }

.map-shell {
  display: grid;
  grid-template-columns: 320px minmax(0,1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 30px auto 0 auto;
  align-items: stretch;
}

.map-sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 520px;
}
.map-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  margin-bottom: 14px;
}
.map-search svg { width: 16px; height: 16px; color: var(--ink-soft); flex-shrink: 0; }
.map-search input {
  border: none; outline: none; font-size: 13.5px; width: 100%; font-family: var(--font-body);
  color: var(--ink);
}
.map-list-count {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px;
}
.map-list {
  overflow-y: auto;
  flex: 1;
  margin: 0 -6px;
  padding: 0 6px;
}
.map-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 4px;
}
.map-list-item:hover { background: var(--bg-alt); }
.map-list-item.active { background: var(--bg-alt); border-color: var(--line); }
.map-list-dot {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.map-list-thumb {
  width: 48px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #1A2634, #334155 60%, #46596e);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.map-list-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1; }
.map-list-thumb svg, .map-thumb-fallback { width: 18px; height: 18px; stroke: rgba(255,255,255,0.55); }
.map-list-info { min-width: 0; }
.map-list-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-list-location { font-size: 11.5px; color: var(--ink-soft); }
.map-list-price { font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: 2px; }

.map-canvas-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 520px;
}
#property-map { width: 100%; height: 100%; }

.map-legend {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(255,255,255,0.95);
  border-radius: 999px;
  padding: 8px 16px;
  display: flex; gap: 16px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  z-index: 500;
}
.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-dot, .dot-red, .dot-blue { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #6E0D25; }
.dot-blue { background: var(--primary); }

.map-pin-icon span {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  color: #fff; font-size: 12px; font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.map-pin-icon span::before { content: ''; display: block; }

.map-popup-wrap .leaflet-popup-content-wrapper {
  padding: 0; border-radius: 10px; overflow: hidden;
}
.map-popup-wrap .leaflet-popup-content { margin: 0; width: 240px !important; }
.map-popup-card { font-family: var(--font-body); }
.map-popup-photo {
  position: relative;
  width: 100%; height: 130px;
  background: linear-gradient(135deg, #1A2634, #334155 60%, #46596e);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.map-popup-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.map-popup-fallback { width: 32px; height: 32px; stroke: rgba(255,255,255,0.55); }
.map-popup-body { padding: 12px 14px 14px 14px; }
.map-popup-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.map-popup-location { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 6px; }
.map-popup-price { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--accent); }
.map-popup-stats { display: flex; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--ink-soft); }
.map-popup-stats strong { color: var(--ink); }

@media (max-width: 900px) {
  .map-shell { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .map-sidebar { height: 320px; }
  .map-canvas-wrap { height: 360px; }
}
@media (max-width: 480px) {
  .map-shell { margin-top: 22px; }
  .map-sidebar { padding: 12px; height: 280px; }
  .map-canvas-wrap { height: 300px; }
  .map-list-thumb { width: 42px; height: 42px; }
  .map-list-item { gap: 8px; }
  .map-search { padding: 7px 12px; }
  .map-legend { padding: 6px 12px; gap: 10px; font-size: 11px; left: 10px; bottom: 10px; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0 70px 0; background: linear-gradient(180deg, #ffffff 0%, #f2f4f6 100%); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--ink-soft); margin-top: 8px; max-width: 460px; font-size: 15px;}

/* ---------- Property cards ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 22px 40px -18px rgba(15,61,62,0.28); transform: translateY(-3px); }

.card-photo {
  position: relative;
  height: 190px;
  background: linear-gradient(135deg, #1A2634, #334155 60%, #46596e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-photo svg { width: 46px; height: 46px; stroke: rgba(255,255,255,0.55); }
.card-photo .status-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-photo .media-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.media-pill {
  background: rgba(15,61,62,0.55);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.media-pill svg { width: 11px; height: 11px; stroke: var(--white); }

/* Verified seal — signature element */
.verified-seal {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: rotate(8deg);
}
.verified-seal svg { width: 20px; height: 20px; stroke: var(--primary); stroke-width: 2.4; }

.card-body { padding: 18px 18px 20px 18px; }
.card-price {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--primary);
  font-weight: 600;
}
.card-title { font-size: 14.5px; font-weight: 600; margin-top: 4px; color: var(--ink); }
.card-location {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-location svg { width: 12px; height: 12px; stroke: var(--ink-soft); }
.card-specs {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.card-specs span { display: flex; align-items: center; gap: 5px; }
.card-specs svg { width: 14px; height: 14px; stroke: var(--ink-soft); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.agent-mini { display: flex; align-items: center; gap: 8px; }
.agent-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--primary);
}
.agent-mini span { font-size: 12px; color: var(--ink-soft); }
.card-whatsapp {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
}
.card-whatsapp svg { width: 16px; height: 16px; stroke: var(--white); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 60px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 36px;
}
.trust-item { display: flex; gap: 16px; }
.trust-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg { width: 21px; height: 21px; stroke: var(--accent); }
.trust-item h4 { font-size: 15.5px; color: var(--primary); margin-bottom: 4px; }
.trust-item p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: #cbd4dc;
  padding: 60px 0 30px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid .logo { color: var(--white); }
.footer-grid p { font-size: 13.5px; color: #9aa8b5; margin-top: 12px; max-width: 300px;}
.footer-col h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5); margin-bottom: 14px;
}
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: #cbd4dc; margin-bottom: 9px; }
.footer-bottom {
  padding-top: 24px;
  font-size: 12px;
  color: #7d8ea0;
  display: flex;
  justify-content: space-between;
}

/* ---------- Filters (listings page) ---------- */
.filters-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 34px;
}
.filters-bar-dark {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: 1px solid var(--primary-light);
}
.filters-bar-dark .field label {
  color: rgba(255,255,255,0.6);
}
.filters-bar-dark .field select,
.filters-bar-dark .field input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #FFFFFF;
}
.filters-bar-dark .field select:focus,
.filters-bar-dark .field input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
}
.filters-bar-dark .field input::placeholder {
  color: rgba(255,255,255,0.45);
}
.filters-bar-dark .field select option {
  background: var(--primary);
  color: #FFFFFF;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.results-meta select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-size: 13px;
  background: var(--white);
}
.page-title { padding: 46px 0 0 0; }
.page-title .eyebrow { display:block; margin-bottom: 10px; }
.page-title h1 { font-size: 34px; }
.type-chips { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.type-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
}
.type-chip.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination button {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.pagination button.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 34px; }
  .search-bar-inner { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .listing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust-grid { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
  .filters-bar { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width: 620px) {
  .listing-grid { grid-template-columns: minmax(0,1fr); }
  .search-bar-inner { grid-template-columns: minmax(0,1fr); }
  .filters-bar { grid-template-columns: minmax(0,1fr); }
  .hero { padding-bottom: 200px; }
  .site-header .container { gap: 8px; }
  .site-header .logo img { height: 36px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 8px 12px; font-size: 12.5px; }
  .lang-toggle button { padding: 4px 9px; font-size: 11.5px; }
}

/* ---------- Admin panel additions ---------- */
.admin-shell { display: flex; min-height: calc(100vh - 76px); }
.admin-sidebar {
  width: 220px;
  background: var(--primary);
  color: #cbd4dc;
  padding: 30px 18px;
  flex-shrink: 0;
}
.admin-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: #cbd4dc;
  margin-bottom: 4px;
}
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { flex: 1; padding: 34px 40px; }
.admin-main h1 { font-size: 26px; margin-bottom: 22px; }

.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; max-width: 760px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group label { display:block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; font-size: 14px; font-family: inherit; background: #fff;
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-actions { margin-top: 22px; display:flex; gap: 12px; }

.admin-table { width:100%; border-collapse: collapse; margin-top: 18px; background:#fff; border:1px solid var(--line); border-radius:6px; overflow:hidden;}
.admin-table th { background: var(--primary); color:#fff; text-align:left; padding:10px 14px; font-size:13px; }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle;}
.admin-table tr:last-child td { border-bottom:none; }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight:700; text-transform: uppercase;}
.status-pill.available { background:#e7ebee; color:#1A2634; }
.status-pill.reserved { background:#f5e6e9; color:#6E0D25; }
.status-pill.sold { background:#f1e2e2; color:#a94442; }
.table-actions a { font-size: 12.5px; font-weight:600; color: var(--primary); margin-right: 12px; }
.table-actions a.danger { color:#b23b3b; }

.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 20px; }
.alert-error { background:#fdecea; color:#b23b3b; border:1px solid #f3c6c2; }
.alert-success { background:#e7ebee; color:#1A2634; border:1px solid #c5ccd3; }

.login-shell { max-width: 380px; margin: 90px auto; padding: 0 20px; }
.login-shell .card { padding: 34px 30px; border-radius:8px; }

/* ---------- Services page: slider ---------- */
.slider {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}
.slider-track {
  display: flex;
  transition: transform .35s ease;
}
.slide {
  flex: 0 0 100%;
  position: relative;
}
.slide img { width: 100%; height: 380px; object-fit: cover; display: block; }
.slide-placeholder {
  width: 100%; height: 380px;
  background: linear-gradient(135deg, #1A2634, #334155 60%, #46596e);
  display: flex; align-items: center; justify-content: center;
}
.slide-placeholder svg { width: 56px; height: 56px; stroke: rgba(255,255,255,0.45); }
.slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,38,52,0.75), transparent);
  color: #fff; font-size: 13px; padding: 30px 20px 14px 20px; margin: 0;
}
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none;
  font-size: 20px; color: var(--primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 6px; }
.slider-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
}
.slider-dots span.active { background: #fff; }

/* ---------- Services page: cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  max-width: 1180px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  position: relative;
}
.service-card.featured { border-color: var(--primary); }
.service-badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .04em;
}
.service-card h3 { font-size: 19px; margin-bottom: 4px; }
.service-tag { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.service-list { margin: 0 0 18px 0; padding: 0; }
.service-list li {
  font-size: 13.5px; color: var(--ink); padding-left: 20px; position: relative; margin-bottom: 8px;
}
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-light);
}
.service-price {
  font-family: var(--font-display);
  font-size: 22px; color: var(--primary); font-weight: 600;
  padding-top: 14px; border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .service-grid { grid-template-columns: minmax(0,1fr); max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* ---------- About page: symmetric photo + text ---------- */
.about-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}
.about-photo, .about-text { flex: 1 1 50%; }
.about-photo img {
  width: 100%; height: 420px; object-fit: cover; border-radius: 8px; display: block;
}
.about-photo-placeholder {
  width: 100%; height: 420px; border-radius: 8px;
  background: linear-gradient(135deg, #000000, #1A2634 60%, #334155);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 0 30px;
}
.about-photo-placeholder svg { width: 48px; height: 48px; stroke: rgba(255,255,255,0.45); }
.about-photo-placeholder span { font-size: 13px; color: rgba(255,255,255,0.55); }
.about-text p { font-size: 16px; line-height: 1.8; margin: 0 0 18px 0; }

@media (max-width: 860px) {
  .about-flex { flex-direction: column; }
  .about-photo img, .about-photo-placeholder { height: 280px; }
}
