/* ==========================================================================
   Kampala-Biz — design system
   Warm editorial palette: clay, cream, deep forest ink.
   Build 13: category cards show a photo of that category, per-listing photo
   galleries, dark-gray device theme, maps, "Approximate area" dropdown,
   exact latitude/longitude pins.
   Templates link this file as styles.css?v=14 so a stale copy cannot be served.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light dark;
  --cream: #fbf4ea;
  --cream-deep: #f3e8d9;
  --paper: #ffffff;
  --ink: #151f1a;
  --ink-soft: #4a544d;
  --ink-faint: #7c857e;
  --line: #e7dccb;
  --line-soft: #f0e7da;
  --clay: #cf5630;
  --clay-dark: #ad4220;
  --clay-soft: #f7e2d7;
  --forest: #1c4034;
  --forest-soft: #2b5c4a;
  --gold: #e0a03c;
  --gold-soft: #fbeed4;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(28, 40, 33, 0.06);
  --shadow-md: 0 14px 40px -18px rgba(28, 40, 33, 0.28);
  --shadow-lg: 0 34px 70px -34px rgba(28, 40, 33, 0.42);

  --display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: 22px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.2; }

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--clay); color: #fff; }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(58px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.bg-paper { background: var(--paper); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-forest { background: var(--forest); color: #f4efe6; }

/* ---------- Type helpers ---------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--light { color: var(--gold); }

.lede {
  color: var(--ink-soft);
  font-size: 1.04rem;
  max-width: 56ch;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 48px);
}
.section-head__text { max-width: 640px; display: grid; gap: 14px; }

.muted { color: var(--ink-soft); }
.small { font-size: 0.86rem; }

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(207, 86, 48, 0.9);
}
.btn-primary:hover { background: var(--clay-dark); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--forest); }

.btn-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(21, 31, 26, 0.04); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold-soft); }

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: transparent;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--forest);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ----------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 244, 234, 0.86);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(21, 31, 26, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  display: block;
  box-shadow: 0 1px 2px rgba(21, 31, 26, 0.14), inset 0 0 0 1px rgba(21, 31, 26, 0.07);
  flex: none;
}
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong {
  font-family: var(--display);
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}
.brand-text small {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.16s ease, background 0.16s ease;
}
.nav a:hover { color: var(--ink); background: rgba(21, 31, 26, 0.05); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--clay);
}

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 10px; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.header-phone svg { width: 15px; height: 15px; color: var(--clay); }
.header-actions .btn { padding: 11px 20px; font-size: 0.87rem; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0;
  place-items: center;
}
.menu-btn span {
  display: block;
  width: 17px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-btn span + span { margin-top: 4px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* ---------- Hero ------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(38px, 5vw, 62px) clamp(52px, 7vw, 86px);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto 40%;
  height: 80%;
  background: radial-gradient(circle at 60% 40%, rgba(207, 86, 48, 0.16), transparent 62%);
  z-index: -2;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(21, 31, 26, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 60% 60% at 78% 42%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 78% 42%, #000 10%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-copy { display: grid; gap: 24px; justify-items: start; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--r-pill);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-badge b {
  background: var(--forest);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 .accent {
  display: block;
  color: var(--clay);
  font-style: normal;
  font-weight: 500;
}

.hero p.lede { font-size: 1.08rem; max-width: 46ch; }

/* search card */
.search-card {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 14px;
}
.search-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.2fr auto;
  gap: 10px;
  align-items: center;
}
.field {
  display: grid;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: border-color 0.16s ease, background 0.16s ease;
  min-width: 0;
}
.field:hover { background: var(--cream); }
.field:focus-within { border-color: var(--forest); background: #fff; }
.field label {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field select,
.field input {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  outline: none;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder { color: var(--ink-faint); font-weight: 500; }
.field--select { position: relative; }
.field--select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--ink-faint);
  border-bottom: 1.6px solid var(--ink-faint);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}
.search-row .btn { height: 56px; padding-inline: 22px; border-radius: 14px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8rem;
}
.chips > span { color: var(--ink-faint); font-weight: 600; margin-right: 2px; }
.chip {
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.chip:hover { border-color: var(--ink); background: #fff; }

/* hero art */
.hero-art { position: relative; min-height: 440px; }
.art-card {
  position: absolute;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.art-card--main {
  inset: 4% 6% 8% 2%;
  background: linear-gradient(160deg, #2b5c4a 0%, #1c4034 52%, #10241d 100%);
  color: #fff;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-1.6deg);
}
.art-card--main .art-tag {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.art-card--main h3 { font-size: 1.75rem; max-width: 12ch; }
.art-card--main .art-meta { display: flex; gap: 18px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); }
.art-card--main .art-meta b { display: block; color: #fff; font-size: 1.15rem; font-family: var(--display); }
.art-rings {
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.art-rings::before,
.art-rings::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.art-rings::after { inset: 62px; border-color: rgba(224, 160, 60, 0.45); }

.art-card--float {
  right: 0;
  bottom: 6%;
  width: 63%;
  background: var(--paper);
  padding: 16px;
  display: grid;
  gap: 12px;
  transform: rotate(2.2deg);
}
.art-card--float .mini {
  display: flex;
  align-items: center;
  gap: 11px;
}
.art-card--float .mini .tile { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.art-card--float .mini strong { display: block; font-size: 0.88rem; }
.art-card--float .mini span { font-size: 0.74rem; color: var(--ink-faint); }
.art-card--float .mini .price {
  margin-left: auto;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--clay);
}

.art-card--chip {
  left: -2%;
  bottom: 0;
  background: var(--gold);
  color: #2b1f08;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-md);
}
.art-card--chip svg { width: 15px; height: 15px; }

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat span { font-size: 0.8rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- Art tiles (placeholder imagery) ---------------------------- */

.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.95);
}
.tile svg { width: 34%; height: auto; max-width: 62px; opacity: 0.94; }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
  mix-blend-mode: soft-light;
}
.tile--sm svg { width: 24px; }

.t-clay { background: linear-gradient(150deg, #e0764c, #b8441f); }
.t-forest { background: linear-gradient(150deg, #35735c, #174234); }
.t-gold { background: linear-gradient(150deg, #e9b25a, #c8811f); color: #3a2708; }
.t-plum { background: linear-gradient(150deg, #8a5568, #4c2b38); }
.t-slate { background: linear-gradient(150deg, #5c7180, #2f3f4a); }
.t-sand { background: linear-gradient(150deg, #d9b48b, #a97f52); color: #33220f; }
.t-teal { background: linear-gradient(150deg, #47908c, #1f524f); }
.t-rust { background: linear-gradient(150deg, #c96a4a, #7d3320); }

/* ---------- Categories ------------------------------------------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.cat-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.cat-card .tile {
  aspect-ratio: auto;
  height: 128px;
  border-radius: 12px;
  place-items: start end;
  padding: 12px;
}
.cat-card .tile svg { width: 26px; height: 26px; }

/* A category with photographed listings shows one of those photos, with the
   category icon kept as a small badge so the grid still reads at a glance. */
.cat-card .tile--photo {
  padding: 0;
  place-items: stretch;
  background: #2a2f32;
}
.cat-card .tile--photo::after { display: none; }
.cat-card .tile--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-card:hover .tile--photo img { transform: scale(1.05); }
.cat-card .tile__icon {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(18, 21, 23, 0.74);
  color: #fff;
}
.cat-card .tile__icon svg { width: 16px; height: 16px; opacity: 1; }
.cat-card b { font-size: 0.95rem; letter-spacing: -0.01em; }
.cat-card span { font-size: 0.76rem; color: var(--ink-faint); margin-top: -10px; }
.cat-card .count {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clay);
  background: var(--clay-soft);
  padding: 2px 9px;
  border-radius: var(--r-pill);
}

/* ---------- Listing cards --------------------------------------------- */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.listing {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.listing:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.listing__media { position: relative; background: var(--cream-deep); }
.listing__media .tile { border-radius: 0; aspect-ratio: 16 / 10; }
.listing__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--cream-deep);
}
/* Chosen in the admin for logos and square photos: keep the whole image in the
   16:10 frame instead of cropping it. */
.listing__photo--contain {
  object-fit: contain;
  padding: 10px;
}
.badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 1;
}
.badge {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}
.badge--featured { background: var(--gold); color: #3a2708; }
.badge--new { background: var(--clay); color: #fff; }

.save {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.save svg { width: 16px; height: 16px; }
.save:hover { transform: scale(1.06); color: var(--clay); }
.save[aria-pressed="true"] { background: var(--clay); color: #fff; }
.save[aria-pressed="true"] svg { fill: currentColor; }

.listing__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
  flex: 1;
}
.listing__cat {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
}
.listing h3 a:hover { color: var(--clay); }
.listing__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.81rem;
  color: var(--ink-soft);
}
.listing__meta span { display: inline-flex; align-items: center; gap: 5px; }
.listing__meta svg { width: 13px; height: 13px; color: var(--ink-faint); }

/* Short description on every listing card */
.listing__desc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
}
.listing__desc-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.listing__desc p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing__desc p.is-empty { font-style: italic; color: var(--ink-faint); }
.listing__desc.is-open p {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
.listing__desc-toggle {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--clay);
  cursor: pointer;
}
.listing__desc-toggle:hover { text-decoration: underline; }
.listing__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.price-tag { font-family: var(--display); font-size: 1rem; font-weight: 600; }
.price-tag small { font-family: var(--sans); font-size: 0.7rem; color: var(--ink-faint); font-weight: 500; }
.rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
}
.rating svg { width: 13px; height: 13px; fill: var(--gold); color: var(--gold); }

/* ---------- Photo count pill + lightbox gallery ------------------------- */

.photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(18, 21, 23, 0.72);
  color: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.photo-count svg { width: 13px; height: 13px; }
.photo-count:hover { background: rgba(18, 21, 23, 0.88); }
.listing__media img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  background: rgba(9, 11, 12, 0.93);
}
.lightbox.is-open { display: flex; }
.lightbox__stage {
  margin: 0;
  max-width: min(1100px, 100%);
  display: grid;
  gap: 10px;
  justify-items: center;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  border-radius: 14px;
  background: #0f1416;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.lightbox__count {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
}
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@media (max-width: 560px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox__stage img { max-height: 72vh; }
}

/* ---------- Per-listing map (OpenStreetMap) ---------------------------- */

.foot-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.map-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.map-toggle svg { width: 12px; height: 12px; }
.map-toggle:hover { border-color: var(--clay); color: var(--clay); }
.map-toggle[aria-expanded="true"] { background: var(--clay); border-color: var(--clay); color: #fff; }

.listing__map {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: var(--cream-deep);
}
.listing__map.is-open { display: block; }
.listing__map-canvas {
  position: relative;
  height: 210px;
  margin: 14px 14px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.listing__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.listing__map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.listing__map-foot a {
  color: var(--clay);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.listing__map-foot a:hover { text-decoration: underline; }

/* Narrow cards: let the rating sit on its own line so the Map button and the
   phone number keep a full row instead of squeezing together. */
@media (max-width: 430px) {
  .listing__foot {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .foot-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- Filters ---------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.16s ease;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.87rem;
  color: var(--ink-soft);
}
.inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 15px;
  min-width: min(320px, 100%);
}
.inline-search svg { width: 15px; height: 15px; color: var(--ink-faint); flex: none; }
.inline-search input { border: 0; background: transparent; outline: none; font-size: 0.88rem; width: 100%; }
.empty-state {
  display: none;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--ink-soft);
}
.empty-state.is-visible { display: block; }

/* ---------- Steps ------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  display: grid;
  gap: 12px;
  align-content: start;
}
.step__num {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #2b1f08;
}
.step h3 { color: #fff; }
.step p { color: rgba(244, 239, 230, 0.72); font-size: 0.92rem; }
.steps--light .step { background: var(--paper); border-color: var(--line); }
.steps--light .step h3 { color: var(--ink); }
.steps--light .step p { color: var(--ink-soft); }
.steps--light .step__num { background: var(--clay-soft); color: var(--clay-dark); }

/* ---------- Plans ------------------------------------------------------ */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}
.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  display: grid;
  gap: 18px;
  position: relative;
}
.plan--featured {
  background: var(--forest);
  border-color: var(--forest);
  color: #f4efe6;
  box-shadow: var(--shadow-md);
}
.plan__flag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: #2b1f08;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.plan h3 { font-size: 1.35rem; }
.plan__price {
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.plan__price small { font-family: var(--sans); font-size: 0.82rem; font-weight: 500; opacity: 0.65; letter-spacing: 0; }
.plan__list { display: grid; gap: 11px; margin-block: 4px; }
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.plan--featured .plan__list li { color: rgba(244, 239, 230, 0.82); }
.plan__list svg { width: 15px; height: 15px; flex: none; margin-top: 5px; color: var(--clay); }
.plan--featured .plan__list svg { color: var(--gold); }
.plan .btn { width: 100%; }

/* ---------- Quotes ----------------------------------------------------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.quote__stars { display: flex; gap: 3px; color: var(--gold); }
.quote__stars svg { width: 15px; height: 15px; fill: currentColor; }
.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.quote__by { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--clay-soft);
  color: var(--clay-dark);
  flex: none;
}
.quote__by b { display: block; font-size: 0.88rem; }
.quote__by span { font-size: 0.76rem; color: var(--ink-faint); }

/* ---------- CTA band --------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, #1f4b3f 0%, #163329 62%, #0f241c 100%);
  color: #f6f1e8;
  padding: clamp(32px, 5vw, 58px);
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 32px;
  align-items: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(224, 160, 60, 0.35);
  box-shadow: 0 0 0 40px rgba(224, 160, 60, 0.06), 0 0 0 90px rgba(224, 160, 60, 0.04);
  pointer-events: none;
}
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: rgba(246, 241, 232, 0.74); margin-top: 14px; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }

/* ---------- Page header (inner pages) --------------------------------- */

.page-head {
  padding-block: clamp(34px, 5vw, 56px) clamp(26px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--cream-deep), var(--cream));
}
.page-head__inner { display: grid; gap: 18px; max-width: 760px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-weight: 600;
}
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb span { opacity: 0.5; }

/* ---------- Split content --------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}
.split__media { position: relative; }
.media-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.media-stack .tile { border-radius: var(--r-md); }
.media-stack .tile--tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.media-stack .tile:not(.tile--tall) { aspect-ratio: 4 / 3; }
.media-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}
.media-badge b { font-family: var(--display); font-size: 1.35rem; color: var(--clay); }

.split__body { display: grid; gap: 20px; justify-items: start; }
.check-list { display: grid; gap: 12px; }
.check-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.check-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  padding: 4px;
  border-radius: 50%;
  background: var(--clay-soft);
  color: var(--clay-dark);
  margin-top: 1px;
}

/* ---------- Forms ------------------------------------------------------ */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 118px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--forest);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(28, 64, 52, 0.09);
}
.form-note { font-size: 0.78rem; color: var(--ink-faint); }
.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(224, 160, 60, 0.4);
  font-size: 0.86rem;
  font-weight: 600;
}
.form-status.is-visible { display: block; }

/* contact tiles */
.contact-info { display: grid; gap: 12px; }
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.info-row .icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--clay-soft);
  color: var(--clay-dark);
  flex: none;
}
.info-row .icon-box svg { width: 18px; height: 18px; }
.info-row b {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.info-row a, .info-row p { font-weight: 600; font-size: 0.95rem; }
.info-row a:hover { color: var(--clay); }

.map-panel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #d9e6dc, #b9cfc0);
  border: 1px solid var(--line);
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(28, 64, 52, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 64, 52, 0.09) 1px, transparent 1px);
  background-size: 46px 46px;
}
.map-panel > div { position: relative; display: grid; justify-items: center; gap: 10px; }
.map-pin {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--clay);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 10px rgba(207, 86, 48, 0.18);
}
.map-pin svg { width: 20px; height: 20px; }
.map-panel b { font-family: var(--display); font-size: 1.1rem; }

/* live map embed */
.map-panel--live {
  display: block;
  padding: 0;
  text-align: left;
  background: var(--cream-deep);
}
.map-panel--live::before { content: none; }
.map-panel--live iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}
.map-panel__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.map-panel__foot b { font-family: var(--display); font-size: 1.02rem; }
.map-panel__foot .btn { flex: none; }

/* ---------- Value / answer cards --------------------------------------- */

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.value {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  gap: 8px;
  align-content: start;
}
.value b { font-size: 0.97rem; letter-spacing: -0.01em; }
.value p { font-size: 0.88rem; color: var(--ink-soft); }
.value a { color: var(--clay); font-weight: 600; }
.step--wide { grid-column: span 2; }

/* ---------- Plan radio options ----------------------------------------- */

.plan-options { display: grid; gap: 10px; }
.plan-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.plan-option:hover { border-color: var(--ink); background: #fff; }
.plan-option input { accent-color: var(--clay); width: 17px; height: 17px; flex: none; }
.plan-option b { display: block; font-size: 0.92rem; }
.plan-option small { font-size: 0.78rem; color: var(--ink-faint); }
.plan-option:has(input:checked) { border-color: var(--forest); background: #fff; box-shadow: 0 0 0 3px rgba(28, 64, 52, 0.07); }

/* ---------- Marquee ---------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding-block: 16px;
}
.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  font-family: var(--display);
  font-size: 0.98rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.marquee span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay);
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Footer ----------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(244, 239, 230, 0.72);
  padding-block: clamp(44px, 6vw, 68px) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 44px;
}
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: rgba(244, 239, 230, 0.45); }
.footer-about p { margin-top: 16px; font-size: 0.88rem; max-width: 34ch; }
.footer-contact { display: grid; gap: 9px; margin-top: 18px; font-size: 0.88rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { width: 14px; height: 14px; color: var(--gold); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
  margin-bottom: 16px;
  font-weight: 800;
}
.footer-col ul { display: grid; gap: 10px; font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.socials a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.socials svg { width: 15px; height: 15px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(244, 239, 230, 0.45);
}
.footer-bottom a:hover { color: #fff; }
.footer-admin {
  color: rgba(244, 239, 230, 0.34);
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color 0.16s ease;
}
.footer-admin:hover { color: rgba(244, 239, 230, 0.9); }

/* ---------- Reveal animation ------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ------------------------------------------------ */

@media (max-width: 1080px) {
  .nav a { padding-inline: 10px; font-size: 0.86rem; }
  .header-phone { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 380px; order: 2; max-width: 560px; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-row .btn { grid-column: 1 / -1; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px;
    box-shadow: 0 24px 40px -30px rgba(21, 31, 26, 0.7);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 12px 14px; border-radius: 12px; font-size: 0.98rem; }
  .nav a.is-active { background: var(--paper); }
  .nav a.is-active::after { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  #contactGrid, #listingGridWrap { grid-template-columns: 1fr !important; }
  .step--wide { grid-column: span 1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .search-row { grid-template-columns: 1fr; }
  .hero-art { min-height: 330px; }
  .art-card--main { inset: 0 4% 12% 0; padding: 20px; }
  .art-card--main h3 { font-size: 1.4rem; }
  .art-card--float { width: 74%; padding: 12px; }
  .art-card--chip { left: 0; font-size: 0.72rem; padding: 9px 14px; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { padding: 13px; }
  .cat-card .tile { height: 96px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .listing-grid { grid-template-columns: 1fr; }
}


/* --- Where we're listed (city cards) ---------------------------------- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.city-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--forest);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.city-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16,31,24,.88) 0%, rgba(16,31,24,.34) 46%, rgba(16,31,24,0) 76%);
}

.city-card:hover img { transform: scale(1.05); }

.city-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 16px 18px;
  color: #fff;
}

.city-card__body strong {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.city-card__body span {
  display: block;
  margin-top: 3px;
  font-size: .74rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.city-card--more {
  background: linear-gradient(150deg, var(--forest) 0%, var(--forest-soft) 100%);
  border: 1px solid rgba(255,255,255,.14);
}

.city-card--more::after { display: none; }

@media (max-width: 900px) {
  .city-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .city-grid { grid-template-columns: 1fr; }
  .city-card { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Dark theme — whole page turns dark gray when the device is in dark mode.
   Surfaces use the same tokens, so cards, header and forms follow along.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1b1e20;
    --cream-deep: #24282b;
    --paper: #23272a;
    --ink: #eef1f2;
    --ink-soft: #adb5b9;
    --ink-faint: #828b8f;
    --line: #3a4044;
    --line-soft: #2d3235;
    --clay: #e2704a;
    --clay-dark: #c45a35;
    --clay-soft: #3a2721;
    --forest: #101714;
    --forest-soft: #1b2a24;
    --gold: #e6ad4f;
    --gold-soft: #39301d;
  }

  body { background: var(--cream); color: var(--ink); }

  .site-header { background: rgba(27, 30, 32, 0.9); }
  .site-header.is-stuck { background: rgba(27, 30, 32, 0.97); }
  .menu-btn { background: var(--paper); }
  .brand-mark { background: #f2efe9; }

  .chip { background: #2a2f32; }
  .chip:hover { background: #313739; }

  .field,
  .field:hover { background: var(--cream-deep); }
  .field:focus-within { background: #2a3033; }
  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus { background: #2a3033; }

  .plan-option:hover,
  .plan-option:has(input:checked) { background: var(--paper); box-shadow: none; }

  .badge,
  .save { background: rgba(35, 39, 42, 0.92); }

  .btn-outline:hover { background: rgba(255, 255, 255, 0.07); }
  .listing__media { background: var(--cream-deep); }
  .listing:hover { border-color: var(--line); }

  /* elements that paint themselves with the ink token need a fixed dark surface,
     otherwise they turn near-white and their light text disappears */
  .site-footer { background: #121517; }
  .btn-dark { background: #eef1f2; color: #14171a; }
  .btn-dark:hover { background: #ffffff; }
  .filter-btn.is-active { background: var(--clay); border-color: var(--clay); color: #14171a; }
  .plan--featured { background: #121517; }

  /* forest is a dark surface in this theme, so links that use it as a text
     colour (the card phone number) have to switch to the accent colour */
  .link-arrow { color: var(--clay); }
  .link-arrow:hover { color: #f08b66; }

  /* OpenStreetMap ships light tiles; invert them so the map matches the page */
  .listing__map iframe { filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.9); }
}
