/* =========================================================
   Baguio Realty — Design System
   Modern, minimalist, light. No external fonts/images so the
   site loads fast; swap in real photos whenever you're ready.
   ========================================================= */

/* Honeypot spam-trap field used on public forms (contact, submit-listing):
   visually hidden from real visitors, but present in the HTML/tab order
   so simple bots that auto-fill every field tend to fill it too. */
.hp-field { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }
.hp-field input, .hp-field label { position: absolute; width: 0; height: 0; overflow: hidden; padding: 0; border: 0; margin: 0; }

:root {
  /* Brand palette */
  --color-primary: #1F4B3F;      /* deep pine green */
  --color-primary-light: #2F6B57;
  --color-sage: #6B8F71;
  --color-accent: #C08A3E;       /* warm gold */
  --color-bg: #FAFAF7;
  --color-bg-alt: #F1F3EF;
  --color-card: #FFFFFF;
  --color-text: #1C2320;
  --color-text-muted: #5B655F;
  --color-border: #E4E7E2;

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(28, 35, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(28, 35, 32, 0.10);
  --container: 1180px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 var(--space-2); color: var(--color-text-muted); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-light); }

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

/* Property description — rich text from the admin's WYSIWYG editor */
.rich-description p { margin: 0 0 var(--space-2); }
.rich-description ul, .rich-description ol { margin: 0 0 var(--space-2); padding-left: 1.4rem; color: var(--color-text-muted); }
.rich-description a { text-decoration: underline; }

/* Default size for our inline icon SVGs (bed/bath/area/pin/etc).
   Larger, purpose-styled icons (hero, feature blocks, placeholders)
   override this with their own more specific selector below. */
svg { width: 1em; height: 1em; flex-shrink: 0; vertical-align: middle; }

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

section { padding: var(--space-5) 0; }
.section-tight { padding: var(--space-4) 0; }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-4);
}
.section-heading p { margin-bottom: 0; }
.eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: var(--space-1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); color: #fff; box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
/* CTA button ("List Your Property" etc.) — soft, light green that stays
   on-brand with the site's greens. Dark green text + a subtle border keep
   it clearly readable on both white and dark-green backgrounds. */
.btn-accent { background: #DCEBDD; color: var(--color-primary); border-color: #BEDCC1; }
.btn-accent:hover { background: #CBE2CD; color: var(--color-primary); border-color: #A9CFAD; box-shadow: var(--shadow-sm); }
.btn-block { width: 100%; }


/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a.active, .main-nav a:hover { color: var(--color-primary); }
.main-nav .btn { margin-left: var(--space-1); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }
  .main-nav .btn { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #FAFAF7 0%, #EEF2ED 60%, #E6ECE5 100%);
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
}
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.hero-stats {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--color-primary); }
.hero-stats div span { font-size: 0.85rem; color: var(--color-text-muted); }

.hero-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-sage) 100%);
  position: relative;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* keeps the scene's corners clipped to match the rounded box */
}
.hero-visual svg { width: 45%; height: 45%; opacity: 0.9; }
/* The illustrated mountain/pine-tree scene fills the whole box (like a
   photo would), rather than sitting centered and small like a plain icon. */
.hero-visual svg.hero-scene { width: 100%; height: 100%; opacity: 1; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/9; }
}

/* ---------- Placeholder image blocks (swap for real photos) ---------- */
.ph-image {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #E3E9E1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.ph-image svg { width: 30%; height: 30%; color: var(--color-sage); opacity: 0.8; }
.ph-image img { width: 100%; height: 100%; object-fit: cover; }
.ph-image img.lightbox-trigger { cursor: zoom-in; }

/* ---------- Photo carousel (property detail main photo) ----------
   Left/right arrows + a "2 / 10" counter overlaid on the main photo, so
   visitors can flip through every photo of a listing without leaving
   the page (similar to popular listing sites like Lamudi). */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.15s ease;
}
.carousel-nav:hover { background: rgba(0, 0, 0, 0.6); }
.carousel-nav svg { width: 20px; height: 20px; }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-counter {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  z-index: 2;
}
@media (max-width: 640px) {
  .carousel-nav { width: 34px; height: 34px; }
  .carousel-nav svg { width: 17px; height: 17px; }
}

/* ---------- Lightbox (click-to-enlarge photo viewer) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 20, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.lightbox[aria-hidden="true"] { display: none; }
.lightbox-image {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }
.lightbox-close { top: var(--space-3); right: var(--space-3); }
.lightbox-prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  background: rgba(0,0,0,0.35);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .lightbox-prev { left: var(--space-1); }
  .lightbox-next { right: var(--space-1); }
  .lightbox-close { top: var(--space-1); right: var(--space-1); }
}

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

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: var(--space-3); flex: 1; display: flex; flex-direction: column; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 0.4rem; z-index: 2; }
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.badge-sale { background: var(--color-primary); color: #fff; }
.badge-rent { background: var(--color-accent); color: #fff; }
.badge-sold { background: #3A3A3A; color: #fff; }
.card-media { position: relative; }

/* ---------- Favorite (saved listing) heart button ---------- */
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}
.favorite-btn:hover { transform: scale(1.08); color: #C0392B; }
.favorite-btn.is-favorite { color: #C0392B; }
.saved-count { font-size: 0.85em; }
.card-price {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
/* A Sold/Rented listing with its price hidden shows this note instead of
   a price — plain body text (not the bold display price style) since
   it's a sentence, not a number. */
.card-price-note {
  font-family: var(--font-body, inherit);
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}
.card-price-note a { color: var(--color-primary); font-weight: 700; }
.card-location {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.card-specs {
  display: flex;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  padding-top: var(--space-1);
}
.card-specs span { display: flex; align-items: center; gap: 0.3rem; }
.card-location svg, .card-specs svg { width: 15px; height: 15px; color: var(--color-sage); }
.card-title { margin-bottom: 0.3rem; font-size: 1.1rem; }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-2);
  margin-bottom: var(--space-4);
}
.filter-bar select, .filter-bar input {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--color-bg);
  color: var(--color-text);
}
.filter-bar .filter-count { margin-left: auto; font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Feature list / icon rows ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.feature .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}
.feature .icon-wrap svg { width: 24px; height: 24px; }

/* ---------- Panels / notices ---------- */
.notice {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
}

.cta-band {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: var(--space-2); }
.form-field.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31,75,63,0.12);
}
textarea { resize: vertical; min-height: 120px; }

/* ---------- Two column layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-3); } }

/* ---------- Loan / mortgage calculator (property detail page) ---------- */
.mortgage-calc { margin-top: var(--space-4); }
.mortgage-calc .card-body { padding: var(--space-3); }
.mortgage-calc h2 { margin-bottom: 0.3rem; }
.mortgage-calc-note { margin-bottom: var(--space-2); }
.mortgage-calc-grid { margin-bottom: var(--space-2); }
.mortgage-calc-result {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: var(--space-2);
}
.mortgage-calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}
.mortgage-calc-result-label { color: var(--color-text-muted); font-size: 0.9rem; }
.mortgage-calc-result-value { font-weight: 700; color: var(--color-text); }
.mortgage-calc-result-highlight {
  border-top: 1px solid var(--color-border);
  padding-top: 0.6rem;
}
.mortgage-calc-result-highlight .mortgage-calc-result-label { color: var(--color-text); font-weight: 600; }
.mortgage-calc-result-highlight .mortgage-calc-result-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-primary);
}
.mortgage-calc-disclaimer { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 0; }

/* ---------- Per-listing inquiry form (property detail page) ---------- */
.listing-inquiry { margin-top: var(--space-4); }
.listing-inquiry .card-body { padding: var(--space-3); }
.listing-inquiry h2 { margin-bottom: 0.3rem; }

/* ---------- Click-to-chat (WhatsApp / Viber) ---------- */
/* Bottom-LEFT on purpose — Meta's Messenger widget always docks bottom-right,
   so this avoids the two ever overlapping. */
.click-to-chat {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.click-to-chat-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.click-to-chat-btn:hover { transform: translateY(-2px) scale(1.05); color: #fff; }
.click-to-chat-whatsapp { background: #25D366; }
.click-to-chat-viber { background: #7360F2; }
@media (max-width: 640px) {
  .click-to-chat { left: 12px; bottom: 12px; }
  .click-to-chat-btn { width: 46px; height: 46px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: var(--space-5) 0 var(--space-2);
  margin-top: var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-brand-logo { height: 34px; filter: brightness(0) invert(1); margin-bottom: var(--space-2); }

/* ---------- Social links (footer + "Listed By" on our own listings) ----------
   Plain text links ("Facebook", "YouTube") — no logos, per brand preference. */
.social-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.social-links a { color: var(--color-text-muted); font-weight: 600; font-size: 0.95rem; }
.social-links a:hover { color: var(--color-primary); text-decoration: underline; }
.site-footer .social-links a { color: rgba(255,255,255,0.85); }
.site-footer .social-links a:hover { color: #fff; }
.footer-follow-heading { margin-top: var(--space-3); margin-bottom: 0.5rem; }
.footer-tagline { color: rgba(255,255,255,0.92); }

/* Header nav placement — same text links, no logos, placed inline
   between the page links and the "List Your Property" button. */
.main-nav li.nav-social-links { display: inline-flex; }
.main-nav .nav-social-links a { font-weight: 500; }
@media (max-width: 860px) {
  .main-nav li.nav-social-links { padding: 0.4rem 0; }
}

/* ---------- Click-to-reveal phone number ---------- */
.phone-reveal { display: inline-block; }
.phone-reveal:empty { display: none; }

/* ---------- Page header banner (for interior pages) ---------- */
.page-banner {
  background: var(--color-bg-alt);
  padding: var(--space-4) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--color-text-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* =========================================================
   Photo upload boxes (List Your Property + admin edit)
   One box per photo, each with a "Main photo" selector.
   ========================================================= */
.photo-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-2);
}
.photo-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.photo-box.has-photo { border-color: var(--color-primary-light); }
.photo-box-drop { position: relative; }
.photo-box-preview {
  position: relative;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-align: center;
  /* This box sits later in the DOM than the file input below, and being
     position:relative it's also a "positioned" element — without this, two
     positioned siblings with the default z-index paint in DOM order, so
     THIS box (later) would render on top of the input and silently swallow
     every tap/click before it ever reaches the actual <input type="file">.
     pointer-events:none makes sure taps always pass through to the input. */
  pointer-events: none;
}
.photo-box-preview img { width: 100%; height: 110px; object-fit: cover; display: block; }
.photo-box-num { padding: 0 0.4rem; }
/* The file input covers the preview so the whole box is clickable. Explicit
   z-index (belt-and-suspenders alongside pointer-events:none above) makes
   sure it always paints — and receives clicks/taps — above the preview,
   regardless of browser-specific stacking quirks. */
.photo-box-drop input[type="file"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
  z-index: 2;
}
.photo-box-main {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  cursor: pointer;
}
.photo-box-main input { width: auto; margin: 0; }
.photo-box.has-photo .photo-box-main { color: var(--color-text); }

/* The one dedicated "Main Photo" box (always box index 0 of a new-upload
   set) — visually distinct so it's unmistakable which slot is the cover. */
.photo-box-main-slot { border-color: var(--color-accent); border-width: 2px; }
.photo-box-main-slot .photo-box-preview { background: #FBF3E7; color: var(--color-accent); font-weight: 600; }
.photo-box-caption {
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

/* =========================================================
   Optional email verification (List Your Property)
   ========================================================= */
.email-verify-row {
  display: flex;
  gap: var(--space-1);
  align-items: stretch;
  flex-wrap: wrap;
}
.email-verify-row input { flex: 1 1 220px; }
.email-verify-row .btn { white-space: nowrap; }
.verify-panel {
  margin-top: var(--space-2);
  padding: var(--space-2);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
}
.verify-panel label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.linklike {
  background: none; border: none; padding: 0; margin-top: 0.5rem;
  color: var(--color-primary); text-decoration: underline; cursor: pointer; font-size: 0.85rem;
}
.verify-status {
  margin-top: var(--space-2);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.verify-status-info { background: #EEF3F6; color: #24506B; border: 1px solid #CFE0EA; }
.verify-status-success { background: #E9F3EC; color: #205C3C; border: 1px solid #C3E0CC; }
.verify-status-error { background: #FBEAEA; color: #7A2222; border: 1px solid #F0C4C4; }
