/* CSS Document */
#smooth-content {
    float: left;
}


/* Scope alleen naar maps + jouw wrapper */
#map2 .gm-style .spring-iw,
#map3 .gm-style .spring-iw{
  max-width: 300px;
  padding-right: 30px;
}
#map2 .gm-style .gm-style-iw-c #bodyContent,
#map3 .gm-style .gm-style-iw-c #bodyContent{
  padding-right: 42px; /* ruimte voor het X-kruisje */
  max-width: 300px;
  box-sizing: border-box;
}
#map2 .gm-style .gm-style-iw-c button.gm-ui-hover-effect,
#map3 .gm-style .gm-style-iw-c button.gm-ui-hover-effect{
  top: 5px !important;
  right: 5px !important;
}
/* Titel */
#map2 .gm-style .spring-iw h3,
#map3 .gm-style .spring-iw h3{
  color: var(--goldcolor);
  margin: 0;
  padding: 0;
  font-size: 1.1em;      /* iets compacter in info window */
  font-weight: 400;
  padding-right: 42px;
  font-family: ivymode, sans-serif;
}

/* Body spacing */
#map2 .gm-style .spring-iw__body,
#map3 .gm-style .spring-iw__body{
  line-height: 1.35;
}

/* Knop */
#map2 .gm-style .spring-iw__actions,
#map3 .gm-style .spring-iw__actions{
  margin-top: 10px;
}

#map2 .gm-style .spring-iw__btn,
#map3 .gm-style .spring-iw__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.12);
  background: white;
  color: #111;
  font-size: 13px;
}

/* optioneel hover */
#map2 .gm-style .spring-iw__btn:hover,
#map3 .gm-style .spring-iw__btn:hover{
  transform: translateY(-1px);
}

.gm-style .gm-style-iw-c { padding-right: 28px; } /* ruimte voor close X */
.gm-body h3 { margin: 20px 18px 0 0; }              /* of alleen h3 ruimte */
.gm-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.gm-btn { padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); background:#fff; cursor:pointer; text-decoration:none; }




:root {
  --bg: #ffffff;
  --card-bg: #ffffff;
  --accent: #ff6f61;
  --accent-soft: rgba(255, 111, 97, 0.08);
  --text: #000000;
  --muted: #d8cfc7;
  --available: #1b9b4b;
  --option: #f39c12;   /* nieuw: onder optie */
  --taken: #c62828;
  --border-soft: #d8cfc7;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.08);
}
* {
  box-sizing: border-box;
}


#woningsearch{
	display: none;
}
#header{
	position: absolute;
}

    .app {
      /*min-height: 	100vh;*/
      display: flex;
      flex-direction: column;
		width: 100%;
    }

    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.85rem 5vw;
      border-bottom: 1px solid var(--border-soft);
      background: #ffffffee;
      backdrop-filter: blur(8px);
      position: sticky;
      top: 0;
      z-index: 20;
    }

    .brand {
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 0.8rem;
      color: var(--muted);
      display: flex;
      align-content: center;
      align-items: center;
      gap: 15px;
    }
    .brand object{
      width: 100%;
      height: auto;
      max-height: 45px;
      border-radius: 0;
      position: relative;
      z-index: 1;
    }

    .titel {
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 0.8rem;
      color: var(--muted);
      display: flex;
      align-content: center;
      align-items: center;
      gap: 15px;
    }

    .breadcrumbs {
      font-size: 0.8rem;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .breadcrumbs .crumb.current {
      color: var(--accent);
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .stage {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 0px;
      gap: 0.75rem;
    }

    .svg-stage {
      width: 100%;
      max-width: 1440px;
      max-width: none;
      margin: 0 auto;
      background: none;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      border-radius: 0;
      overflow: hidden;
    }

    object#mainSvg {
      width: 100%;
      height: auto;
      max-height: min(72vh, 780px);
	  max-height: none;
      border-radius: 0;
      background: none;
      position: relative;
      z-index: 1;
    }

    /* Filter bar */

    .filter-bar {
      width: 100%;
      max-width: 1440px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.75rem;
    }

    .filter-bar-left {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .view-select-wrapper {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
    }

    .view-select {
      border-radius: 0;
      border: 1px solid var(--border-soft);
      background: #ffffff;
      padding: 0.35rem 0.75rem;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
      background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%;
      background-size: 5px 5px, 5px 5px;
      background-repeat: no-repeat;
      padding-right: 1.5rem;
    }

    .filter-bar-right {
      display: flex;
      gap: 0.5rem;
    }

    .filter-btn {
      border-radius: 0;
      border: 1px solid var(--border-soft);
      background: #ffffff;
      padding: 0.35rem 0.75rem;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      font-size: 0.7rem;
      transition: background 0.15s ease, color 0.15s ease, border 0.15s ease,
        transform 0.1s ease;
    }

    .filter-btn:hover {
      border-color: var(--accent);
      color: #000000;
      transform: translateY(-1px);
    }

    .filter-btn.is-active {
      background: var(--accent);
      border-color: var(--accent);
      color: #ffffff;
    }

    /* -------- Popup overlay -------- */

    .overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      z-index: 58000000;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .overlay.is-visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .unit-popup {
      max-width: 1200px;
      width: 100%;
      max-height: 90vh;
      display: grid;
      grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
      gap: 1.5rem;
      background: var(--card-bg);
      border-radius: 0;
      padding: 1.5rem 1.75rem;
      box-shadow: var(--shadow-soft);
      position: relative;
      overflow: scroll;
      border: 1px solid var(--border-soft);
    }

    @media (max-width: 900px) {
      .unit-popup {
        grid-template-columns: minmax(0, 1fr);
        max-height: 100vh;
      }
    }

    .unit-popup-left,
    .unit-popup-right {
      position: relative;
      z-index: 1;
    }

    .unit-title {
      margin: 0.75rem 0 0.4rem;
      font-size: 1.8rem;
      font-weight: normal;
		    font-family: headfont;
		color: var(--accent);
			
    }

    .unit-subtitle {
      margin: 0;
      font-size: 0.9rem;
      color: var(--muted);
		display: none;
    }

    .unit-grid {
      margin-top: 1.25rem;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.9rem 1.25rem;
      font-size: 0.86rem;
    }

    .unit-grid-label {
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 0.7rem;
      color: var(--muted);
      margin-bottom: 0.2rem;
    }

    .unit-grid-value {
      font-weight: 500;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.75rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 0.25rem 0.7rem;
      border-radius: 0;
      border: 1px solid transparent;
      background: #f7f7f7;
      margin-bottom: 0.5rem;
    }

    .status-pill span.dot {
      width: 6px;
      height: 6px;
      border-radius: 0;
    }

    .status-available {
      color: var(--available);
      border-color: rgba(27, 155, 75, 0.4);
      background: rgba(27, 155, 75, 0.06);
    }

    .status-available span.dot {
      background: var(--available);
    }

    .status-taken {
      color: var(--taken);
      border-color: rgba(198, 40, 40, 0.4);
      background: rgba(198, 40, 40, 0.06);
    }

    .status-taken span.dot {
      background: var(--taken);
    }

    .status-option {
      color: var(--option);
      border-color: rgba(255, 152, 0, 0.4);
      background: rgba(255, 152, 0, 0.06);
    }

    .status-option span.dot {
      background: var(--option);
    }

    /* Preview small in right column */

    .unit-preview {
      border-radius: 20px;
      border: 1px solid var(--border-soft);
      padding: 0.35rem;
      background: #fafafa;
      margin-bottom: 0.75rem;
        padding: 15px;
    }

    .unit-preview img {
      width: 100%;
      height: 260px;
      object-fit: contain; object-position: center center;
      display: block;
      border-radius: 0;
    }

    .unit-previewtext {
      margin-top: 0.5rem;
      font-size: 0.75rem;
      color: var(--muted);
      max-height: 5.5rem;
      overflow: hidden;
    }

    .unit-previewtext h3 {
      margin: 0.25rem 0;
      font-size: 0.86rem;
      font-weight: 500;
      color: #000;
    }

    .unit-previewtext .projectName {
      display: none; /* fallback als de span tóch zou meekomen */
    }

    /* Floorplan inside left column */

    .floorplan-header {
      margin-top: 1.5rem;
      margin-bottom: 0.5rem;
      display: flex;
      justify-content: flex-end;
      align-items: center;
        display: none;
    }

    .floorplan-badge {
      font-size: 0.72rem;
      padding: 0.15rem 0 0.15rem 0.6rem;
      border-radius: 0;
      border: 0px solid var(--border-soft);
      background: none;
      color: var(--muted);
    }

    .floorplan-wrapper {
      border-radius: 0;
      padding: 0px;
      position: relative;
      overflow: hidden;
      max-height: 55vh;
    }

    object#floorplanSvg {
      width: 100%;
      height: auto;
      max-height: 50vh;
      display: block;
      border-radius: 0;
    }

    /* CTA column */

    .cta-stack {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-top: 0.5rem;
    }

    .cta-btn {
      border-radius: 320px;
      padding: 0.65rem 0.9rem;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      border: 1px solid var(--border-soft);
      background: #ffffff;
      cursor: pointer;
      text-align: left;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      transition: background 0.15s ease, color 0.15s ease, border 0.15s ease,
        transform 0.1s ease;
      text-decoration: none!important;
      color: var(--text);
    }

    .cta-btn span.label {
      flex: 1;
    }

    .cta-btn span.chevron {
      font-size: 0.9rem;
      color: var(--muted);
    }

    .cta-btn.primary {
      background: var(--accent);
      border-color: var(--accent);
      color: #ffffff;
    }

    .cta-btn.primary span.chevron {
      color: #fff;
    }

    .cta-btn.subtle {
      background: #fafafa;
    }

    .cta-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
      border-color: var(--accent);
    }

    .close-btn {
      position: absolute;
      top: 0.0rem;
      right: 0.0rem;
      z-index: 2;
      background: #ffffff;
      border-radius: 0;
      border: 0px solid var(--border-soft);
      color: #000;
      width: 32px;
      height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.1rem;
      line-height: 1;
      /*transition: background 0.15s ease, transform 0.15s ease,
        box-shadow 0.15s ease;*/
    }

    .close-btn:hover {
      /*background: #f2f2f2;
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);*/
    }

    .overlay-click-catcher {
      position: fixed;
      inset: 0;
      z-index: 0;
    }

    .unit-tooltip {
      position: absolute;
      z-index: 58000001; /* hoger dan overlay-bg, lager dan popup zelf */
      pointer-events: none;
      background: #ffffff;
      border-radius: 6px;
      border: 1px solid var(--border-soft);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
      padding: 0.45rem 0.6rem;
      font-size: 0.75rem;
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 0.12s ease, transform 0.12s ease;
    }

    .unit-tooltip.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .unit-tooltip .tooltip-title {
      font-weight: 600;
      margin-bottom: 0.15rem;
      font-size: 0.8rem;
      color: #000;
    }

    .unit-tooltip .tooltip-row {
      line-height: 1.3;
      color: var(--muted);
    }

    .unit-tooltip .tooltip-status {
      margin-top: 0.2rem;
    }

    /* Kleur status tekst in tooltip */
    .unit-tooltip .tooltip-status--available {
      color: var(--available);
    }

    .unit-tooltip .tooltip-status--option {
      color: var(--option);
    }

    .unit-tooltip .tooltip-status--taken {
      color: var(--taken);
    }

	/* ---------- Legend panel ---------- */

	.legend-panel {
	  width: 100%;
	  max-width: 1440px;
	  margin: 1.5rem auto 0;
	}

	.legend-panel-inner {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 0px;
	  align-items: flex-start;
	}

	.legend-types-block {
	  display: flex; justify-content: flex-start; padding: 30px; padding-bottom: 0px;
		flex-wrap: wrap;
	}

	.legend-status-block {
	   display: flex; justify-content: flex-start; padding: 30px; 
		flex-wrap: wrap;
	}

    @media (min-width: 768px) {
	.legend-panel-inner {
	  gap: 1.25rem;
	}
	
	.legend-types-block {
	  flex: 2 1 260px; padding-bottom: 30px;
	}

	.legend-status-block {
	  flex: 1 1 220px;
	}
	}

	.legend-heading {
	  margin: 0 0 0.5rem;
	  font-size: 0.8rem;
	  text-transform: uppercase;
	  letter-spacing: 0.12em;
	  color: var(--muted);
		min-width: 100%; text-align: left;
	}

    @media (min-width: 960px) {
		
	.legend-status-block {
		justify-content: flex-end;
	}
		
	.legend-status-block .legend-heading{
		text-align: right;
	}
	}

	/* grid met kaarten per type */
	.legend-types {
	  display: grid;
	  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	  gap: 0.65rem; width: auto;
	  display: flex;
	  gap: 0.65rem; flex-wrap: wrap;
	}

	.legend-type-card {
	  width: 140px;
	  text-align: left;
	  border: 1px solid var(--border-soft);
	  border-radius: 0;
	  background: #fafafa;
	  padding: 0.6rem 0.7rem;
	  cursor: pointer;
	  display: flex;
	  flex-direction: column;
	  gap: 0.35rem;
	  font-size: 0.78rem;
	  transition: background 0.15s ease, border-color 0.15s ease,
		transform 0.1s ease, box-shadow 0.15s ease;
	}

	.legend-type-card:hover {
	  border-color: var(--accent);
	  background: #ffffff;
	  transform: translateY(-1px);
	  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
	}

	.legend-type-card.is-active {
	  border-color: var(--accent);
	  background: var(--accent-soft);
	}

	.legend-type-header {
	  display: flex;
	  /*justify-content: space-between;*/
	  align-items: baseline;
	  gap: 0.35rem; flex-wrap: nowrap;
	}

	.legend-type-name {
	  font-weight: 600; white-space: nowrap;
	}

	.legend-type-total {
	  font-size: 0.7rem; white-space: nowrap;
	  /*color: var(--muted);*/
	}

	.legend-type-status-row {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 0.25rem 0.4rem;
		
		display: none;
	}

	.legend-pill {
	  display: inline-flex;
	  align-items: center;
	  gap: 0.2rem;
	  padding: 0.1rem 0.45rem;
	  border-radius: 999px;
	  border: 1px solid transparent;
	  font-size: 0.7rem;
	  background: #ffffff;
	}

	.legend-pill .dot {
	  width: 7px;
	  height: 7px;
	  border-radius: 999px;
	}

	/* kleuren in legend */
	.legend-pill.status-available {
	  border-color: rgba(27, 155, 75, 0.25);
	  color: var(--available);
	}

	.legend-pill.status-available .dot {
	  background: var(--available);
	}

	.legend-pill.status-option {
	  border-color: rgba(243, 156, 18, 0.25);
	  color: var(--option);
	}

	.legend-pill.status-option .dot {
	  background: var(--option);
	}

	.legend-pill.status-sold {
	  border-color: rgba(198, 40, 40, 0.25);
	  color: var(--taken);
	}

	.legend-pill.status-sold .dot {
	  background: var(--taken);
	}

	.status-toggle-bar {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 0.4rem;
	  margin-top: 0.35rem;
	}

	.status-toggle {
	  display: inline-flex;
	  align-items: center;
	  gap: 0.3rem;
	  padding: 0.3rem 0.65rem;
	  border-radius: 999px;
	  border: 1px solid var(--border-soft);
	  background: #fafafa;
	  font-size: 0.72rem;
	  text-transform: uppercase;
	  letter-spacing: 0.08em;
	  color: var(--muted);
	  cursor: pointer;
	  transition: background 0.15s ease, border-color 0.15s ease,
		color 0.15s ease, transform 0.1s ease;
		outline: none!important;
	}

	.status-toggle .dot {
	  width: 7px;
	  height: 7px;
	  border-radius: 999px;
	}

	/* basis kleuren */
	.status-toggle.status-available .dot {
	  background: var(--available);
	}

	.status-toggle.status-option .dot {
	  background: var(--option);
	}

	.status-toggle.status-sold .dot {
	  background: var(--taken);
	}

	/* active state */
	.status-toggle.is-active.status-available {
	  border-color: rgba(27, 155, 75, 0.5);
	  background: rgba(27, 155, 75, 0.06);
	  color: var(--available);
	}

	.status-toggle.is-active.status-option {
	  border-color: rgba(243, 156, 18, 0.5);
	  background: rgba(243, 156, 18, 0.06);
	  color: var(--option);
	}

	.status-toggle.is-active.status-sold {
	  border-color: rgba(198, 40, 40, 0.5);
	  background: rgba(198, 40, 40, 0.06);
	  color: var(--taken);
	}

	.status-toggle:hover {
	  transform: translateY(-1px);
	}


.preview-download-btn {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 320px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  cursor: pointer;
  text-decoration: none !important;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease, border 0.15s ease,
    transform 0.1s ease, box-shadow 0.15s ease;
}

.preview-download-btn::after {
  content: "↓";
  font-size: 0.85rem;
  margin-left: 0.4rem;
  color: var(--muted);
}

.preview-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}