/* ════════════════════════════════════════════════
   Villa Pépy – Main Stylesheet
   ════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --clr-primary:      #FC9D00;
  --clr-primary-dark: #D88500;
  --clr-accent:       #C43200;
  --clr-dark:         #1A1610;
  --clr-dark-2:       #2C2416;
  --clr-text:         #3A3020;
  --clr-text-muted:   #7A6E5C;
  --clr-bg:           #FDFAF3;
  --clr-bg-alt:       #F5EDD8;
  --clr-bg-dark:      #1A1610;
  --clr-border:       #E6DBC4;
  --clr-white:        #FFFFFF;

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  --nav-h:    68px;
  --max-w:    1160px;
  --r:        12px;
  --r-sm:     8px;
  --shadow:   0 2px 16px rgba(26,22,16,.07);
  --shadow-md:0 6px 32px rgba(26,22,16,.12);
  --shadow-lg:0 12px 48px rgba(26,22,16,.18);
  --ease:     .25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; }
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

/* ── Helpers ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5.5rem 0; }
.section-alt  { background: var(--clr-bg-alt); }
.section-dark { background: var(--clr-bg-dark); color: var(--clr-white); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: .6rem; }
.section-header > p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}
.section-dark .section-header > p { color: rgba(255,255,255,.6); }
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: .75rem;
}
.section-dark .section-label { color: var(--clr-primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-dark);
  border-color: var(--clr-primary);
}
.btn-primary:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  box-shadow: 0 8px 24px rgba(252,157,0,.35);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: var(--clr-white);
  color: var(--clr-dark);
  border-color: var(--clr-white);
}

.btn-outline-light {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.55);
  border-color: transparent;
  font-size: .85rem;
  padding: .85rem 1.25rem;
}
.btn-ghost:hover {
  color: var(--clr-primary);
  transform: none;
}


/* ════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--ease), box-shadow var(--ease);
}
#navbar.scrolled {
  background: rgba(253,250,243,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--clr-border), var(--shadow);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.nav-logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-white);
  transition: color var(--ease);
}
#navbar.scrolled .logo-title { color: var(--clr-dark); }
.logo-sub {
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color var(--ease);
  margin-top: 2px;
}
#navbar.scrolled .logo-sub { color: var(--clr-text-muted); }

/* Links */
.nav-links {
  display: flex;
  gap: .15rem;
  margin-left: auto;
}
.nav-links a {
  padding: .45rem .8rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  transition: background var(--ease), color var(--ease);
}
#navbar.scrolled .nav-links a { color: var(--clr-text); }
.nav-links a:hover {
  background: rgba(252,157,0,.15);
  color: var(--clr-primary);
}

/* Language switcher */
.lang-switcher { display: flex; gap: .2rem; flex-shrink: 0; }
.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.75);
  padding: .22rem .5rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .06em;
  transition: all var(--ease);
}
#navbar.scrolled .lang-btn {
  border-color: var(--clr-border);
  color: var(--clr-text-muted);
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--clr-primary) !important;
  border-color: var(--clr-primary) !important;
  color: var(--clr-dark) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--ease);
}
#navbar.scrolled .nav-toggle span { background: var(--clr-dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active {
  opacity: 1;
  animation: heroZoom 8s ease forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(20,15,5,.22) 0%,
    rgba(20,15,5,.48) 55%,
    rgba(20,15,5,.72) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 2rem 1.5rem;
  max-width: 820px;
}
.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clr-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: .95;
  text-shadow: 0 4px 32px rgba(0,0,0,.25);
  margin-bottom: 1.25rem;
}
.hero-tagline {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.88);
  font-style: italic;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  opacity: .7;
  transition: opacity var(--ease);
}
.hero-scroll:hover { opacity: 1; }
.scroll-dot { animation: scrollDot 2s ease infinite; }
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50%       { transform: translateY(6px); opacity: .4; }
}


/* ════════════════════════════════════════════════
   HIGHLIGHTS STRIP
   ════════════════════════════════════════════════ */
.highlights {
  background: var(--clr-dark);
  color: var(--clr-white);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.highlights-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 160px;
}
.highlight-icon {
  width: 28px;
  height: 28px;
  color: var(--clr-primary);
  flex-shrink: 0;
}
.highlight-item strong { display: block; font-size: .95rem; font-weight: 600; }
.highlight-item span   { display: block; font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 1px; }


/* ════════════════════════════════════════════════
   WONING
   ════════════════════════════════════════════════ */
.woning-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.woning-text p {
  color: var(--clr-text-muted);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}
.woning-rules {
  font-size: .82rem !important;
  letter-spacing: .05em;
  color: var(--clr-text-muted) !important;
  border-top: 1px solid var(--clr-border);
  padding-top: .85rem;
  margin-top: .5rem;
}

.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .75rem;
  margin-top: 1.5rem;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .875rem;
  color: var(--clr-text);
}
.amenity-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  flex-shrink: 0;
}

/* Woning gallery */
.woning-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.woning-gallery img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: var(--r);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease);
}
.woning-gallery img:first-child {
  grid-column: span 2;
  height: 260px;
}
.woning-gallery img:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-md);
}


/* ════════════════════════════════════════════════
   PHOTO GRID
   ════════════════════════════════════════════════ */
.photo-grid {
  columns: 3;
  column-gap: .6rem;
}
.photo-grid img {
  width: 100%;
  margin-bottom: .6rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  break-inside: avoid;
  transition: transform var(--ease), opacity var(--ease);
}
.photo-grid img:hover {
  transform: scale(1.018);
  opacity: .88;
}
.photo-grid img.pg-hidden { display: none !important; }
.photo-grid-more {
  width: 100%;
  margin-top: 1.25rem;
  padding: .75rem 1.5rem;
  border: 2px solid var(--clr-primary);
  border-radius: var(--r-sm);
  background: var(--clr-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.photo-grid-more:hover {
  background: transparent;
  color: var(--clr-primary);
}


/* ════════════════════════════════════════════════
   TARIEVEN
   ════════════════════════════════════════════════ */
.tarieven-table {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.tarief-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--clr-white);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--clr-border);
  transition: border-color var(--ease), transform var(--ease);
}
.tarief-row:hover {
  border-left-color: var(--clr-primary);
  transform: translateX(3px);
}
.tarief-row.peak-high {
  border-left-color: var(--clr-accent);
  background: #fff5f3;
}
.tarief-row.peak-low {
  border-left-color: #3a9e5f;
  background: #f3fbf6;
}
.tarief-period {
  font-size: .95rem;
  font-weight: 500;
}
.tarief-period small {
  display: block;
  font-size: .78rem;
  color: var(--clr-text-muted);
  font-weight: 400;
  margin-top: .15rem;
}
.tarief-price {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--clr-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.tarief-row.peak-high .tarief-price { color: var(--clr-accent); }
.tarief-row.peak-low  .tarief-price { color: #3a9e5f; }

.tarieven-notes {
  max-width: 760px;
  margin: 0 auto;
  background: var(--clr-bg-alt);
  border-radius: var(--r);
  padding: 1.5rem 2rem;
}
.tarieven-notes ul { display: flex; flex-direction: column; gap: .3rem; }
.tarieven-notes li {
  font-size: .875rem;
  color: var(--clr-text-muted);
  padding: .3rem 0;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  gap: .5rem;
}
.tarieven-notes li::before {
  content: '·';
  color: var(--clr-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.tarieven-notes li:last-child { border-bottom: none; }


/* ════════════════════════════════════════════════
   BESCHIKBAARHEID
   ════════════════════════════════════════════════ */
.book-cta { text-align: center; margin-top: 2rem; }
.book-cta > p { color: var(--clr-text-muted); margin-bottom: .65rem; font-size: .92rem; }
.book-contacts { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.contact-link {
  color: var(--clr-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--ease);
}
.contact-link:hover { color: var(--clr-accent); }

/* ── Calendar ─────────────────────────────────────────────────────────────── */
.cal-loading, .cal-error {
  text-align: center;
  padding: 3rem;
  color: var(--clr-text-muted);
}

.cal-wrap { user-select: none; }

.cal-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.cal-nav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--clr-border, #ddd);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.1rem;
  transition: background var(--ease), border-color var(--ease);
}
.cal-nav-btn svg { width: 18px; height: 18px; }
.cal-nav-btn:hover:not(:disabled) { background: var(--clr-bg-alt); border-color: var(--clr-primary); }
.cal-nav-btn:disabled { opacity: .35; cursor: not-allowed; }

.cal-months {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  min-width: 0;
}

.cal-month-name {
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  margin-bottom: .6rem;
  color: var(--clr-dark);
}

.cal-grid {
  display: grid;
  grid-template-columns: 22px repeat(7, 1fr);
  gap: 2px;
}

.cal-wn-h { /* empty top-left corner */ }
.cal-dh {
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  padding: .2rem 0 .4rem;
  text-transform: uppercase;
}
.cal-wn {
  font-size: .6rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .6;
}

.cal-day {
  text-align: center;
  font-size: .78rem;
  padding: .3rem .1rem;
  border-radius: 4px;
  line-height: 1.4;
  transition: background .12s, color .12s;
}
.cal-empty { background: none; }

/* Past */
.cal-day.past { color: #ccc; }

/* Booked – diagonal stripe */
.cal-day.booked {
  background: repeating-linear-gradient(
    -45deg,
    #f0f0f0,
    #f0f0f0 2px,
    #e4e4e4 2px,
    #e4e4e4 6px
  );
  color: #aaa;
  cursor: not-allowed;
}

/* Changeover – half available (left), half booked (right) diagonal */
.cal-day.changeover {
  background: linear-gradient(
    135deg,
    #fff 50%,
    #e4e4e4 50%
  );
  color: #888;
  cursor: pointer;
}
.cal-day.changeover:hover {
  background: linear-gradient(
    135deg,
    rgba(252, 157, 0, .18) 50%,
    #e4e4e4 50%
  );
}

/* No-arrival – day falls in only_wisseldag period but isn't the right weekday */
.cal-day.no-arrival {
  color: #ccc;
  cursor: not-allowed;
}

/* Available */
.cal-day.available {
  cursor: pointer;
}
.cal-day.available:hover {
  background: rgba(252, 157, 0, .18);
  color: var(--clr-dark);
}

/* Today */
.cal-day.today {
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--clr-primary);
}

/* Selected start / end */
.cal-day.sel-start,
.cal-day.sel-end {
  background: var(--clr-primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

/* In-range */
.cal-day.in-range {
  background: rgba(252, 157, 0, .22);
  color: var(--clr-dark);
  cursor: pointer;
  border-radius: 0;
}
.cal-day.sel-start { border-radius: 4px 0 0 4px; }
.cal-day.sel-end   { border-radius: 0 4px 4px 0; }

/* Hint */
.cal-hint {
  text-align: center;
  font-size: .88rem;
  color: var(--clr-text-muted);
  margin: 1rem 0 .5rem;
  min-height: 1.4em;
  font-style: italic;
}
.cal-hint-hidden { visibility: hidden; }
.cal-hint.cal-hint-warn {
  color: #c0392b;
  font-style: normal;
  font-weight: 600;
  animation: cal-shake .25s ease;
}
@keyframes cal-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

/* Legend */
.cal-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--clr-text-muted);
}
.cal-leg-item { display: flex; align-items: center; gap: .4rem; }
.cal-leg-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.cal-leg-dot.available {
  border: 1.5px solid #ccc;
  background: white;
}
.cal-leg-dot.booked {
  background: repeating-linear-gradient(
    -45deg, #f0f0f0, #f0f0f0 2px, #e4e4e4 2px, #e4e4e4 6px
  );
}
.cal-leg-dot.sel-start { background: var(--clr-primary); }

/* Responsive: 2 months on tablet, 1 on mobile */
@media (max-width: 900px) {
  .cal-months { grid-template-columns: repeat(2, 1fr); }
  .cal-months .cal-month:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .cal-months { grid-template-columns: 1fr; }
  .cal-months .cal-month:nth-child(2),
  .cal-months .cal-month:nth-child(3) { display: none; }
  .cal-nav-btn { margin-top: 2.4rem; }
}

/* ── Reservation Modal ────────────────────────────────────────────────────── */
.res-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(26, 22, 16, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.res-modal[hidden] { display: none; }
.res-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.res-modal-dialog {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.res-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--clr-bg-alt, #f5edd8);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.res-modal-close svg { width: 16px; height: 16px; }
.res-modal-close:hover { background: #e8dbc6; }

.res-modal-dialog h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}

.res-dates {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--clr-bg-alt, #f5edd8);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.res-date-item { flex: 1; min-width: 100px; }
.res-date-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--clr-text-muted);
  margin-bottom: .2rem;
}
.res-date-item strong {
  font-size: .9rem;
  color: var(--clr-dark);
}
.res-date-arrow {
  font-size: 1.2rem;
  color: var(--clr-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.res-prijs-wrap {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  background: var(--clr-bg-alt, #f5edd8);
  border-radius: 8px;
  padding: .6rem 1rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.res-prijs-wrap strong {
  font-size: 1.2rem;
  color: var(--clr-primary);
  margin-left: auto;
}
.res-prijs-wrap small {
  font-size: .75rem;
  color: var(--clr-text-muted);
}

.res-verplicht {
  font-size: .78rem;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}

.res-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 6px;
  padding: .65rem .9rem;
  font-size: .88rem;
  margin-bottom: 1rem;
}

.res-field { margin-bottom: 1rem; }
.res-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--clr-dark);
}
.res-field input,
.res-field textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: .92rem;
  color: var(--clr-dark);
  transition: border-color var(--ease);
  background: white;
}
.res-field input:focus,
.res-field textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(252,157,0,.15);
}
.res-field textarea { resize: vertical; }

.res-submit {
  width: 100%;
  margin-top: .5rem;
  font-size: 1rem;
}
.res-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Success state */
.res-success {
  text-align: center;
  padding: 2rem 1rem;
}
.res-checkmark {
  width: 56px;
  height: 56px;
  stroke: #16a34a;
  margin: 0 auto 1rem;
  display: block;
}
.res-success p {
  font-size: 1rem;
  color: var(--clr-dark);
  line-height: 1.6;
}


/* ════════════════════════════════════════════════
   TE KOOP
   ════════════════════════════════════════════════ */
.section-koop {
  background: linear-gradient(150deg, #1A1610 0%, #2E2518 55%, #1A1610 100%);
  color: var(--clr-white);
}

.koop-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.koop-badge {
  display: inline-block;
  background: var(--clr-primary);
  color: var(--clr-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.koop-header h2 { color: white; margin-bottom: .6rem; }
.koop-header > p { color: rgba(255,255,255,.65); font-size: 1.05rem; }

.koop-price-block {
  text-align: center;
  margin-bottom: 2.5rem;
}
.price-label {
  display: block;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .35rem;
}
.price-value {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1;
}

.koop-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .75rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}
#koop-photos { margin-bottom: 2rem; }
.koop-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
}

.koop-stat {
  text-align: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r);
  padding: 1rem .5rem;
}
.koop-stat strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: white;
  margin-bottom: .3rem;
}
.koop-stat span { font-size: .72rem; color: rgba(255,255,255,.45); }

.koop-desc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}
.koop-onderdeel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r);
  padding: 1.75rem;
}
.koop-onderdeel h3 {
  font-family: var(--font-serif);
  color: var(--clr-primary);
  margin-bottom: .75rem;
}
.koop-onderdeel p {
  font-size: .93rem;
  color: rgba(255,255,255,.7);
  line-height: 1.72;
}

.koop-actions {
  text-align: center;
}
.koop-actions > p {
  color: rgba(255,255,255,.6);
  margin-bottom: 1.25rem;
  font-size: .95rem;
}
.koop-btns {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ════════════════════════════════════════════════
   OMGEVING
   ════════════════════════════════════════════════ */
.omgeving-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}
.omgeving-card {
  background: white;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
.omgeving-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.omgeving-img-wrap { overflow: hidden; height: 190px; }
.omgeving-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.omgeving-card:hover .omgeving-img-wrap img { transform: scale(1.05); }

.omgeving-card-body { padding: 1.25rem; }
.omgeving-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}
.omgeving-card-top h3 { font-size: 1.05rem; }
.distance {
  font-size: .75rem;
  font-weight: 600;
  color: var(--clr-primary);
  background: var(--clr-bg-alt);
  padding: .18rem .55rem;
  border-radius: 20px;
  flex-shrink: 0;
}
.omgeving-card-body p {
  font-size: .855rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* Salviac block */
.salviac-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--clr-bg-alt);
  border-radius: 20px;
  padding: 3rem;
}
.salviac-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.salviac-text p {
  color: var(--clr-text-muted);
  margin-bottom: .85rem;
  line-height: 1.78;
}
.salviac-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}


/* ════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}
.contact-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--clr-primary); }
.contact-item strong {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: .2rem;
}
.contact-item span { font-size: .95rem; }
.contact-item a {
  color: var(--clr-primary);
  font-weight: 500;
  font-size: .95rem;
  transition: color var(--ease);
}
.contact-item a:hover { color: var(--clr-accent); }

.contact-map {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-map iframe { display: block; }


/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,.65);
  padding: 3.5rem 0 0;
}
.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: .2rem;
}
.footer-sub {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .4;
  margin-bottom: .5rem;
}
.footer-tagline { font-size: .85rem; opacity: .55; }
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-nav a, .footer-contact a {
  font-size: .9rem;
  transition: color var(--ease);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--clr-primary); }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: .78rem;
  opacity: .35;
}


/* ════════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.94);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  max-width: calc(100vw - 120px);
}
#lightbox-img {
  max-height: 85vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.lightbox-caption {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  text-align: center;
}
.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.45);
  font-size: .8rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: white;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease);
}
.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg { width: 20px; height: 20px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.18); }

.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }


/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .koop-stats { grid-template-columns: repeat(3, 1fr); }
  .omgeving-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map iframe { height: 300px; }
}

@media (max-width: 900px) {
  .woning-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .woning-gallery { order: -1; }
  .salviac-block { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .salviac-img img { height: 260px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--clr-bg);
    flex-direction: column;
    padding: .75rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--clr-border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--clr-text) !important; padding: .7rem 1rem; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .lang-switcher { margin-left: 0; }

  .highlights-container { gap: .75rem; }
  .highlight-item { min-width: 130px; }

  .photo-grid { columns: unset; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .photo-grid img { margin-bottom: 0; }
  .omgeving-grid { grid-template-columns: 1fr; }
  .koop-desc { grid-template-columns: 1fr; }
  .koop-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 540px) {
  .section { padding: 3.5rem 0; }
  .hero-cta { flex-direction: column; align-items: center; }
  .photo-grid { columns: unset; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .photo-grid img { margin-bottom: 0; }
  .highlights-container { flex-direction: column; }
  .woning-gallery { grid-template-columns: 1fr; }
  .woning-gallery img:first-child { grid-column: span 1; height: 220px; }
  .koop-stats { grid-template-columns: repeat(2, 1fr); }
  .koop-btns { flex-direction: column; align-items: center; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
  .lightbox-content { max-width: calc(100vw - 80px); }
}
