/* =============================================
   VerhuurJeBoot.nl - Hoofdstijl
   Design: Maritime Refined
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

/* === VARIABELEN === */
:root {
  --navy:       #0A2342;
  --ocean:      #1E6091;
  --blue:       #2874A6;
  --sky:        #3498DB;
  --accent:     #E67E22;
  --light:      #F0F7FF;
  --off-white:  #F8FAFC;
  --white:      #FFFFFF;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-400:   #94A3B8;
  --gray-600:   #475569;
  --gray-800:   #1E293B;
  --success:    #10B981;
  --error:      #EF4444;
  --warning:    #F59E0B;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --shadow-sm:  0 1px 3px rgba(10,35,66,0.08);
  --shadow-md:  0 4px 16px rgba(10,35,66,0.12);
  --shadow-lg:  0 12px 40px rgba(10,35,66,0.16);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* === RESET & BASIS === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* === TYPOGRAFIE === */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--gray-600); }

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1440px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 40px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  white-space: nowrap;
}
.nav__logo svg { width: 32px; height: 32px; flex-shrink: 0; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav__link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  white-space: nowrap;
}
.nav__link:hover { color: var(--navy); background: var(--light); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* === KNOPPEN === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover { background: var(--ocean); border-color: var(--ocean); box-shadow: 0 4px 20px rgba(10,35,66,0.3); }

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--accent:hover { background: #D35400; border-color: #D35400; box-shadow: 0 4px 20px rgba(230,126,34,0.4); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--gray-100); color: var(--navy); }

.btn--sm { padding: 8px 16px; font-size: 0.875rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* === FORMULIEREN === */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(52,152,219,0.12);
}
.form-input.error { border-color: var(--error); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-error { font-size: 0.8rem; color: var(--error); }

/* === HERO SECTIE === */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 50%, var(--blue) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400'%3E%3Cpath fill='rgba(255,255,255,0.04)' d='M0,160 C360,260 720,60 1080,160 C1260,210 1380,190 1440,180 L1440,400 L0,400Z'/%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0,220 C320,160 640,300 960,220 C1120,180 1320,240 1440,260 L1440,400 L0,400Z'/%3E%3C/svg%3E") bottom/cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.8);
}

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.hero__stat span:first-child {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1;
}

.hero__stat span:last-child {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === ZOEKBALK === */
.search-bar {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 860px;
}

.search-bar__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  border-right: 1px solid var(--gray-200);
}
.search-bar__field:last-of-type { border-right: none; }

.search-bar__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 4px;
}

.search-bar__input {
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: transparent;
  padding: 0;
  width: 100%;
}
.search-bar__input::placeholder { color: var(--gray-400); }

.search-bar__btn {
  flex-shrink: 0;
  padding: 0 28px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 22px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.search-bar__btn:hover { background: var(--ocean); box-shadow: 0 4px 20px rgba(10,35,66,0.3); }

/* === KAARTEN === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card__image img { transform: scale(1.05); }

.card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge--verified { background: rgba(10,35,66,0.9); color: var(--white); backdrop-filter: blur(8px); }
.badge--type { background: rgba(255,255,255,0.95); color: var(--navy); }

.card__fav {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.card__fav:hover { transform: scale(1.15); }
.card__fav svg { width: 18px; height: 18px; color: var(--gray-400); }
.card__fav.active svg { color: var(--error); fill: var(--error); }

.card__body { padding: 20px; }

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.3;
}

.card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.card__rating .star { color: var(--warning); font-size: 0.9rem; }
.card__rating strong { font-size: 0.9rem; color: var(--gray-800); }
.card__rating span { font-size: 0.8rem; color: var(--gray-400); }

.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--gray-400);
}
.card__meta span { display: flex; align-items: center; gap: 4px; }
.card__meta svg { width: 14px; height: 14px; }

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.card__price { font-size: 0.85rem; color: var(--gray-600); }
.card__price strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1;
}

/* === SECTIE STIJLEN === */
.section { padding: 80px 0; }
.section--light { background: var(--off-white); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3, .section--navy p { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.7); }

.section__header {
  text-align: center;
  margin-bottom: 56px;
}
.section__header p {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}
.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ocean);
  margin-bottom: 12px;
}
.section--navy .section__kicker { color: rgba(255,255,255,0.6); }

/* === USP BLOKKEN === */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.usp {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.usp:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.usp__icon {
  width: 64px;
  height: 64px;
  background: var(--light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.usp__icon svg { width: 28px; height: 28px; color: var(--ocean); }

.usp h3 { margin-bottom: 10px; }
.usp p { font-size: 0.9rem; line-height: 1.7; }

/* === PAGINERING === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  color: var(--gray-600);
}
.pagination a:hover { background: var(--light); border-color: var(--sky); color: var(--navy); }
.pagination .active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* === FLASH BERICHTEN === */
.flash {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash--success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.flash--error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.flash--info    { background: var(--light); color: var(--ocean); border: 1px solid #93C5FD; }

/* === STARS === */
.star { font-size: 1rem; }
.star.filled, .star.half { color: var(--warning); }
.star.empty { color: var(--gray-200); }

/* === BADGE VERIFIED === */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ocean);
}
.verified-badge svg { width: 16px; height: 16px; }

/* === FOOTER === */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand { max-width: 280px; }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__desc { font-size: 0.9rem; line-height: 1.7; }
.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* === FILTER SIDEBAR === */
.filters {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 88px;
}
.filters h3 {
  font-size: 1rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.filter-group { margin-bottom: 24px; }
.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 8px;
}

/* === ZOEKEN RESULTATEN LAYOUT === */
.results-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.results__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.results__count { font-size: 0.9rem; color: var(--gray-600); }

/* === BOOT DETAIL === */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
  max-width: 100%;
  overflow: hidden;
}

.gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.gallery__main { height: 480px; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.detail-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.feature-item svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.spec-item { }
.spec-item dt { font-size: 0.8rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.spec-item dd { font-size: 0.95rem; font-weight: 500; color: var(--gray-800); }

/* === BOEKINGSBOX === */
.booking-sidebar-sticky {
  position: sticky;
  top: 88px; /* wordt dynamisch aangepast door JS als sidebar hoger is dan viewport */
}
.booking-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.booking-box__price {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.booking-box__per { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 20px; }
.booking-box__divider { height: 1px; background: var(--gray-200); margin: 20px 0; }
.booking-box__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--gray-600);
}
.booking-box__total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-800);
  padding-top: 14px;
  border-top: 2px solid var(--gray-200);
}
.booking-box__info {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.booking-box__info svg { width: 14px; height: 14px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .results-layout { grid-template-columns: 240px 1fr; }
  .detail-layout { grid-template-columns: 1fr 320px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  
  .hero { min-height: auto; padding: 60px 0 80px; }
  .hero__stats { gap: 20px; }
  
  /* Mobiel filter: inklapbaar */
  #mobile-filter-toggle { display: flex !important; }
  #filter-body { display: none; margin-top: 12px; }
  #filter-body.filter-open { display: block; }
  .filter-arrow-open { transform: rotate(180deg); }
  
  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    gap: 0;
    padding: 4px;
  }
  .search-bar__field { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 10px 14px; }
  .search-bar__field:last-of-type { border-bottom: none; }
  .search-bar__label { font-size: 0.65rem; margin-bottom: 2px; }
  .search-bar__input { font-size: 0.875rem; }
  .search-bar__btn { border-radius: var(--radius-md); padding: 12px; margin-top: 4px; }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .booking-sidebar-sticky { position: static; }
  .booking-box { position: static; padding: 20px; }
  .gallery__main { height: 280px; }
  .gallery { border-radius: var(--radius-md); }
  .detail-section { padding: 20px; word-break: break-word; }
  .features-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.8rem; }
  .card__image { height: 180px; }
  .detail-section { padding: 16px; }
  .booking-box { padding: 16px; }
}
