/* ==========================================================================
   EasyFurnished — Design System
   One stylesheet for the whole site. Colors live in the :root block below,
   so you can restyle the entire site by changing a handful of values.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. THEME TOKENS
   -------------------------------------------------------------------------- */

:root,
[data-theme="signature"] {
  /* Warm cream + deep emerald + terracotta. Premium but approachable. */
  --bg:            #FBF8F4;
  --bg-alt:        #F4EEE5;
  --surface:       #FFFFFF;
  --surface-2:     #F7F2EB;
  --ink:           #1C1B19;
  --ink-2:         #5E5851;
  --ink-3:         #8C857C;
  --line:          #E7DFD3;
  --line-strong:   #D6CBB9;
  --brand:         #0F6B57;
  --brand-dark:    #0A4C3E;
  --brand-soft:    #E4F0EC;
  --accent:        #B25335;   /* sampled straight from the logo artwork */
  --accent-soft:   #F7EBE5;
  --ink-on-brand:  #FFFFFF;
  --shadow-sm:     0 1px 2px rgba(28,27,25,.06), 0 1px 3px rgba(28,27,25,.05);
  --shadow-md:     0 4px 6px -1px rgba(28,27,25,.07), 0 12px 24px -8px rgba(28,27,25,.10);
  --shadow-lg:     0 12px 20px -8px rgba(28,27,25,.12), 0 32px 56px -16px rgba(28,27,25,.16);
  --radius:        14px;
  --radius-sm:     9px;
  --radius-lg:     22px;
  --font-display:  'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-ui:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display-wght:  600;
  --hero-overlay:  linear-gradient(180deg, rgba(10,42,35,.10) 0%, rgba(10,42,35,.55) 100%);
}

[data-theme="clean"] {
  /* White + confident blue. Reads like a big listings portal. */
  --bg:            #FFFFFF;
  --bg-alt:        #F4F7FB;
  --surface:       #FFFFFF;
  --surface-2:     #F4F7FB;
  --ink:           #0E1729;
  --ink-2:         #4A5568;
  --ink-3:         #7B879B;
  --line:          #E2E8F0;
  --line-strong:   #CBD5E1;
  --brand:         #1552F0;
  --brand-dark:    #0F3DB8;
  --brand-soft:    #E8EFFE;
  --accent:        #0E9F6E;
  --accent-soft:   #E4F6EE;
  --ink-on-brand:  #FFFFFF;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     18px;
  --font-display:  'Plus Jakarta Sans', -apple-system, sans-serif;
  --display-wght:  800;
  --hero-overlay:  linear-gradient(180deg, rgba(8,18,40,.12) 0%, rgba(8,18,40,.58) 100%);
}

[data-theme="bold"] {
  /* Near-black + electric coral. Young, high contrast, memorable. */
  --bg:            #FFFFFF;
  --bg-alt:        #F5F3F0;
  --surface:       #FFFFFF;
  --surface-2:     #F5F3F0;
  --ink:           #0A0A0A;
  --ink-2:         #4A4A4A;
  --ink-3:         #808080;
  --line:          #E4E1DC;
  --line-strong:   #C9C4BC;
  --brand:         #0A0A0A;
  --brand-dark:    #000000;
  --brand-soft:    #F0EEEA;
  --accent:        #FF4F2B;
  --accent-soft:   #FFEDE8;
  --ink-on-brand:  #FFFFFF;
  --radius:        6px;
  --radius-sm:     4px;
  --radius-lg:     10px;
  --font-display:  'Plus Jakarta Sans', -apple-system, sans-serif;
  --display-wght:  800;
  --hero-overlay:  linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.62) 100%);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-wght);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. LAYOUT HELPERS
   -------------------------------------------------------------------------- */

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .75rem;
  font-family: var(--font-ui);
}

/* --------------------------------------------------------------------------
   4. BUTTONS & CONTROLS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-ui);
  font-size: .95rem; font-weight: 650;
  padding: .78rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  text-decoration: none !important;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: var(--ink-on-brand); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { filter: brightness(.93); box-shadow: var(--shadow-md); }

.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); background: var(--surface); }

.btn-ghost { background: transparent; color: var(--ink-2); padding: .5rem .75rem; }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }

.btn-block { width: 100%; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Form fields */
.field { margin-bottom: 1.1rem; }
.field label, .label {
  display: block; font-size: .84rem; font-weight: 650;
  color: var(--ink); margin-bottom: .38rem;
}
.field .hint { font-size: .78rem; color: var(--ink-3); margin-top: .3rem; }
.req { color: var(--accent); }

input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=password], input[type=url],
select, textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: .68rem .8rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E5851' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  padding-right: 2.2rem;
}
textarea { min-height: 110px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
input.invalid, select.invalid, textarea.invalid {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Checkbox / radio chips */
.choice-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: .875rem; cursor: pointer; background: var(--surface);
  transition: all .14s ease; user-select: none;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--ink-3); }
.choice:has(input:checked) {
  border-color: var(--brand); background: var(--brand-soft);
  color: var(--brand-dark); font-weight: 650;
}
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

.check {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .875rem; color: var(--ink-2); line-height: 1.5; cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }

/* --------------------------------------------------------------------------
   5. HEADER / NAV
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }

/* Logo — assets/img/logo-horizontal.svg. Height is the only thing you set;
   width follows the artwork's own 4.5:1 ratio. */
.logo { display: inline-flex; align-items: center; text-decoration: none !important; flex: none; }
.logo img { height: 38px; width: auto; display: block; }
.admin-bar   .logo img { height: 30px; }
.site-footer .logo img { height: 34px; }
.login-card  .logo img { height: 40px; }
@media (max-width: 520px) { .logo img { height: 30px; } }

.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav a {
  color: var(--ink-2); font-size: .92rem; font-weight: 550;
  padding: .5rem .8rem; border-radius: var(--radius-sm); text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--brand); font-weight: 700; }

/* Buttons inside the nav must keep their own colours, not the nav link colours */
.nav a.btn { margin-left: .5rem; font-weight: 650; }
.nav a.btn-primary,
.nav a.btn-primary:hover { color: var(--ink-on-brand); background: var(--brand); }
.nav a.btn-primary:hover { background: var(--brand-dark); }
.nav a.btn-accent,
.nav a.btn-accent:hover { color: #fff; background: var(--accent); }
.nav a.btn-outline,
.nav a.btn-outline:hover { color: var(--ink); background: var(--surface); }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem 20px 1.5rem; gap: .25rem; box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: .8rem .6rem; font-size: 1rem; }
  .nav .btn { margin: .5rem 0 0; }
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */

.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(20px, 3vw, 36px); overflow: hidden; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 420px at 82% -8%, var(--brand-soft) 0%, transparent 62%),
    radial-gradient(700px 340px at 4% 8%, var(--accent-soft) 0%, transparent 58%);
  opacity: .9;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: .55rem; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 1.6rem; }

.trust-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: var(--display-wght); line-height: 1; }
.trust-item span { font-size: .8rem; color: var(--ink-3); margin-top: .3rem; }

.hero-art {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; background: var(--surface-2);
}
.hero-art img, .hero-art svg { width: 100%; height: 100%; object-fit: cover; }

/* Search bar */
.searchbar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: .55rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: .4rem;
  margin-top: 2rem;
}
.searchbar .sb-cell { padding: .5rem .75rem; border-radius: var(--radius-sm); }
.searchbar .sb-cell + .sb-cell { border-left: 1px solid var(--line); }
.searchbar label { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); margin-bottom: .15rem; }
.searchbar select, .searchbar input {
  border: none; padding: 0; font-size: .95rem; font-weight: 600; background: transparent; box-shadow: none !important;
}
.searchbar select { padding-right: 1.4rem; background-position: right .1rem center; width: 100%; text-overflow: ellipsis; }
.searchbar .btn { align-self: stretch; }
@media (max-width: 820px) {
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .sb-cell + .sb-cell { border-left: none; }
  .searchbar .btn { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   7. LISTING CARDS
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.listing-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.listing-card:hover .card-media img { transform: scale(1.045); }
.card-media a { display: block; height: 100%; }

.badge-row { position: absolute; top: 12px; left: 12px; display: flex; gap: .4rem; flex-wrap: wrap; z-index: 2; }
.badge {
  font-size: .68rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
  padding: .34rem .6rem; border-radius: 999px; background: rgba(255,255,255,.94);
  color: var(--ink); backdrop-filter: blur(4px); box-shadow: var(--shadow-sm);
}
.badge-featured { background: var(--accent); color: #fff; }
.badge-available { background: var(--brand); color: var(--ink-on-brand); }
.badge-pending { background: #B7791F; color: #fff; }
.badge-rented { background: #4A4A4A; color: #fff; }

.photo-count {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  font-size: .72rem; font-weight: 600; padding: .3rem .55rem; border-radius: 999px;
  background: rgba(20,20,20,.7); color: #fff; backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: .3rem;
}

.card-body { padding: 18px 18px 0; flex: 1; }
.card-price {
  display: flex; align-items: baseline; gap: .35rem; margin-bottom: .3rem;
}
.card-price strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--display-wght); letter-spacing: -.02em; }
.card-price span { font-size: .82rem; color: var(--ink-3); font-weight: 600; }

.card-title { font-family: var(--font-ui); font-size: 1.02rem; font-weight: 650; margin: 0 0 .2rem; line-height: 1.35; letter-spacing: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); text-decoration: none; }
.card-loc { font-size: .85rem; color: var(--ink-2); display: flex; align-items: center; gap: .3rem; margin-bottom: .75rem; }

.spec-row {
  display: flex; flex-wrap: wrap; gap: .35rem .5rem; font-size: .8rem; color: var(--ink-2);
  padding-top: .75rem; border-top: 1px solid var(--line);
}
.spec { display: inline-flex; align-items: center; gap: .28rem; }
.spec + .spec::before { content: '·'; color: var(--line-strong); margin-right: .22rem; }

.card-meta {
  display: flex; justify-content: space-between; gap: .5rem; align-items: center;
  font-size: .78rem; color: var(--ink-3); margin-top: .6rem;
}
.card-actions { display: flex; gap: .5rem; padding: 14px 18px 18px; }
.card-actions .btn { flex: 1; }

/* --------------------------------------------------------------------------
   8. FILTER SIDEBAR (listings page)
   -------------------------------------------------------------------------- */

.listings-layout { display: grid; grid-template-columns: 276px 1fr; gap: 32px; align-items: start; }
@media (max-width: 940px) { .listings-layout { grid-template-columns: 1fr; } }

.filters {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; position: sticky; top: 92px;
}
@media (max-width: 940px) { .filters { position: static; } }
.filters h3 { font-family: var(--font-ui); font-size: .95rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0; }
.filter-group { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: none; }

.results-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 20px;
}
.results-bar .count { font-size: .95rem; color: var(--ink-2); }
.results-bar .count b { color: var(--ink); }

/* --------------------------------------------------------------------------
   9. LISTING DETAIL
   -------------------------------------------------------------------------- */

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 150px; gap: 10px; border-radius: var(--radius-lg); overflow: hidden; }
.gallery > * { overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.gallery > *:first-child { grid-row: span 2; grid-column: span 1; }
.gallery img, .gallery svg { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery > *:hover img { opacity: .9; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .gallery > *:first-child { grid-column: span 2; grid-row: span 2; }
}

.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; margin-top: 34px; }
@media (max-width: 980px) { .detail-layout { grid-template-columns: 1fr; gap: 28px; } }

.book-card {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-md);
  position: sticky; top: 92px;
}
@media (max-width: 980px) { .book-card { position: static; } }
.book-price { display: flex; align-items: baseline; gap: .4rem; }
.book-price strong { font-family: var(--font-display); font-size: 2.1rem; font-weight: var(--display-wght); letter-spacing: -.03em; }
.book-price span { color: var(--ink-3); font-size: .9rem; font-weight: 600; }

.cost-list { list-style: none; padding: 0; margin: 1.1rem 0; font-size: .9rem; }
.cost-list li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--line); gap: 1rem; }
.cost-list li:last-child { border-bottom: none; }
.cost-list li span:first-child { color: var(--ink-2); }
.cost-list li span:last-child { font-weight: 650; text-align: right; }
.cost-list li.total { border-top: 2px solid var(--ink); border-bottom: none; margin-top: .3rem; padding-top: .7rem; }
.cost-list li.total span { font-weight: 750; font-size: 1rem; }

/* gap:1px + an outline on each cell draws the dividers without leaving an
   odd-coloured hole when the last row is only partly filled */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--surface); padding: 16px; outline: 1px solid var(--line); }
.fact dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; margin-bottom: .25rem; }
.fact dd { margin: 0; font-size: .98rem; font-weight: 600; }

.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem 1rem; list-style: none; padding: 0; margin: 0; }
.amenity-grid li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--ink-2); }
.amenity-grid svg { color: var(--brand); flex: none; }

.detail-section { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); }
.detail-section:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.detail-section h2 { font-size: 1.35rem; margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   10. SLIDE-OVER FORM (tenant application)
   -------------------------------------------------------------------------- */

.overlay {
  position: fixed; inset: 0; background: rgba(20,18,16,.5);
  backdrop-filter: blur(3px); z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.slideover {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  height: 100dvh;               /* dvh keeps it correct when mobile browser bars hide */
  max-height: 100%;
  background: var(--bg); z-index: 201; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .3s cubic-bezier(.32,.72,0,1);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.slideover.open { transform: none; }

.so-head {
  padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: flex-start; gap: 1rem; flex: none;
}
.so-head h2 { font-size: 1.15rem; margin: 0 0 .15rem; font-family: var(--font-ui); font-weight: 700; letter-spacing: 0; }
.so-head p { margin: 0; font-size: .84rem; color: var(--ink-2); }
.so-close {
  margin-left: auto; flex: none; background: var(--surface-2); border: 1px solid var(--line);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  color: var(--ink-2); display: grid; place-items: center; line-height: 1;
}
.so-close:hover { background: var(--line); color: var(--ink); }

.progress { height: 3px; background: var(--line); flex: none; }
.progress > i { display: block; height: 100%; background: var(--brand); width: 25%; transition: width .3s ease; }

/* The form sits between the header and the footer and must itself be a flex
   column, otherwise .so-body below can't be told how tall it is — and an
   element with no constrained height never scrolls, it just overflows. */
.slideover form {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* min-height:0 is what actually permits scrolling here: flex items default to
   min-height:auto, which refuses to shrink below their content. */
.so-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px; -webkit-overflow-scrolling: touch; }
.so-foot {
  padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface);
  display: flex; gap: .75rem; align-items: center; flex: none;
}
.so-foot .step-label { font-size: .8rem; color: var(--ink-3); font-weight: 600; margin-right: auto; }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .28s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-step > h3 { font-family: var(--font-ui); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; margin-bottom: .25rem; }
.form-step > .step-intro { font-size: .86rem; color: var(--ink-2); margin-bottom: 1.4rem; }

.mini-listing {
  display: flex; gap: .8rem; align-items: center; padding: 12px;
  background: var(--surface-2); border-radius: var(--radius-sm); margin-bottom: 1.5rem;
}
.mini-listing .thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex: none; background: var(--line); }
.mini-listing .thumb img, .mini-listing .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.mini-listing b { display: block; font-size: .9rem; line-height: 1.3; }
.mini-listing small { color: var(--ink-2); font-size: .8rem; }

.success-panel { text-align: center; padding: 40px 20px; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin: 0 auto 1.2rem;
}

/* --------------------------------------------------------------------------
   11. PHOTO UPLOADER
   -------------------------------------------------------------------------- */

.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  padding: 32px 20px; text-align: center; background: var(--surface-2);
  cursor: pointer; transition: all .16s ease;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone svg { color: var(--ink-3); margin-bottom: .6rem; }
.dropzone.dragover svg { color: var(--brand); }
.dropzone b { display: block; font-size: .95rem; }
.dropzone small { color: var(--ink-3); font-size: .82rem; }

.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb-item {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item .rm {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; border: none; cursor: pointer; font-size: .9rem;
  display: grid; place-items: center; line-height: 1;
}
.thumb-item .rm:hover { background: #C0392B; }
.thumb-item .cover-tag {
  position: absolute; bottom: 0; left: 0; right: 0; background: var(--brand); color: var(--ink-on-brand);
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  text-align: center; padding: 3px;
}
.thumb-item .set-cover {
  position: absolute; bottom: 4px; left: 4px; font-size: .62rem; padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,.9); border: none; cursor: pointer; font-weight: 650; opacity: 0; transition: opacity .15s;
}
.thumb-item:hover .set-cover { opacity: 1; }
.thumb-item .uploading {
  position: absolute; inset: 0; background: rgba(255,255,255,.75); display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: var(--brand);
}

/* --------------------------------------------------------------------------
   12. ADMIN
   -------------------------------------------------------------------------- */

.admin-shell { min-height: 100vh; background: var(--bg-alt); }
.admin-bar {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 0 20px; display: flex; align-items: center; gap: 1rem; height: 62px;
  position: sticky; top: 0; z-index: 50;
}
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tab {
  padding: .8rem 1.1rem; border: none; background: none; cursor: pointer; white-space: nowrap;
  font-family: var(--font-ui); font-size: .92rem; font-weight: 600; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.tab .pill {
  display: inline-block; margin-left: .4rem; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 700; padding: .1rem .4rem; border-radius: 999px;
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel + .panel { margin-top: 20px; }
.panel > h3 { font-family: var(--font-ui); font-size: 1.05rem; letter-spacing: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 720px; }
table.data th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-3); font-weight: 700; padding: 12px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }

.status-chip {
  display: inline-block; font-size: .7rem; font-weight: 700; padding: .22rem .55rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.status-new { background: var(--accent-soft); color: var(--accent); }
.status-contacted { background: var(--brand-soft); color: var(--brand-dark); }
.status-closed { background: var(--surface-2); color: var(--ink-3); }

.login-card {
  max-width: 400px; margin: 12vh auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   13. MISC BLOCKS
   -------------------------------------------------------------------------- */

.step-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: grid; place-items: center; margin-bottom: 1rem;
}
.step-card h3 { font-family: var(--font-ui); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; margin-bottom: .35rem; }
.step-card p { font-size: .9rem; color: var(--ink-2); margin: 0; }

.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.city-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: all .16s ease; display: block; color: inherit; text-decoration: none !important;
}
.city-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.city-card b { display: block; font-size: 1rem; font-weight: 700; }
.city-card .state { font-size: .74rem; color: var(--ink-3); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.city-card p { font-size: .82rem; color: var(--ink-2); margin: .5rem 0 0; line-height: 1.45; }

.cta-band {
  background: var(--brand); color: var(--ink-on-brand); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center;
}
[data-theme="bold"] .cta-band { background: var(--ink); }
.cta-band h2 { color: inherit; margin-bottom: .35rem; }
.cta-band p { color: color-mix(in srgb, var(--ink-on-brand) 82%, transparent); margin: 0; max-width: 52ch; }
.cta-band .btn-outline { background: var(--ink-on-brand); color: var(--brand-dark); border-color: transparent; }
[data-theme="bold"] .cta-band .btn-outline { color: var(--ink); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 0; font-weight: 650; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--ink-3); font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--ink-2); font-size: .93rem; padding-bottom: 1.1rem; margin: 0; max-width: 68ch; }

.notice {
  padding: 14px 16px; border-radius: var(--radius-sm); font-size: .88rem;
  border: 1px solid; display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5;
}
.notice-info  { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); color: var(--brand-dark); }
.notice-warn  { background: #FEF6E7; border-color: #F0C36D; color: #7A5B12; }
.notice-error { background: #FDECEA; border-color: #F0A79E; color: #9B2C1E; }
/* success stays green in every theme — the brand colour isn't always green */
.notice-ok    { background: #E6F4EC; border-color: #9CCFB4; color: #14603F; }
.notice a { color: inherit; text-decoration: underline; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty-state svg { color: var(--line-strong); margin-bottom: 1rem; }
.empty-state h3 { font-family: var(--font-ui); font-size: 1.1rem; letter-spacing: 0; }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--radius); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-card { height: 380px; }

.spinner {
  width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; display: inline-block; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Demo-mode ribbon */
.demo-ribbon {
  background: var(--ink); color: #fff; font-size: .8rem; text-align: center;
  padding: .55rem 20px; font-weight: 600;
}
.demo-ribbon a { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-ui); font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); font-weight: 700; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: var(--ink-2); font-size: .9rem; }
.footer-grid a:hover { color: var(--brand); }
.footer-about p { font-size: .9rem; color: var(--ink-2); max-width: 34ch; margin-top: .9rem; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-3);
}

/* Print */
@media print {
  .site-header, .site-footer, .card-actions, .slideover, .overlay { display: none !important; }
}
