/* ============================================================
   HESTNES | MIKKELSKNUTEN — Stilark
   ============================================================ */

/* ---------- Variabler ---------- */
:root {
  --navy:       #1a2b3c;
  --navy-light: #243648;
  --gold:       #c4a46b;
  --gold-light: #d4b87e;
  --bg:         #f8f6f3;
  --bg-alt:     #f0ede8;
  --white:      #ffffff;
  --text:       #2c2c2c;
  --text-muted: #6b6b6b;
  --border:     #e2ddd7;

  --status-ledig:    #2e7d4f;
  --status-reservert:#b07d2a;
  --status-solgt:    #c0392b;

  --radius:  8px;
  --radius-lg: 14px;
  --shadow:  0 4px 20px rgba(26,43,60,0.10);
  --shadow-hover: 0 8px 36px rgba(26,43,60,0.18);

  --max-width: 1200px;
  --nav-height: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 16px;
}
.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196,164,107,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,255,255,0.3);
}

/* ============================================================
   NAVIGASJON
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(26,43,60,0.12);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.nav__logo span {
  color: var(--gold);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { width: 100%; }
.nav__links .btn { padding: 10px 22px; font-size: 0.88rem; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
  box-shadow: var(--shadow);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* Bruker bilder/hero.jpg hvis tilgjengelig — fallback til gradient.
     Gradient ligger over bildet for å sikre lesbar tekst. */
  background:
    linear-gradient(160deg,
      rgba(26,43,60,0.82) 0%,
      rgba(26,43,60,0.55) 50%,
      rgba(196,164,107,0.35) 100%),
    url('bilder/tomannsboliger/Hestnes%20Tomannsbolig%20Eksteri%C3%B8r%20V1%2003.jpg') center/cover no-repeat,
    linear-gradient(135deg,
      #2c4a6a 0%,
      #1a2b3c 30%,
      #0f1e2d 55%,
      #2a3d2e 80%,
      #3d4a32 100%);
}

/* Subtle animated texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 40%,
      rgba(196,164,107,0.18) 0%,
      transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%,
      rgba(44,74,106,0.4) 0%,
      transparent 70%);
  pointer-events: none;
}

/* Decorative mountain silhouette */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(248,246,243,0.08) 100%);
  clip-path: polygon(0 100%, 8% 60%, 18% 75%, 28% 40%, 40% 65%, 52% 30%, 62% 55%, 74% 20%, 84% 50%, 92% 35%, 100% 55%, 100% 100%);
  background-color: rgba(26,43,60,0.3);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: var(--nav-height);
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,164,107,0.18);
  border: 1px solid rgba(196,164,107,0.4);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.hero__title {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__title em {
  font-style: normal;
  color: var(--gold);
}
.hero__sub {
  color: rgba(255,255,255,0.80);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   ENHETER / UNITS
   ============================================================ */
.units {
  padding: 100px 0;
  background: var(--bg);
}
.units__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.units__filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--white);
  transition: all 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--navy);
}
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.units__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Unit Card */
.unit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.unit-card--clickable {
  cursor: pointer;
}
.unit-card--clickable:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.unit-card__image {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.unit-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.unit-card:hover .unit-card__image img {
  transform: scale(1.05);
}

/* Gradient placeholders per type */
.unit-card__placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
.unit-card__placeholder--leilighet {
  background: linear-gradient(135deg, #2c4a6a 0%, #1a2b3c 50%, #3d5a7a 100%);
}
.unit-card__placeholder--tomannsbolig {
  background: linear-gradient(135deg, #2a3d2e 0%, #1a2b1e 50%, #3a4f3c 100%);
}

.unit-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--ledig    { background: rgba(46,125,79,0.15);  color: var(--status-ledig);    border: 1.5px solid rgba(46,125,79,0.3); }
.badge--reservert{ background: rgba(176,125,42,0.15); color: var(--status-reservert); border: 1.5px solid rgba(176,125,42,0.3); }
.badge--solgt    { background: rgba(192,57,43,0.15);  color: var(--status-solgt);    border: 1.5px solid rgba(192,57,43,0.3); }

.unit-card__type-icon {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.unit-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.unit-card__id {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.unit-card__name {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.unit-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.unit-card__specs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius);
}
.spec {
  flex: 1;
  text-align: center;
}
.spec__value {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.spec__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.unit-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.unit-card__price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}
.unit-card__price span {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}
.unit-card .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* No results */
.units__empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.units__empty h3 { color: var(--navy); margin-bottom: 8px; }

/* ============================================================
   OM PROSJEKTET
   ============================================================ */
.about {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about .section-label { color: var(--gold); }
.about .section-title { color: var(--white); }
.about__lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  line-height: 1.75;
}
.about__text {
  color: rgba(255,255,255,0.60);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.75;
}
.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}
.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.about__feature::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(196,164,107,0.2);
  border: 1.5px solid var(--gold);
  margin-top: 2px;
  position: relative;
}
.about__feature::after {
  /* checkmark */
}

.about__visual {
  position: relative;
}
.about__image-main {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.about__img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #243648 0%, #2a3d2e 50%, #1a2b1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.about__image-accent {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 52%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--navy);
}
.about__img-accent-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #c4a46b33 0%, #1a2b3c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}
.about__stat-box {
  position: absolute;
  top: 28px;
  right: -24px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
}
.about__stat-box .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  display: block;
}
.about__stat-box .lbl {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   GALLERI
   ============================================================ */
.gallery {
  padding: 100px 0;
  background: var(--bg-alt);
}
.gallery__header {
  text-align: center;
  margin-bottom: 56px;
}
.gallery__header .section-intro {
  margin: 0 auto;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}
.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  display: block;
  width: 100%;
}
.gallery__item:focus-visible {
  outline: 2px solid var(--gold, #b8924d);
  outline-offset: 3px;
}
/* Magasin-stil: ett bilde spenner over 2 kolonner og 2 rader for visuell variasjon */
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

.gallery__placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: transform 0.4s ease;
}
.gallery__item:nth-child(1) .gallery__placeholder { aspect-ratio: unset; min-height: 100%; }
.gallery__item:hover .gallery__placeholder { transform: scale(1.04); }

.gallery__placeholder--1 { background: linear-gradient(135deg, #1a2b3c, #2c4a6a); }
.gallery__placeholder--2 { background: linear-gradient(135deg, #2a3d2e, #1a2b1e); }
.gallery__placeholder--3 { background: linear-gradient(135deg, #3d2a1a, #2b1a0f); }
.gallery__placeholder--4 { background: linear-gradient(135deg, #2a2a3d, #1a1a2b); }
.gallery__placeholder--5 { background: linear-gradient(135deg, #1a3d2a, #0f2b1a); }
.gallery__placeholder--6 { background: linear-gradient(135deg, #3d3a1a, #2b2a0f); }
.gallery__placeholder--7 { background: linear-gradient(135deg, #2a3d3d, #0f2b2b); }
.gallery__placeholder--8 { background: linear-gradient(135deg, #3d1a2a, #2b0f1a); }
.gallery__placeholder--9 { background: linear-gradient(135deg, #1a3d3a, #0f2b2a); }

.gallery__placeholder-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,43,60,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.gallery__item:hover .gallery__overlay {
  background: rgba(26,43,60,0.4);
}
.gallery__overlay-text {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}
.gallery__item:hover .gallery__overlay-text {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact {
  padding: 100px 0;
  background: var(--bg);
}
.contact__header {
  text-align: center;
  margin-bottom: 64px;
}
.contact__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  align-items: start;
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,164,107,0.15);
  background: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}
.contact-form .btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success.visible { display: block; }
.form-success__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(46,125,79,0.1);
  border: 2px solid var(--status-ledig);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.form-success h3 { color: var(--navy); margin-bottom: 10px; }
.form-success p { color: var(--text-muted); }

/* Contact info sidebar */
.contact-info {
  padding-top: 8px;
}
.contact-info__title {
  margin-bottom: 28px;
  font-size: 1.3rem;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-item__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(196,164,107,0.12);
  border: 1.5px solid rgba(196,164,107,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-item__value {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}
.contact-item__value a {
  color: var(--navy);
  transition: color 0.2s;
}
.contact-item__value a:hover { color: var(--gold); }

.contact-info__map {
  margin-top: 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #d4dde8 0%, #c8d5e0 50%, #b8c8d8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4a6070;
  font-size: 0.85rem;
}
.map-placeholder::before {
  content: '📍';
  font-size: 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand .nav__logo {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 14px;
  display: block;
}
.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 280px;
}
.footer__heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer__legal a:hover { color: var(--gold); }

/* ============================================================
   MODAL (enhet detaljer)
   ============================================================ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,43,60,0.7);
  z-index: 200;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal__image {
  height: 240px;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--navy);
  cursor: pointer;
  border: none;
  z-index: 2;
  transition: background 0.2s;
}
.modal__close:hover { background: var(--white); }
.modal__body { padding: 32px; }
.modal__id { color: var(--gold); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.modal__name { margin-bottom: 8px; }
.modal__badge { margin-bottom: 20px; display: inline-block; padding: 5px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.modal__desc { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.modal__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.modal__spec {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
}
.modal__spec .val {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  display: block;
}
.modal__spec .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.modal__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.modal__price {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}
.modal__price-label { font-size: 0.8rem; color: var(--text-muted); }
.modal__actions { display: flex; gap: 12px; }

/* ============================================================
   RÅDGIVNING
   ============================================================ */
.advisory {
  padding: 100px 0;
  background: var(--cream);
}
.advisory__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.advisory__media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(26,43,60,0.18);
}
.advisory__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/2;
}
.advisory__lead {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--navy);
  margin: 24px 0 20px;
  font-style: italic;
}
.advisory__text {
  font-size: 1rem;
  line-height: 1.75;
  color: #4a5560;
  margin-bottom: 24px;
}
.advisory__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.advisory__list li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid rgba(26,43,60,0.08);
  color: var(--navy);
  font-size: 0.95rem;
}
.advisory__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}
.advisory__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { max-width: 520px; margin: 0 auto; }
  .about__stat-box { right: -8px; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery__item:nth-child(1) .gallery__placeholder { min-height: 280px; aspect-ratio: 16/7; }

  .advisory__grid { grid-template-columns: 1fr; gap: 48px; }
  .advisory__media { max-width: 520px; margin: 0 auto; }

  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .units__header { flex-direction: column; align-items: flex-start; }
  .units__grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery__item:nth-child(1) { grid-column: span 2 !important; }
  .gallery__item .gallery__placeholder { min-height: 200px !important; aspect-ratio: 4/3 !important; }

  .about__image-accent { display: none; }
  .about__stat-box { position: static; margin-top: 20px; display: inline-block; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }

  .modal__specs { grid-template-columns: repeat(2, 1fr); }
  .modal__price-row { flex-direction: column; align-items: flex-start; }
  .modal__actions { width: 100%; }
  .modal__actions .btn { flex: 1; justify-content: center; }

  h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .units { padding: 72px 0; }
  .about  { padding: 72px 0; }
  .gallery{ padding: 72px 0; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item,
  .gallery__item:nth-child(1) { grid-column: span 1 !important; grid-row: span 1 !important; }
  .contact{ padding: 72px 0; }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   UNIT-CARD — SUBTYPE
   ============================================================ */
.unit-card__subtype {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.modal__subtype {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ============================================================
   ABOUT — KEY FACTS
   ============================================================ */
.about__keyfacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196,164,107,0.18);
  border-radius: var(--radius);
}
.about__keyfact {
  text-align: center;
}
.about__keyfact-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.about__keyfact-lbl {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.about__image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ============================================================
   STANDARD OG LEVERANSE
   ============================================================ */
.standard {
  padding: 100px 0;
  background: var(--white);
}
.standard__header {
  text-align: center;
  margin-bottom: 56px;
}
.standard__header .section-intro {
  margin: 0 auto;
}
.standard__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.standard__col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.standard__col:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.standard__col-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(196,164,107,0.12);
  border: 1px solid rgba(196,164,107,0.3);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.standard__col-title {
  margin-bottom: 20px;
  color: var(--navy);
}
.standard__list {
  list-style: none;
  padding: 0;
}
.standard__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}
.standard__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

/* ============================================================
   TIDSPLAN
   ============================================================ */
.timeline {
  padding: 100px 0;
  background: var(--bg);
}
.timeline__header {
  text-align: center;
  margin-bottom: 56px;
}
.timeline__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.timeline__steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--gold) 10%,
    var(--gold) 90%,
    transparent 100%);
  z-index: 0;
}
.timeline__step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.timeline__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--gold);
}
.timeline__title {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.timeline__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ============================================================
   GALLERI — bilder med fallback
   ============================================================ */
.gallery__placeholder {
  position: relative;
}
.gallery__placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.gallery__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE — nye seksjoner
   ============================================================ */
@media (max-width: 1024px) {
  .standard__grid { grid-template-columns: 1fr; }
  .timeline__steps { grid-template-columns: repeat(2, 1fr); }
  .timeline__steps::before { display: none; }
  .about__keyfacts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .timeline__steps { grid-template-columns: 1fr; }
  .standard { padding: 72px 0; }
  .timeline { padding: 72px 0; }
}

/* ============================================================
   PLANTEGNINGER — seksjon
   ============================================================ */
.plantegninger {
  padding: 100px 0;
  background: var(--bg-alt);
}
.plantegninger__header {
  text-align: center;
  margin-bottom: 56px;
}
.plantegninger__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.plantegning-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.plantegning-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.plantegning-card__thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.plantegning-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.plantegning-card:hover .plantegning-card__thumb img {
  transform: scale(1.04);
}
.plantegning-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.plantegning-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.plantegning-card__title {
  color: var(--navy);
  font-size: 1.25rem;
}
.plantegning-card__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}
.plantegning-card .btn {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.85rem;
  margin-top: 6px;
}
.plantegninger__extra {
  text-align: center;
  margin-top: 36px;
}
.plantegninger__situasjon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.plantegninger__situasjon-link:hover {
  border-color: var(--gold);
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.plantegninger__situasjon-icon {
  font-size: 1.1rem;
}

/* ============================================================
   FLOORPLANS-STRIP — thumbnails inni modalen
   ============================================================ */
.modal__floorplans {
  margin-bottom: 28px;
  padding-top: 4px;
}
.modal__floorplans-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 14px;
}
.floorplans-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.floorplans-strip::-webkit-scrollbar { height: 6px; }
.floorplans-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.floorplan-thumb {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 110px;
}
.floorplan-thumb:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.floorplan-thumb__img {
  width: 100%;
  height: 80px;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floorplan-thumb__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.floorplan-thumb__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.2;
}

/* Bilde-galleri-strip — bruker samme grunnstil som floorplans-strip,
   men med fotografi-vennlig 4:3 aspect-ratio og cover-fit */
.modal__gallery {
  margin-bottom: 28px;
}
.gallery-thumb {
  width: 130px;
}
.gallery-thumb .floorplan-thumb__img {
  height: auto;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8eef3 0%, #d8e1ea 100%);
}
.gallery-thumb .floorplan-thumb__img img {
  object-fit: cover;
}
.floorplan-thumb__img--missing {
  background: linear-gradient(135deg, #e8eef3 0%, #d8e1ea 100%);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox.open {
  display: flex;
  animation: lightboxIn 0.25s ease;
}
@keyframes lightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox__stage {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}
.lightbox__close:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.05);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}
.lightbox__nav:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.05);
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__label {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.4);
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
}

@media (max-width: 768px) {
  .plantegninger { padding: 72px 0; }
  .plantegninger__grid { grid-template-columns: 1fr; }
  .lightbox { padding: 16px; }
  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
  .lightbox__label {
    bottom: 12px;
    font-size: 0.8rem;
    padding: 6px 14px;
  }
}

/* ============================================================
   BUD-MODAL (forpliktet bud)
   ============================================================ */

.unit-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bid-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,43,60,0.7);
  z-index: 250;
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.bid-backdrop.open { display: flex; }

.bid-modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: modalIn 0.3s ease;
  margin: auto;
}
.bid-modal__inner { padding: 40px 40px 32px; }

.bid-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--navy);
  cursor: pointer;
  border: none;
  z-index: 2;
  transition: background 0.2s;
}
.bid-modal__close:hover { background: var(--bg-alt); }

.bid-modal__header { margin-bottom: 28px; }
.bid-modal__eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.bid-modal__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}
.bid-modal__sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.bid-section__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.bid-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.bid-form__full { grid-column: 1 / -1; }

.bid-form .form-group { margin-bottom: 0; }

.bid-radio-row {
  display: flex;
  gap: 16px;
  padding-top: 4px;
}
.bid-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}
.bid-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

.bid-confirmation-text {
  background: #f4f1ec;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}
.bid-confirmation-text__placeholder {
  color: #b8a98a;
  font-style: italic;
  background: rgba(196,164,107,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

.bid-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.bid-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}
.bid-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--gold);
  flex-shrink: 0;
  cursor: pointer;
}

.bid-form__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 20px;
}
#bid-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--gold);
}
#bid-submit:disabled:hover {
  background: var(--gold);
}

/* Suksess-visning */
.bid-modal__success {
  padding: 56px 40px 48px;
  text-align: center;
}
.bid-success__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.bid-success__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}
.bid-success__text {
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.6;
}
.bid-success__mailto {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.bid-success__mailto a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.bid-success__mailto a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .bid-backdrop { padding: 12px; }
  .bid-modal__inner { padding: 28px 22px 24px; }
  .bid-modal__success { padding: 40px 24px; }
  .bid-modal__title { font-size: 1.4rem; }
  .bid-form__grid { grid-template-columns: 1fr; }
  .bid-form__actions { flex-direction: column-reverse; }
  .bid-form__actions .btn { width: 100%; justify-content: center; }
  .unit-card__actions { width: 100%; justify-content: stretch; }
  .unit-card__actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   SPINNER (loading-state på submit-knapper)
   ============================================================ */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(196, 164, 107, 0.3);
  border-top-color: #c4a46b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   FORM ERROR (kontakt + bud)
   ============================================================ */
.form-error {
  text-align: center;
  padding: 40px 24px;
}
.form-error__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(192,57,43,0.10);
  border: 2px solid var(--status-solgt);
  color: var(--status-solgt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  font-weight: 700;
}
.form-error h3 { color: var(--navy); margin-bottom: 10px; }
.form-error p { color: var(--text-muted); margin-bottom: 20px; }
.form-error a { color: var(--gold); font-weight: 600; }
.form-error a:hover { text-decoration: underline; }

.bid-modal__error {
  padding: 56px 40px 48px;
  text-align: center;
}
.bid-error__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.bid-error__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}
.bid-error__text {
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.6;
}
.bid-error__text a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.bid-error__text a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .bid-modal__error { padding: 40px 24px; }
}
