/* Landgoed groen */
:root {
  --brand-background: #f8f5ef;
  --brand-foreground: #1f3a2d;
  --brand-primary: #1f3a2d;
  --brand-primary-hover: #2f5242;
  --brand-secondary: #7d9074;
  --brand-muted: #e8e1d4;
  --brand-muted-foreground: #7d9074;
  --brand-accent: #b89b5e;
  --brand-surface: #ffffff;
  --brand-on-primary: #f8f5ef;
  --brand-border: rgba(31, 58, 45, 0.12);
  --brand-hero-overlay: linear-gradient(180deg, rgba(31, 58, 45, 0.42), rgba(31, 58, 45, 0.2) 45%, rgba(31, 58, 45, 0.58));
  --brand-footer-cta: linear-gradient(135deg, #1f3a2d 0%, #2f5242 55%, #172820 100%);
  --brand-footer-main: #141f18;
  --brand-footer-bottom: #0f1612;
  --brand-footer-text: #e8e1d4;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --site-header-height: 5.25rem;
  --site-sticky-top: 6.75rem;
}

html,
body {
  margin: 0;
  background: var(--brand-background);
  color: var(--brand-foreground);
  font-family: var(--font-body);
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: var(--font-display);
}

.section-kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.bg-brand-background {
  background: var(--brand-background);
}

.bg-brand-primary {
  background: var(--brand-primary);
}

.bg-brand-muted {
  background: var(--brand-muted);
}

.text-brand-primary {
  color: var(--brand-primary);
}

.text-brand-muted {
  color: var(--brand-muted-foreground);
}

.text-brand-accent {
  color: var(--brand-accent);
}

.border-brand {
  border-color: var(--brand-border) !important;
}

.btn-brand {
  --bs-btn-color: var(--brand-on-primary);
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-color: var(--brand-on-primary);
  --bs-btn-hover-bg: var(--brand-primary-hover);
  --bs-btn-hover-border-color: var(--brand-primary-hover);
}

.btn-brand-outline {
  --bs-btn-color: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-color: var(--brand-on-primary);
  --bs-btn-hover-bg: var(--brand-primary);
  --bs-btn-hover-border-color: var(--brand-primary);
}

.card-brand {
  border-color: var(--brand-border);
  box-shadow: 0 1rem 2.5rem rgba(20, 31, 20, 0.06);
  background: var(--brand-surface);
}

.listing-card {
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.25rem 2.5rem rgba(20, 31, 20, 0.1);
}

.listing-card__media {
  position: relative;
  overflow: hidden;
  background: var(--brand-muted);
}

.listing-card__media--grid {
  aspect-ratio: 4 / 3;
}

.listing-card__media--list {
  aspect-ratio: 16 / 9;
}

.listing-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 38%, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.listing-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.listing-card__featured {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  background: var(--brand-accent);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.listing-card--discreet .listing-card__image {
  filter: saturate(0.92);
}

.listing-card--featured {
  box-shadow: 0 1.25rem 2.75rem rgba(184, 155, 94, 0.12);
}

.listing-card__metric {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-primary);
  font-weight: 600;
}

.listing-card__favorite {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-primary);
  box-shadow: 0 0.35rem 1rem rgba(20, 31, 20, 0.12);
}

.listing-card__favorite:hover {
  background: var(--brand-surface);
  color: var(--brand-accent);
}

.listing-card__body {
  padding: 1.1rem 1.15rem 1.2rem;
}

.listing-card__type {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.35rem;
}

.listing-card__title {
  color: var(--brand-foreground);
  line-height: 1.25;
}

.listing-card__price {
  color: var(--brand-primary);
  font-size: 1.05rem;
  white-space: nowrap;
}

.listing-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--brand-border);
}

.listing-card__stat {
  text-align: center;
}

.listing-card__stat-value {
  font-weight: 600;
  color: var(--brand-foreground);
}

.listing-card__stat-label {
  font-size: 0.78rem;
  color: var(--brand-muted-foreground);
}

.property-gallery__main {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--brand-muted);
  overflow: hidden;
}

.property-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery__counter {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 31, 20, 0.72);
  color: #fff;
  font-size: 0.8rem;
}

.property-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem;
  overflow-x: auto;
  background: var(--brand-surface);
  border-top: 1px solid var(--brand-border);
}

.property-gallery__thumb {
  flex: 0 0 auto;
  width: 5.5rem;
  height: 4rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--brand-muted);
  cursor: pointer;
}

.property-gallery__thumb.is-active {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-accent) 25%, transparent);
}

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

.property-gallery__video-wrap {
  position: absolute;
  inset: 0;
}

.property-gallery__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #141f18;
}

.property-gallery__thumb--video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

.property-gallery__thumb-play {
  font-size: 1.35rem;
  line-height: 1;
}

.listing-card__video {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  background: rgba(20, 31, 20, 0.72);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.listing-media-preview__tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.listing-media-preview__tab {
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
  color: var(--brand-muted-foreground);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.listing-media-preview__tab.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-on-primary);
}

.listing-media-preview__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #141f18;
}

.hero-section {
  background-color: var(--brand-primary);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.hero-overlay {
  z-index: 1;
  background: var(--brand-hero-overlay);
}

.hero-title {
  line-height: 1.15;
}

.hero-stat__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.hero-stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.3rem;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: #fff;
  text-shadow: 0 0.15rem 1.25rem rgba(184, 155, 94, 0.35);
}

.hero-highlight::before {
  content: "";
  position: absolute;
  inset: 0.05em -0.12em;
  z-index: -1;
  border-radius: 0.4em;
  background: linear-gradient(
    110deg,
    rgba(184, 155, 94, 0.15) 0%,
    rgba(184, 155, 94, 0.45) 45%,
    rgba(248, 245, 239, 0.2) 55%,
    rgba(184, 155, 94, 0.15) 100%
  );
  background-size: 220% 100%;
  animation: hero-highlight-shine 5s ease-in-out infinite;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.14em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
  opacity: 0.55;
  animation: hero-highlight-glow 5s ease-in-out infinite;
}

@keyframes hero-highlight-shine {
  0%,
  100% {
    background-position: 100% 0;
    opacity: 0.65;
  }

  50% {
    background-position: 0% 0;
    opacity: 1;
  }
}

@keyframes hero-highlight-glow {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.85);
  }

  50% {
    opacity: 0.75;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-highlight::before,
  .hero-highlight::after {
    animation: none;
  }

  .hero-highlight::before {
    opacity: 0.8;
    background-position: 50% 0;
  }

  .hero-highlight::after {
    opacity: 0.55;
    transform: none;
  }
}

.search-panel {
  border-radius: 1.5rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand-surface) 96%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1.5rem 3rem rgba(20, 31, 20, 0.2);
}

.search-mode-tabs {
  gap: 0.4rem;
  padding: 0.35rem;
  background: color-mix(in srgb, var(--brand-muted) 55%, transparent);
  border-radius: 999px;
}

.search-mode-tabs--hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--hero-count, 4), minmax(0, 1fr));
  gap: 0;
  padding: 0.35rem;
}

.search-mode-tabs__indicator {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  width: calc((100% - 0.7rem) / var(--hero-count, 4));
  border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 0.75rem 1.5rem rgba(20, 31, 20, 0.2);
  transform: translateX(calc(var(--hero-index, 0) * 100%));
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.search-mode-tabs__btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: var(--brand-primary);
  font-weight: 600;
  padding: 0.8rem 0.65rem;
  line-height: 1.15;
  white-space: nowrap;
  font-size: 0.92rem;
}

.search-mode-tabs__btn.is-active {
  color: var(--brand-on-primary);
}

.search-mode-tabs .nav-link {
  border-radius: 999px;
  color: var(--brand-primary);
  font-weight: 600;
  padding: 0.8rem 1rem;
  line-height: 1;
  white-space: nowrap;
  font-size: 0.95rem;
}

.search-mode-tabs .nav-link.active {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  box-shadow: 0 0.75rem 1.5rem rgba(20, 31, 20, 0.2);
}

@media (max-width: 767.98px) {
  .search-mode-tabs__btn {
    font-size: 0.78rem;
    padding: 0.75rem 0.35rem;
  }

  .search-mode-tabs__btn .bi {
    display: none;
  }
}

.search-panel .form-control,
.search-panel .input-group-text {
  border-color: var(--brand-border);
}

.search-panel .input-group-lg > .input-group-text,
.search-panel .input-group-lg > .form-control {
  min-height: 3.75rem;
}

.search-panel .input-group-lg > .btn-brand {
  min-height: 3.75rem;
  font-weight: 600;
}

.btn-quick {
  --bs-btn-color: var(--brand-primary);
  --bs-btn-bg: color-mix(in srgb, var(--brand-surface) 88%, transparent);
  --bs-btn-border-color: var(--brand-border);
  --bs-btn-hover-color: var(--brand-primary);
  --bs-btn-hover-bg: var(--brand-surface);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--brand-primary) 22%, transparent);
  --bs-btn-padding-x: 0.8rem;
  --bs-btn-padding-y: 0.45rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.page-section {
  padding: 5rem 0;
}

/* Inner pages (dashboard, auth, forms): avoid double spacing with container padding */
main.page-section {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}

@media (min-width: 992px) {
  main.page-section {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
  }
}

.object-fit-cover {
  object-fit: cover;
}

.site-footer {
  margin-top: auto;
}

.site-footer-cta {
  background: var(--brand-footer-cta);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-main {
  background: var(--brand-footer-main);
  color: var(--brand-footer-text);
}

.site-footer-bottom {
  background: var(--brand-footer-bottom);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-heading {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-on-primary);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.site-footer-tagline {
  color: color-mix(in srgb, var(--brand-footer-text) 72%, transparent);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 22rem;
}

.site-footer-list {
  display: grid;
  gap: 0.55rem;
}

.site-footer-link {
  color: color-mix(in srgb, var(--brand-footer-text) 72%, transparent);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.site-footer-link:hover {
  color: var(--brand-on-primary);
}

.site-footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--brand-on-primary);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.site-footer-social:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--brand-on-primary);
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.site-header .navbar {
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
}

.brand-logo--nav {
  height: 3rem;
  max-width: min(12.5rem, 46vw);
}

.brand-logo--footer {
  height: 2.75rem;
  max-width: 12rem;
}

.site-header {
  z-index: 1040;
}

.site-header.is-mega-open .navbar {
  border-bottom-color: transparent !important;
}

.mega-nav {
  max-width: min(52rem, 100%);
}

.mobile-nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.mobile-nav-drawer {
  --bs-offcanvas-width: min(22.5rem, 92vw);
}

.mobile-nav-drawer .offcanvas-header {
  padding: 1rem 1.1rem;
}

.mobile-nav-drawer .brand-logo--nav {
  height: 2.35rem;
}

.mobile-nav-accordion .accordion-item {
  border-left: 0;
  border-right: 0;
  background: transparent;
}

.mobile-nav-accordion .accordion-button {
  padding: 0.95rem 0;
  font-weight: 600;
  color: var(--brand-primary);
  background: transparent;
  box-shadow: none;
}

.mobile-nav-accordion .accordion-button:not(.collapsed) {
  color: var(--brand-primary);
  background: transparent;
  box-shadow: none;
}

.mobile-nav-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.mobile-nav-accordion .accordion-body {
  padding: 0 0 1rem;
}

.mobile-nav-drawer__utilities .btn {
  justify-content: center;
}

.mega-nav__trigger {
  border: 0;
  background: transparent;
  color: var(--brand-primary);
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}

@media (min-width: 992px) {
  .mega-nav__trigger {
    padding: 0.55rem 0.95rem;
    font-size: 1rem;
  }
}

.mega-nav__trigger:hover,
.mega-nav__trigger.is-active {
  background: color-mix(in srgb, var(--brand-muted) 70%, transparent);
  color: var(--brand-primary);
}

.mega-menu {
  background: var(--brand-surface);
}

.mega-menu[hidden] {
  display: none !important;
}

.mega-menu__inner {
  background: var(--brand-surface);
}

.mega-menu__panel[hidden] {
  display: none !important;
}

.mega-menu__heading {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-muted-foreground);
  margin-bottom: 0.85rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.mega-menu__list {
  display: grid;
  gap: 0.55rem;
}

.mega-menu__link {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.mega-menu__link:hover {
  color: var(--brand-accent);
}

.mega-menu__promo {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--brand-muted) 45%, var(--brand-surface));
  border: 1px solid var(--brand-border);
  text-decoration: none;
  color: inherit;
  height: 100%;
  min-height: 11rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mega-menu__promo:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.75rem 1.5rem rgba(20, 31, 20, 0.08);
  color: inherit;
}

.mega-menu__promo-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.75rem;
}

.mega-menu__promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-size: 1.15rem;
}

.mega-menu__promo-title {
  font-weight: 700;
  color: var(--brand-primary);
}

.mega-menu__promo-text {
  font-size: 0.92rem;
  color: var(--brand-muted-foreground);
  line-height: 1.45;
}

.mega-menu__code {
  padding-top: 1rem;
  border-top: 1px solid var(--brand-border);
}

.mega-menu__code .form-control[readonly] {
  background: var(--brand-surface);
  cursor: default;
}

.agent-logo-wrap {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  background: var(--brand-surface);
  border-radius: 0.75rem;
  box-shadow: 0 0.35rem 1rem rgba(20, 31, 20, 0.08);
}

.agent-logo-wrap--inline {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  margin-top: 0.15rem;
}

.agent-logo {
  display: block;
  max-height: 4.5rem;
  width: auto;
  max-width: min(16rem, 100%);
  object-fit: contain;
}

.agent-logo--inline {
  max-height: 2rem;
  max-width: 9rem;
}

.agent-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.5rem rgba(20, 31, 20, 0.08);
}

.agent-card__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  padding: 1.5rem 1.25rem 2.75rem;
  background: linear-gradient(180deg, var(--brand-muted) 0%, var(--brand-surface) 100%);
  border-bottom: 1px solid var(--brand-border);
}

.agent-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
}

.agent-card__logo {
  display: block;
  max-height: 3rem;
  max-width: 12rem;
  width: auto;
  object-fit: contain;
}

.agent-card__agency-name {
  font-size: 1.15rem;
  line-height: 1.2;
  text-align: center;
}

.agent-card__avatar {
  position: absolute;
  bottom: -1.75rem;
  left: 1.25rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-surface);
  box-shadow: 0 0.25rem 0.75rem rgba(20, 31, 20, 0.12);
}

.agent-card__body {
  padding: 2.25rem 1.25rem 1.25rem;
}

.agent-card__agency {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.agent-card__name {
  line-height: 1.25;
}

.agent-card__tagline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-map {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.page-map .site-header {
  flex: 0 0 auto;
}

.page-map .site-footer {
  display: none;
}

.map-layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.map-toolbar {
  flex: 0 0 auto;
  z-index: 3;
}

.map-toolbar__inner {
  padding: 0.75rem 1rem;
}

@media (min-width: 1200px) {
  .map-toolbar__inner {
    padding-inline: 1.5rem;
  }
}

.map-toolbar__search {
  max-width: 18rem;
}

.map-layout__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  width: min(100%, 26rem);
  flex: 0 0 auto;
  min-height: 0;
  z-index: 4;
}

.map-sidebar__list {
  flex: 1 1 auto;
  min-height: 0;
}

.map-sidebar__item {
  display: flex;
  width: 100%;
  gap: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--brand-border);
  background: var(--brand-surface);
  text-align: left;
  transition: background-color 0.15s ease;
}

.map-sidebar__item:hover,
.map-sidebar__item.is-active {
  background: color-mix(in srgb, var(--brand-muted) 55%, white);
}

.map-sidebar__thumb {
  position: relative;
  flex: 0 0 7.5rem;
  width: 7.5rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-muted);
}

.map-sidebar__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-sidebar__content {
  flex: 1 1 auto;
  padding: 0.85rem 1rem;
  min-width: 0;
}

.map-stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #d4e5d0;
}

.map-stage .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
}

.map-marker-wrap {
  background: transparent;
  border: 0;
}

.map-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -100%);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 2px solid var(--brand-primary);
  background: var(--brand-surface);
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0.35rem 1rem rgba(20, 31, 20, 0.14);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  margin-left: -0.325rem;
  background: inherit;
  border-right: 2px solid var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
  transform: rotate(45deg);
}

.map-marker {
  position: relative;
}

.map-marker.is-active {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  transform: translate(-50%, -100%) scale(1.04);
  z-index: 2;
}

.map-preview {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(22rem, calc(100% - 2rem));
  border-radius: 0.85rem;
  overflow: hidden;
  z-index: 5;
}

.map-preview[hidden] {
  display: none !important;
}

.map-preview__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  border-radius: 999px;
}

.map-preview__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-muted);
}

.map-preview__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 0.35rem 1rem rgba(20, 31, 20, 0.12) !important;
}

.leaflet-control-zoom a {
  color: var(--brand-primary) !important;
}

.leaflet-control-attribution {
  font-size: 0.65rem;
  background: color-mix(in srgb, var(--brand-surface) 88%, transparent) !important;
}

@media (max-width: 767.98px) {
  .map-toolbar__inner .btn-group[aria-label="Transactietype"] {
    display: none;
  }
}

@media (min-width: 1200px) {
  .map-sidebar {
    position: static;
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 1199.98px) {
  .map-sidebar {
    position: fixed;
    top: var(--site-header-height, 5.25rem);
    left: 0;
    bottom: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 0 0.75rem 2rem rgba(20, 31, 20, 0.18);
  }

  .map-sidebar.is-open {
    transform: translateX(0);
  }

  .map-preview {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 0.75rem;
    max-height: min(46vh, 22rem);
    display: flex;
    flex-direction: column;
  }

  .map-preview__media {
    flex: 0 0 7.5rem;
    aspect-ratio: auto;
    height: 7.5rem;
  }

  .map-preview > .p-3 {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-top: 0.75rem !important;
  }

  .map-preview [data-map-preview-summary] {
    display: none;
  }
}

.site-sticky {
  position: sticky;
  top: var(--site-sticky-top);
}

.hero-section--full {
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-section__content {
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 2;
}

@media (min-width: 1200px) {
  .mega-nav {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 0.75rem, #000 calc(100% - 0.75rem), transparent);
  }

  .mega-nav::-webkit-scrollbar {
    display: none;
  }
}

.search-type-toggle {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  scrollbar-width: none;
}

.search-type-toggle::-webkit-scrollbar {
  display: none;
}

.search-type-toggle .btn {
  white-space: nowrap;
}

.search-toolbar__primary {
  min-width: 0;
}

.property-media-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.property-media-tabs::-webkit-scrollbar {
  display: none;
}

.property-media-tabs .btn {
  flex: 0 0 auto;
}

.map-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: rgba(20, 31, 20, 0.42);
}

.map-sidebar-backdrop[hidden] {
  display: none !important;
}

body.map-sidebar-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .property-sidebar-sticky {
    position: static !important;
    top: auto !important;
  }

  .property-title {
    font-size: clamp(1.55rem, 6vw, 2.25rem);
    line-height: 1.2;
  }

  .search-page-title {
    font-size: clamp(1.45rem, 5.5vw, 2rem);
  }

  .hero-section__content.container-xxl {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-section__content > .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-section__content .col-lg-5 {
    padding-left: max(1rem, calc(var(--bs-gutter-x) * 0.5));
    padding-right: max(1rem, calc(var(--bs-gutter-x) * 0.5));
  }

  .hero-section__content .col-lg-7 {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-section__content .search-panel {
    width: 100%;
    border-radius: 1.25rem 1.25rem 0 0;
  }
}

@media (min-width: 992px) {
  .hero-section__content .search-panel {
    border-radius: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --site-header-height: 4.35rem;
    --site-sticky-top: 5rem;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .page-section {
    padding: 3rem 0;
  }

  main.page-section {
    padding-top: 1rem;
    padding-bottom: 2.5rem;
  }

  .site-header .navbar {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .brand-logo--nav {
    height: 2.35rem;
    max-width: min(10rem, 42vw);
  }

  .navbar-actions .btn-sm {
    --bs-btn-padding-x: 0.55rem;
  }

  .navbar-actions__icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .hero-title--home {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.12;
  }

  .hero-section__content {
    align-items: flex-end;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .search-panel .card-body {
    padding: 1rem !important;
  }

  .search-mode-tabs__btn {
    font-size: 0.68rem;
    padding: 0.7rem 0.2rem;
    line-height: 1.15;
    white-space: normal;
  }

  .search-mode-tabs__btn .bi {
    display: none;
  }

  .hero-search-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .hero-search-group > .input-group-text,
  .hero-search-group > .form-control,
  .hero-search-group > .btn {
    width: 100%;
    border-radius: 0.65rem !important;
    margin: 0 !important;
  }

  .hero-search-group > .input-group-text {
    display: none;
  }

  .hero-search-group > .form-control {
    min-height: 3.25rem;
    padding-left: 1rem;
  }

  .hero-search-group > .btn-brand {
    min-height: 3rem;
  }

  .hero-quick-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .hero-quick-filters::-webkit-scrollbar {
    display: none;
  }

  .hero-quick-filters .btn-quick {
    flex: 0 0 auto;
  }

  .listing-card__stats {
    gap: 0.35rem;
  }

  .listing-card__stat-label {
    font-size: 0.7rem;
  }

  .listing-card__price {
    font-size: 0.95rem;
  }

  .site-footer-cta .form-control-lg,
  .site-footer-cta .btn-lg {
    min-height: 3rem;
  }

  .page-map {
    height: 100vh;
    height: 100dvh;
  }

  .map-toolbar__inner {
    padding: 0.55rem 0.75rem;
    gap: 0.5rem !important;
  }

  .map-toolbar__search {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

  .map-marker {
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
  }

  .map-preview {
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    max-height: min(40vh, 18rem);
  }

  .map-sidebar {
    top: calc(var(--site-header-height) + env(safe-area-inset-top, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .property-gallery__thumb {
    width: 4.75rem;
    height: 3.5rem;
  }

  .property-facts-grid .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .view-toggle .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .search-toolbar__secondary {
    width: 100%;
  }

  .search-toolbar__secondary .view-toggle {
    flex: 1 1 auto;
  }
}

@media (hover: none) and (pointer: coarse) {
  .listing-card:hover {
    transform: none;
    box-shadow: 0 1rem 2.5rem rgba(20, 31, 20, 0.06);
  }

  .btn,
  .mega-nav__trigger,
  .map-sidebar__item,
  .search-mode-tabs__btn {
    min-height: 2.75rem;
  }
}

/* Auth & account pages */
.auth-page {
  min-height: calc(100vh - var(--site-header-height) - 8rem);
  display: flex;
  align-items: center;
}

.auth-card {
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(20, 31, 20, 0.08);
}

.auth-card__aside {
  background: linear-gradient(160deg, var(--brand-primary) 0%, #2f5242 55%, #172820 100%);
  color: var(--brand-on-primary);
  border-radius: 1rem 0 0 1rem;
}

.auth-card__aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-card__aside-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: rgba(248, 245, 239, 0.85);
}

.auth-card__aside-list i {
  color: var(--brand-accent);
  margin-top: 0.15rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--brand-muted-foreground);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--brand-border);
}

/* Listing form */
.listing-form-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.listing-form-step__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--brand-muted-foreground);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.listing-form-step__item:hover:not(:disabled) {
  color: var(--brand-primary);
}

.listing-form-step__item:disabled {
  cursor: default;
  opacity: 0.65;
}

.listing-form-step__item.is-active {
  color: var(--brand-primary);
  font-weight: 600;
}

.listing-form-step__dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: var(--brand-muted);
  color: var(--brand-muted-foreground);
  flex-shrink: 0;
}

.listing-form-step__item.is-active .listing-form-step__dot,
.listing-form-step__item.is-done .listing-form-step__dot {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

.listing-form-step__line {
  width: 1.5rem;
  height: 2px;
  background: var(--brand-border);
}

.upload-zone {
  border: 2px dashed var(--brand-border);
  border-radius: 0.75rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--brand-muted);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-zone:hover {
  border-color: var(--brand-accent);
  background: rgba(232, 225, 212, 0.6);
}

.upload-zone__icon {
  font-size: 2rem;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.feature-chip.is-selected {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-on-primary);
}

.listing-wizard-step[hidden] {
  display: none !important;
}

.listing-wizard-actions {
  border-top: 1px solid var(--brand-border);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.listing-completeness__bar {
  height: 0.45rem;
  border-radius: 999px;
  background: var(--brand-muted);
  overflow: hidden;
}

.listing-completeness__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
  transition: width 0.25s ease;
}

.listing-review-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.listing-review-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--brand-border);
  font-size: 0.92rem;
}

.listing-review-list li:last-child {
  border-bottom: 0;
}

.listing-review-list__label {
  color: var(--brand-muted-foreground);
  flex-shrink: 0;
}

.listing-review-list__value {
  text-align: right;
  font-weight: 500;
}

.photo-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.65rem;
}

.photo-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  background: var(--brand-muted);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-thumb__remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 31, 20, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

.listing-publish-success {
  text-align: center;
  padding: 2rem 1rem;
}

.listing-publish-success__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(125, 144, 116, 0.2);
  color: #4a6b42;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.integration-teaser__logo {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.integration-teaser--compact {
  margin-bottom: 0;
}

.property-media-panel__tour-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(248, 245, 239, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--brand-accent);
}

.contact-reveal__trigger--inline {
  text-align: left;
}

.contact-reveal__hint {
  font-size: 0.85em;
}

.contact-reveal.is-revealed .contact-reveal__trigger {
  display: none !important;
}

.listing-video-preview video {
  max-height: 18rem;
  background: #141f18;
}

/* Dashboard */
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.dashboard-nav {
  position: sticky;
  top: var(--site-sticky-top);
}

.dashboard-nav__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  color: var(--brand-foreground);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}

.dashboard-nav__link:hover {
  background: var(--brand-muted);
  color: var(--brand-primary);
}

.dashboard-nav__link.is-active {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}

.dashboard-nav__link.is-active .text-brand-accent {
  color: var(--brand-accent);
}

.stat-card {
  border-radius: 0.85rem;
  padding: 1.25rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  height: 100%;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-card__trend {
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.stat-card__trend--up {
  background: rgba(125, 144, 116, 0.18);
  color: #4a6b42;
}

.stat-card__trend--down {
  background: rgba(184, 155, 94, 0.15);
  color: #8a7340;
}

.stat-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand-accent);
  font-size: 1.1rem;
}

.dashboard-chart {
  height: 12rem;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding-top: 1rem;
}

.dashboard-chart__bar {
  flex: 1;
  background: linear-gradient(180deg, var(--brand-secondary), var(--brand-primary));
  border-radius: 0.35rem 0.35rem 0 0;
  min-height: 1.5rem;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.dashboard-chart__bar:hover {
  opacity: 1;
}

.dashboard-chart__bar.is-current {
  background: linear-gradient(180deg, var(--brand-accent), #9a7f45);
}

.dashboard-activity__item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--brand-border);
}

.dashboard-activity__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dashboard-activity__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand-accent);
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .auth-card__aside {
    border-radius: 1rem 1rem 0 0;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    position: static;
  }

  .dashboard-nav__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
  }

  .dashboard-nav__link {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* --------------------------------------------------------------------------
   Mobile web — app-geïnspireerde weergave met hamburgernavigatie
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .site-header .navbar {
    background: rgba(248, 245, 239, 0.94) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .mobile-nav-drawer {
    --bs-offcanvas-width: min(20rem, 88vw);
  }

  .mobile-nav-drawer .offcanvas-header {
    background: rgba(248, 245, 239, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .mobile-nav-accordion .accordion-button {
    font-family: var(--font-display);
    font-size: 1.02rem;
  }

  .mobile-nav-drawer__utilities .btn-brand {
    border-radius: 999px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --mobile-radius-lg: 1.25rem;
    --mobile-radius-md: 0.875rem;
    --mobile-shadow: 0 0.75rem 2.5rem rgba(20, 31, 20, 0.08);
  }

  body {
    -webkit-font-smoothing: antialiased;
  }

  .container-xxl {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  /* Header — compact, app-achtig */
  .site-header .navbar {
    padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.55rem;
    border-bottom-color: rgba(31, 58, 45, 0.08) !important;
    box-shadow: 0 1px 0 rgba(31, 58, 45, 0.04);
  }

  .site-header.shadow-sm {
    box-shadow: none !important;
  }

  .brand-logo--nav {
    height: 2.15rem;
    max-width: min(9.5rem, 44vw);
  }

  .navbar-actions .btn-outline-secondary {
    --bs-btn-border-color: transparent;
    --bs-btn-bg: transparent;
    --bs-btn-hover-bg: rgba(31, 58, 45, 0.06);
    --bs-btn-hover-border-color: transparent;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
  }

  .navbar-actions__icon,
  .mobile-nav-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.15rem;
  }

  .mobile-nav-toggle .bi {
    font-size: 1.35rem;
  }

  /* Hero — inhoud onderaan, zoals mobiele app */
  .hero-section--full {
    min-height: 100dvh;
  }

  .hero-section__content {
    align-items: flex-end !important;
    padding-top: 0 !important;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .hero-section__grid {
    --bs-gutter-y: 1rem;
    align-items: flex-end !important;
  }

  .hero-section__copy {
    order: 1;
    text-align: center;
  }

  .hero-section__search {
    order: 2;
    width: 100%;
    max-width: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-section__copy .section-kicker {
    font-size: 0.65rem;
    margin-bottom: 0.5rem !important;
  }

  .hero-title--home {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem) !important;
    line-height: 1.15;
    margin-bottom: 0.65rem !important;
  }

  .hero-title--home br {
    display: none;
  }

  .hero-section__tagline {
    font-size: 0.85rem;
    margin-bottom: 0.85rem !important;
    max-width: none !important;
  }

  .hero-stats {
    justify-content: center !important;
    gap: 1.75rem !important;
    margin-bottom: 0.85rem;
  }

  .hero-stat {
    text-align: center;
  }

  .hero-stat__value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
  }

  .hero-stat__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 0.3rem;
  }

  .hero-section__content .search-panel {
    border-radius: var(--mobile-radius-lg) !important;
    box-shadow: 0 1rem 2.5rem rgba(20, 31, 20, 0.22);
  }

  .search-mode-tabs--hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .search-mode-tabs--hero .search-mode-tabs__indicator {
    display: none;
  }

  .search-mode-tabs--hero .search-mode-tabs__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 4.75rem;
    margin: 0;
    padding: 0.85rem 0.5rem;
    border: 2px solid rgba(31, 58, 45, 0.1);
    border-radius: var(--mobile-radius-md);
    background: rgba(31, 58, 45, 0.04);
    color: var(--brand-primary);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  .search-mode-tabs--hero .search-mode-tabs__btn .bi {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 1.25rem;
    color: var(--brand-accent);
  }

  .search-mode-tabs--hero .search-mode-tabs__btn.is-active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--brand-on-primary);
    box-shadow: 0 0.5rem 1.25rem rgba(20, 31, 20, 0.2);
  }

  .search-mode-tabs--hero .search-mode-tabs__btn.is-active .bi {
    color: var(--brand-accent);
  }

  #hero-search-hint {
    display: none;
  }

  .hero-search-group {
    flex-direction: row !important;
    align-items: stretch;
    border: 1px solid var(--brand-border);
    border-radius: 0.875rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0.25rem 1rem rgba(20, 31, 20, 0.06);
  }

  .hero-search-group > .input-group-text {
    display: flex !important;
    width: auto;
    border: 0;
    border-radius: 0 !important;
    background: #fff;
    padding-left: 0.9rem;
    padding-right: 0;
  }

  .hero-search-group > .form-control {
    width: auto;
    flex: 1 1 auto;
    min-height: 3.1rem;
    border: 0;
    border-radius: 0 !important;
    padding-left: 0.35rem;
    box-shadow: none;
  }

  .hero-search-group > .btn-brand {
    width: auto;
    flex-shrink: 0;
    min-height: 3.1rem;
    border-radius: 0 !important;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    margin: 0 !important;
  }

  .hero-quick-filters {
    flex-wrap: nowrap;
    margin-top: 0.85rem !important;
  }

  .hero-quick-filters > .small {
    display: none;
  }

  .hero-quick-filters .btn-quick {
    flex: 0 0 auto;
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
  }

  /* Secties — app-achtige headers en spacing */
  .page-section--mobile {
    padding: 2rem 0;
  }

  .page-section--mobile > .container-xxl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mobile-section-header {
    margin-bottom: 1rem !important;
    align-items: center !important;
  }

  .mobile-section-header__title {
    font-family: var(--font-display);
    font-size: 1.35rem !important;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .mobile-section-header__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8b6f47 !important;
    padding: 0;
    white-space: nowrap;
  }

  .mobile-section-header__actions .btn-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8b6f47 !important;
    padding: 0;
  }

  /* Regio-rail — horizontaal scrollen */
  .home-region-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem 0.35rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-region-grid::-webkit-scrollbar {
    display: none;
  }

  .home-region-grid > [class*="col-"] {
    flex: 0 0 10rem;
    max-width: 10rem;
    padding: 0;
  }

  .home-region-grid .ratio {
    border-radius: var(--mobile-radius-md);
    box-shadow: var(--mobile-shadow);
  }

  .home-region-grid .h5 {
    font-family: var(--font-display);
    font-size: 1rem;
  }

  /* Uitgelichte panden — horizontale rail */
  .home-featured-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-featured-grid::-webkit-scrollbar {
    display: none;
  }

  .home-featured-grid > [class*="col-"] {
    flex: 0 0 min(17.5rem, 78vw);
    max-width: min(17.5rem, 78vw);
    padding: 0;
  }

  .home-featured-grid .listing-card {
    height: 100%;
    border-radius: var(--mobile-radius-lg);
    box-shadow: var(--mobile-shadow);
  }

  .home-featured-grid .listing-card__title {
    font-family: var(--font-display);
    font-size: 1.02rem;
  }

  /* Zoekalert CTA — app-banner stijl */
  .mobile-cta-panel {
    padding: 1.5rem 1.25rem;
    border-radius: var(--mobile-radius-lg);
    background: linear-gradient(135deg, #fff 0%, #f0ebe2 100%);
    border: 1px solid var(--brand-border);
    box-shadow: var(--mobile-shadow);
  }

  .mobile-cta-panel__title {
    font-family: var(--font-display);
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem !important;
  }

  .mobile-cta-panel__text {
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 1rem !important;
  }

  .mobile-cta-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-cta-panel__actions .btn {
    justify-content: center;
    border-radius: 999px;
  }

  .mobile-feature-panel {
    border-radius: var(--mobile-radius-lg) !important;
    box-shadow: var(--mobile-shadow);
  }

  /* Listing cards algemeen */
  .listing-card {
    border-radius: var(--mobile-radius-lg);
    box-shadow: var(--mobile-shadow);
  }

  .listing-card__body {
    padding: 0.9rem 1rem 1rem;
  }

  .listing-card__title {
    font-family: var(--font-display);
    font-size: 1.02rem;
  }

  .listing-card__price {
    font-size: 0.95rem;
  }

  /* Zoekpagina */
  .search-toolbar {
    position: sticky;
    top: calc(var(--site-header-height) + env(safe-area-inset-top, 0px));
    z-index: 1020;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .search-page-title {
    font-family: var(--font-display);
    font-size: 1.45rem !important;
  }

  main.pt-3.pt-md-4 > .container-xxl {
    padding-top: 0.5rem;
  }

  /* Panddetail */
  .property-title {
    font-family: var(--font-display);
  }

  /* Footer — compacter, zelfde inhoud */
  .site-footer {
    margin-top: 2rem !important;
  }

  .site-footer-cta .container-xxl {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .site-footer-cta h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
  }

  .site-footer-main .container-xxl {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .site-footer-main .row > [class*="col-"] {
    margin-bottom: 0.25rem;
  }

  .site-footer-heading {
    margin-bottom: 0.75rem;
  }

  .site-footer-tagline {
    font-size: 0.88rem;
    max-width: none;
  }

  .site-footer-bottom .container-xxl {
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero-stat__value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
  }

  .hero-stat__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
  }

  .mobile-section-header__title {
    font-family: var(--font-display);
    font-size: 1.5rem !important;
  }
}
