:root {
  --color-bg: #f3f8fb;
  --color-text: #1e2b33;
  --color-accent: #4a90b8;
  --color-accent-dark: #2f6d91;
  --color-muted: #5c7480;
  --color-border: #d7e6ee;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-accent-dark);
}

a { color: var(--color-accent); }

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.site-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.site-logo { height: 40px; width: auto; display: block; }

.site-nav a {
  margin-left: var(--space-md);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

/* Hero: her photo sits beside the headline, not under it — a portrait reads better
   next to text than with text overlaid on top of a face (harder to light/crop well). */
.hero-split {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.hero-split-text { flex: 1 1 320px; }
.hero-split-text h1 { font-size: 2.3rem; margin: 0 0 var(--space-sm); }
.hero-split-photo { flex: 1 1 280px; max-width: 420px; margin: 0 auto; }
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  display: block;
}
@media (max-width: 640px) {
  .site-main { padding: var(--space-md) var(--space-md); }
  .hero-split {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
  }
  .hero-split-photo { max-width: 110px; }
  .hero-photo { aspect-ratio: 1 / 1; border-radius: 50%; box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
  .hero-split-text h1 { font-size: 1.5rem; margin-bottom: 0.4rem; }
  .hero-split-text .hero-subheading { font-size: 0.95rem; }
}

.image-placeholder {
  border: 2px dashed var(--color-border);
  border-radius: 6px;
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-muted);
  margin: var(--space-md) 0;
}

.intro-body { margin-top: var(--space-md); }

/* About: photo and bio side by side — the agent's face is part of the pitch */
.about-bio-row {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
.agent-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.about-body { flex: 1 1 320px; }

.contact-line { font-size: 1.05rem; margin: 0.3rem 0; }

.site-footer {
  text-align: center;
  color: var(--color-muted);
  padding: var(--space-lg) var(--space-md);
  font-size: 0.9rem;
}

.listings-forsale, .listings-sold { margin-top: var(--space-lg); }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.listing-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-sm);
  position: relative;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}
.listing-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: var(--space-sm);
  background: var(--color-border);
}
.listing-photo-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.listing-card:hover .listing-photo-wrap img { transform: scale(1.07); }
.listing-photo-placeholder { width: 100%; height: 200px; background: var(--color-border); }
.view-hint {
  position: absolute; inset: 0;
  background: rgba(43,35,32,0.45);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; letter-spacing: 0.04em; font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.listing-card:hover .view-hint { opacity: 1; }
.listing-price { color: var(--color-accent-dark); font-weight: bold; }
.price-tag {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  background: rgba(20, 30, 38, 0.78);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.listing-card.sold { opacity: 0.95; }
.sold-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  background: var(--color-accent-dark);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}
blockquote {
  font-style: italic;
  color: var(--color-muted);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-sm);
  margin: var(--space-sm) 0 0;
}
blockquote footer { margin-top: 0.3rem; font-style: normal; font-weight: 600; color: var(--color-text); }

/* Listing lightbox — click a card, see the full photo + details, no dead-end clicks */
.lightbox-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20,16,14,0.78);
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: var(--space-md);
}
.lightbox-overlay.open { display: flex; }
.lightbox-box {
  background: #fff;
  border-radius: 10px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.lightbox-close {
  position: absolute; top: 0.7rem; right: 0.9rem; z-index: 3;
  background: rgba(0,0,0,0.55); color: #fff; border: none; border-radius: 50%;
  width: 2.2rem; height: 2.2rem; cursor: pointer; font-size: 1.3rem; line-height: 1;
}
.lightbox-close:hover { background: rgba(0,0,0,0.75); }
.lightbox-image-wrap { position: relative; background: #171310; }
.lightbox-image-wrap img { width: 100%; max-height: 50vh; object-fit: contain; display: block; }
.lightbox-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45); color: #fff; border: none;
  padding: 0.7rem 1rem; cursor: pointer; font-size: 1.4rem; line-height: 1;
  border-radius: 4px;
}
.lightbox-nav-btn:hover { background: rgba(0,0,0,0.65); }
.lightbox-nav-btn.prev { left: 0.6rem; }
.lightbox-nav-btn.next { right: 0.6rem; }
.lightbox-body { padding: var(--space-md); }
.lightbox-body h3 { margin-top: 0; }
.lightbox-counter { color: var(--color-muted); font-size: 0.85rem; margin: 0 0 0.3rem; }

/* Editor preview only — never present in what gets published */
body.edit-mode .editable-section {
  outline: 1px dashed var(--color-accent);
  outline-offset: 4px;
  position: relative;
}
