/* ==================================================
   styles.css — Modern coastal theme voor Koksijde
   - één consistente look voor alle pagina's
   - inhoud blijft 100% hetzelfde, enkel styling vernieuwd
   ================================================== */

/* ---------------------------
   DESIGN TOKENS
--------------------------- */
:root{
  /* Kleurpalet (kust, fris, modern) */
  --bg-body: #f3f5fb;
  --bg-elevated: #ffffff;
  --bg-soft: #e5f0ff;

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;

  --accent: #2563eb;     /* helder blauw */
  --accent-soft: #dbeafe;
  --accent-strong: #1d4ed8;

  --border-subtle: #e5e7eb;
  --border-strong: #cbd5f5;

  --danger: #b91c1c;
  --success: #166534;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);

  --max-width: 1100px;
  --gap: 1.5rem;

  /* header / anchor offset */
  --nav-offset: 72px;
  --header-height: 64px;
}

/* ---------------------------
   GLOBAL RESET / BASE
--------------------------- */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
  font-size: 16px;
}

body{
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #eef2ff 0, #f3f5fb 42%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a{
  color: var(--accent);
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
}

/* Containers & sections */
.container{
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section{
  padding: 3rem 0;
}

.section h2{
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 2vw, 2rem);
  letter-spacing: -.02em;
}

.section > p{
  margin-top: .25rem;
  color: var(--text-muted);
}

/* Anchor offset voor sticky header */
.section,
[id]{
  scroll-margin-top: var(--nav-offset);
}

/* Helpers */
.muted{ color: var(--text-muted); }
.clean{
  list-style: disc;
  padding-left: 1.25rem;
  margin: .25rem 0 0;
}
.clean li{ margin: .35rem 0; }

/* ---------------------------
   HEADER & NAVIGATIE
--------------------------- */
/* Sticky header, geen zware schaduwen */
.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.header .nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: .75rem 1.25rem;
}

/* Logo */
.logo{
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
}
.logo .dot{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  display: inline-block;
}

/* BELANGRIJK: rand/shadow rond logo verwijderen wanneer het een <img> is */
.logo img.dot{
  width: 40px;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.logo .text{
  font-size: 1.05rem;
  letter-spacing: .18px;
}

/* Nav links */
.nav-links{
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-links a{
  position: relative;
  padding: .45rem .75rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}
.nav-links a:hover{
  color: var(--accent-strong);
  background: rgba(219, 234, 254, 0.6);
}
.nav-links a.btn.secondary{
  border-radius: 999px;
}

/* Mobile toggle */
.mobile-toggle{
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  padding: .25rem .6rem;
}

/* Desktop nav */
@media(min-width: 901px){
  .nav-links{
    display: flex !important;
  }
}

/* Mobile nav */
@media(max-width: 900px){
  :root{
    --nav-offset: 64px;
    --header-height: 56px;
  }

  .header .nav{
    padding-inline: 1rem;
  }

  .logo .text{
    font-size: .98rem;
  }

  .mobile-toggle{
    display: block;
  }

  .nav-links{
    position: fixed;
    inset-inline: 0;
    top: var(--header-height);
    margin: 0 auto;
    padding: .75rem 1rem 1rem;
    max-width: var(--max-width);
    background: rgba(248,250,252,0.99);
    border-bottom: 1px solid rgba(148,163,184,0.35);
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    display: none; /* script.js / inline script toggelt display flex/none */
  }
  .nav-links a{
    border-radius: .75rem;
    padding: .6rem .75rem;
  }
}

/* ---------------------------
   HERO
--------------------------- */
.hero{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(420px, 70vh, 750px);
  background-image: url('../img/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: radial-gradient(circle at left, rgba(248,250,252,0.96) 0, rgba(248,250,252,0.8) 40%, rgba(15,23,42,0.1) 100%);
}
.hero-overlay .content{
  margin-left: max(1.5rem, 7vw);
  padding: 1.25rem 1.5rem;
  max-width: 650px;
  background: rgba(255,255,255,0.82);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(209,213,219,0.8);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}
.hero-overlay h1{
  margin: 0 0 .35rem;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -.04em;
}
.hero-overlay p{
  margin: 0 0 .6rem;
  color: var(--text-muted);
}
.hero-overlay p strong{
  color: var(--text-main);
}
.hero-overlay .btn{
  margin-right: .5rem;
  margin-top: .4rem;
}

@media(max-width: 700px){
  .hero-overlay{
    justify-content: center;
  }
  .hero-overlay .content{
    margin: 0 1.25rem;
    padding-inline: 1.1rem;
  }
}

/* ---------------------------
   BUTTONS
--------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  border: 1px solid var(--accent-strong);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37,99,235,0.4);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{
  background: var(--accent-strong);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(37,99,235,0.4);
}
.btn.secondary{
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(148,163,184,0.8);
  box-shadow: none;
}
.btn.secondary:hover{
  background: #f3f4f6;
}

/* ---------------------------
   INFO-BOXEN & TROEVEN
--------------------------- */
.info-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: flex-start;
}
@media(max-width: 900px){
  .info-grid{
    grid-template-columns: 1fr;
  }
}

.info-box{
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 18px 35px rgba(15,23,42,0.03);
}
.info-box h3{
  margin: 0 0 .4rem;
  font-size: 1.1rem;
}

/* Opvallend blok voor Appartement Coxy Dunes */
.highlight-apartment {
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
  /* border-left verwijderen */
  padding: 1.4rem 1.5rem;
  margin-top: 0.75rem;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.20) !important;
  text-align: center;
}

.highlight-apartment h3{
  font-size: 1.4rem; /* iets groter, maar niet overdreven */
  margin-bottom: .4rem;
  margin-left: auto;
  margin-right: auto;
}

.highlight-apartment p{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Kleine features-lijn onder Appartement Coxy Dunes */
.apartment-features {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  margin-top: .9rem;
  padding-top: .6rem;
  border-top: 1px solid rgba(148,163,184,0.35);
  font-size: .92rem;
  color: var(--text-muted);
  justify-content: center;
}

.apartment-features span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}

/* Troeven-circle */
.troeven-wrap{
  display: flex;
  justify-content: center;
}
.troeven-circle{
  width: min(460px, 80vw);
  height: min(460px, 80vw);   /* expliciete hoogte = breedte */
  border-radius: 50%;
  border: 2px dashed rgba(148,163,184,0.75);
  background: #eef6ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15,23,42,0.15);
}
.troeven-circle h3{
  margin: 0 0 .5rem;
  font-size: 1.4rem;
  letter-spacing: .02em;
}
.troeven-list{
  list-style: none;
  padding: 0;
  margin: 0;
  font-style: italic;
  color: var(--text-main);
}
.troeven-list li{
  margin: .35rem 0;
}

/* ---------------------------
   SLIDER & THUMBS & LIGHTBOX
--------------------------- */
/* === SLIDER BASIS === */
.slider{
  position: relative;
  width: 100%;
  height: 65vh;
  max-height: 520px;
  min-height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e5e7eb;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider .slide{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .2s ease;
}

/* === PORTRAIT FOTO’S === */
.slider .slide.portrait{
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === DESKTOP === */
@media(min-width: 900px){
  .slider{
    height: 60vh;
    max-height: 560px;
  }
}

/* === MOBIEL === */
@media(max-width: 600px){
  .slider{
    height: 75vh;
    max-height: none;
  }
}

.slide-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(255,255,255,0.9);
  font-size: 22px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(15,23,42,0.25);
}
.slide-btn:hover{
  background: #ffffff;
}
.slide-btn.prev{ left: 14px; }
.slide-btn.next{ right: 14px; }

.thumbs{
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .75rem;
}
.thumbs img{
  width: 90px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148,163,184,0.6);
  opacity: .7;
  cursor: pointer;
  transition: opacity .12s ease, transform .12s ease, border-color .12s ease;
}
.thumbs img.active{
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-1px);
}
@media(max-width: 600px){
  .thumbs img{
    width: 70px;
    height: 52px;
  }
}

/* Lightbox container (extra styling bovenop inline styles) */
.lightbox{
  background: rgba(15,23,42,0.92) !important;
}

/* ---------------------------
   PRIJZEN & TABEL
--------------------------- */
.price-layout{
  display: grid;
  grid-template-columns: minmax(0, 2.2fr);
  gap: var(--gap);
}
.price-table{
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(15,23,42,0.03);
  font-size: .95rem;
}
.price-table thead{
  background: linear-gradient(90deg, #eff6ff, #dbeafe);
}
.price-table th,
.price-table td{
  padding: .6rem .8rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
.price-table th{
  font-weight: 600;
  color: #1f2937;
}
.price-table tbody tr:nth-child(even){
  background: #f9fafb;
}

.price-notes{
  margin-top: .8rem;
  font-size: .87rem;
  color: var(--text-muted);
}
.price-notes p{
  margin: .2rem 0;
}

/* Voorwaarden kaart */
.price-card{
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 35px rgba(15,23,42,0.03);
}
.price-card h3{
  margin: 0 0 .4rem;
  font-style: normal;
  font-size: 1.05rem;
}

/* ---------------------------
   CALENDAR WRAP
--------------------------- */
.calendar-wrap{
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: .9rem;
  box-shadow: 0 18px 35px rgba(15,23,42,0.03);
}

/* FullCalendar overrides (optioneel subtiel) */
.fc{
  font-family: inherit;
  font-size: .85rem;
}
.fc .fc-toolbar-title{
  font-weight: 600;
}
.fc .fc-daygrid-day.fc-day-today{
  background: #eff6ff;
}

/* ---------------------------
   CONTACT & FORMULIER
--------------------------- */
#contact .section-title{
  margin-bottom: .75rem;
}
#contact-form{
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 18px 35px rgba(15,23,42,0.03);
}
#contact-form label{
  font-size: .9rem;
  font-weight: 500;
  color: #374151;
}
#contact-form input,
#contact-form textarea{
  width: 100%;
  margin-top: .2rem;
  padding: .6rem .65rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5f5 !important;
  font-family: inherit;
  font-size: .95rem;
}
#contact-form input:focus,
#contact-form textarea:focus{
  outline: 2px solid rgba(37,99,235,0.4);
  border-color: var(--accent) !important;
}
#form-status{
  font-size: .85rem;
}

#contact aside{
  background: #f9fafb;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 18px 35px rgba(15,23,42,0.02);
}

/* ---------------------------
   MAP / LIGGING
--------------------------- */
.map-shell{
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 35px rgba(15,23,42,0.03);
}
.map-shell iframe{
  width: 100%;
  height: min(60vh, 420px);
  border: 0;
  display: block;
}
.map-veil{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(248,250,252,0.98), rgba(148,163,184,0.25));
  cursor: pointer;
}
.map-veil:focus{
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ---------------------------
   GALLERY GRID & CARDS (andere pagina's)
--------------------------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
}
.gallery-grid img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15,23,42,0.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-grid img:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.18);
}
@media(max-width: 900px){
  .gallery-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media(max-width: 640px){
  .gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Algemene cards (voor accommodaties, etc.) */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.card{
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(15,23,42,0.06);
  border: 1px solid rgba(226,232,240,0.9);
}
.card img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.card .card-body{
  padding: .95rem 1rem 1rem;
}
.card .card-body h4{
  margin: .1rem 0 .4rem;
}
.badge{
  display: inline-flex;
  align-items: center;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: #ecfeff;
  color: #0e7490;
}

@media(max-width: 1000px){
  .card-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media(max-width: 640px){
  .card-grid{
    grid-template-columns: 1fr;
  }
}

/* ---------------------------
   FOOTER
--------------------------- */
.footer{
  margin-top: 3rem;
  padding: 2rem 0 2.5rem;
  background: #ffffff;
  border-top: 1px solid rgba(226,232,240,0.9);
  color: var(--text-muted);
}
.footer .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer strong{
  color: var(--text-main);
}

/* ---------------------------
   KLEINE RESPONSIVE TWEAKS
--------------------------- */
@media(max-width: 640px){
  .hero{
    height: clamp(360px, 60vh, 480px);
  }
}

/* Inter als hoofdlettertype overal */
body, button, input, textarea, select {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Roboto", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400;
  letter-spacing: -0.2px;
}

h1, h2, h3, h4 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Roboto", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Moderne sectietitels met pictogram */
.section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin: 0 0 .9rem;
}

.section-title .section-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.section-title .section-label {
  display: inline-block;
}

.section-subtitle {
  margin: -.35rem 0 .75rem;
  font-size: .95rem;
  color: var(--text-muted);
}
/* Subtieler en fijner lichtblauw lijntje tussen troeven */
.troeven-list li {
  padding-bottom: .45rem;
  margin-bottom: .45rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.18); /* heel licht accent-blauw */
}

/* Laatste item zonder lijntje */
.troeven-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.calendar-legend {
  margin-top: 0.75rem;
  display: flex;
  gap: 1.8rem;
  font-size: 0.9rem;
  align-items: center;
}

.legenda-dot {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 6px;
  border: 1px solid #999;
}

.legenda-dot.free {
  background-color: #16a34a; /* groen */
}

.legenda-dot.occupied {
  background-color: #b91c1c; /* rood */
}
@media (max-width: 600px) {
  .troeven-circle {
    width: 90vw;
    height: 90vw;
    padding: 8%;
  }

  .troeven-circle h3 {
    font-size: 1.2rem;
  }

  .troeven-list {
    font-size: 0.9rem;
  }

  .troeven-list li {
    margin: 0.25rem 0;
  }
}
@media (max-width: 600px) {
  .contact-info {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148,163,184,0.35);
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
  }

  .contact-info p {
    margin: 0.4rem 0;
  }
}
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.25rem;
  margin-top: 1rem;
}

/* Mobiel stapelen */
@media(max-width: 900px){
  .contact-grid{
    grid-template-columns: 1fr;
  }
}
