/* ============================================================
   placevi.net · theme tokens (warm-modern)
   Loaded after Bootstrap, before site.css.

   Scope:
   - Typography (Bricolage + Inter) applies site-wide for unity.
   - Color tokens, page bg, and Bootstrap variable overrides scope
     to `.theme-public` so admin pages keep Bootstrap defaults.
   - Custom component classes (navbar-pl, footer-pl, plot-card)
     are namespaced and only used on public views.
   ============================================================ */

:root {
  /* Palette */
  --pl-bg:           #FBFAF7;
  --pl-surface:      #FFFFFF;
  --pl-surface-alt:  #F4EDE0;
  --pl-border:       #E8E4DC;
  --pl-text:         #1F2A24;
  --pl-muted:        #6B6B6B;
  --pl-primary:      #2D5F3F;
  --pl-primary-deep: #1F4530;
  --pl-primary-soft: #E6F0E8;
  --pl-chip-bg:      #F2F2EE;
  --pl-chip-text:    #4A4A4A;

  /* Type */
  --pl-display: "Bricolage Grotesque", system-ui, -apple-system, Segoe UI, sans-serif;
  --pl-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Radii */
  --pl-r-sm: 6px;
  --pl-r-md: 10px;
  --pl-r-lg: 16px;
  --pl-r-xl: 24px;
  --pl-r-pill: 999px;

  /* Shadows */
  --pl-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --pl-shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --pl-shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
}

/* ----- Typography: global (admin gets Bricolage/Inter too — intentional unification) ----- */
html { font-size: 16px; }
body {
  font-family: var(--pl-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--pl-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pl-text);
}
.num, .price, .area-badge, .listing-price {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ============================================================
   PUBLIC THEME — color tokens & Bootstrap variable overrides
   ============================================================ */
.theme-public {
  --bs-body-bg:          var(--pl-bg);
  --bs-body-color:       var(--pl-text);
  --bs-border-color:     var(--pl-border);
  --bs-secondary-color:  var(--pl-muted);

  --bs-primary:          var(--pl-primary);
  --bs-primary-rgb:      45, 95, 63;
  --bs-link-color:       var(--pl-primary);
  --bs-link-color-rgb:   45, 95, 63;
  --bs-link-hover-color: var(--pl-primary-deep);

  background-color: var(--pl-bg);
  color: var(--pl-text);
}

.theme-public .btn-primary {
  --bs-btn-bg:                var(--pl-primary);
  --bs-btn-border-color:      var(--pl-primary);
  --bs-btn-hover-bg:          var(--pl-primary-deep);
  --bs-btn-hover-border-color:var(--pl-primary-deep);
  --bs-btn-active-bg:         var(--pl-primary-deep);
  --bs-btn-active-border-color:var(--pl-primary-deep);
  --bs-btn-disabled-bg:       var(--pl-primary);
  --bs-btn-disabled-border-color: var(--pl-primary);
  font-weight: 600;
}

.theme-public .btn-outline-primary {
  --bs-btn-color:             var(--pl-primary);
  --bs-btn-border-color:      var(--pl-primary);
  --bs-btn-hover-bg:          var(--pl-primary);
  --bs-btn-hover-border-color:var(--pl-primary);
  --bs-btn-active-bg:         var(--pl-primary);
  --bs-btn-active-border-color:var(--pl-primary);
}

/* Soften default Bootstrap cards & borders on public pages */
.theme-public .card {
  border-color: var(--pl-border);
  border-radius: var(--pl-r-lg);
  background-color: var(--pl-surface);
}

/* ============================================================
   NAVBAR (global, applied on every page)
   ============================================================ */
.navbar-pl {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--pl-surface);
  border-bottom: 1px solid var(--pl-border);
}
.navbar-pl .navbar-pl-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}
@media (min-width: 992px) {
  .navbar-pl .navbar-pl-inner {
    padding: 14px 24px;
  }
}
.navbar-pl .navbar-pl-collapse {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-mark {
  font-family: var(--pl-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  transition: opacity .15s ease;
}
.brand-mark:hover { opacity: 0.85; text-decoration: none; }
.brand-mark .brand-name { color: var(--pl-text); }
.brand-mark .brand-tld  { color: var(--pl-primary); }
.footer-pl .brand-mark .brand-name { color: #fff; }
.footer-pl .brand-mark .brand-tld  { color: #A8C09A; }
.navbar-pl .nav-pl-links {
  display: flex;
  gap: 26px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-pl .nav-pl-links a {
  color: var(--pl-text);
  text-decoration: none;
  font-family: var(--pl-body);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.navbar-pl .nav-pl-links a:hover,
.navbar-pl .nav-pl-links a.active {
  color: var(--pl-primary);
}
.navbar-pl .nav-pl-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.navbar-pl .btn-pl-primary {
  background: var(--pl-primary);
  color: #fff;
  border: 1.5px solid var(--pl-primary);
  border-radius: var(--pl-r-md);
  padding: 9px 16px;
  font-family: var(--pl-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.navbar-pl .btn-pl-primary:hover {
  background: var(--pl-primary-deep);
  border-color: var(--pl-primary-deep);
  color: #fff;
  box-shadow: var(--pl-shadow-sm);
  transform: translateY(-1px);
}
.navbar-pl .btn-pl-outline {
  background: transparent;
  color: var(--pl-text);
  border: 1.5px solid var(--pl-border);
  border-radius: var(--pl-r-md);
  padding: 8px 14px;
  font-family: var(--pl-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.navbar-pl .btn-pl-outline:hover {
  border-color: var(--pl-text);
  color: var(--pl-text);
  background: var(--pl-bg);
}
.navbar-pl .navbar-pl-toggle {
  display: none;
  border: 1.5px solid var(--pl-border);
  background: transparent;
  border-radius: var(--pl-r-md);
  padding: 6px 10px;
  cursor: pointer;
}
.navbar-pl .navbar-pl-toggle svg { display: block; }

@media (max-width: 991.98px) {
  .navbar-pl .navbar-pl-inner { flex-wrap: wrap; }
  .navbar-pl .navbar-pl-toggle { display: inline-flex; margin-left: auto; }

  .navbar-pl .navbar-pl-collapse {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--pl-border);
  }
  .navbar-pl .navbar-pl-collapse.open { display: flex; }

  .navbar-pl .nav-pl-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .navbar-pl .nav-pl-links a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
  }

  .navbar-pl .nav-pl-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--pl-border);
  }
  .navbar-pl .nav-pl-actions .btn-pl-primary,
  .navbar-pl .nav-pl-actions .btn-pl-outline {
    width: 100%;
    justify-content: center;
  }
  .navbar-pl .nav-pl-actions form { width: 100%; margin: 0; }
}

/* ============================================================
   FOOTER (global)
   ============================================================ */
.footer-pl {
  background: var(--pl-primary-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 24px;
  margin-top: 96px;
}
.footer-pl h4 {
  font-family: var(--pl-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-pl ul { list-style: none; padding: 0; margin: 0; }
.footer-pl li { margin-bottom: 10px; }
.footer-pl a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  transition: color .15s ease;
}
.footer-pl a:hover { color: #fff; }
.footer-pl .foot-tag {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  max-width: 32ch;
  margin-top: 12px;
}
.footer-pl .socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-pl .socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.footer-pl .socials a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}
.footer-pl .foot-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   PLOT CARD (public only — admin uses tables)
   ============================================================ */
.theme-public .plot-card {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.theme-public .plot-card:hover {
  box-shadow: var(--pl-shadow-md);
  transform: translateY(-2px);
  border-color: #D9D2C2;
}
.theme-public .plot-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pl-chip-bg);
}
.theme-public .plot-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.theme-public .plot-card:hover .plot-card-media img {
  transform: scale(1.03);
}
.theme-public .plot-card-media .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pl-muted);
  font-size: 13px;
}
.theme-public .plot-card-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--pl-r-pill);
  padding: 5px 10px;
  font-family: var(--pl-body);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pl-text);
}
.theme-public .plot-card-pill .glyph {
  color: var(--pl-primary);
}
.theme-public .plot-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.theme-public .plot-card-title {
  font-family: var(--pl-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
.theme-public .plot-card-title a {
  color: var(--pl-text);
  text-decoration: none;
}
.theme-public .plot-card-loc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--pl-muted);
  font-size: 13px;
}
.theme-public .plot-card-loc .place {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.theme-public .plot-card-loc .place svg {
  flex-shrink: 0;
}
.theme-public .plot-card-area {
  background: var(--pl-primary-soft);
  color: var(--pl-primary-deep);
  font-weight: 600;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: var(--pl-r-pill);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.theme-public .plot-card-price {
  font-family: var(--pl-body);
  font-weight: 700;
  font-size: 22px;
  color: var(--pl-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  margin-top: 2px;
}
.theme-public .plot-card-price.on-request {
  font-size: 16px;
  font-weight: 600;
  color: var(--pl-muted);
}
.theme-public .plot-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--pl-border);
}
.theme-public .plot-card-tag {
  background: var(--pl-chip-bg);
  color: var(--pl-chip-text);
  border-radius: var(--pl-r-pill);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
}

/* ============================================================
   HOMEPAGE — hero, featured, trust, CTA
   Public only (homepage lives under .theme-public).
   ============================================================ */

/* ----- HERO ----- */
.theme-public .hero-pl {
  position: relative;
  overflow: hidden;
  background: #2A3530;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 96px 0;
}
.theme-public .hero-pl::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 55%;
  z-index: 0;
}
.theme-public .hero-pl::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(15, 25, 20, 0.65) 0%,
      rgba(15, 25, 20, 0.45) 35%,
      rgba(15, 25, 20, 0.15) 65%,
      rgba(15, 25, 20, 0) 100%),
    linear-gradient(180deg, rgba(15, 25, 20, 0) 60%, rgba(15, 25, 20, 0.35) 100%);
  z-index: 1;
}
.theme-public .hero-pl-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
}
.theme-public .hero-pl h1 {
  font-family: var(--pl-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 18px;
  max-width: 14ch;
}
.theme-public .hero-pl p.lede {
  font-family: var(--pl-body);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 36px;
  max-width: 52ch;
}

/* ----- search pill ----- */
.theme-public .hero-pl-search {
  background: #fff;
  border-radius: var(--pl-r-xl);
  box-shadow: var(--pl-shadow-lg);
  padding: 10px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 4px;
  max-width: 880px;
}
.theme-public .hero-pl-field {
  padding: 8px 18px;
  border-radius: var(--pl-r-lg);
  transition: background .15s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.theme-public .hero-pl-field:hover { background: var(--pl-bg); }
.theme-public .hero-pl-field + .hero-pl-field { border-left: 1px solid var(--pl-border); }
.theme-public .hero-pl-field label {
  font-family: var(--pl-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pl-muted);
  margin: 0;
  cursor: pointer;
}
.theme-public .hero-pl-field .field-control {
  border: 0;
  background: transparent;
  font-family: var(--pl-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--pl-text);
  padding: 0;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.theme-public .hero-pl-field .field-control::placeholder {
  color: var(--pl-muted);
  font-weight: 400;
}
.theme-public .hero-pl-search button[type="submit"] {
  background: var(--pl-primary);
  color: #fff;
  border: 0;
  border-radius: var(--pl-r-lg);
  padding: 0 26px;
  font-family: var(--pl-body);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background .15s ease;
  min-height: 48px;
}
.theme-public .hero-pl-search button[type="submit"]:hover { background: var(--pl-primary-deep); }

@media (max-width: 768px) {
  .theme-public .hero-pl {
    min-height: 50vh;
    padding: 72px 0;
  }
  .theme-public .hero-pl-search {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .theme-public .hero-pl-field + .hero-pl-field {
    border-left: 0;
    border-top: 1px solid var(--pl-border);
  }
  .theme-public .hero-pl-search button[type="submit"] {
    padding: 14px;
    min-height: 52px;
    margin-top: 4px;
  }
}

/* ----- section scaffolding shared ----- */
.theme-public .section-pl {
  padding: 96px 0;
}
.theme-public .section-pl-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.theme-public .section-pl-head .eyebrow {
  font-family: var(--pl-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pl-primary);
  margin-bottom: 6px;
}
.theme-public .section-pl-head h2 {
  font-family: var(--pl-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}
.theme-public .section-pl-head .head-link {
  color: var(--pl-text);
  font-family: var(--pl-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--pl-text);
  padding-bottom: 2px;
  white-space: nowrap;
}
.theme-public .section-pl-head .head-link:hover { color: var(--pl-primary); border-color: var(--pl-primary); }

.theme-public .empty-note {
  color: var(--pl-muted);
  font-size: 16px;
}

/* ----- trust ----- */
.theme-public .trust-pl {
  background: var(--pl-surface-alt);
}
.theme-public .trust-pl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.theme-public .trust-pl-item h3 {
  font-family: var(--pl-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 6px;
}
.theme-public .trust-pl-item p {
  color: var(--pl-muted);
  font-size: 14px;
  margin: 0;
  max-width: 32ch;
}
.theme-public .trust-pl-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pl-primary-soft);
  color: var(--pl-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
@media (max-width: 880px) {
  .theme-public .trust-pl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .theme-public .trust-pl-grid { grid-template-columns: 1fr; }
}

/* ----- CTA block ----- */
.theme-public .cta-pl {
  background: var(--pl-surface-alt);
  border-radius: var(--pl-r-xl);
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.theme-public .cta-pl-content {
  position: relative;
  z-index: 1;
  max-width: 56ch;
}
.theme-public .cta-pl h2 {
  font-family: var(--pl-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.theme-public .cta-pl p {
  color: var(--pl-muted);
  font-size: 17px;
  margin: 0 0 24px;
  max-width: 48ch;
}
.theme-public .cta-pl-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pl-body);
  font-weight: 600;
  font-size: 22px;
  color: var(--pl-primary);
  text-decoration: none;
  border-bottom: 2px solid var(--pl-primary);
  padding-bottom: 2px;
}
.theme-public .cta-pl-email:hover {
  color: var(--pl-primary-deep);
  border-color: var(--pl-primary-deep);
}
.theme-public .cta-pl-illust {
  position: absolute;
  right: -24px;
  bottom: 0;
  width: 420px;
  max-width: 45%;
  opacity: 0.7;
  pointer-events: none;
}
@media (max-width: 768px) {
  .theme-public .cta-pl { padding: 36px 24px; }
  .theme-public .cta-pl-illust { opacity: 0.3; right: -100px; bottom: -10px; }
  .theme-public .cta-pl-email { font-size: 19px; }
}

/* ============================================================
   PLOTS LISTING PAGE (/plots)
   ============================================================ */

.theme-public .plots-page-head {
  margin-bottom: 24px;
}
.theme-public .plots-page-head h1 {
  font-family: var(--pl-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 8px;
}
.theme-public .plots-page-count {
  color: var(--pl-muted);
  font-size: 15px;
  margin: 0;
}

.theme-public .plots-view-toggle {
  margin-bottom: 24px;
}

/* ----- side-by-side layout (lg+) ----- */
.theme-public .plots-page-layout {
  display: block;
}

@media (min-width: 992px) {
  .theme-public .plots-view-toggle {
    display: none !important;
  }
  .theme-public .plots-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    gap: 24px;
    align-items: start;
  }
  .theme-public .plots-map-rail {
    display: block !important; /* override any inline display:none from the mobile toggle */
    position: sticky;
    top: 72px;
    height: calc(100vh - 96px);
  }
  .theme-public .plots-list-rail {
    display: block !important;
  }
}

.theme-public .plots-map-rail #plots-map {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  border-radius: var(--pl-r-lg);
  border: 1px solid var(--pl-border);
  overflow: hidden;
  box-shadow: var(--pl-shadow-sm);
}

/* Leaflet's tile layer occasionally leaks rounded-corner clipping; force the inner
   container to inherit the radius so map controls/panes don't poke past the frame. */
.theme-public .plots-map-rail .leaflet-container { border-radius: var(--pl-r-lg); }

/* ----- list rail (horizontal cards stacked vertically) ----- */
.theme-public .plots-list-h {
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   PLOT CARD — horizontal variant
   ============================================================ */
.theme-public .plot-card.is-horizontal {
  flex-direction: row;
}
.theme-public .plot-card.is-horizontal .plot-card-media {
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: auto;
  border-bottom: 0;
  border-right: 1px solid var(--pl-border);
  align-self: stretch;
}
.theme-public .plot-card.is-horizontal .plot-card-media .placeholder {
  font-size: 12px;
  padding: 12px;
  text-align: center;
}
.theme-public .plot-card.is-horizontal .plot-card-pill {
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  padding: 3px 7px;
}
.theme-public .plot-card.is-horizontal .plot-card-body {
  padding: 14px 16px;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.theme-public .plot-card.is-horizontal .plot-card-title {
  font-size: 17px;
  line-height: 1.2;
}
.theme-public .plot-card.is-horizontal .plot-card-loc {
  font-size: 12.5px;
}
.theme-public .plot-card.is-horizontal .plot-card-area {
  font-size: 11.5px;
  padding: 2px 8px;
}
.theme-public .plot-card.is-horizontal .plot-card-price {
  font-size: 18px;
}
.theme-public .plot-card.is-horizontal .plot-card-price.on-request {
  font-size: 14px;
}
.theme-public .plot-card.is-horizontal .plot-card-tags {
  padding-top: 10px;
  margin-top: 2px;
  gap: 5px;
}
.theme-public .plot-card.is-horizontal .plot-card-tag {
  font-size: 11px;
  padding: 3px 8px;
}

/* Below the narrowest rail width (xl≥1200 vs lg 992-1199), drop tags to keep cards tight.
   At lg we still want tags visible — the rail is ~440px and there's room. */
@media (min-width: 992px) and (max-width: 1099.98px) {
  .theme-public .plot-card.is-horizontal .plot-card-media { width: 130px; }
  .theme-public .plot-card.is-horizontal .plot-card-title { font-size: 16px; }
}

/* ============================================================
   PLOT DETAIL PAGE (/plots/{slug})
   ============================================================ */

.theme-public .plot-detail-page {
  max-width: 1200px;
  margin: 0 auto;
}

.theme-public .plot-detail-back {
  margin-bottom: 20px;
}
.theme-public .plot-detail-back .back-link {
  color: var(--pl-muted);
  text-decoration: none;
  font-family: var(--pl-body);
  font-size: 14px;
  font-weight: 500;
}
.theme-public .plot-detail-back .back-link:hover {
  color: var(--pl-text);
}

/* Two-column grid: source order is main → aside, grid-template-areas
   swaps the visual order so aside sits on top on mobile and on the
   right on desktop. */
.theme-public .plot-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "aside"
    "main";
  gap: 28px;
}
.theme-public .plot-detail-main { grid-area: main; min-width: 0; }
.theme-public .plot-detail-aside { grid-area: aside; min-width: 0; }

@media (min-width: 992px) {
  .theme-public .plot-detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "main aside";
    gap: 48px;
    align-items: start;
  }
  .theme-public .plot-detail-aside {
    position: sticky;
    top: 80px;
  }
}

/* ----- main column: header / title block ----- */
.theme-public .plot-detail-head {
  margin-bottom: 28px;
}
.theme-public .plot-detail-title {
  font-family: var(--pl-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 6px;
}
.theme-public .plot-detail-subtitle {
  color: var(--pl-muted);
  font-size: 17px;
  font-weight: 400;
  margin: 0 0 14px;
}
.theme-public .plot-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--pl-muted);
  font-size: 14px;
}
.theme-public .plot-detail-meta-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.theme-public .plot-detail-meta-loc svg {
  flex-shrink: 0;
  color: var(--pl-primary);
}
.theme-public .plot-detail-area-badge {
  background: var(--pl-primary-soft);
  color: var(--pl-primary-deep);
  font-weight: 600;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: var(--pl-r-pill);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ----- main column: sections ----- */
.theme-public .plot-detail-section {
  margin-top: 40px;
}
.theme-public .plot-detail-cover-section {
  margin-top: 28px;
}
.theme-public .plot-detail-section-title {
  font-family: var(--pl-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--pl-text);
}

/* ----- cover image ----- */
.theme-public .plot-detail-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--pl-r-lg);
  overflow: hidden;
  box-shadow: var(--pl-shadow-md);
  background: var(--pl-chip-bg);
}
.theme-public .plot-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-public .plot-detail-cover.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: 1px dashed var(--pl-border);
}
.theme-public .plot-detail-cover-empty {
  color: var(--pl-muted);
  font-size: 13px;
}

/* ----- description ----- */
.theme-public .plot-detail-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--pl-text);
  max-width: 68ch;
  white-space: pre-line;
  margin: 0;
}

/* ----- orbit + gallery within the detail page ----- */
.theme-public .plot-detail-section .plot-orbit-viewer {
  border-radius: var(--pl-r-lg);
  box-shadow: var(--pl-shadow-sm);
  margin-bottom: 0;
}
/* Neutralize the site.css .plot-gallery legacy margin — section spacing now wins. */
.theme-public .plot-detail-section.plot-gallery {
  margin: 40px 0 0;
}
.theme-public .plot-detail-section .plot-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.theme-public .plot-detail-section .plot-gallery-thumb {
  border-radius: var(--pl-r-md);
}

/* ----- map ----- */
.theme-public .plot-detail-map {
  width: 100%;
  height: 400px;
  border-radius: var(--pl-r-lg);
  overflow: hidden;
  border: 1px solid var(--pl-border);
}
.theme-public .plot-detail-map .leaflet-container {
  border-radius: var(--pl-r-lg);
}

/* ----- detalji (specs) ----- */
.theme-public .plot-detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin: 0 0 22px;
}
.theme-public .plot-detail-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pl-border);
}
.theme-public .plot-detail-spec dt {
  font-family: var(--pl-body);
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pl-muted);
  margin: 0;
}
.theme-public .plot-detail-spec dd {
  font-size: 15px;
  font-weight: 600;
  color: var(--pl-text);
  margin: 0;
}
@media (max-width: 540px) {
  .theme-public .plot-detail-specs {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ----- utility pills ----- */
.theme-public .plot-detail-utilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.theme-public .plot-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--pl-r-pill);
  background: var(--pl-chip-bg);
  color: var(--pl-chip-text);
  font-family: var(--pl-body);
  font-size: 13px;
  font-weight: 500;
}
.theme-public .plot-detail-pill.is-yes {
  background: var(--pl-primary-soft);
  color: var(--pl-primary-deep);
}
.theme-public .plot-detail-pill.is-no {
  background: #FBEDED;
  color: #8B3A3A;
}
.theme-public .plot-detail-pill.is-unknown {
  background: var(--pl-chip-bg);
  color: var(--pl-muted);
}
.theme-public .plot-detail-pill-icon {
  flex-shrink: 0;
}

/* ----- contact ----- */
.theme-public .plot-detail-contact {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--pl-border);
}
.theme-public .plot-detail-contact-title {
  font-family: var(--pl-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.theme-public .plot-detail-contact-name {
  font-size: 15px;
  color: var(--pl-text);
  margin-bottom: 4px;
}
.theme-public .plot-detail-contact-phone {
  font-family: var(--pl-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--pl-primary);
  text-decoration: none;
}
.theme-public .plot-detail-contact-phone:hover {
  color: var(--pl-primary-deep);
  text-decoration: underline;
}

/* ----- sidebar summary card ----- */
.theme-public .plot-summary-card {
  background: var(--pl-surface-alt);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-r-lg);
  padding: 24px 22px;
}
.theme-public .plot-summary-price {
  font-family: var(--pl-body);
  font-weight: 700;
  font-size: 32px;
  color: var(--pl-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.theme-public .plot-summary-price.is-on-request {
  font-size: 22px;
  font-weight: 600;
  color: var(--pl-muted);
  letter-spacing: -0.01em;
}
.theme-public .plot-summary-facts {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.theme-public .plot-summary-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.theme-public .plot-summary-fact dt {
  font-family: var(--pl-body);
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pl-muted);
  margin: 0;
}
.theme-public .plot-summary-fact dd {
  font-size: 16px;
  font-weight: 600;
  color: var(--pl-text);
  margin: 0;
}
