/* ---------- Design tokens ---------- */
:root{
  --brand: #8a1029;
  --brand-dark: #5c0b1c;
  --brand-light: #b91c3c;
  --brand-tint: #fbeef0;

  --ink: #221417;
  --ink-soft: #5a4d4f;
  --paper: #ffffff;
  --paper-alt: #faf6f4;
  --line: #ece2e0;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(34, 20, 23, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(34, 20, 23, 0.14);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --container: 1180px;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ink: #f4ecee;
    --ink-soft: #cdb9bd;
    --paper: #1b1315;
    --paper-alt: #221819;
    --line: #382b2e;
    --brand-tint: #33161d;
  }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p{ margin: 0 0 1em; color: var(--ink-soft); }
.icon{ width: 18px; height: 18px; fill: currentColor; }

.wrap{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus{ left: 0; }

.eyebrow{
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 .6em;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary{
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost{
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover{ background: rgba(255,255,255,.18); }
.btn-wide{ width: 100%; margin-top: 8px; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark{ border-radius: 6px; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.25; }
.brand-name{ font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.brand-tag{ font-size: .72rem; color: var(--ink-soft); }

.main-nav ul{ display: flex; gap: 28px; }
.main-nav a{
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.main-nav a:hover{ color: var(--brand); }

.header-actions{ display: flex; align-items: center; gap: 18px; }
.tel-link{
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  color: var(--brand);
  white-space: nowrap;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  isolation: isolate;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-media{
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-copenhagen.jpg");
  background-size: cover;
  background-position: 30% 40%;
  z-index: -2;
  transform: scale(1.02);
}
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,10,15,.55) 0%, rgba(28,10,15,.72) 55%, rgba(20,7,11,.92) 100%),
    linear-gradient(100deg, rgba(90,10,25,.55), rgba(20,7,11,.25) 55%);
}
.hero-inner{ max-width: 720px; padding-block: 120px 100px; }
.hero .eyebrow{ color: #f4c3ce; }
.hero h1{ font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: #fff; }
.hero-lede{ font-size: 1.1rem; color: rgba(255,255,255,.86); max-width: 56ch; }
.hero-cta{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Stats strip ---------- */
.stats{
  background: var(--brand);
  color: #fff;
}
.stats-inner{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 28px;
}
.stat{ text-align: center; }
.stat-num{ display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.stat-label{ display: block; font-size: .8rem; color: rgba(255,255,255,.8); margin-top: 4px; }

/* ---------- Sections ---------- */
.section{ padding-block: 96px; }
.section h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 32ch; }
.section-lede{ max-width: 62ch; font-size: 1.05rem; }
#om-os{ background: var(--paper-alt); }
.wanted{ background: var(--paper-alt); }
.services{ padding-bottom: 48px; }
.listings{ padding-top: 48px; }

.grid{ display: grid; gap: 24px; }

/* Card base */
.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }

/* Services */
.services-grid{ grid-template-columns: repeat(4, 1fr); margin-top: 44px; }
.service-card{ padding: 28px 24px; }
.service-icon{
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 18px;
}
.service-icon svg{ width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3{ font-size: 1.1rem; }
.service-card p{ font-size: .93rem; margin-bottom: 0; }

/* Listings */
.listings-grid{ grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.listing-media{
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: var(--paper-alt);
  flex-shrink: 0;
}
.listing-media img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listing-media-fallback{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-tint), var(--paper-alt));
  color: var(--brand);
}
.listing-media-fallback svg{ width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.badge{
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: var(--brand);
}
.badge-salg{ background: #1f6f4d; }
.badge-afst{ background: #a5680f; }
.listing-body{ padding: 22px; }
.listing-body h3{ font-size: 1.1rem; margin-bottom: .2em; }
.listing-meta{ font-size: .82rem; color: var(--brand); font-weight: 600; margin-bottom: .8em; }
.listing-body p{ font-size: .93rem; }
.listing-price{ font-weight: 700; color: var(--ink); margin-bottom: .8em; }

.listing-card{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.listing-more{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--brand);
  margin-top: auto;
}
.listing-more svg{ width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s ease; }
.listing-card:hover .listing-more svg{ transform: translateX(3px); }

.listing-card-cta{
  display: flex;
  align-items: center;
  background: var(--brand-tint);
  border-style: dashed;
  border-color: var(--brand-light);
}
.listing-cta-body{ padding: 28px; }
.listing-cta-body h3{ font-size: 1.15rem; }

/* About */
.about-inner{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}
.about-media{ position: sticky; top: 100px; }
.about-media-frame{
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}
.about-media-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 42%;
}
.contact-card{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 28px;
}
.contact-card-mark{ margin-top: 2px; border-radius: 6px; }
.contact-card-name{ font-weight: 700; margin-bottom: 0; }
.contact-card-title{ font-size: .85rem; color: var(--ink-soft); margin-bottom: .6em; }
.contact-card p{ margin-bottom: .2em; font-size: .92rem; }
.contact-card a{ text-decoration: none; color: var(--brand); font-weight: 600; }

/* Wanted */
.wanted-columns{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.wanted-col h3{ font-size: 1.05rem; margin-bottom: 1em; }
.wanted-list li{
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
  color: var(--ink-soft);
}
.wanted-list li strong{ color: var(--ink); }
.wanted-list li:last-child{ border-bottom: none; }

/* Contact */
.contact-inner{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-details{ margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-details li{ display: flex; flex-direction: column; gap: 2px; }
.contact-details-label{ font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); font-weight: 700; }
.contact-details a{ text-decoration: none; font-weight: 600; }

.wanted-form{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.wanted-form fieldset{ border: none; padding: 0; margin: 0 0 28px; }
.wanted-form legend{ font-weight: 700; font-size: 1.02rem; padding: 0 0 14px; }
.field{ display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; margin-bottom: 16px; }
.field span:first-child{ color: var(--ink-soft); font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], textarea{
  font: inherit;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper-alt);
  color: var(--ink);
}
input:focus, textarea:focus{ outline: 2px solid var(--brand-light); outline-offset: 1px; }
textarea{ resize: vertical; }

.field-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.field-grid-2{ grid-template-columns: repeat(2, 1fr); }
.field-span{ grid-column: 1 / -1; }
.checkbox-field{ display: flex; flex-direction: column; gap: 8px; font-size: .88rem; margin-bottom: 16px; }
.checkbox-row{ display: flex; align-items: center; gap: 8px; font-weight: 600; }
.checkbox-row input{ width: 17px; height: 17px; accent-color: var(--brand); }

.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-notice{
  display: none;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: .95rem;
}
.form-notice:not(:empty){ display: block; }
.form-notice-success{ background: #e9f7ef; color: #1f6f4d; border: 1px solid #b7e4c7; }
.form-notice-error{ background: var(--brand-tint); color: var(--brand); border: 1px solid var(--brand-light); }

.field-error{
  display: block;
  color: var(--brand);
  font-size: .8rem;
  font-weight: 600;
  margin-top: 4px;
}

input[aria-invalid="true"], textarea[aria-invalid="true"]{ border-color: var(--brand); }

.btn:disabled{ opacity: .6; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.75); }
.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-block: 56px 32px;
}
.footer-brand{ display: flex; align-items: center; gap: 20px; max-width: 420px; }
.footer-brand img{ flex-shrink: 0; }
.footer-name{ color: #fff; font-weight: 700; margin-bottom: .3em; }
.footer-tag{ font-size: .85rem; margin-bottom: 0; }
.footer-cols{ display: flex; gap: 64px; flex-wrap: wrap; }
.footer-heading{ color: #fff; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.footer-cols a{ text-decoration: none; }
.footer-cols a:hover{ color: #fff; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 18px;
  font-size: .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.footer-bottom p{ margin: 0; }
.footer-bottom a{ color: inherit; text-decoration: none; }
.footer-bottom a:hover{ color: #fff; }

/* ---------- Listing detail page ---------- */
.btn-outline{
  background: transparent;
  color: var(--brand);
  border-color: var(--line);
}
.btn-outline:hover{ background: var(--brand-tint); border-color: var(--brand-light); }

.breadcrumb{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.breadcrumb a{ text-decoration: none; color: var(--ink-soft); }
.breadcrumb a:hover{ color: var(--brand); }
.breadcrumb [aria-current]{ color: var(--ink); font-weight: 600; }

.listing-detail-head{ margin-bottom: 32px; }
.listing-detail-head .badge{ position: static; display: inline-flex; margin-bottom: 14px; }
.listing-detail-head h1{ font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 34ch; }
.listing-detail-meta{ font-size: 1.02rem; font-weight: 600; color: var(--brand); margin-bottom: 0; }

/* Gallery */
.gallery{ margin-bottom: 8px; }
.gallery-main{
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-alt);
  box-shadow: var(--shadow);
}
.gallery-main img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.gallery-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(20,7,11,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition: background .15s ease;
}
.gallery-nav:hover{ background: rgba(20,7,11,.8); }
.gallery-nav svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-prev{ left: 16px; }
.gallery-next{ right: 16px; }
.gallery-nav[hidden], .gallery-counter[hidden], .gallery-thumbs[hidden]{ display: none; }
.gallery-counter{
  position: absolute;
  bottom: 16px; right: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(20,7,11,.6);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
}
.gallery-expand{
  position: absolute;
  bottom: 16px; left: 16px;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: none;
  background: rgba(20,7,11,.55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.gallery-expand svg{ width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gallery-thumbs{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 2px 4px;
  scroll-snap-type: x proximity;
}
.gallery-thumb{
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 84px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--paper-alt);
  opacity: .7;
  transition: opacity .15s ease, border-color .15s ease;
}
.gallery-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover{ opacity: 1; }
.gallery-thumb.is-active{ opacity: 1; border-color: var(--brand); }

.gallery--empty{
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-tint), var(--paper-alt));
  color: var(--brand);
  padding: 24px;
}
.gallery--empty svg{ width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.gallery--empty p{ color: var(--ink-soft); max-width: 40ch; margin: 0; }

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 4, 6, .94);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden]{ display: none; }
.lightbox-image{
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-nav, .lightbox-close{
  position: fixed;
  border: none;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s ease;
}
.lightbox-nav:hover, .lightbox-close:hover{ background: rgba(255,255,255,.22); }
.lightbox-nav{ top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.lightbox-nav svg{ width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-prev{ left: 18px; }
.lightbox-next{ right: 18px; }
.lightbox-nav[hidden], .lightbox-counter[hidden]{ display: none; }
.lightbox-close{ top: 18px; right: 18px; width: 44px; height: 44px; }
.lightbox-close svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-counter{
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 600;
}

/* Detail body */
.listing-detail-body{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}
.listing-detail-text h2{ font-size: 1.3rem; }
.listing-detail-text p{ font-size: 1rem; }
.listing-detail-facts{
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.listing-detail-facts h2{ font-size: 1.05rem; }
.listing-detail-facts dl{ margin: 0 0 22px; }
.listing-detail-facts dl div{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.listing-detail-facts dl div:last-child{ border-bottom: none; }
.listing-detail-facts dt{ color: var(--ink-soft); }
.listing-detail-facts dd{ margin: 0; font-weight: 700; text-align: right; }
.listing-detail-facts .btn{ margin-bottom: 10px; }
.listing-detail-facts .btn:last-child{ margin-bottom: 0; }

/* Legal page */
.legal-page{ max-width: 72ch; }
.legal-page h1{ font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin-bottom: .3em; }
.legal-updated{ font-size: .85rem; color: var(--ink-soft); margin-bottom: 2em; }
.legal-page h2{ font-size: 1.15rem; margin-top: 1.8em; }
.legal-page p, .legal-page li{ font-size: .98rem; }
.legal-page ul{ margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.legal-page li{ margin-bottom: .5em; color: var(--ink-soft); }
.legal-page li strong{ color: var(--ink); }
.legal-page a{ color: var(--brand); font-weight: 600; text-decoration: none; }
.legal-page a:hover{ text-decoration: underline; }

.back-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-soft);
}
.back-link:hover{ color: var(--brand); }

/* ---------- Reveal animation ---------- */
.reveal{ transition: transform .5s ease, box-shadow .5s ease; }
.reveal:not(.is-visible){ transform: translateY(12px); }
@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; }
  html{ scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .listings-grid{ grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner{ grid-template-columns: 1fr; }
  .about-media{ position: static; }
  .wanted-columns{ grid-template-columns: 1fr; }
  .listing-detail-body{ grid-template-columns: 1fr; }
  .listing-detail-facts{ position: static; }
}

@media (max-width: 760px){
  .main-nav{
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open{ max-height: 320px; }
  .main-nav ul{ flex-direction: column; padding: 12px 24px 20px; gap: 4px; }
  .main-nav a{ display: block; padding: 10px 0; }
  .nav-toggle{ display: flex; }
  .tel-link span{ display: none; }
  .tel-link{ padding: 8px; border: 1px solid var(--line); border-radius: 10px; }

  .stats-inner{ grid-template-columns: repeat(2, 1fr); }
  .services-grid, .listings-grid{ grid-template-columns: 1fr; }
  .field-grid, .field-grid-2{ grid-template-columns: 1fr; }
  .section{ padding-block: 64px; }
  .services{ padding-bottom: 32px; }
  .listings{ padding-top: 32px; }
  .hero-inner{ padding-block: 96px 72px; }

  .gallery-main{ aspect-ratio: 4/3; }
  .gallery-nav{ width: 38px; height: 38px; }
  .gallery-nav svg{ width: 16px; height: 16px; }
  .lightbox-nav{ width: 44px; height: 44px; }
  .lightbox-prev{ left: 6px; }
  .lightbox-next{ right: 6px; }
  .lightbox-close{ top: 10px; right: 10px; }
}
