/* Keyline Properties (ListingsBox template) — design system.
   Deep forest green + warm gold accent on warm ivory, photo-forward and
   trustworthy (large listing cards, price-forward detail layout) — distinct
   from the navy/amber RentalListingBox palette and the indigo/teal
   BookingBox theme sitting next to it in the same account. */

:root {
  --kl-ink: #1a2420;
  --kl-slate: #4c5750;
  --kl-steel: #7c8880;
  --kl-steel-light: #d3d9d3;
  --kl-green: #1f3d2e;
  --kl-green-dark: #142a20;
  --kl-green-2: #1a3327;
  --kl-gold: #c08a3e;
  --kl-gold-dark: #a06f2c;
  --kl-ivory: #f6f4ee;
  --kl-ivory-2: #ece8dc;
  --kl-white: #ffffff;
  --kl-line: rgba(255, 255, 255, 0.14);
  --kl-line-dark: rgba(26, 36, 32, 0.12);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 6px 20px rgba(26, 36, 32, 0.10);
  --shadow-lg: 0 14px 36px rgba(26, 36, 32, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--kl-ink);
  background: var(--kl-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--kl-green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-base);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--kl-ink);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kl-gold-dark);
  margin-bottom: 10px;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--kl-slate); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-mist { background: var(--kl-ivory); }
.section-dark { background: var(--kl-ink); color: var(--kl-white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--kl-white); }
.section-dark p { color: var(--kl-steel-light); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--kl-green); color: var(--kl-white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--kl-green-dark); }

.btn-accent { background: var(--kl-gold); color: var(--kl-white); box-shadow: var(--shadow); }
.btn-accent:hover { background: var(--kl-gold-dark); }

.btn-outline { background: transparent; border-color: currentColor; color: var(--kl-white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline-dark { background: transparent; border-color: var(--kl-green); color: var(--kl-green); }
.btn-outline-dark:hover { background: rgba(31, 61, 46, 0.06); }

.btn-block { width: 100%; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--kl-ink);
  border-bottom: 3px solid var(--kl-gold);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--kl-white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--kl-gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--kl-ink);
  font-weight: 900;
  flex-shrink: 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--kl-steel-light);
  font-weight: 700;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--kl-white); text-decoration: none; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 2px solid var(--kl-line);
  border-radius: var(--radius);
  color: var(--kl-white);
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--kl-green-2);
  border-top: 1px solid var(--kl-line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 20px;
  color: var(--kl-white);
  font-weight: 700;
  border-bottom: 1px solid var(--kl-line);
  font-size: 0.95rem;
}
.mobile-menu a:hover { text-decoration: none; background: rgba(255,255,255,0.04); }
.mobile-menu .btn { margin: 16px 20px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ── Sticky mobile CTA bar ────────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--kl-ink);
  border-top: 3px solid var(--kl-gold);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.sticky-cta .btn { width: 100%; }
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}
body { padding-bottom: 76px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(rgba(26,36,32,0.92), rgba(26,36,32,0.96)),
    radial-gradient(circle at 15% 25%, rgba(31,61,46,0.32) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(192,138,62,0.20) 0, transparent 50%),
    var(--kl-ink);
  color: var(--kl-white);
  padding: 56px 0 64px;
}
.hero h1 { color: var(--kl-white); }
.hero p { max-width: 560px; color: var(--kl-steel-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── Cards / grids ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--kl-white);
  border: 1px solid var(--kl-line-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--kl-green);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--kl-white);
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--kl-gold);
  color: var(--kl-white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.status-active { background: #2e7d4f; }
.badge.status-pending { background: var(--kl-gold); }
.badge.status-sold { background: #7c8880; }

/* ── Listing catalog / cards ───────────────────────────────────────────── */
.listing-card {
  background: var(--kl-white);
  border: 1px solid var(--kl-line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
.listing-card-media {
  aspect-ratio: 4 / 3;
  background: var(--kl-ivory-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kl-steel);
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
}
.listing-card-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card-media .badge { position: absolute; top: 12px; left: 12px; }
.listing-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.listing-card-body h3 { margin-bottom: 4px; font-size: 1.1rem; }
.listing-card-price { font-weight: 800; color: var(--kl-green); font-size: 1.3rem; margin-bottom: 8px; }
.listing-card-loc { font-size: 0.85rem; color: var(--kl-steel); margin-bottom: 10px; }
.listing-card-specs { margin-top: auto; padding-top: 14px; display: flex; gap: 14px; font-size: 0.85rem; color: var(--kl-slate); border-top: 1px solid var(--kl-line-dark); }
.listing-card-specs strong { color: var(--kl-ink); }

/* ── Filter bar (catalog) ─────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-bar button {
  background: var(--kl-white);
  border: 2px solid var(--kl-line-dark);
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--kl-slate);
  cursor: pointer;
}
.filter-bar button.active { background: var(--kl-green); border-color: var(--kl-green); color: var(--kl-white); }

/* ── Listing detail ────────────────────────────────────────────────────── */
.listing-gallery { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: 24px; border-radius: var(--radius-lg); overflow: hidden; }
.listing-gallery-main { aspect-ratio: 16/10; background: var(--kl-ivory-2); overflow: hidden; }
.listing-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.listing-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.listing-gallery-thumbs img, .listing-gallery-thumbs .thumb-empty { aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--kl-ivory-2); cursor: pointer; border: 2px solid transparent; }
.listing-gallery-thumbs img.active { border-color: var(--kl-gold); }

.price-box {
  background: var(--kl-ivory);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
}
.price-box .price { font-weight: 800; color: var(--kl-green); font-size: 2rem; display: block; }
.price-box .status-row { margin-top: 8px; }

.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.spec-table tr { border-bottom: 1px solid var(--kl-line-dark); }
.spec-table td { padding: 10px 0; font-size: 0.94rem; }
.spec-table td:first-child { color: var(--kl-steel); font-weight: 700; width: 45%; }
.spec-table td:last-child { color: var(--kl-ink); font-weight: 600; }

.feature-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 16px 0; list-style: none; padding: 0; }
@media (min-width: 640px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { font-size: 0.92rem; color: var(--kl-slate); padding-left: 22px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--kl-gold-dark); font-weight: 800; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--kl-ink);
}
.field .hint { font-size: 0.78rem; color: var(--kl-steel); margin-top: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 2px solid var(--kl-line-dark);
  font-size: 16px;
  font-family: var(--font-base);
  background: var(--kl-white);
  color: var(--kl-ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--kl-green);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row-2 { grid-template-columns: 1fr 1fr; } }

.form-card {
  background: var(--kl-white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
}
.form-msg { padding: 14px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 700; display: none; }
.form-msg.success { background: #e2f2ea; color: #1f7a45; display: block; }
.form-msg.error { background: #fbe6e0; color: #a5321a; display: block; }
.form-msg.info { background: var(--kl-ivory-2); color: var(--kl-green-dark); display: block; }

/* ── FAQ accordion ─────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--kl-line-dark);
  padding: 18px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  gap: 12px;
}
.faq-q .plus { flex-shrink: 0; font-size: 1.3rem; color: var(--kl-gold-dark); transition: transform 0.15s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: none; margin-top: 10px; color: var(--kl-slate); }
.faq-item.open .faq-a { display: block; }

/* ── Table (admin inquiries list) ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data-table th, table.data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--kl-line-dark); white-space: nowrap; }
table.data-table th { color: var(--kl-steel); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--kl-ink);
  color: var(--kl-steel-light);
  padding: 48px 0 28px;
}
.site-footer h4 { color: var(--kl-white); font-size: 1rem; letter-spacing: 0.02em; }
.site-footer p { color: var(--kl-steel-light); }
.site-footer .notice { color: var(--kl-slate); }
.site-footer a { color: var(--kl-steel-light); }
.site-footer a:hover { color: var(--kl-white); }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; margin-bottom: 30px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-bottom {
  border-top: 1px solid var(--kl-line);
  padding-top: 20px;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer-bottom a { margin-right: 14px; }

/* ── Trust / compliance notice ────────────────────────────────────────── */
.notice {
  background: var(--kl-ivory-2);
  border-left: 4px solid var(--kl-gold);
  padding: 16px 18px;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--kl-slate);
}

/* ── Utilities ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-w-prose { max-width: 680px; }
.center { margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--kl-gold); color: white; padding: 12px 16px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }
