/*
Theme Name: Groepsaccommodatie
Theme URI: https://groepsaccommodatie.net
Author: Groepsaccommodatie
Description: Homepage voor groepsaccommodaties en grote vakantiehuizen.
Version: 1.9.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: groepsaccommodatie
*/

:root {
  --ink: #0e192b;
  --text: #212529;
  --muted: #555555;
  --line: #e6e8ec;
  --soft: #f4f5f7;
  --white: #ffffff;
  --coral: #ff7057;
  --orange: #ff8816;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 30;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid #f0f0f0;
}
body.admin-bar .site-header { top: 32px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
}
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a,
.nav summary {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav a:hover,
.nav summary:hover,
.nav summary.is-on { color: var(--coral); }
.nav-drop { position: relative; }
.nav-drop summary {
  list-style: none;
  cursor: pointer;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after {
  content: "";
  display: inline-block;
  margin-left: 0.35rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: 2px;
}
.nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  min-width: 210px;
  padding: 0.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(14, 25, 43, 0.08);
  z-index: 30;
}
.nav-drop-end .nav-panel { left: auto; right: 0; }
.nav-drop:hover .nav-panel,
.nav-drop:focus-within .nav-panel,
.nav-drop[open] .nav-panel {
  display: flex;
  flex-direction: column;
}
.nav-panel a {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}
.nav-panel a:hover,
.nav-panel a.is-on { background: rgba(255, 112, 87, 0.12); color: var(--ink); }

.hero { padding: 0 0 0.4rem; }
.hero-photo {
  height: 440px;
  overflow: hidden;
  background: #d7dde6;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 72% 55%;
}
.hero-inner {
  width: min(920px, calc(100% - 2rem));
  margin: -38px auto 0;
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero h1 {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
}
.lede {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.search {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  background: var(--soft);
  border-radius: 40px;
  min-height: 74px;
  box-shadow: 0 12px 32px rgba(14, 25, 43, 0.16);
  padding: 0.35rem 0.45rem 0.35rem 0.3rem;
  text-align: left;
}
.search label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  padding: 0.35rem 1rem;
  min-width: 0;
  background: var(--white);
  min-height: 58px;
}
.search label:first-child { border-radius: 32px 0 0 32px; }
.search label + label { box-shadow: -1px 0 0 #eee; }
.search span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.search input, .search select {
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.search input::placeholder { color: #8b919a; font-weight: 500; }
.search button {
  width: 58px;
  height: 58px;
  margin-left: 0.45rem;
  border-radius: 50%;
  border: 2px solid var(--coral);
  background: var(--white);
  color: var(--coral);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.search button:hover { background: var(--coral); color: white; }

.after-hero { padding: 1rem 0 0; }
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.chip {
  text-decoration: none;
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.chip.is-on, .chip:hover {
  background: rgba(255, 112, 87, 0.1);
  color: var(--coral);
}
.status {
  margin: 0.85rem 0 0;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
}

.section { padding: 2.6rem 0 0.2rem; scroll-margin-top: 84px; }
.section-head { max-width: 40rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: 1.45rem; margin: 0 0 0.35rem; font-weight: 700; }
.section-head p { margin: 0; color: var(--muted); }
.kicker {
  margin: 0 0 0.3rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.size-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
  padding: 0 0 0.95rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}
.size-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.size-card:hover { border-color: #cfd3da; }
.size-card span,
.size-card small { padding-inline: 1rem; }
.size-card span { padding-top: 0.8rem; }
.size-card em,
.size-card strong { display: block; }
.size-card em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.size-card strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.size-card strong span { font-weight: 600; font-size: 1rem; }
.size-card small { color: var(--muted); font-size: 0.88rem; }

.places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem 0.85rem;
}
.place { text-decoration: none; color: inherit; }
.place-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
}
.place img { width: 100%; height: 100%; object-fit: cover; }
.place-plain .place-photo { background: #e8edf3; }
.place-plain .place-photo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 16px;
  height: 16px;
  border: 2px solid var(--coral);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--orange);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  padding: 0.2rem 0.55rem;
}
.place .copy { display: block; padding: 0.65rem 0.1rem 0; }
.place h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.place p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.88rem; }
.place:hover h3 { color: var(--coral); }

.occasions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.occasion {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.occasion h3 { margin: 0.3rem 0; font-size: 1.05rem; }
.occasion p { margin: 0; color: var(--muted); }
.num {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step h3 { margin: 0.2rem 0; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }
.step b { color: var(--coral); font-size: 0.95rem; }

.story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: start;
}
.story h2 { font-size: 1.7rem; font-weight: 600; margin: 0; }
.story p { margin: 0 0 0.85rem; }
.story p:last-child { margin-bottom: 0; }

.faq details { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq p { color: var(--muted); margin: 0.5rem 0 0.15rem; }

.closing {
  background: var(--soft);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2.2rem 0 2.6rem;
}
.closing h2 { margin: 0 0 0.25rem; font-size: 1.45rem; font-weight: 700; }
.closing p { margin: 0; color: var(--muted); }
.closing a {
  background: var(--coral);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}
.closing a:hover { background: #f05a40; }

.site-footer { border-top: 1px solid #f0f0f0; padding: 1.2rem 0 2rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner a { color: var(--ink); font-weight: 600; }
.footer-inner p { margin: 0; }

.results { padding: 1.5rem 0 3.5rem; }
.results-search { margin: 0 0 1.4rem; }
.results-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.filters {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
  padding: 1rem 1rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.filters h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
}
.filters fieldset {
  margin: 0 0 0.95rem;
  padding: 0;
  border: 0;
}
.filters legend {
  margin: 0.95rem 0 0.45rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}
.filters fieldset:first-of-type legend { margin-top: 0; }
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.filter-pills a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
.filter-pills a.is-on,
.filter-pills a:hover {
  background: rgba(255, 112, 87, 0.12);
  border-color: transparent;
  color: var(--coral);
}
.filter-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.filter-rows a {
  display: block;
  padding: 0.32rem 0;
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}
.filter-rows a.is-on,
.filter-rows a:hover {
  color: var(--coral);
  font-weight: 700;
}
.filter-more { margin-top: 0.15rem; }
.filter-more:not([open]) .filter-rows { display: none; }
.filter-more summary {
  color: var(--coral);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.filter-more summary::-webkit-details-marker { color: var(--coral); }
.filter-checks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}
.filter-check span {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c5c9d1;
  border-radius: 4px;
  background: var(--white);
}
.filter-check.is-on span {
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: inset 0 0 0 2px var(--white);
}
.filters-clear {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.results-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0.35rem 0 1rem;
}
.results-count {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.results-sort {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.results-sort select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
}
.results-empty { margin: 0; color: var(--muted); }
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.result-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.result-card img,
.result-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  background: #e8edf3;
}
.result-photo { display: block; }
.result-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.65rem;
}
.result-copy strong {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}
.result-copy em,
.result-copy small {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}
.result-copy b {
  margin-top: 0.15rem;
  color: var(--coral);
  font-size: 0.95rem;
}
.results-intro {
  margin: 0.2rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}
.catalog-more { margin-top: 2.2rem; }
.catalog-more h2 { margin: 0 0 0.7rem; font-size: 1.05rem; }
.catalog-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.catalog-links a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.catalog-links a:hover { background: rgba(255, 112, 87, 0.12); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.house-back { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }
.house-back a { font-weight: 600; text-decoration: none; }
.house-back a:hover { color: var(--coral); }

.results-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.4rem;
}
.results-pages a,
.results-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.results-pages a:hover,
.results-pages .current {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.page { padding: 2rem 0 4rem; }
.page h1 { font-size: 2rem; margin-top: 0.3rem; }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.25rem; margin: 1.6rem 0 0.35rem; }
.prose a { color: var(--coral); }

@media (max-width: 1100px) {
  .result-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .search { grid-template-columns: 1fr; border-radius: 16px; padding: 0.4rem; gap: 0; }
  .search label, .search label:first-child { border-radius: 0; }
  .search label + label { box-shadow: none; border-top: 1px solid #eee; }
  .search button { width: 100%; height: 46px; border-radius: 10px; margin: 0.4rem 0 0; }
  .sizes, .places, .occasions, .steps, .story, .results-layout, .result-grid { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; overflow: visible; }
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .closing, .footer-inner { flex-direction: column; align-items: flex-start; }
  .header-inner { flex-wrap: wrap; min-height: 60px; padding: 0.65rem 0; }
  .hero-photo { height: 260px; }
  .hero-inner { margin-top: -28px; }
  .hero h1 { font-size: 1.35rem; }
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
body.admin-bar .filters {
  top: 7.5rem;
  max-height: calc(100vh - 9.5rem);
}
