/* ==========================================================================
   Menno Kroon – Estate
   Plattegrond, overzichtstegel, checklists, detail- en offertepagina
   ========================================================================== */

:root {
  --mk-blauw: #0075ff;
  --mk-donkergroen: #07200a;
  --mk-donkergroen-90: rgba(7, 32, 10, 0.9);
  --mk-estate-groen: #6f8351;
  --mk-lichtgroen: #dbe4ca;
  --mk-lichtgrijs: #eff0ed;
  --mk-lichtblauw: #d0daee;
  --mk-serif: "Instrument Serif", Georgia, serif;
  --mk-sans: "IBM Plex Sans", Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Plattegrond
   (selectors beginnen met .mk-pl zodat ze winnen van de kit-regels voor links)
   -------------------------------------------------------------------------- */

.mk-pl {
  --mk-pl-bg: var(--mk-lichtgroen);
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--mk-pl-bg);
}

.mk-pl--leeg {
  padding: 24px;
  font-family: var(--mk-sans);
  color: var(--mk-donkergroen);
}

.mk-pl .mk-pl__legenda {
  background: var(--mk-pl-bg);
  padding: 67px clamp(20px, 11.72vw, 150px) 49px;
}

.mk-pl .mk-pl__legenda-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1280px;
  margin-inline: auto;
}

.mk-pl .mk-pl__titel {
  margin: 0;
  font-family: var(--mk-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(50px, 6.25vw, 80px);
  line-height: 1.0375;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--mk-blauw);
}

.mk-pl .mk-pl__lijst {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 160px;
  column-gap: clamp(40px, 10.9vw, 140px);
  max-width: 760px;
}

.mk-pl .mk-pl__item {
  break-inside: avoid;
  margin: 0 0 2px;
  padding: 0;
}

.mk-pl .mk-pl__item > a,
.mk-pl .mk-pl__item > span {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  color: rgba(0, 117, 255, 0.9);
  font-family: var(--mk-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 22px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.mk-pl .mk-pl__item > a {
  transition: opacity 0.2s ease;
}

.mk-pl .mk-pl__item > a:hover,
.mk-pl .mk-pl__item > a:focus-visible {
  opacity: 0.7;
  text-decoration: none;
}

.mk-pl .mk-pl__nr {
  flex: 0 0 25px;
  width: 25px;
  font-size: 16px;
  font-weight: 600;
}

.mk-pl .mk-pl__naam {
  font-size: 15px;
  font-weight: 300;
  white-space: nowrap;
  text-decoration: none;
}

/* Luchtfoto (desktop/tablet) */
.mk-pl .mk-pl__kaart--desktop {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.mk-pl .mk-pl__kaart--desktop .mk-pl__stage {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

.mk-pl .mk-pl__kaart--desktop .mk-pl__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

/* Cijfers: standaard blauw met vet wit cijfer; bij hover wit met blauw cijfer (geen actieve state) */
.mk-pl .mk-pl__pin {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  width: 40px;
  padding: 8px 0;
  border-radius: 20px;
  background: var(--mk-blauw);
  color: #fff;
  font-family: var(--mk-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.28px;
  text-align: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.35s ease, background-color 0.2s ease, color 0.2s ease;
}

.mk-pl .mk-pl__pin-nr {
  display: block;
  font-weight: 700;
}

.mk-pl a.mk-pl__pin:hover,
.mk-pl a.mk-pl__pin:focus-visible,
.mk-pl .mk-pl__pin.is-actief {
  background: #fff;
  color: var(--mk-blauw);
}

.mk-pl .mk-pl__pin:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Hover: alleen het gekozen cijfer blijft staan */
.mk-pl .mk-pl__kaart.is-hover .mk-pl__pin:not(.is-actief) {
  opacity: 0;
}

/* Foto per locatie, fade over de luchtfoto heen */
.mk-pl .mk-pl__hoverfotos {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.mk-pl .mk-pl__hoverfoto {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.mk-pl .mk-pl__hoverfoto.is-zichtbaar {
  opacity: 1;
}

.mk-pl .mk-pl__overlay {
  position: absolute;
  z-index: 3;
  right: 5.625%;
  bottom: 7.4%;
  left: 5.625%;
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.mk-pl .mk-pl__overlay a {
  pointer-events: auto;
}

.mk-pl .mk-pl__overlay-label {
  margin: 0 0 15px;
  color: var(--mk-lichtblauw);
  font-family: var(--mk-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.mk-pl .mk-pl__overlay-titel {
  margin: 0;
  color: var(--mk-lichtblauw);
  font-family: var(--mk-serif);
  font-size: clamp(40px, 6.25vw, 80px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.0375;
  letter-spacing: -0.01em;
  text-transform: none;
}

/* Standaardblok (Welcome + titel) en hoverblok (Estate + locatienaam) op dezelfde plek,
   allebei onderaan uitgelijnd; crossfade bij hover. */
.mk-pl .mk-pl__overlay-tekst {
  display: grid;
}

.mk-pl .mk-pl__overlay-groep {
  grid-area: 1 / 1;
  align-self: end;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mk-pl .mk-pl__overlay-groep--locatie {
  opacity: 0;
  transform: translateY(-10px);
}

.mk-pl .mk-pl__kaart.is-hover .mk-pl__overlay-groep--standaard {
  opacity: 0;
  transform: translateY(10px);
}

.mk-pl .mk-pl__kaart.is-hover .mk-pl__overlay-groep--locatie {
  opacity: 1;
  transform: none;
}

.mk-pl .mk-pl__overlay-knop {
  flex: 0 0 auto;
  margin-bottom: 9px;
  padding: 7px 20px;
  border: 1px solid var(--mk-blauw);
  border-radius: 20px;
  background: var(--mk-blauw);
  color: #f5f4f1;
  font-family: var(--mk-sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 25px;
  letter-spacing: 0.88px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mk-pl .mk-pl__overlay-knop:hover {
  border-color: #153c1a;
  background: #153c1a;
  color: #f5f4f1;
}

/* Illustratie (mobiel): kleine blauwe cijfers, niet klikbaar */
.mk-pl .mk-pl__kaart--mobiel .mk-pl__stage {
  position: relative;
}

.mk-pl .mk-pl__kaart--mobiel .mk-pl__img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.mk-pl .mk-pl__pin--klein {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  background: var(--mk-blauw);
  color: #fff;
  font-size: 10px;
  line-height: 20px;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .mk-pl .mk-pl__kaart--mobiel {
    display: none;
  }

  .mk-pl--legenda-boven .mk-pl__legenda { order: 1; }
  .mk-pl--legenda-boven .mk-pl__kaart--desktop { order: 2; }
  .mk-pl--legenda-onder .mk-pl__kaart--desktop { order: 1; }
  .mk-pl--legenda-onder .mk-pl__legenda { order: 2; }
}

@media (max-width: 767px) {
  .mk-pl {
    gap: 50px;
    padding: 67px 20px 49px;
  }

  .mk-pl .mk-pl__kaart--desktop {
    display: none;
  }

  .mk-pl .mk-pl__legenda {
    padding: 0;
  }

  .mk-pl .mk-pl__titel {
    font-size: 50px;
    line-height: 50px;
    letter-spacing: -0.25px;
  }

  .mk-pl .mk-pl__lijst {
    columns: 2;
    column-gap: 20px;
    max-width: none;
  }

  .mk-pl .mk-pl__naam {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-pl .mk-pl__pin,
  .mk-pl .mk-pl__hoverfoto,
  .mk-pl .mk-pl__overlay-groep {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Overzichtstegel (loop item) – specificaties
   -------------------------------------------------------------------------- */

.mk-specs {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 5px;
  row-gap: 2px;
  align-items: start;
  margin: 0;
  color: var(--mk-donkergroen-90);
  font-family: var(--mk-sans);
}

/* Vrije kenmerken: rijen vallen in het raster, zodat de labels altijd uitlijnen */
.mk-specs__rij {
  display: contents;
}

.mk-specs dt {
  min-width: 70px;
  max-width: 100px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.mk-specs dd {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 18px;
  overflow-wrap: break-word;
}

/* Alleen label of alleen waarde: over de hele breedte */
.mk-specs__rij--vol > dt,
.mk-specs__rij--vol > dd {
  grid-column: 1 / -1;
  max-width: none;
}

.mk-specs sup,
.mk-estate-spec sup {
  position: relative;
  top: -0.5em;
  margin-left: 0.5px;
  font-size: 0.645em;
  line-height: 0;
  vertical-align: baseline;
}

/* Hele tegel klikbaar, subtiele hover */
.mk-tegel {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mk-tegel:hover {
  box-shadow: 0 6px 24px rgba(7, 32, 10, 0.25);
}

.mk-tegel .mk-tegel__beeld {
  transition: filter 0.25s ease;
}

.mk-tegel:hover .mk-tegel__beeld {
  filter: brightness(1.05);
}

/* --------------------------------------------------------------------------
   Checklists (Teksteditor met opsomming + class "mk-checklist")
   -------------------------------------------------------------------------- */

.mk-checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mk-checklist li {
  position: relative;
  text-transform: none;
  margin: 0 0 5px;
  padding: 3.5px 0 3.5px 47px;
  color: var(--mk-donkergroen);
  font-family: var(--mk-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.3px;
}

.mk-checklist li:last-child {
  margin-bottom: 0;
}

.mk-checklist li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 17px;
  height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 11'%3E%3Cpath d='M.5 5.3 5.6 10.4 16.5.5' fill='none' stroke='%2307200A' stroke-width='1.1'/%3E%3C/svg%3E") no-repeat center / contain;
}

.mk-checklist--lijnen ul {
  border-top: 1px solid rgba(7, 32, 10, 0.2);
}

.mk-checklist--lijnen li {
  margin: 0;
  padding-top: 13.5px;
  padding-bottom: 13.5px;
}

.mk-checklist--lijnen li + li {
  border-top: 1px solid rgba(7, 32, 10, 0.2);
}

.mk-checklist--lijnen li::before {
  top: 20px;
}

/* --------------------------------------------------------------------------
   Detailpagina
   -------------------------------------------------------------------------- */

/* Specificaties-kaart */
.mk-estate-spec {
  display: flex;
  gap: 10px;
}

/* Sidebar-kaart blijft in beeld tijdens scrollen */
@media (min-width: 1025px) {
  .mk-estate-sticky {
    position: sticky !important;
    top: 130px;
  }

  .admin-bar .mk-estate-sticky {
    top: 162px;
  }
}

/* Offerteknop als zwevende balk op mobiel (Figma: 410 x 55, knop 31 x 45) */
@media (max-width: 1024px) {
  .mk-offerte-balk {
    position: fixed !important;
    z-index: 90;
    right: 9px;
    bottom: 15px;
    left: 9px;
    width: auto !important;
    max-width: none !important;
    min-height: 55px;
  }

  body.single-estate {
    padding-bottom: 85px;
  }
}

.mk-offerte-balk .elementor-widget-icon,
.mk-offerte-balk .elementor-icon-wrapper {
  display: flex;
  line-height: 0;
}

.mk-offerte-balk .elementor-widget-icon {
  align-self: stretch;
}

.mk-offerte-balk .elementor-icon-wrapper {
  height: 100%;
}

.mk-offerte-balk .elementor-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 45px;
  padding: 0 !important;
  border-radius: 6px !important;
  font-size: 8px !important;
}

.mk-offerte-balk .elementor-icon svg {
  width: 8px;
  height: 8px;
}

/* Galerij: blauwe pijlen zoals in het design */
.mk-galerij .elementor-swiper-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 45px;
  border-radius: 5px;
  background: var(--mk-blauw);
  color: #fff;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.mk-galerij .elementor-swiper-button svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.mk-galerij .elementor-swiper-button:hover {
  background: #153c1a;
}

.mk-galerij .elementor-swiper-button.elementor-swiper-button-prev {
  inset-inline-start: 50px !important;
  left: 50px !important;
}

.mk-galerij .elementor-swiper-button.elementor-swiper-button-next {
  inset-inline-end: 50px !important;
  right: 50px !important;
}

@media (max-width: 767px) {
  .mk-galerij .elementor-swiper-button.elementor-swiper-button-prev { inset-inline-start: 15px !important; left: 15px !important; }
  .mk-galerij .elementor-swiper-button.elementor-swiper-button-next { inset-inline-end: 15px !important; right: 15px !important; }
}

/* Knoppen met pijl-blokje (offerte / download) */
.mk-knop-pijl .elementor-button-content-wrapper {
  gap: 12px;
  align-items: center;
}

.mk-knop-pijl .elementor-button-icon svg {
  width: 9px;
  height: 9px;
}

/* --------------------------------------------------------------------------
   Offertepagina – formulier
   -------------------------------------------------------------------------- */

.mk-offerte-form .elementor-field-group {
  margin-bottom: 10px;
}

.mk-offerte-form .elementor-field-textual {
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid rgba(7, 32, 10, 0.15);
  border-radius: 5px;
  background: #fff;
  color: var(--mk-donkergroen);
  font-family: var(--mk-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 24px;
}

.mk-offerte-form .elementor-field-textual,
.mk-offerte-form .elementor-field-textual::placeholder {
  text-transform: none;
  letter-spacing: 0.3px;
}

.mk-offerte-form .elementor-field-textual::placeholder {
  color: rgba(7, 32, 10, 0.6);
  opacity: 1;
}

.mk-offerte-form textarea.elementor-field-textual {
  min-height: 198px;
}

.mk-offerte-form .elementor-field-textual:focus {
  border-color: var(--mk-blauw);
  box-shadow: none;
  outline: none;
}

.mk-offerte-form .e-form__buttons {
  margin-top: 10px;
}

.mk-offerte-form .elementor-button {
  width: 100%;
  min-height: 45px;
  border: 0;
  border-radius: 10px;
  background: var(--mk-blauw);
  color: #fff;
  font-family: var(--mk-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 25px;
  letter-spacing: 0.88px;
  text-transform: uppercase;
}

.mk-offerte-form .elementor-button:hover {
  background: #153c1a;
}

.mk-offerte-balk {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mk-offerte-balk.is-verborgen {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.mk-tegel__bekijk {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Brochure-popup (zelfde opbouw als de upsell-popup)
   -------------------------------------------------------------------------- */

.mk-brochure-popup .dialog-widget-content {
  overflow: hidden;
}

/* Succesmelding van Elementor verbergen (eigen bevestiging, zie estate.js); foutmeldingen blijven zichtbaar.
   Geldt voor de brochure-popup en het offerteformulier (beide .mk-offerte-form). */
.mk-offerte-form .elementor-message-success {
  display: none;
}

.mk-offerte-form .elementor-message-danger {
  margin-top: 10px;
  color: #b42318;
  font-family: var(--mk-sans);
  font-size: 13px;
  line-height: 18px;
}

.mk-offerte-form.is-verzonden form {
  display: none;
}

.mk-brochure-popup .mk-brochure-form .elementor-button {
  width: auto;
  min-height: 0;
  border-radius: 20px;
  font-weight: 400;
}

/* Bevestiging met vinkje (badge) */
.mk-form-klaar {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: 5px;
  background: #f5f4f1;
  outline: none;
}

/* Op de offertepagina staat het formulier zelf op lichtgrijs: badge wit */
.mk-offerte-form:not(.mk-brochure-form) .mk-form-klaar {
  background: #fff;
}

.mk-form-klaar::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mk-blauw) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.mk-form-klaar .mk-form-klaar__tekst {
  margin: 0;
  color: #1e1e1e;
  font-family: var(--mk-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.28px;
}

@media (max-width: 767px) {
  .mk-brochure-popup .mk-brochure-popup__beeld {
    max-height: 300px;
  }

  .mk-brochure-popup .mk-brochure-form .elementor-button {
    width: 100%;
  }

  /* Witte pil over de foto, zoals de upsell-popup op mobiel */
  .mk-brochure-popup .dialog-close-button {
    top: 16px !important;
    right: 16px !important;
    padding: 4px 10px;
    border-radius: 16px;
    background: #fff;
  }
}
