/*
 * Canvas01: shared design system for geosite2 directory websites.
 * Site themes (/css/<theme>-theme.css) set the custom properties below and
 * may add tightly scoped variants. See docs/canvas01-template.md.
 *
 * Element and Bootstrap-compatibility rules are scoped to body.cv-native so
 * inherited geosite2 pages (account, feature checkout...) keep their own
 * Bootstrap styling inside the Canvas01 header and footer.
 */

:root {
    --cv-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --cv-font-display: var(--cv-font-body);
    --cv-display-weight: 700;
    --cv-display-tracking: -0.01em;

    --cv-bg: #f7f7f8;
    --cv-surface: #ffffff;
    --cv-surface-2: #f0f0f3;
    --cv-text: #1d1d22;
    --cv-muted: #5f6070;
    --cv-border: #e1e1e8;
    --cv-primary: #3b3fd8;
    --cv-primary-strong: #2c2fb0;
    --cv-primary-contrast: #ffffff;
    --cv-accent: #f2a93b;
    --cv-accent-contrast: #24170a;
    --cv-link: var(--cv-primary);
    --cv-focus: var(--cv-accent);

    --cv-header-bg: var(--cv-surface);
    --cv-header-text: var(--cv-text);
    --cv-header-border: var(--cv-border);
    --cv-hero-from: #262a6b;
    --cv-hero-to: #3b3fd8;
    --cv-hero-text: #ffffff;
    --cv-hero-overlay: linear-gradient(90deg, rgba(10, 10, 20, .78) 0%, rgba(10, 10, 20, .35) 70%, rgba(10, 10, 20, .15) 100%);
    --cv-footer-bg: #17171c;
    --cv-footer-text: #c9c9d3;
    --cv-footer-heading: #ffffff;

    --cv-radius: 14px;
    --cv-radius-sm: 8px;
    --cv-radius-pill: 999px;
    --cv-shadow: 0 1px 2px rgba(16, 16, 30, .06), 0 6px 20px rgba(16, 16, 30, .06);
    --cv-shadow-hover: 0 2px 4px rgba(16, 16, 30, .08), 0 14px 32px rgba(16, 16, 30, .12);
    --cv-card-border: 1px solid transparent;
    --cv-max: 1240px;
    --cv-gutter: clamp(16px, 4vw, 32px);
    --cv-section-gap: clamp(32px, 6vw, 64px);
    --cv-card-media: 64px;
    /* World map on /countries: land must stand out from --cv-surface-2. */
    --cv-map-land: #b9b9cb;
    --cv-map-land-hover: var(--cv-primary);
    --cv-map-stroke: #ffffff;
}

/* ---------- Base (native pages) ---------- */

body.cv-native {
    margin: 0;
    background: var(--cv-bg);
    color: var(--cv-text);
    font-family: var(--cv-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.cv-native *,
body.cv-native *::before,
body.cv-native *::after { box-sizing: border-box; }
body.cv-native img { max-width: 100%; }
body.cv-native a { color: var(--cv-link); text-decoration: none; }
body.cv-native a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.cv-native :focus-visible { outline: 3px solid var(--cv-focus); outline-offset: 2px; }
body.cv-native h1, body.cv-native h2, body.cv-native h3, body.cv-native h4 {
    font-family: var(--cv-font-display);
    font-weight: var(--cv-display-weight);
    letter-spacing: var(--cv-display-tracking);
    line-height: 1.2;
    color: var(--cv-text);
    margin: 0 0 .5em;
}
body.cv-native h1 { font-size: clamp(28px, 4.2vw, 44px); }
body.cv-native h2 { font-size: clamp(22px, 2.8vw, 30px); }
body.cv-native h3 { font-size: 19px; }
body.cv-native p { margin: 0 0 1em; }
body.cv-legacy { background: var(--cv-bg); }
.cv-legacy-body { padding-top: 24px; padding-bottom: 24px; }

.cv-wrap {
    width: 100%;
    max-width: var(--cv-max);
    margin: 0 auto;
    padding-left: var(--cv-gutter);
    padding-right: var(--cv-gutter);
}
.cv-main { display: block; min-height: 60vh; }
.cv-section { margin: var(--cv-section-gap) 0; }
.cv-section--tight { margin: 24px 0; }
.cv-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 18px;
}
.cv-section__head h2 { margin: 0; }
.cv-muted { color: var(--cv-muted); }
.cv-visually-hidden, body.cv-native .sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.hdn { display: none; }

.cv-skip {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: var(--cv-radius-sm);
    background: var(--cv-primary);
    color: var(--cv-primary-contrast) !important;
    font-weight: 600;
}
.cv-skip:focus { top: 12px; }

/* ---------- Header ---------- */

.cv-header {
    position: relative;
    z-index: 50;
    background: var(--cv-header-bg);
    color: var(--cv-header-text);
    border-bottom: 1px solid var(--cv-header-border);
    font-family: var(--cv-font-body);
}
.cv-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.cv-brand { display: inline-flex; align-items: center; flex-shrink: 1; min-width: 0; }
.cv-brand img { display: block; height: auto; max-height: 52px; width: auto; max-width: min(220px, 52vw); }
.cv-nav { display: flex; align-items: center; gap: 4px; }
.cv-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: var(--cv-radius-pill);
    color: var(--cv-header-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
/* body.cv prefix outranks the native "a:hover underline" base rule. */
body.cv .cv-nav a:hover { background: var(--cv-surface-2); text-decoration: none; }
.cv-nav a .fa { opacity: .7; }
.cv-nav a[aria-current="page"] { background: var(--cv-surface-2); color: var(--cv-primary); }
.cv-nav a[aria-current="page"] .fa { opacity: 1; }
.cv-nav__cta {
    background: var(--cv-primary) !important;
    color: var(--cv-primary-contrast) !important;
}
.cv-nav__cta:hover { background: var(--cv-primary-strong) !important; }
.cv-menu-toggle { display: none; }

.cv-header--centered .cv-header__bar {
    flex-direction: column;
    gap: 6px;
    padding-top: 18px;
    padding-bottom: 8px;
}
.cv-header--centered .cv-nav { justify-content: center; flex-wrap: wrap; }

@media (max-width: 720px) {
    .cv-header__bar { min-height: 60px; flex-direction: row !important; flex-wrap: wrap; }
    .cv-header--centered .cv-header__bar { padding-top: 10px; }
    .cv-brand img { max-height: 40px; }
    /* Without JavaScript the nav simply wraps under the logo. */
    .cv-nav { flex-wrap: wrap; }
    .cv-js .cv-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 44px;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid var(--cv-header-border);
        border-radius: var(--cv-radius-pill);
        background: transparent;
        color: var(--cv-header-text);
        font: inherit;
        font-weight: 600;
        cursor: pointer;
    }
    .cv-js .cv-nav { display: none; }
    .cv-js .cv-header.is-open .cv-nav {
        position: absolute;
        left: 0; right: 0; top: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 10px var(--cv-gutter) 16px;
        background: var(--cv-header-bg);
        border-bottom: 1px solid var(--cv-header-border);
        box-shadow: var(--cv-shadow);
    }
    .cv-js .cv-header.is-open .cv-nav a { border-radius: var(--cv-radius-sm); }
}

/* ---------- Hero and search ---------- */

/* Not overflow: hidden, and stacked above the page below: the search suggestions
   drop out of the hero and must stay on top of the content under it. */
.cv-hero {
    position: relative;
    z-index: 5;
    color: var(--cv-hero-text);
    background: linear-gradient(135deg, var(--cv-hero-from), var(--cv-hero-to));
    isolation: isolate;
}
.cv-hero--image { background-size: cover; background-position: center right; }
.cv-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--cv-hero-overlay);
}
.cv-hero__inner { padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(40px, 8vw, 96px); }
.cv-hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cv-accent);
}
body.cv-native .cv-hero h1 {
    max-width: 18ch;
    margin-bottom: 14px;
    color: inherit;
    font-size: clamp(32px, 5.4vw, 58px);
}
.cv-hero__text { max-width: 56ch; margin-bottom: 26px; font-size: clamp(16px, 1.6vw, 19px); opacity: .9; }
.cv-hero--compact .cv-hero__inner { padding-top: 34px; padding-bottom: 34px; }

.cv-search { position: relative; max-width: 680px; margin-bottom: 24px; }
.cv-hero .cv-search { margin-bottom: 0; }
.cv-search__field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: var(--cv-radius-pill);
    background: var(--cv-surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.cv-search__field .fa { padding-left: 14px; color: var(--cv-muted); }
.cv-search__input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--cv-text);
    font: inherit;
    font-size: 17px;
}
.cv-search__input:focus, body.cv-native .cv-search__input:focus-visible { outline: none; }
/* Keyboard focus rings the whole rounded bar instead of a square box inside it. */
.cv-search__field:has(.cv-search__input:focus-visible) { box-shadow: 0 0 0 3px var(--cv-focus), 0 10px 30px rgba(0, 0, 0, .18); }
/* Browsers without :has() still drop the input outline, so ring the bar on any focus there. */
@supports not selector(:has(*)) {
    /* body.cv outranks theme rules such as .cv-theme-prism .cv-search__field. */
    body.cv .cv-search__field:focus-within { box-shadow: 0 0 0 3px var(--cv-focus), 0 10px 30px rgba(0, 0, 0, .18); }
}
/* The browser's own clear button, redrawn as a muted cross. */
.cv-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    background-color: var(--cv-muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    cursor: pointer;
}
.cv-search__input::-webkit-search-cancel-button:hover { background-color: var(--cv-text); }
.cv-search__field:focus-within { box-shadow: 0 0 0 3px var(--cv-focus), 0 10px 30px rgba(0, 0, 0, .18); }
.cv-search__input[data-cv-city] { border-left: 1px solid var(--cv-border); padding-left: 14px; }
@media (max-width: 560px) {
    /* Name and city fields stack on phones; the button spans the width. */
    .cv-search__field { flex-wrap: wrap; border-radius: var(--cv-radius); }
    .cv-search__field > .fa { display: none; }
    .cv-search__input { flex: 1 1 100%; padding: 0 12px; }
    /* The city field shares its row with the location button. */
    .cv-search__input[data-cv-city] { flex: 1 1 0; border-left: 0; border-top: 1px solid var(--cv-border); padding-left: 12px; }
    .cv-search__field .cv-btn { flex: 1 1 100%; border-radius: var(--cv-radius-sm); }
}
.cv-search__locate {
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--cv-muted);
    font-size: 18px;
    cursor: pointer;
}
.cv-search__locate:hover { background: var(--cv-surface-2); color: var(--cv-primary); }
.cv-search__locate[hidden] { display: none; }
/* Drawn in CSS so it takes each theme's primary colour. */
.cv-search__spinner {
    display: none;
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0 4px;
    border: 3px solid color-mix(in srgb, var(--cv-primary) 20%, transparent);
    border-top-color: var(--cv-primary);
    border-radius: 50%;
    animation: cv-spin .7s linear infinite;
}
.cv-search__spinner.is-active { display: block; }
@keyframes cv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cv-search__spinner { animation-duration: 2s; } }
.cv-search__results {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 8px);
    z-index: 60;
    max-height: 360px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    color: var(--cv-text);
    box-shadow: var(--cv-shadow-hover);
}
.cv-search__results[hidden] { display: none; }
.cv-search__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--cv-radius-sm);
    cursor: pointer;
    font-size: 15px;
    line-height: 1.35;
}
.cv-search__option img, .cv-search__initials { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--cv-surface-2); }
.cv-search__initials { display: inline-flex; align-items: center; justify-content: center; color: var(--cv-primary); font-size: 12px; font-weight: 700; }
.cv-search__option small { display: block; color: var(--cv-muted); }
.cv-search__option[aria-selected="true"], .cv-search__option:hover { background: var(--cv-surface-2); }

/* ---------- Buttons ---------- */

.cv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--cv-radius-pill);
    background: var(--cv-primary);
    color: var(--cv-primary-contrast) !important;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cv-btn:hover { background: var(--cv-primary-strong); }
.cv-btn:active { transform: translateY(1px); }
.cv-btn--accent { background: var(--cv-accent); color: var(--cv-accent-contrast) !important; }
.cv-btn--accent:hover { background: var(--cv-accent); filter: brightness(.95); }
.cv-btn--ghost { background: transparent; border-color: var(--cv-border); color: var(--cv-text) !important; }
.cv-btn--ghost:hover { background: var(--cv-surface-2); }
.cv-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* ---------- Breadcrumbs and page heads ---------- */

.cv-crumbs { margin: 22px 0 4px; font-size: 14px; color: var(--cv-muted); }
.cv-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.cv-crumbs li { display: inline-flex; align-items: center; }
.cv-crumbs li + li::before { content: "\203A"; margin: 0 8px; opacity: .55; }
.cv-crumbs a { color: var(--cv-muted); }
.cv-crumbs [aria-current] { color: var(--cv-text); font-weight: 600; }

.cv-pagehead { margin: 10px 0 26px; }
.cv-pagehead h1 { margin-bottom: 10px; }
.cv-pagehead__lead { max-width: 75ch; color: var(--cv-muted); font-size: 17px; }

/* ---------- Ads ---------- */

/* Full width even as a flex item (listing sidebar): AdSense rejects 0px-wide slots. */
.cv-ad { width: 100%; margin: 26px 0; text-align: center; overflow: hidden; }
/* Wrappers whose ad partial rendered no markup (ads off for the page). The
   video slot starts empty and is filled by its script, so it stays visible. */
.cv-ad:not(#vi_ai):not(:has(*)) { display: none; }
.cv-ad--tall { min-height: 280px; }

/* ---------- Tiles, chips, letters ---------- */

.cv-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* Phones: two place tiles per row rather than one long column. */
@media (max-width: 560px) { .cv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.cv-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
    min-height: 56px;
    padding: 12px 16px;
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius-sm);
    background: var(--cv-surface);
    color: var(--cv-text) !important;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cv-tile:hover { border-color: var(--cv-primary); box-shadow: var(--cv-shadow); transform: translateY(-1px); }
.cv-tile small, .cv-count { color: var(--cv-muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.cv-tile--strong { border-color: var(--cv-primary); }
.cv-tile.is-active { background: var(--cv-primary); border-color: var(--cv-primary); color: var(--cv-primary-contrast) !important; }
.cv-tile.is-active small { color: inherit; }
.cv-tile--static { color: var(--cv-muted) !important; }
.cv-tile--static:hover { border-color: var(--cv-border); box-shadow: none; transform: none; }

.cv-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cv-category {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 14px 18px;
    border: var(--cv-card-border);
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    box-shadow: var(--cv-shadow);
    color: var(--cv-text) !important;
    font-family: var(--cv-font-display);
    font-size: 18px;
    font-weight: var(--cv-display-weight);
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
.cv-category:hover { transform: translateY(-2px); box-shadow: var(--cv-shadow-hover); }
.cv-category__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--cv-primary);
    color: var(--cv-primary-contrast);
    font-size: 18px;
}

/* ---------- City page ---------- */

/* Title on the left, the city's numbers on the right. */
.cv-townhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.cv-townhead__text { flex: 1 1 420px; min-width: 0; }
.cv-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cv-stats > div {
    min-width: 108px;
    padding: 10px 16px;
    border: var(--cv-card-border);
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    box-shadow: var(--cv-shadow);
}
.cv-stats dt { color: var(--cv-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cv-stats dd { margin: 2px 0 0; font-family: var(--cv-font-display); font-size: 24px; font-weight: var(--cv-display-weight); line-height: 1.2; }
.cv-stats dd a { color: inherit !important; text-decoration: none !important; }

/* Most-listed categories: name first, count beneath. */
.cv-category-grid--popular { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.cv-category__text { display: flex; flex-direction: column; min-width: 0; }
.cv-category__count { color: var(--cv-muted); font-family: var(--cv-font-body); font-size: 13px; font-weight: 600; }

/* Every category, A to Z, in newspaper columns with a type-to-filter box. */
.cv-catlist__head { flex-wrap: wrap; gap: 12px; }
.cv-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius-pill);
    background: var(--cv-surface);
    color: var(--cv-muted);
}
.cv-filter:focus-within { border-color: var(--cv-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cv-primary) 20%, transparent); }
.cv-filter input { width: min(240px, 60vw); height: 40px; border: 0; background: transparent; color: var(--cv-text); font: inherit; }
.cv-filter input:focus, body.cv-native .cv-filter input:focus-visible { outline: none; }
.cv-catlist { columns: 4 210px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.cv-catlist li { break-inside: avoid; }
.cv-catlist li[hidden] { display: none; }
.cv-catlist a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--cv-border);
    color: var(--cv-text) !important;
    text-decoration: none !important;
}
.cv-catlist a:hover { color: var(--cv-primary) !important; }
.cv-catlist .cv-count { flex: none; color: var(--cv-muted); font-size: 13px; }
.cv-catlist__empty { margin: 8px 0 0; }
.cv-catlist__more { display: none; margin-top: 14px; }
@media (max-width: 720px) {
    /* Phones: two popular cards per row, and the A to Z list starts with 12 entries. */
    .cv-category-grid--popular { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cv-category-grid--popular .cv-category { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 12px 14px; font-size: 15px; }
    [data-cv-filter-list]:not(.is-expanded) .cv-catlist li:nth-child(n+13) { display: none; }
    [data-cv-filter-list]:not(.is-expanded) .cv-catlist__more { display: inline-flex; }
}

/* ---------- Home page ---------- */

.cv-section__context { color: var(--cv-muted); font-weight: inherit; }
/* City areas and nearby towns side by side when both exist. */
.cv-places--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 36px); }
.cv-places--pair .cv-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
@media (max-width: 860px) { .cv-places--pair { grid-template-columns: minmax(0, 1fr); } }
.cv-explore {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 20px clamp(18px, 3vw, 28px);
    border: var(--cv-card-border);
    border-radius: var(--cv-radius);
    background: var(--cv-surface-2);
}
.cv-explore h2 { margin: 0 !important; font-size: 20px !important; }
.cv-explore__links { display: flex; flex-wrap: wrap; gap: 10px; }

/* The map gets the wider column beside the city summary. */
.cv-split.cv-split--map { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 860px) { .cv-split.cv-split--map { grid-template-columns: minmax(0, 1fr); } }

.cv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 7px 14px;
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius-pill);
    background: var(--cv-surface);
    color: var(--cv-text) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}
.cv-chip:hover { border-color: var(--cv-primary); color: var(--cv-primary) !important; }
.cv-chip .cv-count { font-size: 12px; }
/* Phones: long category and street lists become one swipeable row so results start sooner. */
@media (max-width: 560px) {
    .cv-chips--scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: calc(var(--cv-gutter) * -1);
        padding: 2px var(--cv-gutter) 8px 0;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent);
    }
    .cv-chips--scroll::-webkit-scrollbar { display: none; }
    .cv-chips--scroll li { flex: none; scroll-snap-align: start; }
    .cv-chips--scroll .cv-chip { white-space: nowrap; }
}

/* Wide screens: every letter shares one row. Narrower: an even grid of tappable 40px cells. */
.cv-letters { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.cv-letters li { flex: 1 1 0; min-width: 0; }
@media (max-width: 900px) {
    .cv-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
}
.cv-letters a, .cv-letters span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius-sm);
    background: var(--cv-surface);
    color: var(--cv-text) !important;
    font-weight: 700;
    text-decoration: none !important;
}
.cv-letters a:hover { border-color: var(--cv-primary); }
.cv-letters [aria-current] { background: var(--cv-primary); border-color: var(--cv-primary); color: var(--cv-primary-contrast) !important; }

.cv-more { margin-top: 12px; }
.cv-more > summary { display: inline-flex; min-height: 44px; align-items: center; cursor: pointer; color: var(--cv-link); font-weight: 700; }

/* ---------- Listing cards ---------- */

.cv-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cv-cards--list { grid-template-columns: 1fr; gap: 12px; }
.cv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 18px;
    border: var(--cv-card-border);
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    box-shadow: var(--cv-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.cv-card:hover { transform: translateY(-2px); box-shadow: var(--cv-shadow-hover); }
/* Top-aligned so photos stay put when names wrap to several lines. */
.cv-card__top { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.cv-card__media {
    position: relative;
    flex: none;
    width: var(--cv-card-media);
    height: var(--cv-card-media);
    border-radius: var(--cv-radius-sm);
    background: var(--cv-surface-2);
    overflow: hidden;
}
.cv-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cv-card__key {
    position: absolute;
    left: 4px; top: 4px;
    min-width: 20px;
    padding: 1px 5px;
    border-radius: 6px;
    background: var(--cv-primary);
    color: var(--cv-primary-contrast);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.cv-card__title { min-width: 0; margin: 0 !important; font-size: 18px !important; line-height: 1.3 !important; }
.cv-card__title a { color: var(--cv-text) !important; text-decoration: none !important; }
.cv-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--cv-radius); }
.cv-card__title a:focus-visible { outline: none; }
.cv-card__title a:focus-visible::after { outline: 3px solid var(--cv-focus); outline-offset: 2px; }
/* min-width: 0 lets the text column shrink inside the flex row instead of overflowing the card. */
.cv-card__top > div:last-child { flex: 1 1 auto; min-width: 0; }
/* Some listings carry long comma-separated area lists with no spaces; wrap them and stop at two lines. */
.cv-card__address {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 2px 0 0;
    color: var(--cv-muted);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.cv-card__title { overflow-wrap: anywhere; }
.cv-card__address .fa { margin-right: 4px; }
.cv-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: var(--cv-muted);
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.cv-card__excerpt:empty { display: none; }
.cv-card__more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--cv-link); }
.cv-card__admin { position: relative; z-index: 2; font-size: 12px; }
.cv-card--featured { border: 2px solid var(--cv-accent); }
.cv-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--cv-radius-pill);
    background: var(--cv-accent);
    color: var(--cv-accent-contrast);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.cv-cards--list .cv-card { flex-direction: row; align-items: center; flex-wrap: wrap; }
.cv-cards--list .cv-card__top { flex: 1 1 320px; }
.cv-cards--list .cv-card__excerpt { flex: 2 1 360px; -webkit-line-clamp: 2; }
.cv-cards--list .cv-card__more { margin-top: 0; }

.cv-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding: 22px;
    border: 2px dashed var(--cv-accent);
    border-radius: var(--cv-radius);
    background: color-mix(in srgb, var(--cv-accent) 8%, var(--cv-surface));
}
.cv-cta p { margin: 0; font-weight: 600; }
.cv-cta .cv-btn { max-width: 100%; text-align: center; }
@media (max-width: 560px) { .cv-cta .cv-btn { align-self: stretch; border-radius: var(--cv-radius-sm); } }

/* ---------- Map ---------- */

/* isolation keeps Leaflet's pane and control z-indexes (400-1000) inside the map,
   so the search suggestions above it are never covered. */
.cv-map {
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--cv-radius);
    background: var(--cv-surface-2);
    box-shadow: var(--cv-shadow);
}
.cv-map #map { width: 100%; height: clamp(260px, 42vw, 420px); }
.cv-map--short #map { height: 260px; }
#nearby-search-status { margin: 8px 0; font-size: 14px; }

.cv-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(20px, 4vw, 44px);
    align-items: start;
}
@media (max-width: 860px) { .cv-split { grid-template-columns: minmax(0, 1fr); } }
.cv-panel {
    padding: clamp(18px, 3vw, 28px);
    border: var(--cv-card-border);
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    box-shadow: var(--cv-shadow);
}
.cv-panel > h2, .cv-panel > h3 { margin-top: 0; }
.cv-panel + .cv-panel { margin-top: 18px; }

/* ---------- Pagination ---------- */

.cv-pager { margin: 32px 0; }
.cv-pager__status { margin-bottom: 10px; color: var(--cv-muted); font-size: 14px; }
.cv-pager ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cv-pager a, .cv-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius-sm);
    background: var(--cv-surface);
    color: var(--cv-text) !important;
    font-weight: 600;
    text-decoration: none !important;
}
.cv-pager a:hover { border-color: var(--cv-primary); }
.cv-pager [aria-current] { background: var(--cv-primary); border-color: var(--cv-primary); color: var(--cv-primary-contrast) !important; }
.cv-pager .cv-pager__gap { border: 0; background: transparent; min-width: 20px; }

/* ---------- Listing detail ---------- */

.cv-listing-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(16px, 3vw, 32px);
    align-items: center;
    margin: 14px 0 22px;
}
.cv-listing-head__media {
    width: clamp(96px, 16vw, 168px);
    aspect-ratio: 1;
    border-radius: var(--cv-radius);
    background: var(--cv-surface-2);
    box-shadow: var(--cv-shadow);
    overflow: hidden;
}
.cv-listing-head__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.cv-native .cv-listing-head h1 { margin-bottom: 8px; overflow-wrap: anywhere; }
.cv-listing-head__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--cv-muted); font-size: 15px; }
.cv-listing-head__meta .fa { margin-right: 4px; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.cv-listing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
}
.cv-listing__aside { display: flex; flex-direction: column; gap: 18px; }
.cv-listing__aside .cv-panel + .cv-panel { margin-top: 0; }
/* Listings without posts: nearby and related lists fill the main column, two per row. */
.cv-listing__related { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.cv-listing__related .cv-panel + .cv-panel { margin-top: 0; }
.cv-listing__related .cv-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 4px 12px; }
@media (max-width: 900px) {
    /* One column on phones: contact details and actions come before the browsing lists. */
    .cv-listing:has(.cv-listing__related) .cv-listing__main { display: contents; }
    .cv-listing__related { order: 1; margin-top: 0; }
}
@media (max-width: 900px) {
    .cv-listing { grid-template-columns: minmax(0, 1fr); }
    .cv-listing-head { grid-template-columns: minmax(0, 1fr); }
}
.cv-description { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.cv-facts { margin: 0; }
.cv-facts > div { padding: 12px 0; border-top: 1px solid var(--cv-border); }
.cv-facts > div:first-child { border-top: 0; padding-top: 0; }
.cv-facts dt { margin-bottom: 4px; color: var(--cv-muted); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cv-facts dd { margin: 0; overflow-wrap: anywhere; }
.cv-hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.cv-hours td { padding: 5px 0; border-bottom: 1px solid var(--cv-border); vertical-align: top; }
.cv-hours td + td { text-align: right; }
.cv-posts { columns: 2 280px; column-gap: 18px; }
.cv-post {
    display: inline-block;
    width: 100%;
    margin: 0 0 18px;
    padding: 16px;
    break-inside: avoid;
    border: var(--cv-card-border);
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    box-shadow: var(--cv-shadow);
    overflow-wrap: anywhere;
}
.cv-post img { display: block; height: auto; margin: 0 auto 10px; border-radius: var(--cv-radius-sm); cursor: zoom-in; }
.cv-post .fb-video, .cv-post .fb-video-lazy { display: block; width: 100%; margin-bottom: 10px; }
.cv-post .fb-video span, .cv-post .fb-video iframe { max-width: 100% !important; }
/* Facebook's "Video Unavailable" notice (see item/index.volt): the post keeps its date and text. */
.cv-post .fb-video.is-unavailable { display: none; }
.cv-post em { display: block; margin-bottom: 6px; color: var(--cv-muted); font-size: 13px; font-style: normal; }
.cv-post.cv-post--ad { min-height: 250px; padding: 8px; text-align: center; }
.cv-mini { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cv-mini a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--cv-radius-sm); color: var(--cv-text) !important; text-decoration: none !important; }
.cv-mini a:hover { background: var(--cv-surface-2); }
.cv-mini img { flex: none; width: 48px; height: 48px; border-radius: var(--cv-radius-sm); object-fit: cover; background: var(--cv-surface-2); }
.cv-mini strong { display: block; font-size: 15px; line-height: 1.3; }
.cv-mini small { display: block; color: var(--cv-muted); font-size: 13px; line-height: 1.3; }
.cv-mini--featured a { background: color-mix(in srgb, var(--cv-accent) 14%, var(--cv-surface)); }
.cv-share > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-share br { display: none; }
.cv-share img { width: 40px !important; height: 40px !important; margin: 0 !important; }
.cv-quote { margin: 0 0 12px; padding: 12px 14px; border-left: 3px solid var(--cv-accent); background: var(--cv-surface-2); border-radius: 0 var(--cv-radius-sm) var(--cv-radius-sm) 0; }
.cv-owner-bar {
    position: fixed;
    z-index: 10000;
    left: 0; right: 0; top: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, .87);
}
#largeImgPanel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
    cursor: zoom-out;
}
#largeImgPanel[style*="block"] { display: flex !important; }
#largeImgPanel img { max-width: 94vw; max-height: 94vh; }
.cv-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--cv-radius); }
.cv-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Prose pages and forms ---------- */

.cv-prose { max-width: 820px; margin: 0 auto var(--cv-section-gap); font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
/* Bare URLs in copy (FAQ answers, about text) must wrap on phones. */
.cv-prose a { overflow-wrap: anywhere; }
.cv-prose h1 { font-size: clamp(26px, 3.4vw, 36px) !important; margin-top: 1.4em !important; }
.cv-prose h2, .cv-prose h3 { margin-top: 1.6em !important; }
.cv-prose img { height: auto; border-radius: var(--cv-radius-sm); }
.cv-prose img[style*="float:right"] { margin: 0 0 16px 24px; }
.cv-prose section, .cv-prose .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.cv-prose--inherited .headerrow:first-of-type { display: none; }
.cv-panel.cv-prose { margin: 0 0 18px; font-size: 16px; }
.cv-panel.cv-prose img { max-width: 40%; }
.cv-faq { display: flex; flex-direction: column; gap: 12px; }
.cv-faq details { padding: 4px 20px; border: var(--cv-card-border); border-radius: var(--cv-radius); background: var(--cv-surface); box-shadow: var(--cv-shadow); }
.cv-faq summary { display: flex; min-height: 56px; align-items: center; cursor: pointer; font-family: var(--cv-font-display); font-size: 18px; font-weight: var(--cv-display-weight); }
.cv-faq details[open] summary { color: var(--cv-primary); }

.cv-form { display: grid; gap: 16px; max-width: 620px; }
.cv-form label { display: block; margin-bottom: 6px; font-weight: 700; }
body.cv-native .form-control,
.cv-form input[type="text"], .cv-form input[type="email"], .cv-form textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius-sm);
    background: var(--cv-surface);
    color: var(--cv-text);
    font: inherit;
}
body.cv-native .form-control:focus, .cv-form input:focus, .cv-form textarea:focus {
    border-color: var(--cv-primary);
    outline: 3px solid color-mix(in srgb, var(--cv-primary) 25%, transparent);
}

/* ---------- Featured placement pages ---------- */

.cv-feature { max-width: 760px; margin: 0 auto var(--cv-section-gap); text-align: center; }
.cv-feature__head { margin: 18px 0 22px; }
.cv-feature__head .cv-badge { margin-bottom: 14px; }
body.cv-native .cv-feature__head h1 { margin: 6px 0 0; }
.cv-feature__pitch { margin: 0 auto 18px; text-align: left; }
.cv-feature__slots { margin: 0 0 22px; font-size: 18px; }
.cv-feature__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    margin-left: 8px;
    padding: 0 10px;
    border-radius: var(--cv-radius-pill);
    background: var(--cv-accent);
    color: var(--cv-accent-contrast);
    font-weight: 800;
}
.cv-feature__trial {
    display: inline-block;
    margin: 0 0 22px;
    padding: 10px 18px;
    border: 1px dashed var(--cv-accent);
    border-radius: var(--cv-radius-pill);
    background: color-mix(in srgb, var(--cv-accent) 12%, var(--cv-surface));
    font-weight: 700;
}
.cv-feature__form, .cv-feature__result, .cv-feature__upsell { text-align: left; }
.cv-feature__picker { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-feature__field { position: relative; flex: 1 1 260px; }
.cv-feature__field .form-control { width: 100%; }
.cv-feature__field .cv-search__results { top: calc(100% + 4px); max-height: 300px; }
.cv-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--cv-primary);
    color: var(--cv-primary-contrast);
    font-size: 28px;
}
.cv-feature--failed .cv-feature__icon { background: #b42318; }
.cv-feature--pending .cv-feature__icon { background: var(--cv-accent); color: var(--cv-accent-contrast); }

/* ---------- Inherited geosite2 pages (Bootstrap) in the Canvas01 chrome ---------- */
/* Checkout and other inherited views keep their markup; this matches their type and controls. */

.cv-legacy-body { font-family: var(--cv-font-body); color: var(--cv-text); }
.cv-legacy-body .row.breadcrumb { margin: 0 0 8px; padding: 0; background: transparent; font-size: 14px; color: var(--cv-muted); }
.cv-legacy-body .row.breadcrumb a { color: var(--cv-muted); }
.cv-legacy-body .headerrow h1, .cv-legacy-body .headerrow h2 {
    margin: 10px 0 18px;
    font-family: var(--cv-font-display);
    font-weight: var(--cv-display-weight);
    color: var(--cv-text);
}
.cv-legacy-body h3, .cv-legacy-body h4 { font-family: var(--cv-font-display); color: var(--cv-text); }
.cv-legacy-body a { color: var(--cv-link); }
.cv-legacy-body .aboutrow { font-size: 16px; line-height: 1.7; }
.cv-legacy-body .btn {
    border-radius: var(--cv-radius-pill);
    font-weight: 700;
    padding-left: 20px;
    padding-right: 20px;
}
.cv-legacy-body .btn-primary, .cv-legacy-body .btn-success, .cv-legacy-body .btn-info {
    border-color: var(--cv-primary);
    background: var(--cv-primary);
    color: var(--cv-primary-contrast);
}
.cv-legacy-body .btn-primary:hover, .cv-legacy-body .btn-success:hover, .cv-legacy-body .btn-info:hover {
    border-color: var(--cv-primary-strong);
    background: var(--cv-primary-strong);
    color: var(--cv-primary-contrast);
}
.cv-legacy-body .btn-warning { border-color: var(--cv-accent); background: var(--cv-accent); color: var(--cv-accent-contrast); }
.cv-legacy-body .form-control {
    height: auto;
    min-height: 44px;
    border-color: var(--cv-border);
    border-radius: var(--cv-radius-sm);
    box-shadow: none;
}
.cv-legacy-body .form-control:focus { border-color: var(--cv-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cv-primary) 22%, transparent); }
.cv-legacy-body .ppbox, .cv-legacy-body .panel, .cv-legacy-body .well {
    border: var(--cv-card-border);
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    box-shadow: var(--cv-shadow);
}
.cv-legacy-body table.table { background: var(--cv-surface); }
.cv-legacy-body sl-select::part(combobox) { border-radius: var(--cv-radius-sm); }
.cv-legacy-body h2 { font-family: var(--cv-font-display); font-weight: var(--cv-display-weight); color: inherit; }

/* Articles: stored HTML, set as a reading column. */
.cv-page-article .cv-legacy-body > .container-fluid {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 44px);
    border: var(--cv-card-border);
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    box-shadow: var(--cv-shadow);
    font-size: 17px;
    line-height: 1.75;
}
.cv-page-article .cv-legacy-body h1,
.cv-page-article .cv-legacy-body h2,
.cv-page-article .cv-legacy-body h3,
.cv-page-article .cv-legacy-body h4 {
    font-family: var(--cv-font-display);
    font-weight: var(--cv-display-weight);
    letter-spacing: var(--cv-display-tracking);
    line-height: 1.25;
    color: var(--cv-text);
}
.cv-page-article .cv-legacy-body h1 { margin: 0 0 20px; font-size: clamp(28px, 4.2vw, 40px); }
.cv-page-article .cv-legacy-body h2 { margin: 40px 0 12px; font-size: clamp(22px, 3vw, 28px); }
.cv-page-article .cv-legacy-body h3 { margin: 28px 0 8px; font-size: 20px; }
.cv-page-article .cv-legacy-body p { margin: 0 0 16px; font-size: inherit; line-height: inherit; }
.cv-page-article .cv-legacy-body h1 + p { font-size: 19px; color: var(--cv-muted); }
.cv-page-article .cv-legacy-body ul, .cv-page-article .cv-legacy-body ol { margin: 0 0 18px; padding-left: 1.4em; }
.cv-page-article .cv-legacy-body li { margin-bottom: 6px; }
.cv-page-article .cv-legacy-body a { text-decoration: underline; text-underline-offset: 2px; }
.cv-page-article .cv-legacy-body img { max-width: 100%; height: auto; border-radius: var(--cv-radius-sm); }
.cv-page-article .cv-legacy-body table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 15px; }
.cv-page-article .cv-legacy-body th, .cv-page-article .cv-legacy-body td { padding: 8px 10px; border: 1px solid var(--cv-border); text-align: left; }
.cv-page-article .cv-legacy-body th { background: var(--cv-surface-2); }
.cv-page-article .cv-legacy-body blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 4px solid var(--cv-accent); color: var(--cv-muted); }

/* Featured checkout (feature/payment). Its markup carries inline styles, hence !important. */
.cv-legacy-body .wrap, .cv-legacy-body .wrap2 {
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--cv-border) !important;
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    box-shadow: var(--cv-shadow-hover);
}
.cv-legacy-body .feature-points {
    display: grid;
    gap: 12px;
    max-width: 760px;
    margin: 24px auto;
    padding: 24px 28px;
    list-style: none;
    border: var(--cv-card-border);
    border-radius: var(--cv-radius);
    background: var(--cv-surface);
    box-shadow: var(--cv-shadow);
    text-align: left;
    font-size: 17px !important;
    line-height: 1.55 !important;
}
.cv-legacy-body .feature-points br { display: none; }
.cv-legacy-body .feature-points li { margin: 0; }
/* The legacy markup wraps each point's text in the icon element. */
.cv-legacy-body .feature-points i.fa {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-family: var(--cv-font-body);
    font-size: inherit;
    font-style: normal;
    line-height: inherit;
    color: var(--cv-text);
}
.cv-legacy-body .feature-points i.fa::before {
    content: "\f00c";
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cv-primary) 14%, var(--cv-surface));
    color: var(--cv-primary);
    font-family: FontAwesome;
    font-size: 13px;
}
.cv-legacy-body .feature-trial {
    display: inline-block;
    border: 0 !important;
    border-radius: var(--cv-radius-pill) !important;
    background: color-mix(in srgb, var(--cv-accent) 22%, var(--cv-surface)) !important;
    color: var(--cv-text);
}
.cv-legacy-body .feature-slots-count, .cv-legacy-body .feature-pay-box .g-color-red { color: #b42318 !important; font-weight: 700; }
.cv-legacy-body .feature-pay-box, .cv-legacy-body .feature-pay-note {
    border: var(--cv-card-border) !important;
    border-radius: var(--cv-radius) !important;
    background: var(--cv-surface) !important;
    color: var(--cv-text) !important;
    box-shadow: var(--cv-shadow);
}
.cv-legacy-body .feature-pay-box { border-top: 4px solid var(--cv-primary) !important; }
.cv-legacy-body .feature-pay-box td[style*="dotted"] {
    border: 1px solid var(--cv-border) !important;
    border-radius: var(--cv-radius) !important;
    background: var(--cv-surface-2);
}
.cv-legacy-body .feature-bonus { color: var(--cv-primary) !important; text-shadow: none !important; }
.cv-legacy-body .feature-best-value { color: #b42318 !important; }
.cv-legacy-body .feature-pricing-table { color: var(--cv-text); }
.cv-legacy-body .feature-pricing-table th { background: var(--cv-surface-2); }
.cv-legacy-body .feature-pricing-table th:first-child, .cv-legacy-body .feature-pricing-table td:first-child { text-align: left; }
.cv-legacy-body .feature-pricing-table th, .cv-legacy-body .feature-pricing-table td { border-color: var(--cv-border) !important; }
.cv-legacy-body .feature-pricing-discount, .cv-legacy-body .feature-pricing-current-price { color: var(--cv-primary) !important; }
.cv-legacy-body .feature-pricing-original-price { color: var(--cv-muted); }

/* ---------- Status pages ---------- */

.cv-status { max-width: 640px; margin: var(--cv-section-gap) auto; text-align: center; }
.cv-status__code { font-family: var(--cv-font-display); font-size: clamp(64px, 14vw, 120px); font-weight: var(--cv-display-weight); line-height: 1; color: var(--cv-primary); }

/* ---------- Footer ---------- */

.cv-footer {
    margin-top: var(--cv-section-gap);
    padding: 44px 0 30px;
    background: var(--cv-footer-bg);
    color: var(--cv-footer-text);
    font-family: var(--cv-font-body);
    font-size: 15px;
    line-height: 1.6;
}
.cv-footer a { color: var(--cv-footer-text) !important; }
.cv-footer a:hover { color: var(--cv-footer-heading) !important; }
.cv-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px; }
.cv-footer__brand strong { display: block; margin-bottom: 6px; color: var(--cv-footer-heading); font-family: var(--cv-font-display); font-size: 22px; }
.cv-footer__brand p { max-width: 38ch; margin: 0; }
.cv-footer h2 { margin: 0 0 10px !important; color: var(--cv-footer-heading) !important; font-family: var(--cv-font-body) !important; font-size: 13px !important; letter-spacing: .1em !important; text-transform: uppercase; }
.cv-footer ul { margin: 0; padding: 0; list-style: none; }
.cv-footer li { margin: 0 0 6px; }
/* The Zillow badge is drawn for a light page; a small light plate keeps it legible on the dark footer. */
.cv-footer__attribution { margin: 14px 0 0; }
.cv-footer__attribution img { display: block; padding: 5px 8px; border-radius: var(--cv-radius-sm); background: #ffffff; }
.cv-footer__legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; opacity: .8; }
@media (max-width: 720px) { .cv-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bootstrap compatibility for shared partials (native pages) ---------- */

body.cv-native .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius-pill);
    background: var(--cv-surface);
    color: var(--cv-text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
body.cv-native .btn:hover { border-color: var(--cv-primary); text-decoration: none; }
body.cv-native .btn-primary, body.cv-native .btn-info, body.cv-native .btn-success {
    border-color: var(--cv-primary); background: var(--cv-primary); color: var(--cv-primary-contrast);
}
body.cv-native .btn-warning { border-color: var(--cv-accent); background: var(--cv-accent); color: var(--cv-accent-contrast); }
body.cv-native .btn-danger { border-color: #b42318; background: #b42318; color: #fff; }
body.cv-native .btn-sm, body.cv-native .btn-xs { min-height: 36px; padding: 6px 12px; font-size: 14px; }
body.cv-native .btn[disabled] { opacity: .55; cursor: not-allowed; }
body.cv-native .row { display: flex; flex-wrap: wrap; }
body.cv-native .row > [class*="col-"] { flex: 1 1 100%; min-width: 0; }
body.cv-native .form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.cv-native .form-inline .form-group { flex: 1 1 240px; }
body.cv-native .listing-subscribe-row { margin: var(--cv-section-gap) 0 0; padding: 24px; border-radius: var(--cv-radius); background: var(--cv-surface); box-shadow: var(--cv-shadow); }
body.cv-native .listing-subscribe-row h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 20px; }
body.cv-native .listing-subscribe-row h3::before {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cv-primary) 12%, var(--cv-surface));
    color: var(--cv-primary);
    font-family: FontAwesome;
    font-size: 16px;
    font-weight: normal;
}
/* Alerts for this listing (in the page) and updates for the whole town (above the footer)
   share markup; an icon and a different surface keep them from reading as a duplicate. */
body.cv-native #alerts h3::before { content: "\f0f3"; }
body.cv-native .cv-main > .cv-wrap > .listing-subscribe-row:not(#alerts) {
    border: 1px solid color-mix(in srgb, var(--cv-primary) 16%, var(--cv-border));
    background: color-mix(in srgb, var(--cv-primary) 5%, var(--cv-surface));
    box-shadow: none;
}
body.cv-native .listing-subscribe-row:not(#alerts) h3::before { content: "\f0e0"; }
@media (min-width: 861px) {
    body.cv-native .listing-subscribe-row > [class*="col-"] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 32px;
        align-items: center;
    }
    body.cv-native .listing-subscribe-row form { grid-column: 2; grid-row: 1 / span 2; }
    body.cv-native .listing-subscribe-row p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cv-card, .cv-tile, .cv-category, .cv-btn, .cv-nav a { transition: none; }
    .cv-card:hover, .cv-tile:hover, .cv-category:hover { transform: none; }
}

/* ---------- Rules shared partials expect from common.css ---------- */
/* Native pages do not load the legacy bundle, so these come along. */

/* Listing photo markers drawn by partials/map (Leaflet divIcon). */
.my-div-icon {
    width: 24px !important;
    height: 24px !important;
    padding-top: 2px;
    border: 1px solid #000;
    border-radius: 14px;
    background-color: #fbb;
    text-align: center;
}
.my-div-span { font-weight: 700; }
/* Closure notice on listings. */
p.temp_status { padding: 5px; border: 1px dotted #000; font-weight: 700; text-align: center; }
/* Spaces Helpers::insertSpaces adds between run-together words. */
._t { margin-left: -3px; }
