/* Province chooser: homepage first screen (index.html #provFirst) and select-province.html.
   On the homepage it is shown only when <html> has .prov-first, which an inline head
   script sets when no province is saved. It is part of the page, not an overlay or a
   redirect: the homepage content stays underneath on the same URL. */

.prov-first-screen { display: none; }
html.prov-first .prov-first-screen { display: flex; }

/* Arrival popups wait while the chooser is on screen, and for the rest of that page view. */
html.prov-first #mdcat-yt-popup,
html.prov-first #mdcat-mock-popup,
html.prov-hold-popups #mdcat-yt-popup,
html.prov-hold-popups #mdcat-mock-popup { display: none !important; }

/* The countdown strip normally clears the fixed navbar itself; the chooser above it already does. */
html.prov-first .mdcat-countdown { margin-top: 0 !important; }

/* ---------- layout ---------- */
.prov-first-screen,
.pf-page {
    position: relative;
    z-index: 1;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 104px 0 64px;
    background: var(--bg-primary, #fff);
}
.pf-page { display: flex; }
.prov-first-screen { border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, .08)); }
.pf-wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.pf-head { text-align: center; margin-bottom: 28px; }
.pf-eyebrow {
    display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #DC2626; margin-bottom: 10px;
}
.pf-head h1, .pf-head h2 {
    font-family: var(--font-display); font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800;
    letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; color: var(--text-primary);
}
.pf-head p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.6; font-size: 1rem; }
.pf-next { margin-top: 10px !important; font-size: .9rem !important; color: var(--text-muted) !important; }
.pf-next strong { color: var(--text-primary); }

/* ---------- tiles ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.pf-card {
    position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px;
    min-height: 84px; padding: 16px 48px 16px 18px;
    background: var(--bg-card, #fff); border: 1.5px solid var(--border-color, rgba(0, 0, 0, .1));
    border-radius: 14px; text-decoration: none; color: inherit;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.pf-card:hover, .pf-card:focus-visible {
    border-color: #DC2626; background: #FFF7F7; box-shadow: 0 6px 18px rgba(220, 38, 38, .10); outline: none;
}
.pf-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; color: var(--text-primary); }
.pf-meta { font-size: .84rem; color: var(--text-muted); line-height: 1.3; }
.pf-meta b { color: #B91C1C; font-weight: 700; letter-spacing: .02em; }
/* selection circle */
.pf-card::after {
    content: ''; position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
    border-radius: 50%; border: 2px solid rgba(0, 0, 0, .18); background: #fff;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.pf-card:hover::after, .pf-card:focus-visible::after { border-color: #DC2626; }
.pf-card.on { border-color: #DC2626; background: #FEF2F2; }
.pf-card.on::after { border-color: #DC2626; background: #DC2626; box-shadow: inset 0 0 0 4px #fff; }

/* ---------- footer row ---------- */
.pf-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; margin-top: 22px; font-size: .9rem; color: var(--text-muted); }
.pf-foot a { color: #B91C1C; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pf-foot a:hover { color: #DC2626; }
.pf-dot { color: rgba(0, 0, 0, .25); }

/* ---------- smaller screens ---------- */
@media (max-width: 860px) {
    .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .prov-first-screen, .pf-page { align-items: flex-start; padding: 84px 0 28px; min-height: 0; }
    html.prov-first .prov-first-screen { min-height: 100svh; }
    .pf-wrap { padding: 0 14px; }
    .pf-head { margin-bottom: 18px; }
    .pf-eyebrow { display: none; }
    .pf-pre { display: none; }
    .pf-head h1, .pf-head h2 { font-size: 1.6rem; margin-bottom: 8px; }
    .pf-head p { font-size: .88rem; line-height: 1.5; }
    .pf-grid { gap: 10px; }
    .pf-card { min-height: 64px; padding: 10px 32px 10px 12px; border-radius: 12px; gap: 2px; }
    .pf-name { font-size: .95rem; }
    .pf-meta { font-size: .78rem; }
    .pf-card::after { right: 10px; width: 16px; height: 16px; margin-top: -8px; }
    .pf-dot { display: none; }
    .pf-foot { flex-direction: column; gap: 4px; margin-top: 16px; font-size: .86rem; }
    /* The site-wide cookie banner is tall on phones and hid most of the chooser. */
    #cookieConsent { padding: 10px 14px !important; gap: 8px !important; font-size: .74rem !important; line-height: 1.45 !important; }
    #cookieConsent button { padding: 7px 14px !important; font-size: .8rem !important; }
}

/* ---------- chooser only: nothing else on screen until a province is picked ----------
   The page is scroll-locked rather than hidden with display:none, so the homepage content
   is still rendered for Google (its renderer uses a tall viewport and sees the full page). */
html.prov-first, html.prov-first body { overflow: hidden !important; height: 100%; }
html.prov-first .prov-first-screen {
    height: 100vh; height: 100svh; min-height: 0 !important;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    border-bottom: 0;
}
html.prov-first .navbar .nav-links,
html.prov-first .navbar .nav-toggle,
html.prov-first .navbar .prov-pill,
html.prov-first #cookieConsent,
html.prov-first .cmp-fab,
html.prov-first ins.adsbygoogle[data-anchor-status],
html.prov-first .adsbygoogle-noablate { display: none !important; }
html.prov-first .navbar { justify-content: center; background: rgba(255, 255, 255, .97); }
html.prov-first .navbar .nav-container { justify-content: center !important; }

/* select-province.html: same chooser-only treatment (it has no other content to protect). */
html.pf-only .navbar .nav-links,
html.pf-only .navbar .nav-toggle,
html.pf-only .navbar .prov-pill,
html.pf-only .sub-footer,
html.pf-only #cookieConsent,
html.pf-only .cmp-fab { display: none !important; }
html.pf-only .navbar .nav-container { justify-content: center !important; }

/* Centre the chooser vertically. Auto margins (not align-items) so a chooser taller than a
   small screen still scrolls from its top instead of being clipped. */
.prov-first-screen .pf-wrap, .pf-page .pf-wrap { margin: auto; }

html.pf-only .navbar { border-bottom: 0 !important; box-shadow: none !important; }

/* ---------- map + tiles layout (2026-10-07) ---------- */
.pf-wrap { max-width: 1040px; }
.pf-body { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 28px; align-items: center; }
.pf-body .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-map-wrap { position: relative; }
.pk-map { display: block; width: 100%; height: auto; max-width: 460px; margin: 0 auto; overflow: visible; }
.pk-region { cursor: pointer; outline: none; }
.pk-region path { fill: #EFE4E4; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; transition: fill .15s; }
.pk-region:hover path, .pk-region:focus-visible path, .pk-region.hl path { fill: #FCA5A5; }
.pk-region.on path { fill: #DC2626; }
.pk-dot { fill: #fff; stroke: #991B1B; stroke-width: 3; transition: fill .15s; }
.pk-isb:hover .pk-dot, .pk-isb.hl .pk-dot, .pk-isb.on .pk-dot { fill: #DC2626; }
.pk-isb path { fill: transparent !important; stroke: none; }
.pk-labels text {
    font-family: var(--font-display); font-size: 12.5px; font-weight: 700; fill: #2b2b3f; pointer-events: none;
    paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 3px; stroke-linejoin: round; transition: fill .15s;
}
.pk-labels text.hl { fill: #991B1B; }
.pk-labels text.on { fill: #fff; stroke: #991B1B; }
.pf-card.hl { border-color: #DC2626; background: #FFF7F7; }
.pf-map-hint { text-align: center; font-size: .8rem; color: var(--text-muted); margin: 6px 0 0; }

@media (max-width: 860px) {
    .pf-body { grid-template-columns: 1fr; gap: 14px; }
    .pk-map { max-width: 340px; }
}
@media (max-width: 600px) {
    .pk-map { max-width: 260px; }
    .pk-labels text { font-size: 15px; }
    .pf-map-hint { display: none; }
}
@media (max-height: 700px) and (max-width: 600px) {
    .pk-map { max-width: 200px; }
}
.pf-isb-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid #991B1B; background: #fff; vertical-align: -1px; }
