:root {
  --page: #344154;
  --surface: #172235;
  --surface-soft: #26364b;
  --ink: #f4f7fb;
  --ink-soft: #c7d0dc;
  --muted: #8fa0b4;
  --line: rgba(141, 161, 184, 0.22);
  --accent: #18beb5;
  --accent-dark: #0ea69d;
  --accent-soft: rgba(24, 190, 181, 0.14);
  --green: #18beb5;
  --blue-gray: #dce6f2;
  --shadow: 0 22px 70px rgba(7, 13, 24, 0.3);
  --container: min(1120px, calc(100vw - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

main {
  width: min(calc(var(--container) + 80px), 100%);
  margin: 0 auto;
  padding-inline: 40px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

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

a { color: inherit; text-decoration: none; }

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Shared: constrained container ── */
.service-intro,
.about,
.contact,
.site-footer,
.service-grid,
.listings-hero,
.listings-filter,
.listings-grid,
.legal-page,
.waitlist,
.expose-topbar,
.expose-layout,
.expose-similar {
  width: var(--container);
  margin: 0 auto;
}

/* ── Shared: accent hover card ── */
.service-card:hover,
.facts div:hover,
.contact-panel a:hover,
.listing-card:hover {
  background: #1d2f45;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(24, 190, 181, 0.12), 0 16px 48px rgba(7, 13, 24, 0.4);
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 56px);
  height: 64px;
  background: rgba(23, 34, 53, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(7, 13, 24, 0.45);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 96px;
  height: 48px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.site-nav a {
  padding: 6px 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.site-nav a.nav-active { color: var(--accent); }

.nav-phone,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  font-size: 13.5px;
  font-weight: 700;
}

.nav-phone {
  padding: 0 14px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}

.nav-phone:hover { border-color: var(--accent); background: var(--accent-soft); }

.nav-phone svg,
.button svg {
  width: 18px;
  height: 18px;
}

.nav-login-link {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 4px 12px !important;
  border-radius: 4px;
  transition: background 0.15s !important;
}
.nav-login-link:hover { background: var(--accent-soft) !important; }

.nav-admin-link { color: var(--accent) !important; }

.nav-logout-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.nav-logout-btn:hover { color: #e05555; border-color: #e05555; }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle { display: none; }

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100svh - 64px);
  padding: 46px 0 72px;
}

.hero-copy { max-width: 610px; }

.hero h1,
.service-intro h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.service-intro h2,
.about h2,
.contact h2 { font-size: clamp(36px, 5vw, 64px); }

.hero h1 {
  max-width: 11ch;
  font-size: clamp(52px, 7vw, 88px);
}

.hero-lede {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button { padding: 0 18px; }

.button-primary { background: var(--accent); color: #062022; }
.button-primary:hover { background: var(--accent-dark); }

.button-secondary { border-color: var(--line); background: rgba(23, 34, 53, 0.58); color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual {
  position: relative;
  min-height: 585px;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(10, 17, 29, 0) 40%, rgba(10, 17, 29, 0.68) 100%),
    linear-gradient(90deg, rgba(52, 65, 84, 0.18), rgba(52, 65, 84, 0));
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 585px;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: grid;
  gap: 4px;
  max-width: 440px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(23, 34, 53, 0.92);
  color: var(--ink);
}

.hero-note strong { font-size: 18px; }
.hero-note span { color: var(--ink-soft); font-size: 14px; }

/* ── Services ── */

.service-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 72px 0 28px;
}

.service-intro p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.text-link {
  flex: 0 0 auto;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 750;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 0 82px;
}

.service-card {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  padding: 30px 24px;
  border-top: 2px solid var(--accent);
  background: var(--surface-soft);
  box-shadow: 0 8px 32px rgba(7, 13, 24, 0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.service-card:nth-child(even) { background: #18263a; }

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 { margin: 26px 0 10px; font-size: 23px; line-height: 1.15; }
.service-card p { margin: 0; color: var(--ink-soft); }

.service-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 14px;
  list-style: none;
}

.service-card li { position: relative; padding-left: 18px; }

.service-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--accent);
  content: "";
}

/* ── About ── */

.about {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.about-image { min-height: 470px; overflow: hidden; background: var(--surface-soft); }

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.about-copy p {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
}

.facts div {
  padding: 28px;
  border-top: 2px solid var(--accent);
  background: var(--surface-soft);
  box-shadow: 0 8px 32px rgba(7, 13, 24, 0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.facts dd {
  margin: 8px 0 0;
  color: var(--green);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

/* ── Contact ── */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.14fr);
  gap: 46px;
  align-items: start;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.contact-copy p {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.contact-panel { display: grid; gap: 12px; margin: 0; font-style: normal; }

.contact-panel a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 22px 24px;
  border-top: 2px solid var(--accent);
  background: var(--surface-soft);
  box-shadow: 0 8px 32px rgba(7, 13, 24, 0.3);
  color: var(--ink);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.contact-panel svg { width: 26px; height: 26px; color: var(--accent); }

.contact-panel small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

/* ── Footer ── */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.footer-link { color: inherit; }

/* ── Listings (verkauf & vermietung) ── */

.listings-hero { padding: 64px 0 48px; }

.listings-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
}

.listings-hero p { margin: 18px 0 0; color: var(--ink-soft); font-size: 18px; max-width: 620px; }

.listings-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 32px;
}

.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 16px 18px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 140px;
}

.filter-field-wide { flex: 2; min-width: 200px; }

.filter-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filter-field input,
.filter-field select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13.5px;
  padding: 7px 10px;
  font-family: inherit;
  height: 36px;
  transition: border-color 0.15s;
}

.filter-field input:focus,
.filter-field select:focus { outline: none; border-color: var(--accent); }

.filter-field input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.filter-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  align-self: flex-end;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.filter-reset-btn:hover { color: #e05555; border-color: #e05555; }
.filter-reset-btn svg { width: 14px; height: 14px; }

.filter-count { font-size: 13px; color: var(--muted); min-height: 18px; }

.listing-img-empty {
  height: 100%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}

.listing-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 0;
  color: var(--muted);
  font-size: 14px;
}

.listing-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 32px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.listing-empty svg { width: 40px; height: 40px; color: var(--line); }
.listing-empty p { margin: 0; line-height: 1.6; }

.text-link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 80px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
  border-top: 2px solid var(--accent);
  box-shadow: 0 8px 32px rgba(7, 13, 24, 0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.listing-img { position: relative; height: 220px; overflow: hidden; background: var(--surface); }

.listing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.listing-card:hover .listing-img img { transform: scale(1.03); }

.listing-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  background: var(--accent);
  color: #062022;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.listing-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }

.listing-price { font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1; margin: 0 0 14px; }
.listing-price small { font-size: 14px; font-weight: 400; color: var(--muted); }

.listing-title { font-size: 17px; font-weight: 650; margin: 0 0 6px; color: var(--ink); }

.listing-location {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.listing-location svg { width: 13px; height: 13px; flex-shrink: 0; }

.listing-meta {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.listing-meta span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-soft); }
.listing-meta svg { width: 14px; height: 14px; color: var(--muted); }

.listing-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-height: 360px;
  background: var(--surface-soft);
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.listing-placeholder svg { width: 36px; height: 36px; color: var(--line); }

/* ── Waitlist ── */

.waitlist { padding: 56px 0 80px; border-top: 1px solid var(--line); }

.waitlist-head { margin-bottom: 36px; }
.waitlist-head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.1; }
.waitlist-head p { margin: 12px 0 0; color: var(--ink-soft); font-size: 17px; }

.waitlist-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.waitlist-form .full { grid-column: 1 / -1; }

.form-field { display: flex; flex-direction: column; gap: 7px; }

.form-field label {
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.form-field input,
.form-field textarea {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.form-field textarea { resize: vertical; min-height: 110px; }

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  border-top-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }

.waitlist-actions { display: flex; justify-content: flex-end; }
.waitlist-submit { margin-top: 4px; }

.btn-icon { width: 18px; height: 18px; }
.btn-icon-sm-svg { width: 16px; height: 16px; }

/* ── Impressum ── */

.legal-page { padding: 72px 0 96px; }

.legal-page h1 { margin: 0 0 56px; font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1.02; }

.legal-section { padding: 36px 0; border-top: 1px solid var(--line); }
.legal-section:last-child { border-bottom: 1px solid var(--line); }

.legal-section h2 {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-section p,
.legal-section address {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  font-style: normal;
  line-height: 1.7;
}

.legal-section a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
.legal-section a:hover { border-bottom-color: var(--accent); }

.placeholder { color: var(--muted); font-style: italic; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.18s ease;
}

.back-link:hover { color: var(--accent); }
.back-link svg { width: 16px; height: 16px; }

/* ── Admin ── */

.is-admin { overflow-x: hidden; }
.is-admin main { width: 100%; max-width: 100%; padding-inline: 0; }

/* Verhindert Auto-Zoom auf Input-Felder in iOS (font-size ≥ 16px) */
.is-admin .field input,
.is-admin .field select,
.is-admin .field textarea { font-size: max(16px, 1em); }

/* ── Dashboard ── */
.dash-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.dash-date { font-size: 13px; color: var(--muted); }

.dash-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 28px; }
.dash-kpi { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.dash-kpi:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.dash-kpi--warn .dash-kpi-value { color: #f87171; }
.dash-kpi-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-kpi-icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-kpi-icon--teal   { background: var(--accent); }
.dash-kpi-icon--blue   { background: #3b82f6; }
.dash-kpi-icon--indigo { background: #6366f1; }
.dash-kpi-icon--amber  { background: #f59e0b; }
.dash-kpi-icon--red    { background: #ef4444; }
.dash-kpi-value { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; }
.dash-kpi-label { font-size: 10px; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }

.dash-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }

.dash-quick-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-quick-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color .15s, color .15s; }
.dash-quick-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-quick-btn:hover { border-color: var(--accent); color: var(--accent); }

.dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@media (max-width: 720px) {
  .dash-two-col { grid-template-columns: 1fr; }
  .dash-header { flex-direction: column; gap: 4px; margin-bottom: 16px; }
  .dash-kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
  .dash-kpi { padding: 12px; gap: 10px; }
  .dash-kpi-icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
  .dash-kpi-icon svg { width: 16px; height: 16px; }
  .dash-kpi-value { font-size: 20px; }
  .dash-quick-grid { flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .dash-quick-btn { width: 100%; justify-content: center; padding: 11px 18px; }
  .dash-card { padding: 14px; }
  .dash-section-title { margin-bottom: 8px; }
}

.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.dash-card-title { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }

.dash-list { display: flex; flex-direction: column; }
.dash-list-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; gap: 8px; }
.dash-list-item:last-child { border-bottom: none; }
.dash-list-meta { color: var(--muted); font-size: 11px; white-space: nowrap; }
.dash-list-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; white-space: nowrap; }
.dash-list-badge--einzug { background: var(--accent-soft); color: var(--accent); }
.dash-list-badge--auszug { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.dash-list-badge--listing { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; }
.dash-list-link { color: var(--accent); font-size: 11px; text-decoration: none; white-space: nowrap; }
.dash-list-link:hover { text-decoration: underline; }
.dash-list-item-left { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dash-list-item-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-list-sig-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.dash-list-sig-badge { font-size: 10px; background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-radius: 3px; padding: 1px 6px; }
.dash-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
  width: 100%;
  gap: 0;
  align-items: start;
}

.admin-sidebar-toggle { display: none; }

.admin-sidebar {
  border-right: 1px solid var(--line);
  padding: 32px 0;
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-section { margin-bottom: 32px; }

.sidebar-label {
  padding: 0 24px 10px;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.15s ease, background 0.15s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--ink);
  background: var(--surface-soft);
}

.sidebar-nav a.active {
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 22px;
}

.sidebar-nav svg { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-count {
  margin-left: auto;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}

.admin-main { padding: 36px 40px 60px; min-width: 0; overflow-x: hidden; }
.admin-main h1 { margin: 0 0 32px; font-size: 28px; font-weight: 700; }

.hidden { display: none !important; }

.btn-sm { font-size: 13px; padding: 6px 14px; margin-top: 8px; }
.icon-xs { width: 14px; height: 14px; }

.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* Heizungszähler- und Schlüssel-Zeilen */
.heat-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.heat-row input { flex: 1; }
.heat-row input[type="number"] { flex: 0 0 80px; }
.heat-row select { flex: 0 0 180px; }
.heat-row .btn-icon-sm { flex-shrink: 0; }

.sig-actions { display: flex; gap: 8px; margin-top: 8px; }
.sig-name-field { margin-bottom: 6px; }

.ho-dsgvo { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 20px; overflow: hidden; }
.ho-dsgvo-summary { padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.ho-dsgvo-summary::before { content: '▶'; font-size: 10px; transition: transform .2s; }
.ho-dsgvo[open] .ho-dsgvo-summary::before { transform: rotate(90deg); }
.ho-dsgvo-body { padding: 0 14px 14px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.ho-dsgvo-body p { margin-bottom: 6px; }

.sig-preview-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sig-preview-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sig-preview-wrap:not(.has-sig) .sig-preview-canvas { display: none; }
.sig-empty-hint { font-size: 13px; color: var(--muted); pointer-events: none; }
.sig-preview-wrap.has-sig .sig-empty-hint { display: none; }

/* Signature overlay */
.sig-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.sig-overlay.hidden { display: none; }

.sig-dialog {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  width: min(520px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.sig-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.sig-dialog-title { font-weight: 650; font-size: 15px; }

#sig-pad-canvas {
  display: block;
  width: 100%;
  height: 220px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.sig-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.panel { display: none; }
.panel.active { display: block; }

.upload-zone {
  border: 2px dashed var(--line);
  padding: 52px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  margin-bottom: 28px;
}

.upload-zone:hover,
.upload-zone.drag-over { border-color: var(--accent); background: var(--accent-soft); }

.upload-zone svg { width: 40px; height: 40px; color: var(--muted); margin: 0 auto 14px; }
.upload-zone p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.upload-zone small { color: var(--muted); font-size: 13px; }
.upload-zone input[type="file"] { display: none; }

.extract-status {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-soft);
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 28px;
}

.extract-status.visible { display: flex; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
  will-change: transform;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-grid .span2 { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.field input,
.field select,
.field textarea {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  padding: 11px 13px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
}

.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 100px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  border-top-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.field input.filled,
.field select.filled,
.field textarea.filled { border-top-color: var(--accent); }

.form-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 8px; }

.listings-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.listings-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--line);
}

.listings-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: middle;
}

.listings-table tr:hover td { background: var(--surface-soft); }

.listing-row-title { color: var(--ink); font-weight: 600; }

/* Shared badge base */
.type-badge,
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-badge.verkauf,
.status-badge.published { background: rgba(24, 190, 181, 0.15); color: var(--accent); }

.type-badge.vermietung,
.status-badge.draft { background: rgba(143, 160, 180, 0.15); color: var(--muted); }

.row-actions { display: flex; gap: 8px; }

.btn-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.btn-icon-sm:hover { color: var(--accent); border-color: var(--accent); }
.btn-icon-sm.danger:hover { color: #e05555; border-color: #e05555; }
.btn-icon-sm svg { width: 14px; height: 14px; }

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 20px;
  background: var(--surface-soft);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 14px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 100;
  pointer-events: none;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-left-color: #e05555; }

.empty-state { text-align: center; padding: 64px 32px; color: var(--muted); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--line); }
.empty-state p { margin: 0; font-size: 15px; }

.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.section-divider::before,
.section-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Login ── */

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page);
}

.login-wrap { width: 100%; max-width: 400px; padding: 0 20px; }

.login-box {
  background: var(--surface);
  border-top: 2px solid var(--accent);
  box-shadow: 0 0 0 1px var(--line), 0 24px 64px rgba(7, 13, 24, 0.5);
  padding: 40px 36px 36px;
}

.login-logo { width: 130px; margin-bottom: 28px; }
.login-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.login-sub { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.login-field { margin-bottom: 14px; }
.login-field-last { margin-bottom: 22px; }

.login-error {
  display: none;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-left: 3px solid #e05555;
  background: rgba(224, 85, 85, 0.08);
  color: #e05555;
  font-size: 13px;
}

.login-btn { width: 100%; }
.login-btn-icon { width: 16px; height: 16px; }

/* ── Image upload ── */

.img-upload-row { display: flex; gap: 8px; align-items: stretch; }
.img-upload-row input[type="text"] { flex: 1; }

.img-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.img-upload-label:hover { border-color: var(--accent); color: var(--accent); }
.img-upload-label svg { width: 15px; height: 15px; flex-shrink: 0; }

.img-preview { display: none; margin-top: 8px; }
.img-preview img { max-height: 120px; max-width: 100%; object-fit: cover; }

.img-upload-status { display: none; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Exposé detail page ── */

.expose-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 18px;
}

.expose-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}
.expose-back-link:hover { color: var(--accent); }
.expose-back-link svg { width: 16px; height: 16px; }

.expose-topbar-actions { display: flex; align-items: center; gap: 14px; }

.expose-online-since { font-size: 12px; color: var(--muted); }

.expose-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.expose-action-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.expose-action-btn svg { width: 15px; height: 15px; }

.expose-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 36px;
  padding-bottom: 60px;
  align-items: start;
}

.expose-left { display: flex; flex-direction: column; gap: 32px; }

.expose-media { position: relative; }

.expose-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.expose-image-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }

.expose-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  background: var(--accent);
  color: #062022;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
}

.expose-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.expose-highlight-tile {
  background: var(--surface-soft);
  border-top: 2px solid var(--accent);
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.expose-highlight-tile svg { width: 22px; height: 22px; color: var(--accent); }
.expose-highlight-tile strong { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.1; }

.expose-highlight-tile span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.expose-section { display: flex; flex-direction: column; gap: 16px; }

.expose-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.expose-description-text { font-size: 15px; color: var(--ink-soft); line-height: 1.8; }

.expose-description-text.markdown-body h1,
.expose-description-text.markdown-body h2,
.expose-description-text.markdown-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.2em 0 .4em;
}
.expose-description-text.markdown-body p { margin: 0 0 .8em; }
.expose-description-text.markdown-body ul,
.expose-description-text.markdown-body ol { padding-left: 1.4em; margin: 0 0 .8em; }
.expose-description-text.markdown-body li { margin-bottom: .25em; }
.expose-description-text.markdown-body strong { color: var(--ink); }
.expose-description-text.markdown-body a { color: var(--accent); }

/* EasyMDE admin editor theming */
.EasyMDEContainer .CodeMirror {
  background: var(--surface-2, #1e2d42);
  color: var(--ink, #e8edf3);
  border-color: var(--border, #2e4060);
  border-radius: 0 0 6px 6px;
  font-family: inherit;
  font-size: 14px;
  min-height: 180px;
}
.EasyMDEContainer .editor-toolbar {
  background: var(--surface-2, #1e2d42);
  border-color: var(--border, #2e4060);
  border-radius: 6px 6px 0 0;
}
.EasyMDEContainer .editor-toolbar button { color: var(--ink-soft, #8fa3be) !important; }
.EasyMDEContainer .editor-toolbar button:hover,
.EasyMDEContainer .editor-toolbar button.active {
  background: var(--surface-3, #253650);
  color: var(--accent, #18beb5) !important;
  border-color: transparent;
}
.EasyMDEContainer .editor-toolbar i.separator { border-color: var(--border, #2e4060); }
.EasyMDEContainer .editor-preview {
  background: var(--surface-1, #172235);
  color: var(--ink, #e8edf3);
  font-size: 14px;
  line-height: 1.7;
}

.expose-table { margin: 0; display: flex; flex-direction: column; }

.expose-table-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.expose-table-row:first-child { border-top: none; }

.expose-table-row dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.expose-table-row dt svg { width: 14px; height: 14px; }

.expose-table-row dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }

.expose-right { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 76px; }

.expose-info,
.expose-contact-form-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.expose-info { background: var(--surface-soft); border-top: 2px solid var(--accent); }
.expose-contact-form-box { background: var(--surface-soft); border-top: 2px solid var(--line); }

.expose-type-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.expose-title { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.3; }
.expose-price { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }

.expose-location { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.expose-location svg { width: 14px; height: 14px; flex-shrink: 0; }

.expose-quick-stats {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.expose-quick-stats > div { background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.expose-quick-stats dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.expose-quick-stats dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }

.expose-contact-form-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }

.expose-form { display: flex; flex-direction: column; gap: 10px; }

.expose-form-field { display: flex; flex-direction: column; gap: 4px; }

.expose-form-field label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.expose-form-field input,
.expose-form-field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  padding: 8px 10px;
  font-family: inherit;
  transition: border-color 0.15s;
  resize: vertical;
}

.expose-form-field input:focus,
.expose-form-field textarea:focus { outline: none; border-color: var(--accent); }

.expose-form-feedback { font-size: 13px; min-height: 0; }
.expose-form-feedback.error   { color: #e05555; }
.expose-form-feedback.success { color: var(--accent); }

.expose-form-submit { width: 100%; justify-content: center; margin-top: 2px; }

.expose-contact-divider { text-align: center; font-size: 12px; color: var(--muted); position: relative; }
.expose-contact-divider::before,
.expose-contact-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--line);
}
.expose-contact-divider::before { left: 0; }
.expose-contact-divider::after  { right: 0; }

.expose-phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.15s, color 0.15s;
}
.expose-phone-link:hover { border-color: var(--accent); color: var(--accent); }
.expose-phone-link svg { width: 16px; height: 16px; }

.expose-similar { padding-bottom: 80px; }

.expose-similar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.expose-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* ── Exposé image slider ── */

.expose-slider { position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 4/3; }

.expose-slides,
.expose-slide { width: 100%; height: 100%; }

.expose-slide { display: none; }
.expose-slide.active { display: block; }

.expose-slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(18, 28, 44, 0.75);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2;
}

.slider-btn:hover { background: rgba(18, 28, 44, 0.95); }
.slider-btn svg { width: 20px; height: 20px; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}

.slider-dot.active { background: var(--accent); transform: scale(1.25); }

.slider-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  z-index: 2;
  pointer-events: none;
}

/* ── Admin multi-image upload ── */

.multi-img-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px dashed var(--line);
  min-height: 80px;
  align-items: flex-start;
}

.multi-img-thumb {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background: var(--surface-soft);
  overflow: visible;
}

.multi-img-thumb.is-primary { outline: 2px solid var(--accent); outline-offset: 2px; }

.multi-img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb-primary-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: #062022;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  pointer-events: none;
}

.thumb-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.15s;
}

.multi-img-thumb:hover .thumb-actions { opacity: 1; }

.thumb-actions button {
  width: 22px;
  height: 22px;
  padding: 0;
  background: rgba(18, 28, 44, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-actions button:hover { background: rgba(18, 28, 44, 1); }
.thumb-actions button.thumb-delete:hover { background: #7f1d1d; }
.thumb-actions svg { width: 12px; height: 12px; }

.multi-img-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100px;
  height: 100px;
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
  text-align: center;
}

.multi-img-add:hover { border-color: var(--accent); color: var(--accent); }
.multi-img-add svg { width: 20px; height: 20px; }

/* ── PDF Exposé Template ── */

#pdf-content {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-size: 10pt;
  color: #1a2535;
  background: #fff;
  width: 210mm;
}

.pdf-page {
  width: 210mm;
  padding: 12mm 16mm 10mm;
  box-sizing: border-box;
  background: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  page-break-before: always;
  break-before: page;
}
.pdf-page:first-child { page-break-before: avoid; break-before: avoid; }

.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 3px solid #18beb5;
  margin-bottom: 14px;
}
.pdf-logo { height: 44px; width: auto; }
.pdf-header-right { text-align: right; line-height: 1.4; }

.pdf-expose-label {
  display: block;
  font-size: 22pt;
  font-weight: 700;
  color: #172235;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pdf-since { font-size: 7.5pt; color: #7a8fa5; margin-top: 2px; display: block; }

.pdf-hero-img {
  width: 100%;
  padding-bottom: 50%;
  height: 0;
  border-radius: 6px;
  margin-bottom: 12px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 8px rgba(23,34,53,.12);
}

.pdf-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.pdf-type-badge {
  display: inline-block;
  background: #18beb5;
  color: #fff;
  font-size: 7pt;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 5px;
}
.pdf-title { font-size: 14pt; font-weight: 700; color: #172235; line-height: 1.25; margin: 0 0 4px; }

.pdf-price {
  font-size: 18pt;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  background: #18beb5;
  padding: 6px 12px 7px;
  border-radius: 5px;
  margin-top: 2px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(24,190,181,.25);
}

.pdf-location { font-size: 8.5pt; color: #4a5e72; display: flex; align-items: center; gap: 3px; }

.pdf-facts {
  display: flex;
  border: 1px solid #dce6ef;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
  flex-shrink: 0;
  background: #f4f8fb;
}

.pdf-fact {
  flex: 1;
  padding: 9px 12px;
  border-right: 1px solid #dce6ef;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pdf-fact:last-child { border-right: none; }
.pdf-fact-val { font-size: 11pt; font-weight: 700; color: #172235; }
.pdf-fact-key { font-size: 7pt; color: #7a8fa5; margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }

.pdf-divider-label {
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #18beb5;
  border-bottom: 1.5px solid #18beb5;
  padding-bottom: 4px;
  margin-bottom: 9px;
}

.pdf-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; margin-bottom: 0; }
.pdf-table tr { border-bottom: 1px solid #eaf0f6; }
.pdf-table tr:last-child { border-bottom: none; }
.pdf-table td { padding: 5px 8px; vertical-align: top; }
.pdf-td-key { font-weight: 600; color: #4a5e72; width: 36%; }

.pdf-page-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 2px solid #18beb5;
  font-size: 7.5pt;
  color: #7a8fa5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pdf-page-footer strong { color: #172235; }

.pdf-page-header-small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 2px solid #18beb5;
  margin-bottom: 14px;
}
.pdf-page-title-small { font-size: 9.5pt; font-weight: 600; color: #172235; }
.pdf-logo-small { height: 30px; width: auto; }

.pdf-description { font-size: 9.5pt; color: #2d3e50; line-height: 1.65; }
.pdf-description p { margin: 0 0 7px; }
.pdf-description h1,
.pdf-description h2,
.pdf-description h3 {
  font-size: 10pt;
  font-weight: 700;
  color: #172235;
  margin: 12px 0 4px;
  border-left: 3px solid #18beb5;
  padding-left: 6px;
}
.pdf-description h1 { font-size: 11pt; }
.pdf-description ul,
.pdf-description ol { padding-left: 18px; margin: 0 0 7px; }
.pdf-description li { margin-bottom: 3px; }
.pdf-description strong { color: #172235; }

.pdf-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.pdf-img-thumb {
  width: 100%;
  padding-bottom: 68%;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 0;
  box-shadow: 0 1px 4px rgba(23,34,53,.1);
}

/* ── Responsive: 980px ── */

@media (max-width: 980px) {
  .hero,
  .about,
  .contact { grid-template-columns: 1fr; }

  .hero { gap: 34px; min-height: 0; padding-top: 26px; }
  .hero h1 { max-width: 10ch; }

  .hero-visual,
  .hero-visual img { min-height: 470px; }

  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .listings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .admin-layout { grid-template-columns: 1fr; }

  .admin-sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--surface-soft);
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
  }

  .admin-sidebar-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; }

  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    position: static;
    display: none;
  }

  .admin-sidebar.is-open { display: block; }

  .admin-main { padding: 24px 16px 48px; min-width: 0; overflow-x: hidden; }

  .dash-list-item { flex-wrap: wrap; gap: 4px 8px; }
  .dash-list-item-left { flex: 1 1 100%; }
  .dash-list-meta { margin-left: auto; }

  /* ── Responsive tables → cards ── */
  .listings-table thead { display: none; }

  .listings-table,
  .listings-table tbody,
  .listings-table tr,
  .listings-table td { display: block; width: 100%; }

  .listings-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 12px 14px 10px;
    background: var(--surface);
    position: relative;
  }

  .listings-table tr:hover td { background: transparent; }

  .listings-table td {
    border: none;
    padding: 2px 0;
    font-size: 13px;
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .listings-table td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
  }

  .listings-table td.listing-row-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }

  .listings-table td.listing-row-title::before { display: none; }

  .listings-table td.td-actions {
    padding-top: 8px;
    margin-top: 4px;
    justify-content: flex-end;
  }

  .listings-table td.td-actions::before { display: none; }

  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: 1; }

  .expose-layout { grid-template-columns: 1fr; }
  .expose-right { position: static; }
  .expose-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Responsive: 680px ── */

@media (max-width: 680px) {
  :root { --container: min(100% - 28px, 1120px); }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(18, 28, 44, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    box-shadow: 0 8px 24px rgba(7, 13, 24, 0.5);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 9;
  }

  .site-header.nav-open .site-nav { display: flex; }

  .site-nav a { padding: 13px 24px; font-size: 15px; border-radius: 0; }
  .site-nav a:hover { background: rgba(255, 255, 255, 0.05); }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--ink-soft);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-phone span { display: none; }
  .nav-phone { padding: 0 10px; }

  .hero { padding-bottom: 52px; }
  .hero h1 { font-size: clamp(48px, 16vw, 68px); }

  .hero-lede,
  .service-intro p,
  .about-copy p,
  .contact-copy p { font-size: 16px; }

  .button { width: 100%; }

  .hero-visual,
  .hero-visual img { min-height: 390px; }

  .hero-note { right: 14px; bottom: 14px; left: 14px; }

  .service-intro { align-items: start; flex-direction: column; padding-top: 54px; }
  .service-grid { grid-template-columns: 1fr; padding-bottom: 58px; }
  .service-card { min-height: 0; }

  .about,
  .contact { gap: 30px; padding: 54px 0; }

  .about-image,
  .about-image img { min-height: 340px; }

  .facts { grid-template-columns: 1fr; }

  .contact-panel a { grid-template-columns: 28px 1fr; gap: 14px; padding: 18px; }

  .site-footer { flex-direction: column; padding-bottom: 28px; }

  .listings-grid { grid-template-columns: 1fr; }

  .filter-row { padding: 12px 14px; gap: 8px; }

  .filter-field,
  .filter-field-wide { min-width: calc(50% - 5px); flex: 1 1 calc(50% - 5px); }

  .filter-reset-btn { width: 100%; justify-content: center; }

  .waitlist-form { grid-template-columns: 1fr; }
  .waitlist-form .full { grid-column: 1; }

  .expose-similar-grid { grid-template-columns: 1fr; }
  .expose-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .expose-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
