/* rentvacationhousecostablanca.nl — eigen stijl, look & feel van het origineel (navy op wit, Oxygen) */
:root {
  --navy: #000080;
  --navy-zacht: #2b2b9a;
  --tekst: #1d1d4f;
  --bg: #f3f4f7;
  --kaart: #ffffff;
  --lijn: #dfe2ea;
  --accent: #f2f8ff;
  --schaduw: 0 1px 2px rgba(0, 0, 128, .06), 0 8px 24px rgba(0, 0, 128, .06);
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tekst);
  font: 400 17px/1.65 Oxygen, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--navy); }
a:hover { color: var(--navy-zacht); }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Kop: brede banner met drie luchtfoto's, witte strook erboven en eronder zoals het origineel */
.kop { background: #fff; border-bottom: 1px solid var(--lijn); }
.kop__banner { display: block; max-width: 1180px; margin: 0 auto; padding: 10px 16px; }
.kop__banner img { width: 100%; border-radius: 6px; }

/* Indeling: smal menublok links, inhoud rechts in een witte kaart */
.shell {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.zij { position: sticky; top: 16px; }
.lang { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.lang__item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 7px; border: 1px solid var(--lijn); border-radius: 999px; background: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--navy);
}
.lang__item svg { width: 16px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang__item--active { background: var(--navy); color: #fff; border-color: var(--navy); }
.menu ul { list-style: none; margin: 0; padding: 0; background: var(--kaart); border: 1px solid var(--lijn); border-radius: var(--radius); box-shadow: var(--schaduw); overflow: hidden; }
.menu a {
  display: block; padding: 13px 16px; text-decoration: none; color: var(--navy);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35;
  border-left: 4px solid transparent; border-bottom: 1px solid var(--lijn);
}
.menu li:last-child a { border-bottom: 0; }
.menu a:hover { background: var(--accent); }
.menu a[aria-current="page"] { border-left-color: var(--navy); background: var(--accent); }

.kaart {
  background: var(--kaart); border: 1px solid var(--lijn); border-radius: var(--radius); box-shadow: var(--schaduw);
  padding: 32px clamp(20px, 4vw, 48px) 40px;
}
.kaart h1 {
  margin: 0 0 22px; text-align: center; color: var(--navy);
  font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; letter-spacing: .01em; line-height: 1.2;
}
.kaart h3 { color: var(--navy); font-size: 18px; margin: 30px 0 10px; letter-spacing: .04em; text-transform: uppercase; }
.kaart p { margin: 0 0 14px; overflow-wrap: anywhere; }
.kaart p em { color: var(--navy-zacht); }

/* Galerijen: rijen met gelijke hoogte, klik opent de grote foto */
.g { margin: 18px 0 22px; display: grid; gap: 8px; grid-template-columns: repeat(var(--kol, 4), 1fr); }
.g--1 { --kol: 2; }
.g--2 { --kol: 2; }
.g--3 { --kol: 3; }
.g--4 { --kol: 4; }
.g__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--accent); }
.g__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.g__item:hover img { transform: scale(1.03); }
.g figcaption { grid-column: 1 / -1; font-size: 14px; color: var(--navy-zacht); font-style: italic; margin-top: 2px; }

/* Contact: korte uitleg en een e-mailknop */
.contact { max-width: 560px; }
.contact__intro { font-size: 18px; }
.contact__adres { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--lijn); }
.btn {
  display: inline-block; text-decoration: none; text-align: center; min-height: 48px; padding: 14px 28px; background: var(--navy); color: #fff; border: 0; border-radius: 999px;
  font: 700 14px/1 Oxygen, sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.btn:hover { background: var(--navy-zacht); }

.voet { max-width: 1180px; margin: 28px auto 40px; padding: 0 16px; text-align: center; font-size: 13px; color: #555; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(0, 0, 40, .92); z-index: 50; display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb__img { max-width: min(92vw, 1600px); max-height: 90vh; max-height: 90dvh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; font-size: 34px; line-height: 1; width: 48px; height: 48px; border-radius: 50%; touch-action: manipulation; }
.lb__img { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lb button:hover { background: rgba(255,255,255,.25); }
.lb__sluit { top: 14px; right: 14px; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Tablet en telefoon: menublok boven de inhoud */
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .zij { position: static; }
  .lang { justify-content: center; gap: 6px; margin-bottom: 12px; }
  .lang__item { min-height: 40px; padding: 6px 12px; font-size: 13px; letter-spacing: .06em; }
  .lang__item svg { width: 18px; height: 12px; }
  .g { --kol: 2 !important; }
  .g--1 { --kol: 1 !important; }
  .g--1 .g__item { aspect-ratio: 3 / 2; }
}
/* Tablet: menu als rij met gelijke hoogte, actieve pagina onderstreept */
@media (min-width: 481px) and (max-width: 820px) {
  .menu ul { display: flex; }
  .menu li { flex: 1 1 0; display: flex; }
  .menu a {
    flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 12px 8px; font-size: 12px; letter-spacing: .06em; hyphens: auto;
    border-left: 0; border-bottom: 3px solid transparent;
  }
  .menu li + li a { border-left: 1px solid var(--lijn); }
  .menu a[aria-current="page"] { border-bottom-color: var(--navy); }
}
/* Telefoon: menu als lijst over de volle breedte (lange titels in DE/EN passen niet in drie kolommen) */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .kop__banner { padding: 8px 12px; }
  .shell { padding: 0 12px; }
  .menu a { padding: 13px 16px 13px 18px; font-size: 12px; letter-spacing: .1em; min-height: 48px; display: flex; align-items: center; }
  .kaart { padding: 22px 16px 28px; }
  .kaart h1 { font-size: 24px; margin-bottom: 18px; }
  .kaart h3 { font-size: 16px; margin-top: 24px; }
  .g { gap: 6px; }
  .btn { display: block; width: 100%; padding-left: 12px; padding-right: 12px; }
  .voet { padding: 0 12px; }
  .lb button { width: 44px; height: 44px; font-size: 28px; }
  .lb__sluit { top: max(10px, env(safe-area-inset-top)); right: 10px; }
  .lb__prev, .lb__next { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); transform: none; }
  .lb__prev { left: calc(50% - 58px); }
  .lb__next { right: calc(50% - 58px); }
}
