/* Lawton Rentals: public pages and admin share these tokens.
   The one loud thing is the yellow rent tag; everything else stays quiet. */

:root {
  --ink: #18202B;
  --slate: #586474;
  --paper: #FFFFFF;
  --mist: #EEF2F5;
  --line: #D5DCE3;
  --sign: #FFC933;
  --sign-deep: #E0A800;
  --focus: #1D5FD1;
  --danger: #B42318;
  --ok: #1E7A46;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);

  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Header / footer ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: var(--step-1);
  letter-spacing: -0.01em; text-decoration: none;
}
.call {
  font-weight: 700; text-decoration: none;
  padding: 0.5rem 0.9rem; border: 2px solid var(--ink); border-radius: 999px;
}
.call:hover { background: var(--ink); color: var(--paper); }

.foot {
  margin-top: 5rem; padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--slate); font-size: var(--step--1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
}

/* ---------- Listings page ---------- */
.intro { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.25rem); max-width: 46rem; }
.intro h1 {
  font-family: var(--display); font-size: var(--step-3); font-weight: 700;
  line-height: 1.02; letter-spacing: -0.03em;
}
.count { margin-top: 1rem; font-size: var(--step-1); color: var(--slate); }

.homes {
  display: grid; gap: 3.25rem clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
}
.home-link { display: block; text-decoration: none; }
.home-photo {
  position: relative; aspect-ratio: 4 / 3; background: var(--mist);
  border-radius: 4px;
}
.home-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.home-photo .no-photo {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--slate); font-size: var(--step--1);
}

/* The rent tag: a yellow sign stapled to the bottom of the photo */
.tag {
  display: inline-flex; align-items: baseline; gap: 0.2rem;
  background: var(--sign); color: var(--ink);
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  padding: 0.35rem 0.75rem 0.4rem; border-radius: 3px;
  box-shadow: 0 2px 0 var(--sign-deep);
}
.tag small { font-family: var(--body); font-weight: 700; font-size: 0.55em; letter-spacing: 0; }
.home-photo .tag {
  position: absolute; left: 1rem; bottom: -1.1rem;
  font-size: var(--step-2); line-height: 1.1;
  transform: rotate(-1.5deg);
}
.home-link:hover .tag { transform: rotate(0deg); }
@media (prefers-reduced-motion: no-preference) {
  .home-photo .tag { transition: transform 0.2s ease; }
}

.status {
  position: absolute; left: 0.75rem; top: 0.75rem;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); color: var(--ink);
  font-size: var(--step--1); font-weight: 700;
}
.status.is-ready::before {
  content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.4rem;
  border-radius: 50%; background: var(--ok); vertical-align: 0.05em;
}

.home-text { padding-top: 1.85rem; }
.home-specs { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-weight: 700; }
.home-specs li { display: inline-flex; align-items: center; gap: 0.35rem; }
.home-specs svg {
  width: 1.15rem; height: 1.15rem; fill: none; stroke: var(--slate);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.home-address { margin-top: 0.4rem; font-size: var(--step-1); line-height: 1.3; }
.home-link:hover .home-address { text-decoration: underline; }
.home-area { color: var(--slate); font-size: var(--step--1); }

.filters {
  display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1.25rem;
  margin-bottom: 2.5rem; padding: 1rem 1.25rem; background: var(--mist); border-radius: 4px;
}
.filters label { display: grid; gap: 0.25rem; font-size: var(--step--1); font-weight: 700; }
.filters select { width: auto; min-width: 7.5rem; padding: 0.5rem 0.6rem; }
.filters .check { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.55rem; }
.filters .check input { width: 1.15rem; height: 1.15rem; accent-color: var(--ink); }
.filters .btn { padding: 0.45rem 0.9rem; }
#no-match { margin-top: 1rem; }

.empty {
  max-width: 34rem; padding: 2rem; background: var(--mist); border-radius: 4px;
  font-size: var(--step-1);
}

/* ---------- Single home page ---------- */
.back { display: inline-block; margin-top: 1.5rem; color: var(--slate); }
.home-page {
  display: grid; gap: 2.5rem clamp(2rem, 4vw, 4rem); margin-top: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}
/* Phones: photos, then details and form, then description.
   Wide screens: details and form in a column on the right. */
@media (min-width: 60rem) {
  .home-page {
    grid-template-columns: minmax(0, 1.65fr) minmax(20rem, 1fr);
    grid-template-areas: "gallery side" "about side";
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  .gallery { grid-area: gallery; }
  .about { grid-area: about; }
  .side { grid-area: side; position: sticky; top: 1.5rem; }
}
.gallery-main { aspect-ratio: 3 / 2; background: var(--mist); border-radius: 4px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; overflow-x: auto; padding-bottom: 0.3rem; }
.thumbs button {
  flex: 0 0 auto; width: 6.5rem; aspect-ratio: 4 / 3; padding: 0; border: 0;
  border-radius: 3px; overflow: hidden; cursor: pointer; opacity: 0.6; background: var(--mist);
}
.thumbs button[aria-current="true"] { opacity: 1; outline: 3px solid var(--ink); outline-offset: -3px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.side h1 {
  font-family: var(--display); font-weight: 700; font-size: var(--step-2);
  line-height: 1.1; letter-spacing: -0.02em;
}
.side .area { color: var(--slate); margin-top: 0.25rem; }
.side .tag { font-size: var(--step-2); margin-top: 1.25rem; }
.facts {
  display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.5rem;
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.facts dt { color: var(--slate); }
.facts dd { font-weight: 700; }

.about { max-width: 42rem; }
.about h2, .inquire h2 {
  font-family: var(--display); font-weight: 700; font-size: var(--step-1); margin-bottom: 0.6rem;
}
.about p { white-space: pre-line; }
.about h2 + p, .about ul { margin-bottom: 2rem; }
.features { display: grid; gap: 0.3rem; }
.features li { padding-left: 1.2rem; position: relative; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 0.5rem; height: 0.5rem; background: var(--sign); border: 1px solid var(--sign-deep);
}

/* ---------- Forms (inquiry and admin) ---------- */
.inquire { margin-top: 2rem; padding: 1.5rem; background: var(--mist); border-radius: 4px; }
.field { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: var(--step--1); }
.field .hint { color: var(--slate); font-size: var(--step--1); font-weight: 400; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="date"], input[type="password"], textarea, select {
  width: 100%; padding: 0.65rem 0.75rem;
  background: var(--paper); border: 1px solid #A9B4C0; border-radius: 4px;
}
textarea { min-height: 7rem; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border: 2px solid var(--ink); border-radius: 4px;
  background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #2C3747; border-color: #2C3747; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--mist); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #FDECEA; }
.btn:disabled { opacity: 0.55; cursor: wait; }
.note { margin-top: 0.75rem; font-size: var(--step--1); }
.note.error { color: var(--danger); font-weight: 700; }
.note.ok { color: var(--ok); font-weight: 700; }
.bot-field { position: absolute; left: -9999px; }

@media (max-width: 30rem) {
  .call { padding: 0.4rem 0.7rem; font-size: var(--step--1); }
}
