@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg: #F1F2EE;
  --soft: #E3EEE8;
  --soft-2: #DCE8E1;
  --card: #FFFFFF;
  --green: #1E5A40;
  --green-dark: #123826;
  --blue: #1E5A40;
  --ink: #16201C;
  --text: #3B4742;
  --muted: #4A5650;
  --label-dark: #B9C4BE;
  --line: #C9CEC6;
  --photo: #D7DED6;
  --track: #DADDD6;
  --match: #F2C14E;
  --accent-blue: #2B4FA3;
  --ok: #1E5A40;
  --warn: #B5651D;
  --bad: #C2462A;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(22, 32, 28, 0.1);
  --font: 'Outfit', sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 0% 0%, rgba(227, 238, 232, 0.95), transparent 55%),
    radial-gradient(800px 400px at 100% 10%, rgba(30, 90, 64, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg), #e8ebe6 50%, var(--soft));
  min-height: 100vh;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(1320px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(241, 242, 238, 0.96);
  border-bottom: 1px solid var(--line);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.nav-links a.btn-primary {
  background: var(--green);
  color: #fff;
  opacity: 1;
}
.nav-links a.btn-primary:hover { background: var(--green-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: var(--bad); color: white; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.92rem; }

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
}

.section { padding: 3.5rem 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.section .lead {
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 1.75rem;
}

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.step strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0.35rem 0;
}
.step span { opacity: 0.55; font-size: 0.85rem; color: var(--blue); }

.page-head {
  padding: 2rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
  background: var(--soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.match-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--match);
  color: var(--green-dark);
}
.match-pill.mid { background: rgba(181, 101, 29, 0.18); color: var(--warn); }
.match-pill.low { background: rgba(194, 70, 42, 0.14); color: var(--bad); }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.detail {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
  padding-bottom: 3rem;
}
.detail-gallery {
  aspect-ratio: 16/11;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--photo), var(--green-dark));
}
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.habits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}
.habit {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.habit b { display: block; opacity: 0.6; font-weight: 500; font-size: 0.78rem; }
.habit-compare {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
}
.habit-compare span { display: flex; justify-content: space-between; gap: 0.5rem; }
.habit-compare em { font-style: normal; opacity: 0.55; font-size: 0.75rem; }

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 560px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.auth-shell {
  min-height: calc(100svh - 68px);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}
.auth-card { width: min(440px, 100%); }

.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  min-height: 70vh;
  padding-bottom: 2rem;
}
.thread-list { display: grid; gap: 0.5rem; align-content: start; }
.thread {
  text-align: left;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}
.thread.active {
  border-color: var(--green);
  background: var(--soft);
}
.chat-box {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 70vh;
}
.chat-msgs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  padding: 1rem 0;
  max-height: 55vh;
}
.bubble {
  max-width: 75%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
}
.bubble.me {
  align-self: flex-end;
  background: var(--green);
  color: #fff;
}
.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}

.toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  z-index: 99;
  animation: rise .25s ease;
}

.empty {
  padding: 2rem;
  text-align: center;
  opacity: 0.75;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--soft-2);
}

.reviews { display: grid; gap: 0.85rem; }
.review {
  padding: 1rem;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.review-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.review-meta {
  font-size: 0.82rem;
  opacity: 0.65;
}
.review-stars {
  color: var(--blue);
  letter-spacing: 0.06em;
  white-space: nowrap;
  font-size: 0.95rem;
}
.review p { opacity: 0.9; font-size: 0.95rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ---------- Navigation ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}
.nav-actions { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a, .nav-actions .linkish {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 500;
}
.nav-links a:hover, .nav-actions .linkish:hover { background: rgba(30, 90, 64, 0.1); }
.nav-links a.active { background: rgba(30, 90, 64, 0.14); }
.nav-actions a.btn-primary { background: var(--blue); color: #fff; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; color: var(--bg); border: 1px solid var(--soft-2); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.text-link {
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Home scroll snap ---------- */
@media (min-width: 901px) {
  html.home-snap {
    scroll-snap-type: y mandatory;
  }
  html.home-snap #site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  html.home-snap .site-header {
    position: relative;
    z-index: 1000;
    background: rgba(241, 242, 238, 0.98);
  }
  html.home-snap main > section {
    position: relative;
    z-index: 0;
    min-height: 100svh;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    display: grid;
    align-content: start;
    box-sizing: border-box;
    padding: calc(68px + 2.5rem) 0 4rem;
  }
  html.home-snap main > section:nth-child(odd) {
    background: var(--bg);
  }
  html.home-snap main > section:nth-child(even) {
    background: var(--soft);
  }
  html.home-snap main > section.section-cta {
    min-height: 0;
    padding: 3rem 0 2rem;
    scroll-snap-align: start;
    background: var(--soft-2);
  }
  html.home-snap .section-alt {
    border-block: 0;
  }
  html.home-snap .footer {
    margin-top: 0;
    scroll-snap-align: start;
    background: var(--card);
  }

  html.home-snap .hero {
    padding: calc(68px + 1.5rem) 0 3rem;
  }
  html.home-snap .hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.4rem);
    margin: 0.75rem 0 1.25rem;
  }
  html.home-snap .hero-sub {
    font-size: 1.25rem;
    max-width: 46ch;
    margin-bottom: 1.75rem;
  }
  html.home-snap .hero-grid {
    gap: 4.5rem;
  }
  html.home-snap .collage img {
    height: min(280px, 28vh);
  }
  html.home-snap .quick-search {
    padding: 1rem 1.1rem;
  }
  html.home-snap .quick-search .btn {
    height: 52px;
    padding-inline: 1.5rem;
  }

  html.home-snap .section h2 {
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    margin-bottom: 0.75rem;
  }
  html.home-snap .section .lead {
    font-size: 1.2rem;
    max-width: 52ch;
    margin-bottom: 2.5rem;
  }
  html.home-snap .steps {
    gap: 1.5rem;
  }
  html.home-snap .step {
    padding: 2rem 1.75rem;
    min-height: 240px;
  }
  html.home-snap .step span {
    font-size: 1rem;
  }
  html.home-snap .step strong {
    font-size: 1.75rem;
    margin: 0.6rem 0 0.75rem;
  }
  html.home-snap .step p {
    font-size: 1.08rem;
    line-height: 1.55;
  }

  html.home-snap .carousel {
    grid-auto-columns: calc((100% - 2.5rem) / 3);
    gap: 1.25rem;
  }
  html.home-snap .listing-media {
    aspect-ratio: 5/4;
  }
  html.home-snap .listing-body {
    padding: 1.15rem 1.2rem 1.25rem;
    gap: 0.4rem;
  }
  html.home-snap .listing h3 {
    font-size: 1.2rem;
  }
  html.home-snap .price {
    font-size: 1.35rem;
  }

  html.home-snap .price-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  html.home-snap .price-tile {
    padding: 1.75rem 1.5rem;
    min-height: 160px;
  }
  html.home-snap .price-tile span {
    font-size: 1.05rem;
  }
  html.home-snap .price-tile strong {
    font-size: 2.1rem;
  }
  html.home-snap .price-tile small {
    font-size: 0.95rem;
  }

  html.home-snap .split {
    gap: 4rem;
  }
  html.home-snap .split h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
  }
  html.home-snap .checklist {
    gap: 0.9rem;
    margin-bottom: 2rem;
    font-size: 1.08rem;
  }
  html.home-snap .checklist li {
    padding-left: 2.4rem;
  }
  html.home-snap .checklist li::before {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.9rem;
  }
  html.home-snap .mock {
    max-width: 520px;
    padding: 1.75rem;
  }
  html.home-snap .mock h3 {
    font-size: 1.75rem;
  }
  html.home-snap .mock-bars {
    gap: 0.9rem;
    margin-bottom: 1.4rem;
  }
  html.home-snap .mock-bars div {
    grid-template-columns: 110px 1fr;
    font-size: 1rem;
  }
  html.home-snap .mock-bars i {
    height: 12px;
  }
  html.home-snap .match-pill {
    font-size: 0.95rem;
    padding: 0.4rem 0.85rem;
  }
  html.home-snap main .btn {
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
  }
  html.home-snap .nav-actions .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  html.home-snap .cta-band {
    padding: 4.5rem 2.5rem;
    border-radius: 28px;
  }
  html.home-snap .cta-band h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 0.75rem;
  }
  html.home-snap .cta-band p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.home-snap {
    scroll-snap-type: none;
  }
}

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 3rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}
.hero-copy { animation: rise .7s ease both; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.6rem 0 1rem;
  color: var(--ink);
}
.hero-sub {
  font-size: 1.12rem;
  max-width: 42ch;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.quick-search {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 0.6rem;
  align-items: end;
  padding: 0.8rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.quick-search .btn { height: 46px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.proof {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.proof::before { content: "● "; color: var(--ok); }
.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  animation: rise .9s ease both;
}
.collage img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.collage img:nth-child(even) { transform: translateY(2.5rem); }

/* ---------- Sections ---------- */
.section-alt {
  background: rgba(255, 255, 255, 0.5);
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.section-title {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin: 1rem 0;
}
.carousel-nav { display: flex; gap: 0.5rem; margin-bottom: 1.75rem; }
.round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font-size: 1.1rem;
}
.round-btn:hover { background: var(--soft); }
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.1rem 1rem;
  scrollbar-width: thin;
}
.carousel > * { scroll-snap-align: start; }

.price-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.price-tile {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.price-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.price-tile span { font-weight: 600; }
.price-tile strong { font-family: var(--display); font-size: 1.5rem; color: var(--blue); }
.price-tile small { opacity: 0.7; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split h2 { margin-top: 0.4rem; }
.checklist { list-style: none; display: grid; gap: 0.6rem; margin-bottom: 1.6rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(30, 90, 64, 0.12);
  color: var(--ok);
}
.mock { max-width: 440px; justify-self: center; width: 100%; }
.mock h3 { font-family: var(--display); font-size: 1.4rem; margin: 0.3rem 0 0.8rem; }
.mock-top { display: flex; justify-content: space-between; align-items: center; }
.mock-bars { display: grid; gap: 0.6rem; margin-bottom: 1.1rem; }
.mock-bars div { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.mock-bars i { height: 8px; border-radius: 99px; background: var(--track); position: relative; overflow: hidden; }
.mock-bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--green); border-radius: inherit; }
.avatars { display: flex; align-items: center; margin-top: 1rem; }
.avatars img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--card); margin-left: -10px;
}
.avatars img:first-child { margin-left: 0; }
.avatars span { margin-left: 0.75rem; font-size: 0.88rem; opacity: 0.75; }

.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { opacity: 0.85; margin-bottom: 1.5rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Kort ---------- */
.listing {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.listing:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 90, 64, 0.45);
  box-shadow: var(--shadow);
}
.listing-media {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--photo), var(--green-dark));
  position: relative;
  overflow: hidden;
}
.listing-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.listing:hover .listing-media img { transform: scale(1.04); }
.listing-media .badge, .detail-gallery .badge { position: absolute; left: 0.75rem; top: 0.75rem; }
.badge {
  display: inline-block;
  z-index: 1;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-now { background: var(--ok); color: #fff; border-color: transparent; }
.fav-btn {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--card);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn svg { width: 20px; height: 20px; fill: transparent; stroke: var(--ink); stroke-width: 2; }
.fav-btn.on svg { fill: var(--bad); stroke: var(--bad); }
.listing-body { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem 1rem; }
.listing-area { font-size: 0.82rem; font-weight: 600; color: var(--blue); opacity: 0.85; }
.listing h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.listing-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.listing-desc {
  font-size: 0.9rem;
  opacity: 0.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-foot {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.price { font-weight: 700; font-size: 1.15rem; }
.price small { font-weight: 500; font-size: 0.8rem; opacity: 0.7; }
.listing-match { margin-top: 0.4rem; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- Liste og detalje ---------- */
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.results-bar p { font-weight: 600; }
.results-tools { display: flex; align-items: center; gap: 1rem; }
.sort-select {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}
.detail-gallery { position: relative; }
.detail-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.6rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.facts div {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: var(--soft);
}
.facts dt { font-size: 0.78rem; opacity: 0.65; }
.facts dd { font-weight: 600; }
.detail-side { align-self: start; position: sticky; top: 84px; }
.detail-side hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.detail-price { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.detail-price .price { font-size: 1.6rem; }
.host-row { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.6rem; }
.host-row .avatar { width: 64px; height: 64px; }
.host-row h2 { font-family: var(--display); font-size: 1.4rem; }
.hint { opacity: 0.7; font-size: 0.92rem; margin-bottom: 1rem; }
.habit.same { background: rgba(30, 90, 64, 0.12); border-color: rgba(30, 90, 64, 0.28); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.detail-actions .btn-primary { flex: 1 1 100%; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px var(--line);
  backdrop-filter: blur(12px);
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-banner-title {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.cookie-banner-copy p:last-child {
  font-size: 0.92rem;
  opacity: 0.82;
  max-width: 62ch;
  margin: 0;
}
.cookie-banner-copy a { text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-banner-actions .btn { min-width: 7rem; }
.footer-cookie-btn {
  display: block;
  padding: 0.2rem 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  opacity: 0.8;
  text-align: left;
}
.footer-cookie-btn:hover { opacity: 1; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 1.75rem;
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 0.75rem; }
.footer-brand p { opacity: 0.75; max-width: 32ch; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.7rem; color: var(--blue); }
.footer-grid a { display: block; padding: 0.2rem 0; opacity: 0.8; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.85;
}
.footer-legal a { text-decoration: underline; }
.footer-bottom {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  opacity: 0.6;
  font-size: 0.85rem;
}
.legal-page {
  padding: 2.5rem 0 4rem;
  max-width: 720px;
}
.legal-page h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0.3rem 0 1.25rem;
}
.legal-page h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
}
.legal-page p, .legal-page li {
  opacity: 0.88;
  margin-bottom: 0.75rem;
}
.legal-page ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal-page a { text-decoration: underline; }

@media (max-width: 900px) {
  .steps, .grid, .detail, .chat-layout, .form-row, .split, .hero-grid {
    grid-template-columns: 1fr;
  }
  .filters { grid-template-columns: 1fr 1fr; }
  .habits { grid-template-columns: 1fr 1fr; }
  .split { gap: 2rem; }
  .split-rev .mock { order: 2; }
  .hero { padding-top: 2rem; }
  .collage img { height: 150px; }
  .collage img:nth-child(even) { transform: none; }
  .carousel { grid-auto-columns: 78%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { font-size: 0.88rem; }

  .nav-toggle { display: flex; }
  .nav { flex-wrap: wrap; min-height: 64px; }
  .nav-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.5rem 0 1rem;
  }
  .site-header.open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a, .nav-actions .linkish { padding: 0.7rem 0.8rem; text-align: left; }
  .nav-actions { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 0.75rem; }
}

@media (max-width: 560px) {
  .quick-search { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .section-head .carousel-nav { display: none; }
  .results-bar { flex-direction: column; align-items: stretch; }
  .results-tools { justify-content: space-between; }
}
