/* =====================================================================
   Alyhr — WordPress Theme Styles
   Portad från site-alyhr/styles.css + utökad med:
   - Statusbadges (ledig-lokal)
   - Galleri lightbox
   - Maps embed wrapper
   - Filterrad (arkivsida)
   - Lokal single-layout
   - Planritning-sektion
   - Admin styles (admin.css importeras separat)
   ===================================================================== */

:root {
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow: 0 18px 50px -24px rgba(15, 23, 42, .35);
  --shadow-soft: 0 10px 30px -18px rgba(15, 23, 42, .3);
}

/* ---------- THEME: MODERN (aktiv) ---------- */
[data-theme="modern"] {
  --bg: #ffffff;
  --bg-alt: #eef3fb;
  --surface: #ffffff;
  --ink: #0a1a2f;
  --ink-soft: #51627a;
  --line: #dbe5f2;
  --primary: #0a1a2f;
  --primary-ink: #ffffff;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --logo-1: #0a1a2f;
  --logo-2: #2563eb;
  --logo-3: #2563eb;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --head-weight: 600;
  --head-spacing: -0.02em;
  --title-transform: none;
}

/* ---------- TEMA: REFINED (behålls i CSS för eventuell framtida användning) ---------- */
[data-theme="refined"] {
  --bg: #ffffff;
  --bg-alt: #f4f8f7;
  --surface: #ffffff;
  --ink: #0d2235;
  --ink-soft: #4a5d6b;
  --line: #e3ebea;
  --primary: #0d2235;
  --primary-ink: #ffffff;
  --accent: #1f7a72;
  --accent-2: #e8654f;
  --logo-1: #0d2235;
  --logo-2: #1f7a72;
  --logo-3: #e8654f;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --head-weight: 700;
  --head-spacing: -0.01em;
  --title-transform: none;
}

/* ---------- TEMA: ELEGANT ---------- */
[data-theme="elegant"] {
  --bg: #fbfaf8;
  --bg-alt: #f3f1ed;
  --surface: #ffffff;
  --ink: #161312;
  --ink-soft: #6c645d;
  --line: #e7e2da;
  --primary: #5a0f1f;
  --primary-ink: #fbfaf8;
  --accent: #5a0f1f;
  --accent-2: #8c857b;
  --logo-1: #5a0f1f;
  --logo-2: #8c857b;
  --logo-3: #8c857b;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --head-weight: 600;
  --head-spacing: 0;
  --title-transform: none;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), 92vw); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-spacing);
  line-height: 1.08;
  margin: 0;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; }
.logo { width: 44px; height: 44px; display: none; }
[data-theme="refined"] .logo--refined,
[data-theme="modern"]  .logo--modern,
[data-theme="elegant"] .logo--elegant { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  font-size: 1.55rem;
  color: var(--ink);
}
.brand-sub {
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 2px;
}
.site-nav { display: flex; gap: 1.3rem; margin-left: auto; font-size: .92rem; font-weight: 500; }
.site-nav a { color: var(--ink-soft); transition: color .25s; position: relative; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--accent); transition: right .3s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  cursor: pointer; color: var(--ink); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600;
  font-size: .98rem; transition: transform .2s var(--ease), box-shadow .25s, background .25s;
  cursor: pointer; border: none;
}
.btn--primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow-soft); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: .55rem 1.1rem; font-size: .88rem; }

/* ---------- HERO ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 1rem;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero-lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 34ch; margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-meta { list-style: none; display: flex; gap: 2.2rem; padding: 0; margin: 2.4rem 0 0; flex-wrap: wrap; }
.hero-meta li { font-size: .9rem; color: var(--ink-soft); }
.hero-meta strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 600; }

.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 5 / 4; background: var(--bg-alt);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -22px; bottom: -22px;
  background: var(--primary); color: var(--primary-ink);
  border-radius: var(--radius-sm); padding: 1rem 1.4rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1;
}
.hero-badge__big { font-family: var(--font-head); font-size: 1.5rem; font-weight: var(--head-weight); }
.hero-badge__small { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; opacity: .8; margin-top: .35rem; }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); transition: background .5s var(--ease); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: var(--title-transform); }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; margin-top: 1rem; }
.section-note {
  margin: 2.2rem auto 0; max-width: 70ch; text-align: center;
  color: var(--ink-soft); font-style: italic;
}

/* ---------- CARDS GRID ---------- */
.cards { display: grid; gap: var(--gap); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

/* business cards */
.biz { padding: 2rem 1.8rem; }
.biz-icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 14px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  margin-bottom: 1.2rem;
}
.biz-icon svg { width: 30px; height: 30px; }
.biz h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.biz p { color: var(--ink-soft); margin: 0; }

/* property cards */
.property { display: flex; flex-direction: column; }
.property-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.property-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.property:hover .property-photo img { transform: scale(1.06); }
.property-body { padding: 1.6rem 1.6rem 1.8rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.property-body h3 { font-size: 1.45rem; margin-bottom: .2rem; }
.property-body p { color: var(--ink-soft); margin: 0 0 .6rem; font-size: .98rem; flex: 1; }
.property-body .property-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .8rem; align-items: center; }
.property-body .property-link { margin-top: auto; font-weight: 600; color: var(--accent); font-size: .92rem; display: inline-flex; gap: .35rem; }
.property-body .property-link:hover { gap: .6rem; }

/* ---------- TAG + CHIPS + BADGES ---------- */
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .7rem;
}
.chip {
  font-size: .76rem; padding: .25rem .6rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600;
}

/* Statusbadges */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .28rem .75rem; border-radius: 999px; font-weight: 700;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--ledig_nu   { background: #dcfce7; color: #15803d; }
.badge--planeras   { background: #fff7ed; color: #c2410c; }
.badge--uthyrd     { background: #f1f5f9; color: #64748b; }

/* ---------- GALLERY (overview) ---------- */
.gallery {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem;
}
.gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm);
  filter: saturate(.96); transition: transform .4s var(--ease), filter .4s;
  cursor: pointer;
}
.gallery img:hover { transform: scale(1.04); filter: saturate(1.1); }

/* ---------- PROPERTY GALLERY (single-page) ---------- */
.prop-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .8rem;
}
.prop-gallery-item {
  aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm);
  cursor: pointer; background: var(--bg-alt);
}
.prop-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.prop-gallery-item:hover img { transform: scale(1.05); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 26, 47, .92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(92vw, 1200px); max-height: 88vh;
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: none; color: #fff;
  font-size: 1.6rem; cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.32); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 1.4rem; }
.lightbox-next { right: 1.4rem; }
.lightbox-counter {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .85rem;
}

/* ---------- PROPERTY SINGLE LAYOUT ---------- */
.single-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.single-main { min-width: 0; }
.single-sidebar {
  position: sticky; top: calc(76px + 1.5rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: .8rem;
}
.single-sidebar h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.sidebar-facts { display: flex; flex-direction: column; gap: .6rem; }
.sidebar-fact {
  display: flex; flex-direction: column; padding: .85rem 1rem;
  border-radius: var(--radius-sm); background: var(--bg-alt);
}
.sidebar-fact__label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.sidebar-fact__value { font-weight: 600; font-size: 1.06rem; color: var(--ink); margin-top: .2rem; }

.prop-section-title {
  font-size: 1.2rem; margin: 2rem 0 1rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.prop-section-title:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---------- MAP EMBED ---------- */
.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 8;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- FLOOR PLAN ---------- */
.planritning-wrap {
  border-radius: var(--radius); overflow: hidden; background: var(--bg-alt);
  border: 1px solid var(--line); padding: 1rem;
}
.planritning-wrap img { border-radius: var(--radius-sm); width: 100%; }

/* ---------- FILTERRAD ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line); margin-bottom: 2rem;
}
.filter-group { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-group + .filter-group { padding-left: 1rem; border-left: 1px solid var(--line); }
.filter-btn {
  padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft);
  cursor: pointer; transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-count { font-size: .8rem; color: var(--ink-soft); margin-left: auto; align-self: center; }

/* ---------- VALUES ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.value { padding-top: 1.4rem; border-top: 2px solid var(--accent); }
.value-num { font-family: var(--font-head); font-size: 1rem; color: var(--accent); font-weight: 600; }
.value h3 { font-size: 1.3rem; margin: .5rem 0 .5rem; }
.value p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* ---------- CONTACT ---------- */
.section--contact { padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact-card {
  background: var(--primary); color: var(--primary-ink);
  border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; box-shadow: var(--shadow);
}
.contact-card .eyebrow { color: color-mix(in srgb, var(--primary-ink) 75%, var(--accent)); }
.contact-card .section-title { color: var(--primary-ink); }
.contact-card .section-lead { color: color-mix(in srgb, var(--primary-ink) 80%, transparent); }
.contact-list { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; flex-direction: column; padding: 1rem 1.3rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary-ink) 10%, transparent);
  transition: background .25s, transform .2s var(--ease);
}
a.contact-item:hover { background: color-mix(in srgb, var(--primary-ink) 18%, transparent); transform: translateX(4px); }
.contact-label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.contact-value { font-size: 1.2rem; font-weight: 600; margin-top: .2rem; }

/* ---------- FOOTER ---------- */
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-sub { letter-spacing: .12em; }
.footer-note { color: var(--ink-soft); font-size: .85rem; margin: 0; }

/* ---------- SUBPAGE HERO ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: .8rem; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 60ch; margin: 1.2rem 0 0; }
.breadcrumb { font-size: .8rem; color: var(--ink-soft); margin: 0 0 1rem; letter-spacing: .02em; }
.breadcrumb a { color: var(--accent); }

/* ---------- APARTMENT LIST ---------- */
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.unit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .4rem;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.unit:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.unit-name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.5rem; }
.unit-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .6rem; }
.unit-link { margin-top: auto; font-weight: 600; color: var(--accent); font-size: .92rem; display: inline-flex; gap: .35rem; }
.unit-link:hover { gap: .6rem; }
.unit--feature { grid-column: span 3; flex-direction: row; align-items: center; gap: 2rem; background: var(--bg-alt); }
.unit--feature .unit-name { font-size: 2rem; }
.unit--feature .unit-content { flex: 1; }
.unit--feature .unit-image { width: 42%; border-radius: 14px; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- LOCATION / MAP ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 2rem; }
.fact { padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--accent); }
.fact span { color: var(--ink-soft); font-size: .9rem; }

/* ---------- CONTACT FORM ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { color: var(--ink-soft); font-size: .88rem; margin: .4rem 0 0; }

/* ---------- INTRO PROSE ---------- */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 1.2rem; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- EMPTY STATE ---------- */
.empty-state {
  text-align: center; padding: 5rem 2rem; color: var(--ink-soft);
}
.empty-state p { font-size: 1.1rem; max-width: 40ch; margin: .8rem auto 0; }

/* ---------- STUDENT SINGLE ---------- */
.student-single-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .cards--3 { grid-template-columns: 1fr; }
  .cards--2 { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .contact-card { grid-template-columns: 1fr; }
  .units { grid-template-columns: 1fr; }
  .unit--feature { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .unit--feature .unit-image { width: 100%; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .media { order: -1; }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  .student-single-layout { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; z-index: 49;
    display: flex; flex-direction: column; gap: 0; margin-left: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 6vw 1.2rem;
    transform: translateY(calc(-100% - 76px));
    transition: transform .35s var(--ease), visibility .35s;
    box-shadow: var(--shadow);
    visibility: hidden; pointer-events: none;
  }
  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible; pointer-events: auto;
  }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); width: 100%; white-space: normal; }
  .site-nav a::after { display: none; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .prop-gallery { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { gap: .4rem; }
  .filter-group + .filter-group { padding-left: .5rem; }
}
@media (max-width: 540px) {
  .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
