:root {
  --bg: #f5efe3;
  --surface: rgba(255, 252, 246, 0.82);
  --ink: #17211f;
  --muted: #5f6b67;
  --line: rgba(23, 33, 31, 0.12);
  --brand: #a54c2d;
  --brand-deep: #6f2711;
  --shadow: 0 24px 80px rgba(53, 38, 25, 0.13);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --max: 1180px;
  --serif: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  --sans: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(212, 162, 89, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(94, 115, 104, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f2e8 0%, #f5efe3 44%, #efe6d5 100%);
}
a { color: inherit; text-decoration: none; }
.shell { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.75);
  border: 1px solid rgba(23, 33, 31, 0.09);
  color: var(--brand-deep);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.site-header { padding: 1rem 0 0; }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 0.9rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff8ef;
  font-family: var(--serif);
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.nav a { padding: 0.7rem 0.95rem; border-radius: 999px; }
.nav a.active, .nav a:hover { background: rgba(255, 250, 240, 0.8); }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 15px rgba(165, 76, 45, 0.3);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(165, 76, 45, 0.4);
}
.featured-section {
  padding-top: 4rem;
}
.hero, .section { padding: 3rem 0; }
.hero-grid, .cards, .detail-grid {
  display: grid;
  gap: 2rem;
}
.hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
.hero-copy h1 {
  margin: 1rem 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 10ch;
}
.hero-copy p, .lead { color: var(--muted); line-height: 1.7; }
.panel, .card, .detail-shell, .contact-box {
  background: var(--surface);
  border: 1px solid rgba(23, 33, 31, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}
.panel { padding: 1.5rem; }
.detail-shell {
  background: var(--surface);
  border: 1px solid rgba(23, 33, 31, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-top: 1.5rem;
}
.detail-grid { grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; display: grid; }
.stats-panel {
  display: grid;
  gap: 1.25rem;
  height: 100%;
}
.stats-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.98;
}
.stats-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.stats article { padding: 1rem; border-radius: 18px; background: rgba(255, 250, 240, 0.76); border: 1px solid rgba(23, 33, 31, 0.08); }
.stats span { display: block; color: var(--muted); margin-bottom: 0.3rem; }
.stats strong { font-family: var(--serif); font-size: 2.2rem; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.property-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(23, 33, 31, 0.08);
  box-shadow: var(--shadow);
}
.property-card .card-link {
  display: flex;
  flex-direction: row;
}
.card-gallery {
  flex: 0 0 320px;
  overflow: hidden;
}
.gallery-main {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
}
.gallery-placeholder.warm { background: linear-gradient(135deg, #d6bf94, #b8613f); }
.gallery-placeholder.forest { background: linear-gradient(135deg, #7d9686, #d6bf94); }
.gallery-placeholder.stone { background: linear-gradient(135deg, #e1d9c8, #8da6a6); }
.property-card .card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.property-card .card-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 0.6rem 0 0.75rem;
}
.property-card .description {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  flex: 1;
}
.property-card .facts-grid {
  margin-top: auto;
}

@media (max-width: 720px) {
  .property-card .card-link {
    flex-direction: column;
  }
  .card-gallery {
    flex: none;
  }
  .gallery-main, .gallery-placeholder {
    min-height: 220px;
  }
}
.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(23, 33, 31, 0.08);
}
.card {
  overflow: hidden;
  border-radius: 28px;
  height: 100%;
}
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-image, .card-tone { height: 200px; display: block; }
.card-tone.warm { background: linear-gradient(135deg, #d6bf94, #b8613f); }
.card-tone.forest { background: linear-gradient(135deg, #7d9686, #d6bf94); }
.card-tone.stone { background: linear-gradient(135deg, #e1d9c8, #8da6a6); }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h2, .card-body h3, .detail-copy h1 {
  font-family: var(--serif);
  line-height: 1.02;
}
.card-body h3 {
  margin: 1rem 0 0.6rem;
  font-size: 1.7rem;
  min-height: 3.55rem;
}
.card-body p, .detail-copy p { color: var(--muted); line-height: 1.65; }
.card-text {
  min-height: 5.2rem;
}
.facts { color: var(--brand-deep); font-weight: 700; margin: 0 0 0.9rem; }
.facts-grid, .detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.card-body .facts-grid,
.card-body .detail-facts {
  margin-top: auto;
  gap: 0.8rem;
}
}
dt { color: var(--muted); font-size: 0.84rem; margin-bottom: 0.15rem; }
dd { margin: 0; font-weight: 700; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  width: fit-content;
  max-width: max-content;
  align-self: flex-start;
  white-space: nowrap;
}
.status-ledig { background: rgba(110, 168, 126, 0.16); color: #245235; }
.status-kommer-snart { background: rgba(115, 141, 186, 0.16); color: #294d80; }
.status-reserveret { background: rgba(212, 162, 89, 0.18); color: #81571f; }
.status-udlejet { background: rgba(165, 76, 45, 0.15); color: #712a12; }
.status-kladde { background: rgba(95, 107, 103, 0.16); color: #33403c; }
.filters {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 24px;
  margin-bottom: 2rem;
}
.filters label { display: grid; gap: 0.5rem; }
.filters input, .filters select {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(23, 33, 31, 0.12);
  background: rgba(255, 250, 240, 0.85);
  padding: 0.9rem 1rem;
  font: inherit;
}
.gallery-viewer {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(23, 33, 31, 0.08);
}
.gallery-viewer img, .gallery-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  touch-action: manipulation;
}
.gallery-empty { display: grid; place-items: center; color: var(--muted); background: rgba(255, 250, 240, 0.8); }
.gallery-nav {
  position: absolute;
  top: calc(50% - 24px);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.92);
  cursor: pointer;
  font-size: 1.8rem;
  touch-action: manipulation;
}
.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 16px; overflow: hidden; background: transparent; cursor: pointer; }
.thumbs button.active { border-color: var(--brand); }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tag-row, .amenities { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.25rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(94, 115, 104, 0.12);
  color: #2f433b;
  font-size: 0.92rem;
}
.contact-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.contact-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-box strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
}
.contact-link {
  color: var(--brand-deep);
  font-weight: 700;
  word-break: break-word;
}
.contact-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: stretch;
}
.contact-strip-copy,
.contact-strip-card,
.contact-page-copy,
.contact-page-card {
  background: var(--surface);
  border: 1px solid rgba(23, 33, 31, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.contact-strip-copy h2,
.contact-page-copy h1 {
  margin: 0.75rem 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.98;
  max-width: 14ch;
}
.contact-strip-card,
.contact-page-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.contact-strip-card a,
.contact-page-card a {
  color: var(--brand-deep);
  font-weight: 700;
}
.contact-strip-card p,
.contact-page-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.contact-page-side {
  display: grid;
  gap: 1.2rem;
}
.contact-page-intro {
  margin: 0;
}
.contact-page-card-secondary {
  background: rgba(255, 249, 238, 0.92);
}
.contact-strip-cta {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff8ef !important;
}
.contact-page {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
}
.contact-notes {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}
.contact-note {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.76);
  border: 1px solid rgba(23, 33, 31, 0.08);
}
.contact-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.contact-meta {
  display: inline-block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.lightbox-open {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(14, 17, 16, 0.88);
  padding: 2rem;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-image {
  max-width: min(92vw, 1280px);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.92);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}
.lightbox-close {
  top: 1.2rem;
  right: 1.2rem;
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-nav {
  top: calc(50% - 28px);
  width: 56px;
  height: 56px;
  font-size: 2rem;
}
.lightbox-nav.prev {
  left: 1.2rem;
}
.lightbox-nav.next {
  right: 1.2rem;
}
.site-footer { padding: 4rem 0 5rem; }
.footer-shell { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.3rem; align-items: start; }
.footer-card { padding: 1.4rem; display: grid; gap: 0.85rem; }
.maintenance-body {
  display: grid;
  place-items: center;
}
.maintenance-shell {
  width: min(calc(100% - 2rem), 820px);
  padding: 2rem 0;
}
.maintenance-card {
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid rgba(23, 33, 31, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: 1rem;
}
.maintenance-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 0.95;
  max-width: 12ch;
}
.maintenance-contact {
  display: grid;
  gap: 0.8rem;
  padding-top: 0.6rem;
}
.maintenance-contact p {
  margin: 0;
  display: grid;
  gap: 0.25rem;
}
.maintenance-contact a {
  color: var(--brand-deep);
  font-weight: 700;
}
.maintenance-note {
  color: var(--muted);
  line-height: 1.7;
}
@media (max-width: 980px) {
  .hero-grid, .cards, .footer-shell, .filters, .detail-grid, .contact-strip, .contact-page { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .shell { width: min(calc(100% - 1.25rem), var(--max)); }
  .facts-grid, .detail-facts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .gallery-viewer {
    border-radius: 20px;
  }
  .gallery-nav {
    width: 52px;
    height: 52px;
    top: calc(50% - 26px);
    font-size: 2rem;
  }
  .thumbs {
    display: none;
  }
  .card-body h3,
  .card-text {
    min-height: 0;
  }
  .lightbox {
    padding: 1rem;
  }
  .lightbox-nav.prev {
    left: 0.6rem;
  }
  .lightbox-nav.next {
    right: 0.6rem;
  }
  .lightbox-close {
    top: 0.6rem;
    right: 0.6rem;
  }
}
