/* Self-hosted fonts (Source Serif 4 + Inter, latin subset). Italic synthesized by browser if needed. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-serif-4-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/source-serif-4-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-serif-4-600.woff2') format('woff2');
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Skip-to-content link (A11y) — visible only when focused */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #1e3a5f;
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transform: translateY(-150%);
  transition: transform 0.15s;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

html, body {
  /* `clip` istället för `hidden` så att position: sticky inte bryts på descendants. */
  overflow-x: clip;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.serif {
  font-family: "Source Serif 4", Georgia, serif;
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.header-top {
  background: #1e3a5f;
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}

.header-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 900px) {
  .header-top {
    display: none;
  }
}

.header-top a {
  color: #fff;
  opacity: .9;
}

.header-top a:hover {
  opacity: 1;
}

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #1e3a5f;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: "Source Serif 4", serif;
  font-size: 22px;
  font-weight: 600;
  color: #1e3a5f;
  letter-spacing: -.5px;
}

.logo-img {
  height: 80px;
  width: auto;
}

.footer-logo {
  height: 60px;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}

nav a:hover,
nav a.active {
  border-bottom-color: #1e3a5f;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1e3a5f;
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 1000;
  padding: 32px 32px 32px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav-logo {
  display: block;
  margin: 0 0 24px;
  padding: 0 !important;
  border: none !important;
  flex-shrink: 0;
}
.mobile-nav-logo img {
  height: 56px;
  width: auto;
  display: block;
}
.mobile-nav a {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a.active {
  color: #1e3a5f;
  font-weight: 600;
}
.mobile-nav .btn {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
  color: #fff !important;
}

/* Close button inside mobile nav */
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}
.mobile-nav-close svg {
  width: 28px;
  height: 28px;
  stroke: #1a1a1a;
  stroke-width: 2;
}

/* aria-current="page" på aktiv navlänk — tydlig visuell markering utöver .active-klassen */
nav a[aria-current="page"] {
  color: #1e3a5f;
  border-bottom-color: #1e3a5f;
}

.mobile-nav a[aria-current="page"] {
  color: #1e3a5f;
  font-weight: 600;
}

/* Mobile-actions row i header. Döljs på desktop, syns på <=768px. */
.header-mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}
.header-mobile-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: #1e3a5f;
  background: #f3f5f8;
}
.header-mobile-call:hover {
  background: #e6ebf2;
}
.btn.btn-sm.header-mobile-cta {
  padding: 8px 14px;
  font-size: 13px;
}

/* Kontakt-rad i botten på mobilmenyn */
.mobile-nav-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #1e3a5f;
  padding: 6px 0;
  border-bottom: none;
}
.mobile-nav-contact-link svg {
  flex-shrink: 0;
  color: #1e3a5f;
}

/* Sticky bottom-tel-bar för mobil. Syns endast på <=768px. */
.mobile-sticky-tel {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: #1e3a5f;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.25);
  text-decoration: none;
}
.mobile-sticky-tel svg {
  color: #fff;
}
.mobile-sticky-tel:hover,
.mobile-sticky-tel:focus {
  background: #2a4a73;
}

/* Empty state för filtrerade bostäder (fastigheter-till-salu) */
.properties-empty {
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed #d8dce3;
  border-radius: 8px;
  background: #f8f9fa;
  margin: 0 auto;
  max-width: 640px;
}
.properties-empty svg {
  margin: 0 auto 16px;
  display: block;
  color: #1e3a5f;
}
.properties-empty h3,
.properties-empty .properties-empty-title {
  font-size: 20px;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.properties-empty p {
  font-size: 15px;
  color: #555;
  margin: 0 auto 24px;
  max-width: 480px;
}
.properties-empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #1e3a5f;
  color: #fff;
}

.btn-primary:hover {
  background: #2a4a73;
}

.btn-outline {
  background: transparent;
  color: #1e3a5f;
  border: 1px solid #1e3a5f;
}

.btn-outline:hover {
  background: #1e3a5f;
  color: #fff;
}

/* Hero */
.hero {
  margin-top: 113px;
  background: #1e3a5f;
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  -webkit-overflow-scrolling: auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/images/bostad-1.webp) center/cover;
  opacity: .15;
}

.hero-grid {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Source Serif 4", serif;
  font-size: 44px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.hero-feature svg {
  color: #4ade80;
}

/* Hero Form - White Card */
.hero-form-container {
  position: relative;
}

.vf {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  overflow: hidden;
}

.vf-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px 0;
}

.vf-label {
  font-size: 13px;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.5px;
}

/* Pill Tabs */
.vf-tabs {
  display: flex;
  background: #f1f3f5;
  border-radius: 8px;
  padding: 3px;
  margin: 16px 24px 0;
}

.vf-tab {
  flex: 1;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: #888;
  font-family: inherit;
}

.vf-tab.active {
  background: #1e3a5f;
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,58,95,0.25);
}

.vf-tab:not(.active):hover {
  color: #1e3a5f;
}

/* Step Dots */
.vf-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 24px 4px;
}

.vf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s;
}

.vf-dot.active {
  background: #1e3a5f;
  width: 24px;
  border-radius: 4px;
}

.vf-dot.done {
  background: #4ade80;
}

/* Steps */
.vf-step {
  padding: 16px 24px 24px;
}

/* Fields */
.vf-field {
  margin-bottom: 16px;
}

.vf-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Type Grid */
.vf-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vf-type-option input { display: none; }

.vf-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.vf-type-card svg { color: #aaa; transition: color 0.2s; }
.vf-type-card span { font-size: 12px; font-weight: 500; color: #888; transition: color 0.2s; }

.vf-type-card:hover {
  border-color: #1e3a5f;
}

.vf-type-option input:checked + .vf-type-card {
  border-color: #1e3a5f;
  background: #f8fafc;
  box-shadow: 0 0 0 1px #1e3a5f;
}

.vf-type-option input:checked + .vf-type-card svg { color: #1e3a5f; }
.vf-type-option input:checked + .vf-type-card span { color: #1a1a1a; }

/* Input Wrap */
.vf-input-wrap {
  position: relative;
}

.vf-input-wrap input,
.vf-input-wrap select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
}

.vf-input-wrap input::placeholder { color: #aaa; }
.vf-input-wrap input:focus { border-color: #1e3a5f; }

.vf-input-suffix { position: relative; }
.vf-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: #888;
}

.vf-input-suffix input { padding-right: 48px; }

/* Slider */
.vf-slider-wrap {
  padding: 8px 0 0;
}

.vf-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
  outline: none;
  position: relative;
  background-image: linear-gradient(#1e3a5f, #1e3a5f);
  background-size: var(--val, 28.6%) 100%;
  background-repeat: no-repeat;
}

.vf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1e3a5f;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(30,58,95,0.3);
  border: 3px solid #fff;
}

.vf-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1e3a5f;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(30,58,95,0.3);
  border: 3px solid #fff;
}

.vf-slider-labels {
  display: flex;
  justify-content: space-between;
  padding: 6px 2px 0;
}

.vf-slider-labels span {
  font-size: 11px;
  color: #aaa;
}

.vf-slider-value {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a5f;
}

/* Pill Group */
.vf-pill-group {
  display: flex;
  gap: 8px;
}

.vf-pill input { display: none; }

.vf-pill span {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}

.vf-pill span:hover { border-color: #1e3a5f; }

.vf-pill input:checked + span {
  background: #f0f4f8;
  border-color: #1e3a5f;
  color: #1e3a5f;
}

/* Row */
.vf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Terms */
.vf-terms {
  margin-bottom: 16px;
}

.vf-terms label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #888;
  cursor: pointer;
}

.vf-terms input {
  margin-top: 1px;
  accent-color: #1e3a5f;
}

/* Buttons */
.vf-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: #1e3a5f;
  color: #fff;
}

.vf-btn:hover {
  background: #2a4a73;
  box-shadow: 0 4px 16px rgba(30,58,95,0.25);
}

.vf-btn-submit {
  flex: 1;
}

/* Simplified single-step hero form */
.vf-step-simple .vf-btn-submit {
  width: 100%;
  margin-top: 4px;
}
.vf-terms-mini {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: #777;
  line-height: 1.45;
}

.vf-btn-back {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: transparent;
  color: #888;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.vf-btn-back:hover {
  color: #1a1a1a;
  border-color: #aaa;
}

.vf-btn-row {
  display: flex;
  gap: 12px;
}

.vf-btn-row .vf-btn {
  flex: 1;
}

/* SUCCESS-STATE (delas mellan valuation-form + andra inline-success-paneler) */
/* Global hidden-fix: säkerställ att HTML hidden-attributet alltid vinner över
   display-värdet på flex/grid-containers. Annars syns vf-success vid sidladdning. */
[hidden] { display: none !important; }

.vf-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 4px 8px;
}
.vf-success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 126, 58, 0.10);
  border-radius: 50%;
  margin-bottom: 20px;
}
.vf-success h3,
.vf-success .vf-success-heading {
  font-family: 'Source Serif 4', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 8px;
}
.vf-success > p {
  color: #555;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 420px;
}
.vf-success-next {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f9fc;
  border-radius: 10px;
  padding: 18px 20px;
  width: 100%;
  max-width: 420px;
}
.vf-success-next li {
  font-size: 14px;
  color: #1a365d;
  padding-left: 26px;
  position: relative;
  line-height: 1.5;
}
.vf-success-next li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #1d7e3a;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
}
.vf-success-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.vf-btn-ghost {
  display: inline-block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  background: #1a365d;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.vf-btn-ghost:hover {
  background: #122849;
}

/* TOAST (för clipboard + newsletter) */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #1a365d;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  max-width: calc(100vw - 32px);
}
.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Buttons */
.d-flex {
  display: flex;
}

.justify-end {
  justify-content: flex-end;
  gap: 12px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}

.action-button:hover {
  background: #2a4a73;
  transform: scale(0.98);
}

.prev-step {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: #666;
  border: none;
  cursor: pointer;
  transition: color .2s;
}

.prev-step:hover {
  color: #1a1a1a;
}

/* Glow Animation */
.glow {
  overflow: hidden;
  animation: pulse2 1.75s 2;
}

.glow:after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(180deg, rgba(255,255,255, .5), transparent 100%);
  transform: rotate(60deg) translate(-5em, 8.5em);
  opacity: 0;
  pointer-events: none;
  animation: shine 7s infinite forwards;
  animation-delay: .75s;
}

@keyframes shine {
  0% { opacity: 0; }
  10% { opacity: 1; }
  20%, 100% { opacity: 0; transform: rotate(60deg) translate(1em,-9em); }
}

@keyframes pulse2 {
  0% { transform: scale(0.95); }
  70% { transform: scale(1); }
  100% { transform: scale(0.95); }
}

/* Legacy hero-content for backwards compatibility */
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}

.hero h1 {
  font-family: "Source Serif 4", serif;
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  max-width: 600px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin-bottom: 32px;
}

/* Search Box */
.search-box {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 640px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.search-box h3 {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}

.search-input-wrapper {
  display: flex;
  gap: 12px;
}

.search-input {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  transition: border-color .2s;
}

.search-input:focus {
  border-color: #1e3a5f;
}

.search-input::placeholder {
  color: #999;
}

/* Quick Links */
.quick-links {
  background: #f8f8f8;
  border-bottom: 1px solid #e5e5e5;
}

.quick-links-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 48px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}

.quick-link:hover {
  color: #1e3a5f;
  border-bottom-color: #1e3a5f;
}

.quick-link svg {
  width: 20px;
  height: 20px;
  color: #1e3a5f;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: "Source Serif 4", serif;
  font-size: 36px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: #666;
  max-width: 560px;
  margin: 0 auto;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.property-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.property-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1e3a5f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
}

.property-badge.sold {
  background: #c0392b;
}

.property-info {
  padding: 20px;
}

.property-address {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.property-area {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.property-details {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #666;
}

.property-detail {
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-price {
  font-size: 20px;
  font-weight: 600;
  color: #1e3a5f;
  margin-top: 16px;
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

/* Services */
.services-section {
  background: #fafaf7;
}

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

.service-card {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.service-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card a {
  font-size: 14px;
  font-weight: 600;
  color: #1e3a5f;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.service-card a:hover {
  text-decoration: underline;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  margin: 0 auto 16px;
  border: 4px solid #f0f0f0;
}

.team-name {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.team-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.team-bio {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.team-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-contact {
  font-size: 13px;
  color: #1e3a5f;
}

/* CTA Section */
.cta-section {
  background: #1e3a5f;
  text-align: center;
}

.cta-section h2 {
  font-family: "Source Serif 4", serif;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-white {
  background: #fff;
  color: #1e3a5f;
}

.btn-white:hover {
  background: #f0f0f0;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Footer */
footer {
  background: #0f1f2e;
  color: #fff;
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4,
.footer-col .footer-h {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color .2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Content Split (Two-column with image) */
.content-split {
  padding: 80px 0;
}

.content-split:nth-child(even) {
  background: #f8f9fa;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.content-split.reverse .split-grid {
  direction: rtl;
}

.content-split.reverse .split-grid > * {
  direction: ltr;
}

.split-image {
  display: flex;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-text h2 {
  font-family: "Source Serif 4", serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1e3a5f;
}

.split-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.split-text .btn {
  margin-top: 8px;
}

/* Values List (in split layout) */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-item svg {
  flex-shrink: 0;
  color: #1e3a5f;
  margin-top: 4px;
}

.value-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1e3a5f;
}

.value-item p {
  font-size: 15px;
  color: #666;
  margin: 0;
}

/* CTA Split variation */
.cta-split {
  background: #f8f9fa;
}

/* Page Hero (Subpages) */
.page-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
  padding: 160px 0 80px;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-family: "Source Serif 4", serif;
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  opacity: 0.9;
}

/* About Content */
.about-content {
  padding: 80px 0;
}

.about-intro {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.about-intro h2 {
  font-family: "Source Serif 4", serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #1e3a5f;
}

.about-intro p {
  font-size: 17px;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Values Section */
.values-section {
  padding: 80px 0;
  background: #f8f9fa;
}

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

.value-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.value-svg {
  color: #1e3a5f;
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1e3a5f;
}

.value-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* Vertical Timeline */
.timeline-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #1e3a5f, #3d5a80);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  
  /* Animation initial state */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #1e3a5f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
  z-index: 1;
}

.timeline-number {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.timeline-content {
  flex: 1;
  background: #fff;
  padding: 24px 28px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.timeline-content h3 {
  font-family: "Source Serif 4", serif;
  font-size: 20px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* Property Listings */
.listings-section {
  padding: 80px 0;
}

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

.listing-card {
  background: #fff;
  border: 1px solid #e8e8ea;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.listing-card:hover {
  border-color: #c4cdd9;
}

.listing-card.sold {
  opacity: 0.8;
}

.listing-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-type {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1e3a5f;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.listing-sold-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #dc3545;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.listing-content {
  padding: 20px;
}

.listing-address {
  font-family: "Source Serif 4", serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1e3a5f;
}

.listing-area {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.listing-details {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.listing-price {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a5f;
}

.listing-price.sold-price {
  text-decoration: line-through;
  color: #999;
}

.listing-fee {
  font-size: 13px;
  color: #666;
}

/* Sold Section */
.sold-section {
  padding: 80px 0;
  background: #f8f9fa;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .properties-grid,
  .services-grid,
  .team-grid,
  .footer-grid,
  .values-grid,
  .listings-grid,
  .sold-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-hero h1 {
    font-size: 36px;
  }
  
  .split-grid {
    gap: 40px;
  }
}

/* Empathy Section */
.empathy-section {
  background: #ffffff;
  padding: 80px 0;
}

.empathy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.empathy-content {
  text-align: left;
}

.empathy-content h2 {
  font-family: "Source Serif 4", serif;
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.3;
}

.empathy-content p {
  font-size: 17px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.empathy-content p:last-child {
  margin-bottom: 0;
}

.empathy-image {
  border-radius: 12px;
  overflow: hidden;
}

.empathy-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .empathy-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .empathy-content { text-align: center; }
}

/* Process Grid v2 — svensk mäklarbyrå-känsla */
.process-section-v2 {
  padding: 88px 0 96px;
  background: #f5f3ee;
  position: relative;
}
.process-section-v2 .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.process-section-v2 .section-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 18px;
}
.process-section-v2 .section-header h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.process-section-v2 .section-header p {
  font-size: 16.5px;
  line-height: 1.55;
  color: #4a4a52;
  margin: 0;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}
/* Connector-streck mellan stegen på desktop */
.process-section-v2 .process-grid::before {
  content: "";
  position: absolute;
  top: 56px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: repeating-linear-gradient(to right, #c5beae 0, #c5beae 6px, transparent 6px, transparent 12px);
  z-index: 0;
}
.process-step {
  background: #fff;
  padding: 36px 28px 32px;
  border-radius: 4px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  position: relative;
  z-index: 1;
}
.process-icon {
  width: 56px;
  height: 56px;
  background: #1e3a5f;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.18);
}
.process-number {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8275;
  font-weight: 600;
  margin: 0 0 8px;
}
.process-section-v2 .process-step h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.process-section-v2 .process-step p {
  font-size: 14.5px;
  color: #4a4a52;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; }
  .process-section-v2 .process-grid::before { display: none; }
}
@media (max-width: 600px) {
  .process-section-v2 { padding: 64px 0 72px; }
  .process-section-v2 .section-header h2 { font-size: 30px; }
  .process-section-v2 .section-header { margin-bottom: 44px; }
  .process-grid { grid-template-columns: 1fr; max-width: 440px; gap: 16px; }
  .process-step { padding: 28px 22px; }
}

/* USP Section */
.usp-section {
  background: #f8f8f8;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.usp-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e5e5e5;
}

.usp-icon {
  width: 64px;
  height: 64px;
  background: #f0f4f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #1e3a5f;
}

.usp-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.usp-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  background: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.faq-item {
  padding: 28px;
  background: #f8f8f8;
  border-radius: 8px;
}

.faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.faq-item p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-text h1 {
    font-size: 36px;
  }
  
  .service-choice {
    grid-template-columns: 1fr 1fr;
  }
  
  .process-grid,
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  /* Dölj desktop-CTA-knappen + mobil-telefon + mobil-CTA (bara logo + hamburger på mobil) */
  .header-main > .btn.header-cta {
    display: none;
  }
  .header-mobile-actions {
    display: flex;
  }
  .header-mobile-call,
  .btn.btn-sm.header-mobile-cta {
    display: none;
  }
  /* Sticky tel-bar för mobil */
  .mobile-sticky-tel {
    display: inline-flex;
  }
  /* Lämna utrymme längst ner så att sticky-tel-bar inte täcker content */
  body {
    padding-bottom: 80px;
  }

  .hero h1,
  .hero-text h1 {
    font-size: 38px;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
  }

  .hero {
    min-height: 0;
  }

  .hero-grid {
    padding: 32px 20px 28px;
    gap: 22px;
  }

  .hero-text p {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  /* På mobil: dölj feature-listan så formuläret kommer ovan fold */
  .hero-features {
    display: none;
  }

  .hero-form-container {
    padding: 0;
    margin: 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .service-choice {
    grid-template-columns: 1fr;
  }
  
  .quick-links-inner {
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: center;
  }
  .quick-links-inner a {
    font-size: 13px;
    padding: 12px 8px;
  }
  .quick-links-inner svg {
    width: 20px;
    height: 20px;
  }
  
  .empathy-content h2 {
    font-size: 26px;
  }
  
  .properties-grid,
  .services-grid,
  .team-grid,
  .footer-grid,
  .process-grid,
  .usp-grid,
  .faq-grid,
  .values-grid,
  .listings-grid,
  .sold-grid {
    grid-template-columns: 1fr;
  }
  
  .page-hero {
    padding: 120px 0 60px;
  }
  
  .page-hero h1 {
    font-size: 28px;
  }
  
  .section-inner {
    padding: 0 16px;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .content-split.reverse .split-grid {
    direction: ltr;
  }
  
  .split-image img {
    height: 300px;
  }
  
  .content-split {
    padding: 60px 0;
  }

  .timeline-section {
    padding: 60px 0;
  }

  .section-new {
    padding: 60px 0;
  }

  .section-new-gray {
    padding: 60px 0;
  }
  
  .timeline-item {
    gap: 16px;
  }
  
  .timeline-marker {
    width: 32px;
    height: 32px;
  }
  
  .timeline-number {
    font-size: 14px;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Article Breadcrumb */
.article-breadcrumb {
  background: #f8f9fa;
  padding: 16px 0;
  border-bottom: 1px solid #e9ecef;
  margin-top: 113px;
}
.article-breadcrumb .section-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6c757d;
}
.article-breadcrumb a { color: #1e3a5f; }
.article-breadcrumb a:hover { text-decoration: underline; }

/* Article Page */
.article-page { padding: 48px 0 80px; }
.article-container { max-width: 720px; margin: 0 auto; }
.article-page-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: #1e3a5f;
  margin-bottom: 24px;
}
.article-meta { margin-bottom: 32px; }
.author-info { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.author-name {
  display: block;
  font-weight: 500;
  color: #1e3a5f;
}
.article-date {
  display: block;
  font-size: 14px;
  color: #6c757d;
}
.article-featured-image {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}
.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}
.article-body p { margin-bottom: 24px; }
.article-body h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 48px 0 16px;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 32px 0 12px;
}
.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body a {
  color: #1e3a5f;
  text-decoration: underline;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 15px;
}
.article-body th {
  text-align: left;
  font-weight: 600;
  color: #1e3a5f;
  padding: 12px 16px;
  border-bottom: 2px solid #1e3a5f;
}
.article-body td {
  padding: 10px 16px;
  border-bottom: 1px solid #e9ecef;
  color: #333;
}
.article-body tr:last-child td {
  border-bottom: none;
}
.article-body blockquote {
  border-left: 3px solid #1e3a5f;
  padding: 16px 24px;
  margin: 24px 0;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
  color: #555;
  font-style: italic;
}
.author-box {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-top: 48px;
}
.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box-name {
  font-weight: 600;
  color: #1e3a5f;
  font-size: 18px;
}
.author-box-role {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 4px;
}
.author-box-date {
  color: #6c757d;
  font-size: 13px;
  margin-bottom: 12px;
}
.author-box-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #495057;
  margin: 0;
}
@media (max-width: 600px) {
  .article-page-title { font-size: 28px; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* =============================================
   NEW ARTICLE DESIGN (art-* prefix)
   Global styles - apply by using art-* classes
   ============================================= */

/* Hero Image - Contained Card */
/* Article wrapper - white card with shadow */
.art-wrapper {
  margin-top: 113px;
  padding: 40px 24px 64px;
  background: #f3f4f6;
}
.art-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
  overflow: hidden;
}
/* Breadcrumb */
.art-breadcrumb {
  max-width: 1000px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}
.art-breadcrumb a {
  color: #1e3a5f;
  text-decoration: none;
  transition: color 0.2s;
}
.art-breadcrumb a:hover { color: #c9a050; }
.art-breadcrumb .art-bc-sep {
  color: #9ca3af;
  font-size: 12px;
}
.art-breadcrumb .art-bc-current {
  color: #374151;
  font-weight: 500;
}

/* Mobile header - hidden on desktop */
.art-mobile-header {
  display: none;
}

.art-hero {
  /* now inside .art-card, no separate background */
}
.art-hero-card {
  position: relative;
  overflow: hidden;
}
.art-hero-card > img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.art-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
}
.art-hero-back {
  position: absolute;
  bottom: 60px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.art-hero-back:hover { color: #fff; }
.art-hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
}
.art-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.art-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
}

/* Article Page - now inside .art-card */
.art-page {
  padding: 48px 40px 48px;
}
.art-container {
  max-width: 720px;
  margin: 0 auto;
}

/* === Table of Contents (sidebar desktop + sticky mobile) === */
.art-grid {
  display: block;
}
.art-toc-mobile {
  display: none;
}
.art-toc-desktop {
  display: none;
}
/* Desktop ≥ 1080px: two-column grid med ToC sidebar (kort med krämig bakgrund) */
@media (min-width: 1080px) {
  .art-card {
    max-width: 1180px;
  }
  .art-grid {
    display: grid;
    grid-template-columns: minmax(0, 720px) 260px;
    gap: 56px;
    align-items: start;
  }
  .art-container {
    max-width: 100%;
    margin: 0;
    min-width: 0;
  }
  .art-toc-desktop {
    display: block;
    position: relative;
  }
  .art-toc-sticky {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 0 0 0 20px;
    border-left: 1px solid #e5e5e5;
    scrollbar-width: thin;
    scrollbar-color: #d4d0c8 transparent;
  }
  .art-toc-sticky::-webkit-scrollbar { width: 4px; }
  .art-toc-sticky::-webkit-scrollbar-thumb { background: #d4d0c8; border-radius: 2px; }
  .art-toc-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin: 0 0 18px;
  }
}
/* Mobile < 1080: collapsible sticky bar (utanför .art-page för viewport sticky-context).
   Header är position: fixed; height ~73-85px, så ToC måste sticka under den. */
@media (max-width: 1079.98px) {
  .art-toc-mobile {
    display: block;
    position: sticky;
    top: 73px;
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid #ece7dc;
    margin: 0;
    padding: 0;
  }
  .art-toc-mobile summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1e3a5f;
    list-style: none;
    min-height: 44px;
  }
  .art-toc-mobile summary::-webkit-details-marker { display: none; }
  .art-toc-mobile summary svg { flex-shrink: 0; color: #1e3a5f; }
  .art-toc-mobile summary::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: auto;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.15s ease;
  }
  .art-toc-mobile[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .art-toc-mobile .art-toc-nav {
    display: none;
    padding: 4px 20px 18px;
    max-height: 60vh;
    overflow-y: auto;
    background: #fafaf7;
    border-top: 1px solid #ece7dc;
  }
  .art-toc-mobile[open] .art-toc-nav { display: block; }
}
/* Shared nav-stilar för både desktop och mobil */
.art-toc-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.45;
}
.art-toc-nav li {
  margin: 0;
  padding: 0;
}
.art-toc-nav a {
  display: block;
  color: #6b7280;
  text-decoration: none;
  padding: 6px 0 6px 12px;
  margin-left: -13px;
  border-left: 1px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.art-toc-nav a:hover {
  color: #1e3a5f;
}
.art-toc-nav a.active {
  color: #1e3a5f;
  border-left-color: #1e3a5f;
  font-weight: 500;
}
.art-toc-h2 a {
  color: #374151;
  font-weight: 500;
}
.art-toc-h3 a {
  padding-left: 24px;
  font-size: 12.5px;
  color: #9ca3af;
}
.art-toc-h3 a::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  margin: 0 8px 2px -12px;
  vertical-align: middle;
  opacity: 0.6;
}

/* Mobile padding fix for sticky ToC */
@media (max-width: 1079.98px) {
  .art-page {
    padding: 48px 40px 48px;
  }
}

/* === "Läs även" — relaterade artiklar i samma cluster === */
.art-related {
  max-width: 1100px;
  margin: 64px auto 24px;
  padding: 48px 24px 0;
  border-top: 1px solid #e5e5e5;
}
.art-related > h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 0 0 28px;
  text-align: center;
}
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.art-related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.art-related-card:hover {
  border-color: #c4cdd9;
}
.art-related-card:hover .art-related-link {
  color: #0f1f33;
}
.art-related-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f4f4;
}
.art-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.art-related-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.art-related-title-text {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
  margin: 0;
}
.art-related-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: #6b7280;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-related-link {
  font-size: 14px;
  font-weight: 500;
  color: #1e3a5f;
  margin-top: auto;
}
@media (max-width: 900px) {
  .art-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .art-related {
    margin-top: 40px;
    padding: 32px 16px 0;
  }
}
/* Bottom padding for wrapper */
.art-wrapper-bottom {
  padding-bottom: 48px;
  background: #f3f4f6;
}

/* Title */
.art-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 24px;
}

/* Meta */
.art-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}
.art-meta-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.art-meta-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
}
.art-meta-date {
  display: block;
  font-size: 13px;
  color: #6b7280;
}

/* Article Body */
.art-body {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
}
.art-body p {
  margin-bottom: 24px;
}
.art-body h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: #1e3a5f;
  margin: 52px 0 20px;
}
.art-body h2::after {
  content: none;
}
.art-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 36px 0 12px;
}
.art-body ul, .art-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.art-body li {
  margin-bottom: 10px;
}
.art-body a {
  color: #1e3a5f;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(30,58,95,0.3);
  transition: text-decoration-color 0.2s;
}
.art-body a:hover {
  text-decoration-color: #1e3a5f;
}
.art-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.art-body th {
  text-align: left;
  font-weight: 600;
  color: #1e3a5f;
  padding: 14px 16px;
  border-bottom: 2px solid #1e3a5f;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.art-body td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  color: #444;
}
.art-body tr:last-child td {
  border-bottom: none;
}
.art-body blockquote {
  border-left: 3px solid #1e3a5f;
  padding: 20px 28px;
  margin: 32px 0;
  background: #f8f9fa;
  border-radius: 0 10px 10px 0;
  color: #555;
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
}

/* Tags + Share Footer */
.art-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  margin-top: 56px;
  border-top: 1px solid #eee;
}
.art-tags { display: flex; align-items: center; gap: 10px; }
.art-tags-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.art-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  background: #f0f4f8;
  color: #1e3a5f;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s;
}
.art-tag:hover { background: #e0e8f0; }
.art-share { display: flex; align-items: center; gap: 10px; }
.art-share-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.art-share-links { display: flex; gap: 8px; }
.art-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
  background: none;
  cursor: pointer;
}
.art-share-btn:hover {
  border-color: #1e3a5f;
  color: #1e3a5f;
  background: #f0f4f8;
}

/* Author Box */
.art-author {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-top: 8px;
}
.art-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.art-author-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 16px;
}
.art-author-role {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 2px;
}
.art-author-date {
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 10px;
}
.art-author-bio {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Newsletter CTA — krämfärg, matchar startsidans process-stil */
.art-newsletter {
  background: #f5f3ee;
  padding: 88px 24px;
  text-align: center;
}
.art-newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
}
.art-newsletter h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.art-newsletter p {
  font-size: 16px;
  color: #4a4a52;
  margin-bottom: 28px;
  line-height: 1.6;
}
.art-newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.art-newsletter-msg {
  max-width: 460px;
  margin: 16px auto 0;
  background: #fff;
  border: 1px solid #e8e6df;
  color: #1a1a1a;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}
.art-newsletter-input-wrap {
  flex: 1;
  position: relative;
}
.art-newsletter-input-wrap input {
  width: 100%;
  padding: 14px 16px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  border: 1px solid #d9d4c4;
  border-radius: 4px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s;
}
.art-newsletter-input-wrap input::placeholder { color: #8a8275; }
.art-newsletter-input-wrap input:focus { border-color: #1e3a5f; }
.art-newsletter-form button {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: #1e3a5f;
  color: #fff;
  border: 1px solid #1e3a5f;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.art-newsletter-form button:hover {
  background: #0c2138;
}
@media (max-width: 600px) {
  .art-newsletter { padding: 64px 20px; }
  .art-newsletter h2 { font-size: 26px; }
  .art-newsletter-form { flex-direction: column; }
}

/* Art-meta prefix (italic "Av:") */
.art-meta-prefix {
  color: #8a8a92;
  font-style: italic;
  font-weight: 400;
  margin-right: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  /* Mobile article: clean layout like hittadackverkstad */
  .art-mobile-header {
    display: block;
    padding: 0 16px 16px;
  }
  .art-mobile-header .art-title {
    margin-bottom: 16px;
  }
  /* Hide desktop title and meta inside art-page on mobile */
  .art-page .art-title,
  .art-page > .art-container > .art-meta {
    display: none;
  }
  .art-wrapper {
    padding: 16px 16px 48px !important;
    background: #fff !important;
  }
  .art-breadcrumb {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .art-card {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  /* Reorder: breadcrumb → title → meta → image → content */
  .art-card {
    display: flex;
    flex-direction: column;
  }
  .art-hero {
    order: 2;
  }
  .art-page {
    order: 3;
    padding: 24px 0 32px !important;
  }
  /* Title and meta move ABOVE hero image */
  .art-mobile-header {
    order: 1;
  }
  .art-hero-card > img { height: 240px; border-radius: 8px; }
  .art-hero-overlay { display: none; }
  .art-hero-back { display: none; }
  .art-hero-bottom { display: none; }
  .art-hero-card { border-radius: 8px; }
  .art-title { font-size: 28px; }
  .art-body h2 { font-size: 22px; }
  .art-footer { flex-direction: column; gap: 20px; align-items: flex-start; }
  .art-author { flex-direction: column; align-items: flex-start; text-align: left; }
  .art-newsletter-form { flex-direction: column; }
  .art-container { max-width: 100%; }
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
}

.faq-accordion-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Source Serif 4', serif;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  gap: 16px;
}

.faq-accordion-question:hover {
  background: #f0f0f0;
}

.faq-accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.faq-accordion-item.open .faq-accordion-icon {
  transform: rotate(45deg);
}

.faq-accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-accordion-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* Info/Warning Box */
.info-box {
  padding: 20px 24px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.7;
}

.info-box-warning {
  background: #fff8e1;
  border-left: 4px solid #f5a623;
  color: #6d5a1a;
}

.info-box-tip {
  background: #e8f4f8;
  border-left: 4px solid #1e3a5f;
  color: #1e3a5f;
}

.info-box strong {
  display: block;
  margin-bottom: 4px;
}

/* CTA Form Section */
.cta-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-form-text h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 32px;
  color: #fff;
  margin-bottom: 16px;
}

.cta-form-text p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.cta-form {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
}

.cta-form h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.cta-form-field {
  margin-bottom: 16px;
}

.cta-form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.cta-form-field input,
.cta-form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.cta-form-field input:focus,
.cta-form-field textarea:focus {
  border-color: #1e3a5f;
  outline: none;
}

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

.cta-form .btn {
  width: 100%;
  text-align: center;
}

/* Comparison Cards */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.comparison-card h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.comparison-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 8px;
  margin-top: 20px;
}

.comparison-card ul {
  list-style: none;
  padding: 0;
}

.comparison-card li {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  padding: 4px 0 4px 24px;
  position: relative;
}

.comparison-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1e3a5f;
  font-weight: 600;
}

/* Economy Card */
.economy-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 28px 32px;
  margin-top: 24px;
}

.economy-card h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.economy-card p {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}

/* Gray background section */
.section-gray {
  background: #f8f8f8;
}

/* Section spacing for new sections */
.section-new { padding: 80px 0 }
.section-new-gray { padding: 80px 0; background: #ffffff }

/* Bostadstyper kort */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px }
.type-card { background: #fff; border-radius: 8px; border: 1px solid #e5e5e5; overflow: hidden; transition: box-shadow .2s }
.type-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.06) }
.type-card-header { padding: 28px 28px 20px; display: flex; align-items: center; gap: 16px }
.type-card-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #1e3a5f }
.type-card-header h3 { font-family: "Source Serif 4", serif; font-size: 22px; font-weight: 600; color: #1e3a5f }
.type-card-body { padding: 0 28px 28px }
.type-card-body > p { font-size: 15px; color: #666; line-height: 1.7; margin-bottom: 16px }
.type-card-body h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; color: #1e3a5f }
.type-card-body h4.cons-label { color: #888; margin-top: 12px }
.type-list { list-style: none; padding: 0 }
.type-list li { padding: 4px 0 4px 20px; position: relative; font-size: 14px; color: #555 }
.type-list.pros li::before { content: '✓'; position: absolute; left: 0; color: #059669; font-weight: 700 }
.type-list.cons li::before { content: '→'; position: absolute; left: 0; color: #aaa }

/* Economy */
.economy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start }
.economy-info h3 { font-family: "Source Serif 4", serif; font-size: 20px; font-weight: 600; color: #1e3a5f; margin: 24px 0 10px }
.economy-info h3:first-child { margin-top: 0 }
.economy-info p { font-size: 16px; color: #555; line-height: 1.7 }
.economy-calc { background: #fff; border-radius: 12px; border: 1px solid #e5e5e5; padding: 28px; position: sticky; top: 130px }
.economy-calc h3 { font-family: "Source Serif 4", serif; font-size: 18px; font-weight: 600; color: #1e3a5f; margin-bottom: 20px }
.calc-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px }
.calc-row:last-child { border-bottom: none }
.calc-label { color: #666 }
.calc-value { font-weight: 600; color: #1a1a1a }
.calc-total { margin-top: 12px; padding-top: 12px; border-top: 2px solid #1e3a5f; display: flex; justify-content: space-between; font-size: 16px }
.calc-total .calc-label { font-weight: 600; color: #1a1a1a }
.calc-total .calc-value { color: #1e3a5f; font-size: 18px }
.amort-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 16px }
.amort-card { background: #f0f4f8; border-radius: 8px; padding: 16px; text-align: center }
.amort-pct { font-size: 24px; font-weight: 700; color: #1e3a5f }
.amort-label { font-size: 12px; color: #666; margin-top: 2px }
.amort-desc { font-size: 11px; color: #999; margin-top: 2px }

/* Budgivning */
.bidding-tips { background: #f0f4f8; border-radius: 8px; padding: 28px }
.bidding-tips h3 { font-size: 17px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px }
.bidding-tips ul { list-style: none; padding: 0; margin: 0 }
.bidding-tips li { padding: 6px 0 6px 20px; position: relative; font-size: 15px; color: #555; line-height: 1.7 }
.bidding-tips li::before { content: '→'; position: absolute; left: 0; color: #1e3a5f; font-weight: 700 }

/* FAQ accordion */
.faq-accordion { max-width: 720px; margin: 0 auto }
.faq-acc-item { border-bottom: 1px solid #e5e5e5 }
.faq-acc-btn { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-size: 16px; font-weight: 600; color: #1a1a1a; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: Inter, -apple-system, sans-serif; transition: color .2s }
.faq-acc-btn:hover { color: #1e3a5f }
.faq-acc-icon { width: 28px; height: 28px; min-width: 28px; background: #f0f0f0; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all .3s; font-size: 16px; color: #888 }
.faq-acc-item.open .faq-acc-icon { background: #1e3a5f; color: #fff; transform: rotate(45deg) }
.faq-acc-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease }
.faq-acc-item.open .faq-acc-answer { max-height: 300px; padding-bottom: 20px }
.faq-acc-answer p { font-size: 15px; color: #666; line-height: 1.8; padding-right: 44px }

@media (max-width: 768px) {
  .cta-form-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .faq-accordion-question {
    font-size: 15px;
    padding: 16px 20px;
  }
  .faq-accordion-answer-inner {
    padding: 0 20px 16px;
  }
}

/* Responsive for new köpa-bostad sections */
@media (max-width: 1024px) {
  .type-grid, .economy-grid { grid-template-columns: 1fr }
}
@media (max-width: 768px) {
  .type-grid, .amort-grid { grid-template-columns: 1fr }
  .economy-calc { position: static }
}

/* Global mobile spacing - must be last */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .section-inner { padding: 0 16px; }
  .section-header h2 { font-size: 26px; word-wrap: break-word; }
  .hero { margin-top: 72px !important; }
  .page-hero { padding-top: 120px !important; }
  .art-wrapper { margin-top: 72px !important; }
}

/* Testimonials — card grid */
.tm-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1e3a5f;
  border: 1px solid #1e3a5f;
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 12px;
}
.tm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tm-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}
.tm-quote-icon {
  margin-bottom: 20px;
}
.tm-text {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  flex: 1;
  margin-bottom: 24px;
}
.tm-author {
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}
.tm-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.tm-role {
  font-size: 13px;
  color: #999;
  margin: 2px 0 0;
}
@media (max-width: 768px) {
  .tm-grid { grid-template-columns: 1fr; }
}

/* Screen reader only - accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================ */
/* === Startsida redesign 2026-05-26 ========================== */
/* ============================================================ */

/* Eyebrow above h2 (subtle category label) */
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e3a5f;
  margin-bottom: 14px;
  position: relative;
  padding-left: 28px;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: #1e3a5f;
}

/* === Services: enhanced cards with icons + bullet points === */
.services-section .service-card {
  background: #fff;
  border: 1px solid #e8e8ea;
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease;
}
.services-section .service-card:hover {
  border-color: #c4cdd9;
}
.services-section .service-card:hover .service-link {
  color: #0f1f33;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #f4f6fa;
  border-radius: 12px;
  color: #1e3a5f;
}
.service-card h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.service-card > p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #4a4a52;
  margin: 0;
}
.service-points {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
}
.service-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a4a52;
  margin: 8px 0;
}
.service-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 6px;
  border-left: 2px solid #1e3a5f;
  border-bottom: 2px solid #1e3a5f;
  transform: rotate(-45deg);
}
.service-link {
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 500;
  color: #1e3a5f;
  text-decoration: none;
  padding-top: 8px;
  border-top: 1px solid #f0f0f3;
}
.service-link:hover {
  color: #0f1f33;
}

/* === Trust / Stats section (replaces old USP cards) === */
.trust-section {
  background: #1e3a5f;
  padding: 88px 0;
  color: #fff;
}
.trust-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.trust-section .section-eyebrow {
  color: rgba(255,255,255,0.7);
}
.trust-header h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 500;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.trust-header p {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin: 0;
}
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 16px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.trust-stat:last-child { border-right: none; }
.trust-number {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 56px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}
.trust-plus {
  font-size: 38px;
  margin-left: 2px;
  color: #fff;
  font-weight: 500;
}
.trust-label {
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(255,255,255,0.7);
  margin-top: 14px;
  letter-spacing: 0.01em;
}
.trust-footer {
  text-align: center;
  margin-top: 36px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.trust-footer p { margin: 0; }
@media (max-width: 768px) {
  .trust-section { padding: 64px 16px; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); border: none; }
  .trust-stat {
    border-right: 1px solid rgba(255,255,255,0.15);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 28px 12px;
  }
  .trust-stat:nth-child(2n) { border-right: none; }
  .trust-stat:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.15); }
  .trust-number { font-size: 42px; }
  .trust-header h2 { font-size: 30px; }
}

/* VD-citat-block — asymmetrisk break-out mellan Process och Team */
.vd-quote-section {
  background: #fff;
  padding: 88px 0;
}
.vd-quote-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
}
.vd-quote-photo {
  border-radius: 4px;
  overflow: hidden;
  background: #ebebe6;
}
.vd-quote-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.vd-quote-text {
  position: relative;
}
.vd-quote-mark {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 96px;
  line-height: 0.6;
  color: #1e3a5f;
  margin-bottom: 16px;
  display: block;
}
.vd-quote-text blockquote {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 28px;
  letter-spacing: -0.005em;
  font-style: italic;
}
.vd-quote-cite {
  font-size: 14px;
  color: #4a4a52;
  letter-spacing: 0.01em;
}
.vd-quote-cite strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: #1a1a1a;
  font-style: normal;
  margin-bottom: 2px;
}
@media (max-width: 800px) {
  .vd-quote-section { padding: 64px 0; }
  .vd-quote-inner { grid-template-columns: 1fr; gap: 28px; max-width: 520px; }
  .vd-quote-photo { max-width: 180px; }
  .vd-quote-text blockquote { font-size: 22px; }
  .vd-quote-mark { font-size: 72px; }
}

/* === Team v3: svensk mäklarbyrå-känsla, mer luft, äkta detaljer === */
.team-section-v2 {
  padding: 88px 0 104px;
  background: #fafaf7;
}
.team-section-v2 .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.team-section-v2 .section-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 18px;
}
.team-section-v2 .section-header h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.team-section-v2 .section-header p {
  font-size: 16.5px;
  line-height: 1.55;
  color: #4a4a52;
  margin: 0;
}
.team-section-v2 .team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: stretch;
}
.team-section-v2 .team-card {
  background: #fff;
  border: none;
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.team-section-v2 .team-card:hover {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
}
.team-photo-wrap {
  position: relative;
  margin: 0;
  background: #ebebe6;
  overflow: hidden;
}
.team-photo-wrap .team-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  border-radius: 0;
  border: none;
  margin: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.team-section-v2 .team-card:hover .team-photo {
  transform: scale(1.03);
}
.team-info {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.team-section-v2 .team-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 4px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.team-section-v2 .team-title {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0 0 18px;
  font-style: italic;
  letter-spacing: 0.005em;
  text-transform: none;
}
.team-divider {
  width: 32px;
  height: 2px;
  background: #1e3a5f;
  margin: 0 0 18px;
}
.team-section-v2 .team-bio {
  font-size: 14.5px;
  line-height: 1.65;
  color: #4a4a52;
  margin: 0 0 18px;
}
.team-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.team-specs li {
  background: #f4f6fa;
  color: #1e3a5f;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.team-section-v2 .team-contacts {
  margin: 0 0 20px;
  padding: 16px 0 0;
  border-top: 1px solid #f0f0ed;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team-section-v2 .team-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #4a4a52;
  text-decoration: none;
  transition: color 0.15s ease;
}
.team-section-v2 .team-contact svg {
  color: #8a8a92;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.team-section-v2 .team-contact:hover {
  color: #1e3a5f;
}
.team-section-v2 .team-contact:hover svg {
  color: #1e3a5f;
}
.team-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #1e3a5f;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid #1e3a5f;
  align-self: flex-start;
  transition: gap 0.2s ease, color 0.15s ease;
}
.team-cta:hover {
  gap: 10px;
  color: #0c2138;
}

@media (max-width: 1100px) {
  .team-section-v2 .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 720px;
  }
}
@media (max-width: 640px) {
  .team-section-v2 { padding: 64px 0 80px; }
  .team-section-v2 .section-header { margin-bottom: 44px; }
  .team-section-v2 .section-header h2 { font-size: 30px; }
  .team-section-v2 .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 440px;
  }
  .team-info { padding: 22px 22px 24px; }
}

/* === Testimonials v2: 5-star + bostadstyp + datum === */
.testimonials-v2 .section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.testimonials-v2 .tm-card {
  background: #fff;
  padding: 36px 32px;
  border-radius: 12px;
  border: 1px solid #e8e8ea;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tm-stars {
  display: flex;
  gap: 2px;
}
.testimonials-v2 .tm-text {
  font-size: 16px;
  line-height: 1.65;
  color: #2a2a2e;
  font-style: italic;
  margin: 0;
}
.testimonials-v2 .tm-author {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f0f3;
}
.testimonials-v2 .tm-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 2px;
}
.tm-meta {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}
.tm-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #6b7280;
}
.tm-footer p { margin: 0; }

/* === Fastigheter till salu — intro + område-chips === */
.market-intro {
  padding: 40px 24px 24px;
}
.market-intro .section-inner {
  max-width: 820px;
  margin: 0 auto;
}
.market-intro p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #4a4a52;
  margin: 0 0 14px;
}
.market-intro p:last-of-type {
  margin-bottom: 22px;
}
.market-intro a {
  color: #1e3a5f;
  text-decoration: underline;
}
.area-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 0 0;
  border-top: 1px solid #f0f0f3;
}
.area-chips-label {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  margin-right: 4px;
}
.area-chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.area-chips li {
  background: #f4f6fa;
  color: #1e3a5f;
  font-size: 13.5px;
  padding: 5px 12px;
  border-radius: 16px;
  font-weight: 500;
}

/* === Property publicerings-datum (under pris) === */
.property-published {
  font-size: 12.5px;
  color: #6b7280;
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.property-published::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1e3a5f;
  opacity: 0.4;
}

/* Aktivitetsindikator: "X spekulanter idag" */
.property-activity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 12px;
  color: #1d7e3a;
  font-weight: 500;
  white-space: nowrap;
}
.property-activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1d7e3a;
  box-shadow: 0 0 0 3px rgba(29, 126, 58, 0.18);
  animation: property-activity-pulse 1.6s ease-in-out infinite;
}
@keyframes property-activity-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(29, 126, 58, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(29, 126, 58, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
  .property-activity-dot { animation: none; }
}

/* === Sålda bostäder (på fastigheter-till-salu) === */
.property-card--sold {
  background: #fafbfc;
}
.property-card--sold .property-image img {
  filter: grayscale(15%);
}
.sold-price-block {
  margin-top: 12px;
  padding: 12px;
  background: #f4f6fa;
  border-radius: 8px;
  border: 1px solid #e8e8ea;
}
.sold-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
}
.sold-label {
  font-size: 12.5px;
  color: #6b7280;
  font-weight: 500;
}
.sold-value {
  font-size: 14.5px;
  font-weight: 500;
}
.sold-value--asking {
  color: #6b7280;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.sold-value--final {
  color: #1e3a5f;
  font-weight: 600;
  font-size: 16px;
}
.sold-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e8e8ea;
}
.sold-pct {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
}
.sold-pct.positive {
  color: #1d7e3a;
}
.sold-days {
  font-size: 12.5px;
  color: #6b7280;
}

/* === Recent-sold-sektion på /kopa-bostad/ === */
.recent-sold-section {
  background: #fafbfc;
  padding: 80px 24px;
}
.recent-sold-section .section-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.recent-sold-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.recent-sold-card {
  background: #fff;
  border: 1px solid #e8e8ea;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.recent-sold-card:hover {
  border-color: #c4cdd9;
}
.recent-sold-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
}
.recent-sold-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}
.recent-sold-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1d7e3a;
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.recent-sold-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.recent-sold-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.recent-sold-area {
  font-size: 13.5px;
  color: #6b7280;
  margin: 0;
}
.recent-sold-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
  padding: 12px;
  background: #f4f6fa;
  border-radius: 8px;
}
.recent-sold-prices > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.recent-sold-label {
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.recent-sold-asking {
  font-size: 14.5px;
  color: #6b7280;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.recent-sold-final {
  font-size: 17px;
  color: #1e3a5f;
  font-weight: 700;
}
.recent-sold-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #6b7280;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f0f0f3;
}
.recent-sold-pct {
  font-weight: 600;
}
.recent-sold-pct.positive {
  color: #1d7e3a;
}
.recent-sold-footer {
  text-align: center;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .recent-sold-grid { grid-template-columns: 1fr; gap: 16px; }
  .recent-sold-section { padding: 56px 16px; }
}

/* === Intresseanmälan-modal === */
.interest-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
}
.interest-modal::backdrop {
  background: rgba(15, 25, 45, 0.55);
  backdrop-filter: blur(4px);
}
.interest-modal[open] {
  /* Dialogen hanterar scroll. margin:auto på kortet ger vertikalcentrering NÄR det får plats
     i viewport — annars börjar kortet från top och scrollar normalt. Detta löser klassiska
     "centered modal cropped at top"-buggen som uppstår med justify-content: center + overflow. */
  display: flex;
  flex-direction: column;
  align-items: center;
  inset: 0;
  margin: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.interest-modal-card {
  background: #fff;
  border-radius: 16px;
  width: min(560px, 100%);
  margin: auto 0;
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(15, 25, 45, 0.25);
  animation: interestSlide 0.22s ease-out;
}
@keyframes interestSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.interest-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 0;
}
.interest-modal-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e3a5f;
  margin-bottom: 6px;
}
.interest-modal-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.2;
}
.interest-modal-property {
  font-size: 14.5px;
  color: #6b7280;
  margin: 0;
}
.interest-modal-close {
  background: #f4f6fa;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e3a5f;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.interest-modal-close:hover { background: #e8ecf3; }
.interest-modal-close:focus-visible {
  outline: 2px solid #1e3a5f;
  outline-offset: 2px;
}

.interest-modal-form {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.interest-modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.interest-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.interest-field > span,
.interest-field-label {
  font-size: 13px;
  font-weight: 500;
  color: #4a4a52;
}
.interest-field input[type="text"],
.interest-field input[type="email"],
.interest-field input[type="tel"],
.interest-field textarea {
  padding: 11px 14px;
  border: 1px solid #d8dce3;
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.interest-field input:focus,
.interest-field textarea:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.interest-field textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.interest-field--checks {
  background: #fafbfc;
  border: 1px solid #e8e8ea;
  border-radius: 8px;
  padding: 14px 16px;
  gap: 8px;
}
.interest-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #2a2a2e;
  cursor: pointer;
}
.interest-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1e3a5f;
  cursor: pointer;
}

.interest-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #4a4a52;
  line-height: 1.45;
  padding: 12px 0;
  border-top: 1px solid #f0f0f3;
}
.interest-gdpr input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #1e3a5f;
  flex-shrink: 0;
  cursor: pointer;
}
.interest-gdpr a {
  color: #1e3a5f;
  text-decoration: underline;
}

.interest-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.interest-btn {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.interest-btn--ghost {
  background: transparent;
  border-color: #d8dce3;
  color: #4a4a52;
}
.interest-btn--ghost:hover { background: #f4f6fa; }
.interest-btn--primary {
  background: #1e3a5f;
  color: #fff;
}
.interest-btn--primary:hover { background: #0f2440; }

.interest-modal-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #6b7280;
  margin: 4px 0 0;
}

.interest-modal-success {
  padding: 48px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.interest-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(29, 126, 58, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.interest-modal-success h3,
.interest-modal-success .interest-success-heading {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.interest-modal-success p {
  font-size: 15px;
  color: #4a4a52;
  margin: 0 0 16px;
  max-width: 360px;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .interest-modal-card { border-radius: 12px; }
  .interest-modal-head { padding: 22px 20px 0; }
  .interest-modal-form { padding: 20px 20px 24px; gap: 14px; }
  .interest-modal-row { grid-template-columns: 1fr; }
  .interest-modal-title { font-size: 20px; }
}

/* === Property CTA (Anmäl intresse) === */
.property-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  padding: 11px 14px;
  background: #1e3a5f;
  color: #fff;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.property-cta:hover {
  background: #2a4a73;
  border-color: #2a4a73;
  box-shadow: 0 4px 14px rgba(30,58,95,0.22);
}
.property-cta:focus-visible {
  outline: 2px solid #1e3a5f;
  outline-offset: 2px;
}

/* Sold-state CTA: använd outline-stil för att skilja från aktiva */
.property-cta--sold,
a.property-cta--sold {
  background: #fff;
  color: #1e3a5f;
  border: 1px solid #1e3a5f;
  text-decoration: none;
}
.property-cta--sold:hover,
a.property-cta--sold:hover {
  background: #f0f4f8;
  color: #1e3a5f;
  border-color: #1e3a5f;
  box-shadow: none;
}

/* === Felmeddelande för formulär (.vf-error / .form-error) === */
.vf-error,
.form-error {
  display: block;
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #fdecea;
  border: 1px solid #f5c2bc;
  border-left: 3px solid #c0392b;
  color: #8a1f17;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 6px;
}
.vf-error[hidden],
.form-error[hidden] {
  display: none;
}

/* Disabled-knapp på formulär */
.vf-btn:disabled,
.btn:disabled,
.interest-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* Fix: hidden-attributet ska overrida display: flex på success-panelen */
.interest-modal [hidden] { display: none !important; }

/* ============================================================
   Guider inför bostadsaffären (startsida-sektion)
   Matchar team-section-v2 + article-card ton. Kräm bakgrund,
   3-kol grid som blir 2 vid ≤900 och 1 vid ≤600.
   ============================================================ */
.guides-section {
  padding: 88px 0 104px;
  background: #fafaf7;
  border-top: 1px solid #ece7dc;
}
.guides-section .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.guides-section .section-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 18px;
}
.guides-section .section-header h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}
.guides-section .section-header p {
  font-size: 16.5px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .guides-grid { grid-template-columns: 1fr; gap: 24px; }
}
.guide-card {
  background: #fff;
  border: 1px solid #ece7dc;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.guide-card:hover {
  border-color: #1e3a5f;
  transform: translateY(-2px);
}
.guide-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f3ee;
}
.guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.guide-card:hover .guide-image img { transform: scale(1.03); }
.guide-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.guide-date {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.guide-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.guide-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.guide-title a:hover { color: #1e3a5f; }
.guide-excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 18px;
  flex: 1;
}
.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #1e3a5f;
  text-decoration: none;
  align-self: flex-start;
  transition: gap 0.15s ease;
}
.guide-link:hover { gap: 10px; }
.guides-footer {
  margin-top: 48px;
  text-align: center;
}
.guides-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #1e3a5f;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid #1e3a5f;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.guides-all-link:hover {
  background: #1e3a5f;
  color: #fff;
}
