/* ==========================================================================
   Wine Tours Cape Town – estates (v1.2.0): single estate + estates archive + estate cards
   Single estate pages reuse tour.css (.wtct-tp) for head, mosaic, facts, layout and cards.
   ========================================================================== */

/* ---------- Single: head extras ---------- */
.wtct-tp-pill--family { background: #eaf4ec; border-color: #cfe5d4; color: #2f6b3a; }
.wtct-ep-headweb { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--wine); font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: 0 4px 14px rgba(74,14,26,.06); }
.wtct-ep-headweb:hover { border-color: var(--wine); color: var(--wine-dark); }

/* ---------- Single: photo-less hero ---------- */
.wtct-ep-hero { background: linear-gradient(180deg, var(--cream-2) 0 50%, #fff 50% 100%); }
.wtct-ep-hero__fig { --rc: var(--wine); position: relative; margin: 0; height: clamp(220px, 30vw, 380px); border-radius: 22px; overflow: hidden; background: var(--rc); box-shadow: 0 24px 60px rgba(74,14,26,.14); }
.wtct-ep-hero__fig img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); }
.wtct-ep-hero__fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, color-mix(in srgb, var(--rc) 55%, transparent) 0%, transparent 45%), linear-gradient(0deg, rgba(20,8,10,.35), transparent 40%); pointer-events: none; }
.wtct-ep-hero__fig figcaption { position: absolute; right: 16px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(20,12,14,.62); color: #fff; font-size: 12px; }
.wtct-ep-hero__fig figcaption .wtct-icon { width: 13px; height: 13px; }

/* ---------- Single: plan card ---------- */
.wtct-ep-plan__eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-text, #7a5f14); }
.wtct-ep-plan__t { margin: 0 0 14px; font-size: 26px; line-height: 1.15; color: var(--wine-dark); }
.wtct-ep-plan .wtct-bk__perks li span { line-height: 1.45; }
.wtct-ep-plan .wtct-btn--block + .wtct-btn--block { margin-top: 10px; }
.wtct-ep-web { justify-content: space-between; }
.wtct-ep-web > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.wtct-ep-web small { font-size: 12px; font-weight: 400; color: var(--muted); }
.wtct-ep-plan__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px 0 0; font-size: 14px; }
.wtct-ep-plan__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--wine); font-weight: 600; text-decoration: none; }
.wtct-ep-plan__links a:hover { text-decoration: underline; }
.wtct-bk--mini.wtct-ep-plan .wtct-ep-plan__t { font-size: 21px; }

/* ---------- Single: why we love it ---------- */
.wtct-ep-love { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 24px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--gold-soft), #fbf4e1); border: 1px solid #ead9a8; }
.wtct-ep-love__i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--wine); box-shadow: 0 4px 12px rgba(122,95,20,.15); }
.wtct-ep-love p { margin: 0; color: #4a3a1a; font-size: 16.5px; line-height: 1.55; }
.wtct-ep-love .wtct-ep-love__t { font-family: var(--serif); font-weight: 700; color: var(--wine-dark); font-size: 18px; margin-bottom: 4px; }

/* ---------- Single: family ---------- */
.wtct-ep-family { border-radius: 20px; padding: 26px 26px 22px; background: linear-gradient(160deg, #eef6ef, #f8fbf6 70%); border: 1px solid #d5e8d9; }
.wtct-ep-family__head { display: flex; gap: 16px; align-items: flex-start; }
.wtct-ep-family__head .wtct-tp-h2 { margin-bottom: 6px; }
.wtct-ep-family__head p { margin: 0; color: #36503b; font-size: 16px; line-height: 1.6; }
.wtct-ep-family__i { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #2f6b3a; color: #fff; }
.wtct-ep-family__i .wtct-icon { width: 24px; height: 24px; }
.wtct-ep-family__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.wtct-ep-family__list li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid #d5e8d9; border-radius: 12px; font-size: 15px; color: var(--ink); }
.wtct-ep-family__list .wtct-icon { color: #2f6b3a; flex: none; }
.wtct-ep-family__more { margin: 18px 0 0; }
.wtct-ep-family__more a { display: inline-flex; align-items: center; gap: 6px; color: #2f6b3a; font-weight: 600; text-decoration: none; }
.wtct-ep-family__more a:hover { text-decoration: underline; }

/* ---------- Single: map ---------- */
.wtct-ep-map { height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--cream-2); z-index: 0; }
.wtct-ep-map .leaflet-tile-pane { filter: saturate(.75) sepia(.08); }
.wtct-ep-near { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; margin-top: 16px; }
.wtct-ep-near__t { margin: 0 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); width: 100%; }
.wtct-ep-near > div, .wtct-ep-near ul { flex: 1 1 360px; }
.wtct-ep-near ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 18px; }
.wtct-ep-near li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.wtct-ep-near li a { color: var(--wine); font-weight: 600; text-decoration: none; }
.wtct-ep-near li a:hover { text-decoration: underline; }
.wtct-ep-near li span { color: var(--muted); font-size: 13.5px; white-space: nowrap; }

/* Leaflet estate markers */
.wtct-emk { background: none; border: 0; }
.wtct-emk span { --c: var(--wine); display: grid; place-items: center; box-sizing: border-box; border-radius: 50%; background: var(--c); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: transform .15s; }
.wtct-emk.is-featured span { border-color: var(--gold); }
.wtct-emk.is-current span { background: var(--wine); border-width: 3px; box-shadow: 0 0 0 6px rgba(107,20,38,.18), 0 4px 12px rgba(0,0,0,.3); }
.wtct-emk:hover span, .wtct-emk:focus span { transform: scale(1.2); }
.wtct-emk:focus { outline: none; }
.wtct-emk:focus-visible span { outline: 3px solid var(--gold); outline-offset: 2px; }
.leaflet-tooltip.wtct-emk-tip { font: 700 13px/1.2 var(--sans); color: var(--wine-dark); border: 0; border-radius: 8px; padding: 5px 9px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }

/* ---------- Single: tours + empty ---------- */
.wtct-grid--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.wtct-ep-empty { padding: 22px 24px; border-radius: 16px; background: var(--cream-2); border: 1px dashed #dccbbd; }
.wtct-ep-empty p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.6; }
.wtct-ep-empty__a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px !important; }
.wtct-ep-allreg { margin: 28px 0 0; text-align: center; }
.wtct-ep .wtct-tp-sec:last-child { border-bottom: 0; }

/* ---------- Mobile bar: two buttons ---------- */
@media (max-width: 1024px) {
	.wtct-ep-mbar { justify-content: stretch; }
	.wtct-ep-mbar .wtct-btn { flex: 1 1 0; justify-content: center; padding: 0 12px; }
	body.single-estate { padding-bottom: 84px; }
	body.single-estate .wtct-totop { bottom: 96px; }
}

/* ==========================================================================
   Estate cards
   ========================================================================== */
.wtct-ecard { position: relative; }
.wtct-ecard[hidden] { display: none; }
.wtct-ecard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.wtct-ecard:focus-within { box-shadow: 0 0 0 3px var(--gold), var(--shadow-lg); }
.wtct-ecard__media { --rc: var(--wine); position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--rc); background-image: radial-gradient(circle at 18% 20%, rgba(255,255,255,.16) 0 2px, transparent 3px), radial-gradient(circle at 70% 65%, rgba(255,255,255,.1) 0 2px, transparent 3px), linear-gradient(140deg, color-mix(in srgb, var(--rc) 82%, #fff) 0%, var(--rc) 55%, color-mix(in srgb, var(--rc) 70%, #000) 100%); background-size: 28px 28px, 34px 34px, 100% 100%; }
.wtct-ecard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.wtct-ecard:hover .wtct-ecard__media img { transform: scale(1.04); }
.wtct-ecard__mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 58px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.92); text-shadow: 0 2px 18px rgba(0,0,0,.18); }
.wtct-ecard__mono::after { content: ""; position: absolute; width: 96px; height: 96px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%; }
.wtct-ecard__badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.wtct-ecard__b { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; color: var(--wine); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.wtct-ecard__b .wtct-icon { width: 13px; height: 13px; }
.wtct-ecard__b--pick { background: var(--gold-soft); color: #6b5212; }
.wtct-ecard__b--kids { background: #eaf4ec; color: #2a5f34; }
.wtct-ecard__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 16px; flex: 1; }
.wtct-ecard__r { margin: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wtct-ecard__r i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.wtct-ecard__t { margin: 0; font-size: 21px; line-height: 1.2; }
.wtct-ecard__t a { color: var(--wine-dark); text-decoration: none; }
.wtct-ecard__t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.wtct-ecard__t a:focus { outline: none; }
.wtct-ecard__k { margin: 0; color: #4f4144; font-size: 14.5px; line-height: 1.5; }
.wtct-ecard__why { display: flex; gap: 8px; margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--cream-2); color: #5a4a3a; font-size: 13.5px; line-height: 1.5; }
.wtct-ecard__why .wtct-icon { flex: none; color: var(--brand); margin-top: 2px; }
.wtct-ecard__foot { margin: auto 0 0; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.wtct-ecard__icons { display: inline-flex; gap: 10px; color: var(--muted); }
.wtct-ecard__more { display: inline-flex; align-items: center; gap: 6px; color: var(--wine); font-weight: 600; font-size: 14px; }
.wtct-ecard:hover .wtct-ecard__more .wtct-icon { transform: translateX(3px); }
.wtct-ecard__more .wtct-icon { transition: transform .2s; }

/* ==========================================================================
   Estates archive
   ========================================================================== */
.wtct-ea { background: #fff; }
.wtct-ea-head { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); padding: 22px 0 28px; }
.wtct-ea-head .wtct-tp-title { max-width: 22ch; }
.wtct-ea-bar { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .wtct-ea-bar { top: calc(var(--header-h) + 32px); }
.wtct-ea-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 12px 0; }
.wtct-ea-filters .wtct-chip-filters { margin: 0; }
.wtct-chip small { opacity: .7; font-size: 11.5px; }
.wtct-ea-toggles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wtct-chip--toggle { border-radius: 999px; }
.wtct-chip--toggle .wtct-icon { width: 14px; height: 14px; }
.wtct-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wtct-ea-search { min-width: 220px; }
.wtct-filter-search:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(201,169,75,.45); }
.wtct-ea-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 26px; padding-bottom: 72px; }
.wtct-ea-map { height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--cream-2); z-index: 0; }
.wtct-ea-map .leaflet-tile-pane { filter: saturate(.75) sepia(.08); }
.wtct-ea-count { margin: 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.wtct-ea .wtct-ecard__t { font-size: 20px; }
@media (min-width: 1200px) {
	.wtct-ea-layout { grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "list map"; align-items: start; }
	.wtct-ea-mapwrap { grid-area: map; position: sticky; top: calc(var(--header-h) + 84px); }
	.wtct-ea-list { grid-area: list; }
	.wtct-ea-map { height: calc(100vh - var(--header-h) - 120px); min-height: 460px; }
	.wtct-ea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.wtct-ea-head { padding: 14px 0 18px; }
	.wtct-ea-bar { position: static; }
	.wtct-ea-filters { flex-direction: column; align-items: stretch; }
	.wtct-ea-filters .wtct-chip-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.wtct-ea-filters .wtct-chip-filters .wtct-chip { flex: none; }
	.wtct-ea-search { min-width: 0; flex: 1 1 100%; }
	.wtct-ea-map { height: 300px; }
	.wtct-ep-map { height: 320px; }
	.wtct-ep-family { padding: 20px 18px; }
	.wtct-ep-family__head { flex-direction: column; gap: 12px; }
	.wtct-ecard__mono { font-size: 48px; }
}

/* ---------- GetYourGuide widget slot (region pages) ---------- */
.wtct-gyg__note { color: var(--muted); font-size: 13.5px; max-width: 70ch; }

/* Archive: breadcrumbs + title styles (tour.css isn't loaded here) */
.wtct-ea .wtct-crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; color: var(--muted); }
.wtct-ea .wtct-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.wtct-ea .wtct-crumbs a { color: var(--muted); text-decoration: none; }
.wtct-ea .wtct-crumbs a:hover { color: var(--wine); text-decoration: underline; }
.wtct-ea .wtct-crumbs .wtct-icon { width: 13px; height: 13px; opacity: .6; }
.wtct-ea .wtct-crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.wtct-ea .wtct-tp-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; margin: 0 0 14px; color: var(--wine-dark); letter-spacing: -.02em; text-wrap: balance; }
.wtct-ea .wtct-tp-lede { font-size: 18px; line-height: 1.6; color: #4f4144; margin: 0; max-width: 66ch; }
.wtct-ea :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wtct-ea-filters > *, .wtct-ea-layout > * { min-width: 0; }
.wtct-ea-filters .wtct-chip-filters { max-width: 100%; }
@media (max-width: 768px) {
	.wtct-ea .wtct-tp-lede { font-size: 16.5px; }
	.wtct-ea .wtct-ecard__media { aspect-ratio: 16 / 8; }
	.wtct-ea-toggles { flex-wrap: wrap; }
}
