/*
 * Locations v3: /locations, /locations/{slug}, /locations/virtual-virtual (docs/ux-discovery/locations/spec.md).
 * Loaded after home-v3 base.css and skin.css (both unchanged); uses their tokens only. Prefix lv-.
 * Scoped to main.locations-v3 so no other page changes.
 */

/* ---------- motion.js section reveals are replaced by the lv-armed contract below ---------- */
html.hv-motion .home-v3.locations-v3 .rv { opacity: 1; transform: none; }

/* ---------- Motion contract (page.js) ----------
   Content is visible by default. page.js adds .lv-armed only to folds that start below 85% of the viewport,
   then .lv-in when they scroll in (observer, scroll geometry or a 500ms poll), then .lv-done. Print reveals all. */
html.hv-motion .locations-v3 .lv-armed:not(.lv-in) [data-reveal] { opacity: 0; transform: translate3d(0, 12px, 0); }
html.hv-motion .locations-v3 .lv-armed [data-reveal] { transition: opacity 400ms var(--ease), transform 400ms var(--ease); transition-delay: calc(var(--lv-i, 0) * 60ms); }
html.hv-motion .locations-v3 .lv-done [data-reveal] { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .locations-v3 [data-reveal] { opacity: 1 !important; transform: none !important; } }
@media print { .locations-v3 [data-reveal] { opacity: 1 !important; transform: none !important; } .locations-v3 .lv-sticky { display: none !important; } }

/* ---------- Shared ---------- */
.locations-v3 a { text-underline-offset: 3px; }
.locations-v3 .v3-section { scroll-margin-top: 72px; }
.locations-v3 .v3-section:focus { outline: none; }
.locations-v3 .v3-head-left .v3-lead, .locations-v3 .v3-head .v3-lead { font-size: 17px; }
.locations-v3 .lv-fchip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: var(--r-chip);
    background: var(--white); border: 1px solid var(--l300); color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.2;
    text-decoration: none; white-space: nowrap; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, transform var(--t-fast) var(--ease);
}
.locations-v3 .lv-fchip .v3-i { color: var(--brand-deep); }
.locations-v3 .lv-fchip:hover { border-color: var(--brand); background: var(--l100); }
.locations-v3 .v3-ink .lv-fchip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: var(--on-dark); }
.locations-v3 .v3-ink .lv-fchip .v3-i { color: var(--l300); }
.locations-v3 .v3-ink .lv-fchip:hover { background: rgba(255, 255, 255, .16); border-color: var(--on-dark); }

/* ---------- Hero ---------- */
.locations-v3 .lv-hero { padding: 32px 0 40px; }
.locations-v3 .lv-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.locations-v3 .lv-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 18px; }
.locations-v3 .lv-crumbs li { font-size: 16px; color: var(--on-dark-2); display: inline-flex; align-items: center; gap: 8px; }
.locations-v3 .lv-crumbs li + li::before { content: '/'; color: var(--on-dark-3); opacity: .7; }
.locations-v3 .lv-crumbs a { color: var(--on-dark-2); text-decoration: underline; text-decoration-color: rgba(212, 190, 255, .45); }
.locations-v3 .lv-crumbs a:hover { color: var(--on-dark); }
.locations-v3 .lv-crumbs [aria-current] { color: var(--on-dark); }
.locations-v3 .lv-eyebrow { margin-bottom: 10px; text-decoration: none; }
.locations-v3 a.lv-eyebrow:hover { color: var(--on-dark); text-decoration: underline; }
.locations-v3 a.lv-eyebrow { display: inline-block; padding: 13px 0; margin-top: -13px; margin-bottom: -3px; }
.locations-v3 .lv-h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; color: var(--on-dark); max-width: 18ch; }
.locations-v3 .lv-region { margin-top: 14px; }
.locations-v3 .lv-region .v3-chip { font-size: 16px; }
.locations-v3 .lv-lead { margin-top: 16px; max-width: 56ch; font-size: 18px; line-height: 1.55; color: var(--on-dark-2); }
.locations-v3 .lv-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.locations-v3 .lv-call { color: var(--l300); }

.locations-v3 .lv-search { margin-top: 24px; max-width: 520px; }
.locations-v3 .lv-search-label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; color: var(--on-dark); }
.locations-v3 .lv-search-row { position: relative; }
.locations-v3 .lv-search-i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.locations-v3 .lv-search input {
    width: 100%; height: 52px; padding: 0 16px 0 46px; border: 2px solid transparent; border-radius: 14px;
    background: var(--white); color: var(--ink); font-size: 17px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.locations-v3 .lv-search input::placeholder { color: #6E6182; }
.locations-v3 .lv-search input:focus-visible { outline: var(--focus-dark); outline-offset: 2px; }
.locations-v3 .lv-format-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.locations-v3 .lv-hero-card {
    align-self: center; padding: 28px; border-radius: var(--r-panel);
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.locations-v3 .lv-hero-card .lv-card-title { font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--on-dark); }
.locations-v3 .lv-hero-card .v3-icon-tile + .lv-card-title { margin-top: 16px; }
.locations-v3 .lv-card-text { margin-top: 8px; color: var(--on-dark-2); font-size: 17px; }
.locations-v3 .lv-hero-card .v3-link { margin-top: 10px; }
.locations-v3 .lv-card-formats { display: grid; gap: 10px; margin-top: 16px; }
.locations-v3 .lv-card-format {
    display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: var(--on-dark); text-decoration: none;
    transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.locations-v3 .lv-card-format:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.locations-v3 .lv-card-format-text { display: grid; flex: 1; min-width: 0; }
.locations-v3 .lv-card-format-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.locations-v3 .lv-card-format-note { font-size: 16px; line-height: 1.4; color: var(--on-dark-2); }
.locations-v3 .lv-card-format-go { color: var(--l300); }

/* ---------- Popular ---------- */
.locations-v3 .lv-pop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.locations-v3 .lv-pop-card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px; color: var(--ink); text-decoration: none; }
.locations-v3 .lv-pop-img { width: 48px; height: 48px; flex: none; object-fit: contain; }
.locations-v3 .lv-pop-body { display: grid; gap: 2px; min-width: 0; }
.locations-v3 .lv-pop-name { font-size: 18px; font-weight: 600; line-height: 1.25; }
.locations-v3 .lv-pop-region { font-size: 16px; color: var(--mute); }
.locations-v3 .lv-pop-meta { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.locations-v3 .lv-pop-next { display: block; color: var(--brand-deep); font-weight: 600; }
.locations-v3 .lv-pop-go { position: absolute; right: 16px; top: 18px; color: var(--brand-deep); }
.locations-v3 .lv-pop-foot { display: grid; gap: 20px; margin-top: 24px; }
.locations-v3 .lv-pop-foot > .v3-btn { justify-self: start; }
.locations-v3 .lv-contact-strip { display: grid; gap: 12px 32px; }
.locations-v3 .lv-contact-strip dt { font-size: 16px; font-weight: 600; color: var(--mute); }
.locations-v3 .lv-contact-strip dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 16px; color: var(--ink); }
.locations-v3 .lv-contact-strip .v3-link { min-height: 48px; }

/* ---------- All towns (FLOW) ---------- */
.locations-v3 .lv-towns-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 24px; }
.locations-v3 .lv-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--mute); }
.locations-v3 .lv-dot { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 999px; background: var(--brand); vertical-align: middle; flex: none; }
.locations-v3 .lv-legend .lv-dot { margin-left: 0; }
.locations-v3 .lv-filter-status { font-size: 16px; font-weight: 600; color: var(--ink); }
.locations-v3 .lv-filter-status:empty { display: none; }
.locations-v3 .lv-clear { min-height: 44px; font-size: 16px; }
.locations-v3 .lv-groups { display: grid; gap: 8px; }
.locations-v3 .lv-group { break-inside: avoid; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-card); }
.locations-v3 .lv-group-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer; list-style: none; }
.locations-v3 .lv-group-sum::-webkit-details-marker { display: none; }
.locations-v3 .lv-group-h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.locations-v3 .lv-group-chev { color: var(--brand-deep); transition: transform var(--t-base) var(--ease); }
.locations-v3 .lv-group[open] .lv-group-chev { transform: rotate(180deg); }
.locations-v3 .lv-town-list { padding: 0 8px 10px; }
.locations-v3 .lv-town { display: flex; align-items: center; min-height: 48px; padding: 4px 8px; border-radius: 10px; color: var(--ink); font-size: 16px; text-decoration: none; }
.locations-v3 .lv-town:hover { background: var(--l100); color: var(--brand-deep); text-decoration: underline; }
.locations-v3 .lv-empty { margin-top: 16px; font-size: 17px; }

/* ---------- Get in Touch (form) ---------- */
.locations-v3 .lv-enq-grid { display: grid; gap: 28px; }
.locations-v3 .lv-enq-form { padding: 20px; }
.locations-v3 .lv-enq-contact { display: grid; gap: 4px; margin-top: 18px; }
.locations-v3 .lv-enq-note { margin-top: 10px; color: var(--mute); }
.locations-v3 #contact_form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; background: none; box-shadow: none; max-width: none; width: 100%; }
.locations-v3 #contact_form .funding { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.locations-v3 #contact_form .funding > p { flex-basis: 100%; margin: 0 0 2px; font-size: 16px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.locations-v3 #contact_form .funding > p span, .locations-v3 #contact_form .input-fields > span { color: var(--danger); }
.locations-v3 #contact_form .select-name {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 8px 16px; border-radius: var(--r-chip);
    border: 2px solid var(--l200); background: var(--white); cursor: pointer; width: auto;
}
.locations-v3 #contact_form .select-name p { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.locations-v3 #contact_form .select-name.select-active { border-color: var(--brand); background: var(--l100); }
.locations-v3 #contact_form .select-name .select-hide { position: absolute; opacity: 0; width: 1px; height: 1px; }
.locations-v3 #contact_form .select-name:has(input:focus-visible) { outline: var(--focus-light); outline-offset: 2px; }
.locations-v3 #contact_form .input-fields { position: relative; display: block; margin: 0; padding: 0; width: auto; max-width: none; border: 0; background: none; }
.locations-v3 #contact_form .input-fields > span:not(.invalid-feedback) { position: absolute; top: 0; left: auto; right: 0; font-size: 16px; line-height: 1.4; }
.locations-v3 #contact_form .lv-label { display: block; margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.locations-v3 #contact_form input[type="text"], .locations-v3 #contact_form input[type="email"], .locations-v3 #contact_form textarea, .locations-v3 #contact_form select {
    width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1.5px solid var(--l300); border-radius: 12px; background: var(--white);
    color: var(--ink); font-size: 16px; box-shadow: none;
}
.locations-v3 #contact_form textarea { height: 88px; padding: 12px 14px; }
.locations-v3 #contact_form input:focus-visible, .locations-v3 #contact_form textarea:focus-visible, .locations-v3 #contact_form select:focus-visible { outline: var(--focus-light); outline-offset: 1px; border-color: var(--brand); }
.locations-v3 #contact_form .mob, .locations-v3 #contact_form .phonecode-field { display: flex; gap: 8px; width: 100%; margin: 0; padding: 0; border: 0; background: none; }
.locations-v3 #contact_form .phonecode-field select { flex: 0 0 108px; width: 108px; padding: 0 8px; }
.locations-v3 #contact_form .phonecode-field .prefix { display: none; }
.locations-v3 #contact_form .phonecode-field input { flex: 1; min-width: 0; }
.locations-v3 #contact_form .form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.locations-v3 #contact_form .form-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); }
.locations-v3 #contact_form .form-consent label { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.locations-v3 #contact_form .consent-error { display: none; } /* contact.js .show()s it when consent is missing */
.locations-v3 #contact_form .consent-error p { font-size: 16px; color: var(--danger); }
.locations-v3 #contact_form .invalid-feedback { display: block; margin-top: 4px; font-size: 16px !important; color: var(--danger) !important; }
.locations-v3 #contact_form .buttons { margin: 0; justify-content: flex-start; }
.locations-v3 #contact_form .btn-primary {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 180px; padding: 12px 28px;
    border: 2px solid rgba(31, 3, 45, .14); border-radius: 14px; background: var(--amber); color: var(--ink);
    font-size: 17px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(255, 159, 28, .55);
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.locations-v3 #contact_form .btn-primary:hover { background: var(--amber-hover); transform: translateY(-2px); }
.locations-v3 #contact_form .btn-primary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- Dates ---------- */
.locations-v3 .lv-table-wrap { border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow-card); }
.locations-v3 .lv-table { width: 100%; border-collapse: collapse; }
.locations-v3 .lv-table thead { display: none; }
.locations-v3 .lv-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px; border-bottom: 1px solid var(--l200); }
.locations-v3 .lv-table tbody tr:last-child { border-bottom: 0; }
.locations-v3 .lv-table th, .locations-v3 .lv-table td { padding: 0; text-align: left; font-size: 16px; color: var(--ink); vertical-align: middle; }
.locations-v3 .lv-td-course { grid-column: 1 / -1; font-weight: 600; font-size: 17px !important; line-height: 1.35; }
.locations-v3 .lv-td-course a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--l300); }
.locations-v3 .lv-td-course a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.locations-v3 .lv-td-course a:hover { color: var(--brand-deep); }
.locations-v3 .lv-td-mode { display: block; margin-top: 2px; font-size: 16px; font-weight: 500; color: var(--mute); }
.locations-v3 .lv-td-act { grid-column: 1 / -1; margin-top: 8px; }
.locations-v3 .lv-row-btn { width: 100%; min-height: 48px; padding: 10px 18px; }
.locations-v3 .lv-foot { margin-top: 14px; font-size: 16px; color: var(--mute); }
.locations-v3 .lv-dates-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.locations-v3 .lv-nodates { margin-top: 0; }

/* ---------- About (FLOW, reading column) ---------- */
.locations-v3 .lv-read { max-width: 68ch; }
.locations-v3 .lv-prose { margin-top: 16px; }
.locations-v3 .lv-prose p, .locations-v3 .lv-prose li { font-size: 17px; line-height: 1.7; }
.locations-v3 .lv-prose p + p, .locations-v3 .lv-prose ul, .locations-v3 .lv-prose ol { margin-top: 14px; }
.locations-v3 .lv-prose ul { list-style: disc; padding-left: 22px; }
.locations-v3 .lv-prose ol { list-style: decimal; padding-left: 22px; }
.locations-v3 .lv-prose a { color: var(--brand-deep); }

/* ---------- Formats ---------- */
.locations-v3 .lv-format-grid { display: grid; gap: 12px; }
.locations-v3 .lv-format-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; color: var(--ink); text-decoration: none; }
.locations-v3 .lv-format-card.is-highlight { box-shadow: 0 0 0 2px var(--brand), var(--shadow-card); }
.locations-v3 .lv-format-name { font-size: 20px; line-height: 1.25; font-weight: 600; }
.locations-v3 .lv-format-text { color: var(--ink-2); }
.locations-v3 .lv-format-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--brand-deep); }
.locations-v3 .lv-formats-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 28px; text-align: center; }
.locations-v3 .lv-cert { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink); }
.locations-v3 .lv-cert-i { width: 24px; height: 24px; color: var(--brand-deep); }

/* ---------- Nearby / chips ---------- */
.locations-v3 .lv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.locations-v3 .lv-nearby-all { margin-top: 28px; text-align: center; }

/* ---------- CMS blocks (online page; render only when real) ---------- */
.locations-v3 .lv-cms-list { display: grid; gap: 12px; }
.locations-v3 .lv-cms-item { padding: 20px; }
.locations-v3 .lv-cms-item h3 { margin-top: 10px; }
.locations-v3 .lv-cms-item p { margin-top: 6px; }
.locations-v3 .lv-cms-img { border-radius: var(--r-card); }

/* ---------- Sticky action on phones and tablets (<1024px) ---------- */
.locations-v3 .lv-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--white); box-shadow: 0 -1px 0 rgba(31, 3, 45, .08), 0 -10px 28px -10px rgba(31, 3, 45, .3);
    transform: translateY(110%); visibility: hidden;
    transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
}
.locations-v3 .lv-sticky.is-visible { transform: none; visibility: visible; transition: transform var(--t-base) var(--ease), visibility 0s linear 0s; }
.locations-v3 .lv-sticky .v3-btn { min-height: 52px; padding: 10px 14px; }
.locations-v3 .lv-sticky .lv-sticky-main { flex: 1.6 1 0; min-width: 0; }
.locations-v3 .lv-sticky .lv-sticky-call { flex: 1 1 0; min-width: 0; background: var(--white); }
@media (max-width: 1023px) {
    body.lv-sticky-on { padding-bottom: 76px; }
    body.lv-sticky-on #hubspot-messages-iframe-container { bottom: 76px !important; }
}

/* ---------- Phones only ---------- */
@media (max-width: 767px) {
    .locations-v3 .lv-h1 { font-size: 32px; }
    .locations-v3 .lv-hero-actions .v3-btn { width: 100%; }
    .locations-v3 .lv-search { max-width: none; }
    .locations-v3 .lv-hero-index .lv-format-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; padding-bottom: 4px; scrollbar-width: none; }
    .locations-v3 .lv-hero-index .lv-format-chips::-webkit-scrollbar { display: none; }
    .locations-v3 .lv-hero-index .lv-format-chips li { flex: none; }
    .locations-v3 .lv-fchip { min-height: 48px; }
    .locations-v3 .lv-dates-actions > .v3-btn, .locations-v3 .lv-formats-foot > .v3-btn { width: 100%; }
    .locations-v3 #contact_form .btn-primary { width: 100%; }
    .locations-v3 #contact_form .select-name { min-height: 48px; }
    .locations-v3 .lv-pop-card { padding: 14px; }
    .locations-v3 .lv-pop-go { display: none; }
}

/* ---------- Tablet and up ---------- */
@media (min-width: 768px) {
    .locations-v3 .lv-hero { padding: 48px 0 56px; }
    .locations-v3 .lv-pop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .locations-v3 .lv-pop-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px 40px 18px 18px; }
    .locations-v3 .lv-pop-foot { grid-template-columns: auto 1fr; align-items: center; gap: 24px 40px; }
    .locations-v3 .lv-contact-strip { grid-template-columns: auto auto; justify-content: end; }
    .locations-v3 .lv-groups { display: block; columns: 3; column-gap: 16px; }
    .locations-v3 .lv-group { margin-bottom: 16px; }
    .locations-v3 .lv-group-sum { cursor: default; pointer-events: none; }
    .locations-v3 .lv-group-chev { display: none; }
    .locations-v3 .lv-town { min-height: 36px; padding: 2px 8px; }
    .locations-v3 #contact_form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
    .locations-v3 #contact_form .funding, .locations-v3 #contact_form .input-message, .locations-v3 #contact_form .form-consent,
    .locations-v3 #contact_form .consent-error, .locations-v3 #contact_form .buttons { grid-column: 1 / -1; }
    .locations-v3 .lv-enq-form { padding: 28px; }
    .locations-v3 .lv-format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .locations-v3 .lv-cms-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .locations-v3 .lv-table thead { display: table-header-group; }
    .locations-v3 .lv-table tr { display: table-row; padding: 0; }
    .locations-v3 .lv-table th, .locations-v3 .lv-table td { padding: 12px 16px; border-bottom: 1px solid var(--l200); }
    .locations-v3 .lv-table tbody tr:last-child > * { border-bottom: 0; }
    .locations-v3 .lv-table thead th { padding-top: 14px; padding-bottom: 12px; font-size: 16px; font-weight: 600; letter-spacing: .01em; color: var(--mute); }
    .locations-v3 .lv-td-course { font-size: 16px !important; }
    .locations-v3 .lv-td-mode { display: inline; margin: 0 0 0 8px; font-size: 16px; }
    .locations-v3 .lv-td-act { margin: 0; text-align: right; white-space: nowrap; }
    .locations-v3 .lv-row-btn { width: auto; min-height: 44px; padding: 8px 18px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
    .locations-v3 .lv-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
    .locations-v3 .lv-groups { columns: 4; }
    .locations-v3 .lv-town { min-height: 32px; }
    .locations-v3 .lv-enq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
    .locations-v3 .lv-enq-form { order: 0; }
    .locations-v3 .lv-format-grid.lv-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .locations-v3 .lv-format-grid.lv-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .locations-v3 .lv-cms-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
    .locations-v3 .lv-cms-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .locations-v3 .lv-sticky { display: none; }
    .locations-v3 .lv-towns { padding: 96px 0 80px; }
}

/* ---------- One-screen folds at desktop heights: keep at least 90px free at 1366x768 ---------- */
@media (min-width: 1024px) and (min-height: 620px) {
    .locations-v3 .lv-hero.v3-fold { padding-bottom: clamp(24px, 4vh, 56px); }
    .locations-v3 .v3-fold .lv-h1 { font-size: clamp(2.25rem, .9rem + 4.2vh, 3.25rem); }
    .locations-v3 .v3-fold .lv-lead { margin-top: 12px; font-size: clamp(16px, .7rem + .9vh, 18px); }
    .locations-v3 .v3-fold .lv-crumbs ol { margin-bottom: 12px; }
    .locations-v3 .v3-fold .lv-search { margin-top: 18px; }
    .locations-v3 .v3-fold .lv-format-chips { margin-top: 14px; }
    .locations-v3 .v3-fold .lv-hero-actions { margin-top: 22px; }
    .locations-v3 .lv-enquire.v3-fold #contact_form { gap: 10px 16px; }
    .locations-v3 .lv-enquire.v3-fold .lv-enq-form { padding: 22px 26px; }
    .locations-v3 .lv-enquire.v3-fold #contact_form textarea { height: 64px; }
    .locations-v3 .lv-enquire.v3-fold #contact_form .lv-label { margin-bottom: 4px; }
    .locations-v3 .lv-dates.v3-fold .lv-table th, .locations-v3 .lv-dates.v3-fold .lv-table td { padding-top: 6px; padding-bottom: 6px; }
    .locations-v3 .lv-dates.v3-fold .lv-table thead th { padding-top: 10px; padding-bottom: 8px; }
    .locations-v3 .lv-dates.v3-fold .lv-row-btn { min-height: 36px; padding: 4px 16px; }
    .locations-v3 .lv-dates.v3-fold .lv-foot { margin-top: 10px; }
    .locations-v3 .lv-dates.v3-fold .lv-dates-actions { margin-top: 18px; }
}

@media (forced-colors: active) {
    .locations-v3 .lv-sticky { border-top: 1px solid CanvasText; }
    .locations-v3 .lv-dot { background: CanvasText; }
}

/* ---------- Review fixes (28 Nov 2026): folds sized to their content ----------
   A fold forced to one full screen around a 3-row table or four cards left 250-350px blank bands, so the pages looked
   empty. Below the hero, every fold now takes its content height plus a steady rhythm of space; the hero keeps a near
   full screen but lets the next section peek in. Scroll snapping is off here, as sections are no longer one screen each. */
@media (min-width: 1024px) and (min-height: 620px) {
    html:has(main.home-v3.locations-v3) { scroll-snap-type: none; }
    .locations-v3 .v3-section.v3-fold:not(.lv-hero) { min-height: 0; justify-content: flex-start; padding: clamp(72px, 10vh, 104px) 0; scroll-snap-align: none; }
    .locations-v3 .lv-hero.v3-fold { min-height: 0; padding: clamp(48px, 8vh, 72px) 0 clamp(64px, 10vh, 88px); scroll-snap-align: none; }
    /* Rows can breathe again now the table is not squeezed into one screen. */
    .locations-v3 .lv-dates.v3-fold .lv-table th, .locations-v3 .lv-dates.v3-fold .lv-table td { padding-top: 12px; padding-bottom: 12px; }
    .locations-v3 .lv-dates.v3-fold .lv-row-btn { min-height: 44px; padding: 8px 18px; }
    .locations-v3 .lv-dates.v3-fold .lv-foot { margin-top: 14px; }
    .locations-v3 .lv-dates.v3-fold .lv-dates-actions { margin-top: 28px; }
}
/* Two white sections in a row share one gap, not two. */
.locations-v3 .v3-white + .v3-white { padding-top: 0 !important; }

/* Popular cards: equal heights, the line icon in a tile, dates that never break mid-date. */
.locations-v3 .lv-pop-grid > li { display: flex; }
.locations-v3 .lv-pop-card { flex: 1; }
.locations-v3 .lv-pop-img.v3-icon-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--l100); color: var(--brand-deep); }
.locations-v3 .lv-nowrap { white-space: nowrap; }

@media (max-width: 767px) {
    /* Hero format chips scroll sideways: a fade on the right edge shows there is more. */
    .locations-v3 .lv-hero-index .lv-format-chips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
    .locations-v3 .lv-hero-index .lv-format-chips li:last-child { padding-right: 32px; }
}
@media (max-width: 519px) {
    /* One card per row on phones: two columns at 390px squashed the names and broke the dates. */
    .locations-v3 .lv-pop-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .locations-v3 .lv-pop-card { flex-direction: row; align-items: flex-start; gap: 14px; }
}
