/* ==========================================================================
   Home Solution — appartement detailpagina
   Namespace: .ap-*  (gescoped onder .ap zodat het 2018-thema er niet
   doorheen komt). Bruikbaar voor alle short stay detailpagina's.
   ========================================================================== */

.ap {
  --ap-navy: #002d55;
  --ap-blue: #0060a9;
  --ap-blue-dark: #004d8a;
  --ap-green: #25d366;
  --ap-ink: #16233a;
  --ap-ink-soft: #5b6b82;
  --ap-line: rgba(13, 42, 74, 0.12);
  --ap-bg: #f4f7fa;
  --ap-radius: 16px;

  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ap-ink);
  -webkit-font-smoothing: antialiased;
}

.ap *,
.ap *::before,
.ap *::after { box-sizing: border-box; }

.ap-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------------------------------------------- hero */

.ap-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ap-navy);
}

.ap-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 40, 0.15) 0%, rgba(0, 20, 40, 0.78) 100%);
}

.ap-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  color: #fff;
}

.ap-crumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.ap-crumb:hover { color: #fff; }

.ap-crumb svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ap-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.ap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  font-size: 14px;
  color: #fff;
}

.ap-tags svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------------- layout */

.ap-main {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
  gap: 40px;
  align-items: start;
  padding: 48px 0 8px;
}

.ap-body h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 500;
  color: var(--ap-navy);
  text-align: left;
}

.ap-body p {
  margin: 0 0 16px;
  color: var(--ap-ink);
}

/* ------------------------------------------------------------- kenmerken */

.ap-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ap-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--ap-line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
}

.ap-features svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--ap-blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ap-features strong {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ap-ink-soft);
  line-height: 1.3;
}

/* -------------------------------------------------------------- boekkaart */

.ap-aside {
  position: sticky;
  top: 24px;
}

.ap-card {
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  background: #fff;
  box-shadow: 0 12px 30px -18px rgba(9, 26, 48, 0.4);
  overflow: hidden;
}

.ap-card__price {
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, var(--ap-navy) 0%, var(--ap-blue) 100%);
  color: #fff;
}

.ap-card__amount {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.ap-card__unit {
  font-size: 15px;
  font-weight: 400;
  opacity: 0.9;
}

.ap-card__note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.ap-spec {
  margin: 0;
  padding: 6px 24px;
}

.ap-spec div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ap-line);
  font-size: 15px;
}

.ap-spec div:last-child { border-bottom: 0; }

.ap-spec dt {
  color: var(--ap-ink-soft);
  margin: 0;
  font-weight: 400;
}

.ap-spec dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.ap-spec a { color: var(--ap-blue); }

.ap-actions {
  display: grid;
  gap: 9px;
  padding: 18px 24px 24px;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ap-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ap-btn--primary {
  background: var(--ap-blue);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(0, 96, 169, 0.9);
}

.ap-btn--primary:hover {
  background: var(--ap-blue-dark);
  color: #fff;
  transform: translateY(-2px);
}

.ap-btn--ghost {
  background: #fff;
  color: var(--ap-navy);
  border: 1px solid var(--ap-line);
}

.ap-btn--ghost:hover {
  background: var(--ap-bg);
  color: var(--ap-navy);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------- galerij */

.ap-gallery {
  padding: 44px 0 56px;
}

.ap-gallery h2 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 500;
  color: var(--ap-navy);
  text-align: left;
}

.ap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* eerste foto groot */
.ap-grid li:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.ap-shot {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ap-bg);
  cursor: zoom-in;
}

.ap-grid li:first-child .ap-shot { aspect-ratio: 4 / 3; height: 100%; }

.ap-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ap-shot:hover img { transform: scale(1.05); }

/* lightbox zonder JavaScript, via :target */
.ap-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 14, 28, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.ap-lightbox:target {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.ap-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
}

.ap-lightbox__close {
  position: absolute;
  inset: 0;
  display: block;
  cursor: zoom-out;
}

.ap-lightbox__x {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  text-decoration: none;
}

.ap-lightbox__x:hover { background: rgba(255, 255, 255, 0.3); color: #fff; }

/* ----------------------------------------------------------------- mobiel */

@media (max-width: 900px) {
  .ap-main { grid-template-columns: 1fr; gap: 32px; padding-top: 34px; }
  .ap-aside { position: static; }
  .ap-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-grid li:first-child { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 560px) {
  .ap-hero { min-height: 320px; }
  .ap-hero__inner { padding: 34px 16px 28px; }
  .ap-wrap { padding: 0 16px; }
  .ap-grid { grid-template-columns: 1fr; }
  .ap-grid li:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-shot img, .ap-btn, .ap-lightbox { transition: none !important; transform: none !important; }
}
