/*
 * Place pages (/places/<slug>/) + the one place picker. 2026-10-29, phase 3.
 * Loaded only while oc_places_enabled is on (inc/oc-place-picker.php).
 * Uses the design-system tokens; everything is scoped under .oc.
 */

/* ── Picker ─────────────────────────────────────────────────────────────── */
.oc .oc-pp { font-family: var(--oc-body); color: var(--oc-text); }
.oc .oc-pp__label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--oc-muted); margin-bottom: 6px; }
.oc .oc-pp__bar { display: flex; gap: 8px; flex-wrap: wrap; }
.oc .oc-pp__q { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 10px 12px; font: 600 15px/1.2 var(--oc-body); color: var(--oc-text);
    border: 2px solid var(--oc-navy); border-radius: var(--oc-r-sm); background: #fff; }
.oc .oc-pp__q:focus { outline: 3px solid var(--oc-orange); outline-offset: 1px; }
.oc .oc-pp__geo { min-height: 44px; padding: 0 14px; font: 700 13px var(--oc-body); color: var(--oc-navy); background: var(--oc-surface);
    border: 1px solid var(--oc-border); border-radius: var(--oc-r-sm); cursor: pointer; white-space: nowrap; }
.oc .oc-pp__geo:hover { border-color: var(--oc-navy); }
.oc .oc-pp__status { min-height: 1em; margin: 6px 0 4px; font-size: 12.5px; color: var(--oc-muted); }
.oc .oc-pp__status:empty { margin: 0; min-height: 0; }
.oc .oc-pp__list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.oc .oc-pp__opt { border-top: 1px solid var(--oc-border); }
.oc .oc-pp__opt:first-child { border-top: 0; }
.oc .oc-pp__optlink { display: flex; align-items: center; gap: 12px; padding: 7px 6px; color: var(--oc-text); text-decoration: none; border-radius: var(--oc-r-sm); }
.oc .oc-pp__optlink:hover, .oc .oc-pp__opt.is-active .oc-pp__optlink { background: var(--oc-surface); text-decoration: none; }
.oc .oc-pp__tile { flex: 0 0 96px; width: 96px; height: 54px; object-fit: cover; border-radius: var(--oc-r-sm); background: var(--oc-surface); }
.oc .oc-pp__txt { display: flex; flex-direction: column; min-width: 0; }
.oc .oc-pp__name { font-weight: 750; font-size: 15px; line-height: 1.25; }
.oc .oc-pp__parent { font-size: 12.5px; color: var(--oc-muted); line-height: 1.3; }
.oc .oc-chip__new { display: inline-block; margin-left: 6px; padding: 1px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; color: var(--oc-info); background: var(--oc-info-bg); border-radius: 999px; vertical-align: 1px; }
.oc .oc-pp__browse[hidden] { display: none; }
.oc .oc-pp__all { display: inline-block; margin: 8px 0 4px; font-weight: 800; color: var(--oc-navy); }
.oc .oc-pp__browse-h { margin: 8px 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--oc-muted); }
.oc .oc-pp__county { border-top: 1px solid var(--oc-border); }
.oc .oc-pp__county summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 750; font-size: 14.5px; }
.oc .oc-pp__county ul { list-style: none; margin: 0 0 10px; padding: 0; columns: 3 150px; column-gap: 18px; }
.oc .oc-pp__county li { break-inside: avoid; }
.oc .oc-pp__county li a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--oc-text); }
.oc .oc-pick .oc-pp__list { max-height: 360px; }
.oc .oc-pick .oc-pp__browse { max-height: 380px; overflow-y: auto; }
.oc .oc-drawer .oc-pp__county ul { columns: 2 120px; }
.oc .oc-pp--field { flex: 1 1 260px; min-width: 0; position: relative; }
.oc .oc-pp--field .oc-pp__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.oc .oc-pp--field .oc-pp__q { border-width: 2px; border-color: #141210; font-size: 13px; }
.oc .oc-pp--field .oc-pp__list, .oc .oc-pp--field .oc-pp__browse {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; background: #fff; padding: 8px 12px;
    border: 1px solid var(--oc-border); border-radius: var(--oc-r); box-shadow: var(--oc-shadow-lift); }
.oc .oc-pp--field .oc-pp__browse { display: none; max-height: 380px; overflow-y: auto; }
.oc .oc-pp--field:focus-within .oc-pp__browse:not([hidden]) { display: block; }
.oc .oc-pp--field .oc-pp__status { position: absolute; }

/* ── Place page ─────────────────────────────────────────────────────────── */
.oc .oc-place-page { padding-top: 18px; padding-bottom: 48px; max-width: min(1240px, 100%); }
.oc .oc-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 12px; padding: 0; font-size: 13px; color: var(--oc-muted); }
.oc .oc-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--oc-border); }
.oc .oc-crumbs a { color: var(--oc-muted); font-weight: 600; }
.oc .oc-crumbs [aria-current] { color: var(--oc-text); font-weight: 700; }
.oc .oc-place-hero { margin: 0 0 14px; }
.oc .oc-place-hero__img { aspect-ratio: 16 / 9; max-height: 440px; width: 100%; overflow: hidden; border-radius: var(--oc-r); background: var(--oc-surface); }
.oc .oc-place-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc .oc-place-hero__credit { margin-top: 6px; font-size: 12px; color: var(--oc-muted); }
.oc .oc-place-hero__credit a { color: var(--oc-muted); text-decoration: underline; }
.oc .oc-place-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 12px; }
.oc .oc-place-head h1 { font-family: var(--oc-display); font-size: clamp(34px, 6vw, 56px); line-height: 1; text-transform: uppercase; margin: 0; color: var(--oc-navy); }
.oc .oc-place-head__line { margin: 6px 0 0; font-size: 15px; color: var(--oc-muted); font-weight: 600; }
.oc .oc-place-share { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.oc .oc-place-share .oc-btn { min-height: 44px; min-width: 96px; }
.oc .oc-place-share__alt { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.oc .oc-linkbtn { background: none; border: 0; padding: 0; margin: 0; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: normal; line-height: inherit; vertical-align: baseline; font: inherit; font-weight: 700; color: var(--oc-navy); text-decoration: underline; cursor: pointer; }
.oc .oc-place-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.oc .oc-chip--link { min-height: 36px; display: inline-flex; align-items: center; padding: 6px 12px; font-size: 13.5px; font-weight: 700; color: var(--oc-navy);
    background: #fff; border: 1px solid var(--oc-border); border-radius: 999px; text-decoration: none; text-transform: none; letter-spacing: normal; }
.oc .oc-chip--link:hover { border-color: var(--oc-navy); text-decoration: none; }
.oc .oc-place-zoom { margin: 0 0 22px; }
.oc .oc-place-zoom h2, .oc .oc-place-tip h2 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--oc-muted); margin: 0 0 8px; }
.oc .oc-place-zoom__list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.oc .oc-place-filter { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--oc-border); }
.oc .oc-place-filter a { padding: 10px 14px; min-height: 44px; font-weight: 750; color: var(--oc-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.oc .oc-place-filter a[aria-current] { color: var(--oc-navy); border-bottom-color: var(--oc-orange); }
.oc .oc-place-page .oc-empty { margin: 0 0 24px; }
.oc .oc-place-tip { margin-top: 32px; padding: 20px; background: var(--oc-surface); border-radius: var(--oc-r); }
.oc .oc-place-tip p { margin: 0 0 12px; max-width: var(--oc-measure); }
@media (max-width: 640px) {
    .oc .oc-place-hero__img { border-radius: 0; margin: 0 calc(-1 * var(--oc-gutter)); width: calc(100% + 2 * var(--oc-gutter)); }
    .oc .oc-place-share { width: 100%; }
}

/* Homepage county cards (phase 3b): place heroes are 16:9 and the placeholders carry
   text near the edges, so the card keeps their shape instead of cropping to 3:2. */
.oc-nb-card__fig--wide { aspect-ratio: 16 / 9; }
.oc-nb-card__places a { color: inherit; }

/* Closing tile on the homepage county grid (oc_nb_tile switch). White like its neighbours.
   Hidden at any width where the county cards already fill the rows; spans the leftover
   columns when more than one would stay empty. 3 cols >=1040, 2 cols >=680, else 1. */
.oc-nb-card--cta { align-self: start; }   /* hug the content: a stretched grid cell left ~115px above and ~130px below */
.oc-nb-card--cta .oc-nb-card__body { justify-content: flex-start; flex: 0 1 auto; padding: 22px 22px 22px; }
.oc-nb-card--cta .oc-nb-card__h { margin-top: 0; }
.oc-nb-card--cta .oc-nb-card__more { margin-bottom: 0; }
.oc-nb-card__actions { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.oc-nb-card--cta:hover { transform: none; }
@media (min-width: 1040px) {
    .oc-nb-grid[data-n3="0"] > .oc-nb-card--cta { display: none; }
    .oc-nb-grid[data-n3="1"] > .oc-nb-card--cta { grid-column: span 2; }
}
@media (min-width: 680px) and (max-width: 1039.98px) {
    .oc-nb-grid[data-n2="0"] > .oc-nb-card--cta { display: none; }
}
.oc-nb-card__more { margin: 10px 0 0; font-size: 14px; }
.oc-nb-card__more a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
