/* Studio4 WordPress-plugin — stijl voor reizenlijst en reisdetail.
 * Alles onder .s4wp zodat het thema van de site niet geraakt wordt.
 * Standaard ("stijl van mijn site"): lettertype en tekstkleur van het thema.
 * Eigen stijl: --s4wp-accent / --s4wp-text / --s4wp-font / --s4wp-radius
 * worden inline gezet door de server (instellingen in Studio4). */
.s4wp {
  --s4wp-accent: #15223f;
  --s4wp-text: inherit;
  --s4wp-muted: rgba(0, 0, 0, .6);
  --s4wp-line: rgba(0, 0, 0, .1);
  --s4wp-soft: rgba(0, 0, 0, .035);
  --s4wp-radius: 14px;
  --s4wp-font: inherit;
  font-family: var(--s4wp-font);
  color: var(--s4wp-text);
  line-height: 1.6;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.s4wp *, .s4wp *::before, .s4wp *::after { box-sizing: border-box; }
.s4wp img { max-width: 100%; height: auto; display: block; border: 0; }
.s4wp a { color: var(--s4wp-accent); }
.s4wp h1, .s4wp h2, .s4wp h3 { font-family: inherit; line-height: 1.2; margin: 0 0 .5em; }
.s4wp h2 { font-size: 1.5em; margin-top: 1.6em; }
.s4wp p { margin: 0 0 1em; }

/* Lijst */
.s4wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.s4wp-card { display: flex; flex-direction: column; border: 1px solid var(--s4wp-line); border-radius: var(--s4wp-radius); overflow: hidden; text-decoration: none !important; color: inherit !important; background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.s4wp-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35); }
.s4wp-card-img { display: block; aspect-ratio: 4 / 3; background: var(--s4wp-soft); overflow: hidden; }
.s4wp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.s4wp-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.s4wp-card-title { font-weight: 700; font-size: 1.1em; line-height: 1.3; }
.s4wp-card-meta { color: var(--s4wp-muted); font-size: .9em; }
.s4wp-card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.s4wp-price { font-weight: 700; color: var(--s4wp-accent); }
.s4wp-price small { font-weight: 400; color: var(--s4wp-muted); }
.s4wp-link { font-weight: 600; font-size: .9em; color: var(--s4wp-accent); }
.s4wp-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; color: var(--s4wp-muted); }
.s4wp-pager a { font-weight: 600; text-decoration: none; }
.s4wp-empty { padding: 32px; text-align: center; color: var(--s4wp-muted); border: 1px dashed var(--s4wp-line); border-radius: var(--s4wp-radius); }

/* Detail */
.s4wp-hero { position: relative; border-radius: var(--s4wp-radius); overflow: hidden; background: var(--s4wp-soft); min-height: 220px; margin-bottom: 28px; }
.s4wp-hero img { width: 100%; height: clamp(260px, 42vw, 480px); object-fit: cover; }
.s4wp-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 28px 24px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; }
.s4wp-hero-text h1 { color: #fff; font-size: clamp(1.7em, 4vw, 2.6em); margin: 0 0 .2em; }
.s4wp-hero-text p { margin: 0; opacity: .92; }
.s4wp-hero:not(:has(img)) .s4wp-hero-text { position: static; background: none; color: inherit; padding: 24px 0 0; }
.s4wp-hero:not(:has(img)) .s4wp-hero-text h1 { color: inherit; }
.s4wp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .s4wp-layout { grid-template-columns: 1fr; } }
.s4wp-intro p:first-child { font-size: 1.12em; }
.s4wp-checks, .s4wp-crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.s4wp-checks li, .s4wp-crosses li { position: relative; padding-left: 28px; }
.s4wp-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--s4wp-accent); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.s4wp-crosses li::before { content: "–"; position: absolute; left: 6px; color: var(--s4wp-muted); }
.s4wp-inex { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.s4wp-route { margin-top: 8px; }
.s4wp-stop { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--s4wp-line); }
.s4wp-stop-nr { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--s4wp-accent); color: var(--s4wp-accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.s4wp-stop-days { margin: 0 0 2px; font-size: .85em; text-transform: uppercase; letter-spacing: .06em; color: var(--s4wp-muted); }
.s4wp-stop h3 { font-size: 1.25em; margin: 0 0 .5em; }
.s4wp-stop h3 small { font-weight: 400; font-size: .7em; color: var(--s4wp-muted); }
.s4wp-stop-img { border-radius: calc(var(--s4wp-radius) - 4px); margin: 4px 0 12px; width: 100%; max-height: 340px; object-fit: cover; }
.s4wp-hotel { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: calc(var(--s4wp-radius) - 4px); background: var(--s4wp-soft); }
.s4wp-hotel img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.s4wp-hotel span { display: block; font-size: .88em; color: var(--s4wp-muted); }
.s4wp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.s4wp-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--s4wp-radius) - 6px); }
.s4wp-side { position: sticky; top: 24px; }
.s4wp-book { border: 1px solid var(--s4wp-line); border-radius: var(--s4wp-radius); padding: 22px; background: #fff; }
.s4wp-book h2 { font-size: 1.15em; margin: 0 0 .4em; }
.s4wp-book p { color: var(--s4wp-muted); font-size: .95em; }
.s4wp-pricebox { display: flex; flex-direction: column; margin: 0 0 16px !important; padding-bottom: 14px; border-bottom: 1px solid var(--s4wp-line); color: inherit !important; }
.s4wp-pricebox strong { font-size: 1.8em; color: var(--s4wp-accent); line-height: 1.1; }
.s4wp-pricebox small { color: var(--s4wp-muted); }
.s4wp-btn { display: block; text-align: center; margin-top: 10px; padding: 12px 16px; border-radius: 999px; background: var(--s4wp-accent); color: #fff !important; font-weight: 600; text-decoration: none !important; border: 2px solid var(--s4wp-accent); }
.s4wp-btn-ghost { background: transparent; color: var(--s4wp-accent) !important; }
.s4wp-back { margin-top: 32px; }
