:root {
    --crc-app-accent: #ff4d00;
    --crc-app-accent-dark: #c93d00;
    --crc-app-ink: #111827;
    --crc-app-muted: #64748b;
    --crc-app-surface: #fff;
    --crc-app-border: #e5e7eb;
    --crc-app-shadow: 0 16px 44px rgba(15, 23, 42, .18);
    --crc-site-header-height: 0px;
    --crc-app-offset: var(--crc-site-header-height);
    --crc-bottomnav-height: 64px;
    --crc-globalnav-height: 0px;
    --crc-context-safe-area: env(safe-area-inset-bottom);
}

body.crc-calendar-modal-open { overflow: hidden; }

.crc-calendar-app,
.crc-calendar-app * { box-sizing: border-box; }

.crc-calendar-app [hidden] { display: none !important; }

.crc-calendar-app {
    position: relative;
    width: 100%;
    height: calc(100dvh - var(--crc-app-offset));
    min-height: 620px;
    overflow: hidden;
    background: #dbe4e8;
    color: var(--crc-app-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    isolation: isolate;
}

.crc-calendar-app .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.crc-calendar-app button,
.crc-calendar-app input,
.crc-calendar-app select { font: inherit; }

.crc-calendar-app button { min-height: 44px; cursor: pointer; }

.crc-calendar-app__map { position: absolute; inset: 0; z-index: 1; }
.crc-calendar-app.is-setting-pin .crc-calendar-app__map { cursor: crosshair; }

/* Do not draw grid-like borders or outlines around Leaflet map tiles. */
.crc-calendar-app__map .leaflet-tile {
    border: none !important;
    outline: none !important;
}

.crc-calendar-app__toolbar {
    position: absolute;
    z-index: 500;
    top: 18px;
    left: 438px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.crc-calendar-app__toolbar > * { pointer-events: auto; }

.crc-calendar-search {
    display: flex;
    align-items: center;
    flex: 1 1 420px;
    max-width: 640px;
    height: 52px;
    padding-left: 16px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 28px rgba(15, 23, 42, .14);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.crc-calendar-search > span { color: var(--crc-app-muted); font-size: 24px; }
.crc-calendar-search input { min-width: 0; flex: 1; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--crc-app-ink); }
.crc-calendar-search input:focus-visible { box-shadow: inset 0 -3px var(--crc-app-accent); }
.crc-calendar-search button { align-self: stretch; padding: 0 20px; border: 0; background: var(--crc-app-accent); color: white; font-weight: 750; }
.crc-calendar-search button:hover { background: var(--crc-app-accent-dark); }

.crc-calendar-app__logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 52px;
    color: var(--crc-app-ink);
    text-decoration: none;
}
.crc-calendar-app__logo img,
.crc-calendar-app__logo svg { display: block; height: 34px; width: auto; }
.crc-calendar-app__logo span { font-size: 15px; font-weight: 800; }
.crc-calendar-site-menu { display: none; }
.crc-calendar-bottomnav { display: none; }

.crc-calendar-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 52px;
    height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 28px rgba(15, 23, 42, .14);
    color: var(--crc-app-ink);
    font-weight: 700;
}
.crc-calendar-icon-button > svg { width: 20px; height: 20px; flex: 0 0 auto; }

.crc-calendar-filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--crc-app-accent);
    color: white;
    font-size: 12px;
}

.crc-calendar-favorite-notice {
    position: absolute;
    z-index: 720;
    top: 82px;
    right: 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    width: min(620px, calc(100% - 36px));
    padding: 13px 14px;
    color: #fff;
    background: rgba(17, 24, 39, .96);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 15px;
    box-shadow: var(--crc-app-shadow);
    backdrop-filter: blur(14px);
}
.crc-calendar-favorite-notice__icon { color: #fbbf24; font-size: 23px; }
.crc-calendar-favorite-notice div { display: grid; gap: 2px; min-width: 0; }
.crc-calendar-favorite-notice strong { font-size: .86rem; }
.crc-calendar-favorite-notice div span { color: rgba(255,255,255,.74); font-size: .74rem; line-height: 1.35; }
.crc-calendar-favorite-notice a { color: #fff; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.crc-calendar-favorite-notice__close { min-width: 36px !important; min-height: 36px !important; padding: 0; color: #fff; background: transparent; border: 0; font-size: 24px; }

.crc-calendar-chips {
    position: absolute;
    z-index: 490;
    top: 80px;
    left: 438px;
    right: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    pointer-events: none;
}

.crc-calendar-chips button {
    min-height: 36px;
    padding: 6px 11px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 999px;
    background: white;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .11);
    color: var(--crc-app-ink);
    pointer-events: auto;
}

.crc-calendar-results {
    position: absolute;
    z-index: 450;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: 420px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 10px 0 34px rgba(15, 23, 42, .15);
    transition: transform .25s ease;
}

.crc-calendar-results.is-closed { transform: translateX(-100%); }
.crc-calendar-app.are-results-closed .crc-calendar-app__toolbar,
.crc-calendar-app.are-results-closed .crc-calendar-chips { left: 18px; }
.crc-calendar-sheet-handle { display: none; }

.crc-calendar-results__header,
.crc-calendar-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--crc-app-border);
}

.crc-calendar-results__header strong { display: block; font-size: 18px; }
.crc-calendar-results__header span { display: block; margin-top: 2px; color: var(--crc-app-muted); font-size: 12px; }
.crc-calendar-close { width: 44px; padding: 0; border: 0; border-radius: 50%; background: #f1f5f9; color: var(--crc-app-ink); font-size: 25px; }

.crc-calendar-results__list { flex: 1; min-height: 0; padding: 12px; overflow: auto; overscroll-behavior: contain; }
.crc-calendar-load-more-wrap { padding: 10px 16px 16px; background: white; text-align: center; }

.crc-calendar-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 146px;
    margin-bottom: 11px;
    overflow: hidden;
    border: 1px solid var(--crc-app-border);
    border-radius: 13px;
    background: white;
    box-shadow: 0 2px 9px rgba(15, 23, 42, .06);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.crc-calendar-card:hover,
.crc-calendar-card:focus-visible,
.crc-calendar-card.is-selected { border-color: var(--crc-app-accent); box-shadow: 0 7px 22px rgba(255, 77, 0, .15); outline: 0; transform: translateY(-1px); }
.crc-calendar-card__image { position: relative; display: block; min-height: 100%; background: #e2e8f0; }
.crc-calendar-card__image img { width: 100%; height: 100%; min-height: 146px; object-fit: cover; }
.crc-calendar-featured { position: absolute; top: 8px; left: 8px; padding: 4px 7px; border-radius: 5px; background: var(--crc-app-accent); color: white; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.crc-calendar-card__body { min-width: 0; padding: 12px; }
.crc-calendar-card__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.crc-calendar-card__badges span { padding: 3px 6px; border-left: 3px solid var(--badge-color); border-radius: 3px; background: color-mix(in srgb, var(--badge-color) 12%, white); font-size: 10px; font-weight: 750; }
.crc-calendar-card h3 { margin: 7px 0; font-size: 16px; line-height: 1.2; }
.crc-calendar-card h3 a { color: var(--crc-app-ink); text-decoration: none; }
.crc-calendar-card dl { display: grid; gap: 3px; margin: 0; color: var(--crc-app-muted); font-size: 12px; }
.crc-calendar-card dl div { display: grid; grid-template-columns: 54px 1fr; gap: 5px; }
.crc-calendar-card dt { font-weight: 700; }
.crc-calendar-card dd { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crc-calendar-promo { margin-top: 7px; padding: 6px; border-radius: 5px; background: #fff7ed; color: #9a3412; font-size: 11px; }
.crc-calendar-card__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.crc-calendar-card__actions button { min-width: 38px; min-height: 38px; padding: 0; border: 1px solid var(--crc-app-border); border-radius: 50%; background: white; color: #94a3b8; }
.crc-calendar-card__actions button.is-favorite { border-color: var(--crc-app-accent); background: var(--crc-app-accent); color: white; }
.crc-calendar-card__actions a { color: var(--crc-app-accent); font-size: 12px; font-weight: 800; text-decoration: none; }

.crc-calendar-card--skeleton { pointer-events: none; }
.crc-calendar-card--skeleton > span,
.crc-calendar-card--skeleton i { display: block; background: linear-gradient(90deg, #e9eef2 25%, #f8fafc 50%, #e9eef2 75%); background-size: 200% 100%; animation: crc-calendar-shimmer 1.3s infinite; }
.crc-calendar-card--skeleton > span { min-height: 146px; }
.crc-calendar-card--skeleton > div { padding: 16px; }
.crc-calendar-card--skeleton i { height: 12px; margin-bottom: 13px; border-radius: 5px; }
.crc-calendar-card--skeleton i:first-child { width: 78%; height: 18px; }
@keyframes crc-calendar-shimmer { to { background-position: -200% 0; } }

.crc-calendar-empty { padding: 42px 18px; color: var(--crc-app-muted); text-align: center; }
.crc-calendar-primary { min-width: 160px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--crc-app-accent); color: white; font-weight: 800; }
.crc-calendar-primary:hover { background: var(--crc-app-accent-dark); }

.crc-calendar-backdrop { position: absolute; z-index: 800; inset: 0; background: rgba(15, 23, 42, .42); backdrop-filter: blur(2px); }
.crc-calendar-filters {
    position: absolute;
    z-index: 810;
    top: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    width: min(410px, calc(100% - 32px));
    overflow: hidden;
    border-radius: 18px;
    background: white;
    box-shadow: var(--crc-app-shadow);
}

.crc-calendar-filters h2 { margin: 0; font-size: 21px; }
.crc-calendar-filter-form { flex: 1; min-height: 0; padding: 16px 18px 24px; overflow: auto; }
.crc-calendar-filter-form fieldset { margin: 0 0 18px; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--crc-app-border); }
.crc-calendar-filter-form legend,
.crc-calendar-filter-form > label { display: block; margin-bottom: 9px; font-weight: 800; }
.crc-calendar-filter-form input[type="date"],
.crc-calendar-filter-form input[type="number"],
.crc-calendar-filter-form input[type="search"],
.crc-calendar-filter-form select { width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: var(--crc-app-ink); }
.crc-calendar-city-search { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.crc-calendar-city-search button { align-self: end; min-width: 68px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: var(--crc-app-ink); font-weight: 750; }
.crc-calendar-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crc-calendar-field-row label { color: var(--crc-app-muted); font-size: 13px; }
.crc-calendar-field-row--actions button,
.crc-calendar-filter-form__secondary button { padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: var(--crc-app-ink); }
.crc-calendar-type-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.crc-calendar-type-grid label { cursor: pointer; }
.crc-calendar-type-grid input { position: absolute; opacity: 0; pointer-events: none; }
.crc-calendar-type-grid span { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 10px; border: 1px solid #cbd5e1; border-left: 4px solid var(--crc-type-color); border-radius: 8px; }
.crc-calendar-type-grid input:checked + span { border-color: var(--crc-type-color); background: color-mix(in srgb, var(--crc-type-color) 12%, white); box-shadow: 0 0 0 2px color-mix(in srgb, var(--crc-type-color) 22%, transparent); }
.crc-calendar-switch { display: flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 12px; font-weight: 700; }
.crc-calendar-switch input { width: 21px; height: 21px; accent-color: var(--crc-app-accent); }
.crc-calendar-help { margin: 0 0 10px; color: var(--crc-app-muted); font-size: 13px; }
.crc-calendar-filter-form input[type="range"] { display: block; width: 100%; min-height: 34px; accent-color: var(--crc-app-accent); }
.crc-calendar-filter-form__secondary { display: flex; gap: 10px; }
.crc-calendar-saved-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--crc-app-border); }
.crc-calendar-saved-section h3 { margin: 0 0 10px; font-size: 15px; }
.crc-calendar-saved-filter { padding: 10px 0; border-bottom: 1px solid var(--crc-app-border); }
.crc-calendar-saved-filter > strong { display: block; margin-bottom: 7px; font-size: 13px; }
.crc-calendar-saved-filter > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crc-calendar-saved-filter a,
.crc-calendar-saved-filter button { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 9px; border: 1px solid #cbd5e1; border-radius: 7px; background: white; color: var(--crc-app-ink); font-size: 12px; text-decoration: none; }
.crc-calendar-filters__footer { padding: 12px 18px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--crc-app-border); }
.crc-calendar-filters__footer button { width: 100%; }

.crc-calendar-marker-wrap { background: transparent; border: 0; }
.crc-calendar-marker { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 3px solid white; border-radius: 50% 50% 50% 4px; background: var(--marker-color); box-shadow: 0 5px 13px rgba(15, 23, 42, .33); color: white; font-size: 9px; font-weight: 900; transform: rotate(-45deg); }
.crc-calendar-marker span { transform: rotate(45deg); white-space: nowrap; }
.crc-calendar-cluster { display: grid; place-items: center; border: 3px solid rgba(255,255,255,.92); border-radius: 50%; background: var(--crc-app-accent); box-shadow: 0 6px 18px rgba(255,77,0,.38); color: white; font-weight: 900; }
.crc-calendar-cluster--large { background: var(--crc-app-ink); box-shadow: 0 6px 18px rgba(15,23,42,.35); }
.crc-calendar-cluster--social { grid-template-columns: auto auto; gap: 2px; background: #39766c; box-shadow: 0 5px 14px rgba(38,91,83,.28); }
.crc-calendar-cluster--social svg { width: 16px; height: 16px; }
.crc-calendar-social-marker-wrap { background: transparent; border: 0; }
.crc-calendar-social-marker { position: relative; display: grid; place-items: center; box-sizing: border-box; width: 40px; height: 40px; border: 3px solid rgba(255,255,255,.96); border-radius: 50%; background: #39766c; box-shadow: 0 4px 12px rgba(38,91,83,.34); color: white; }
.crc-calendar-social-marker svg { width: 24px; height: 24px; }
.crc-calendar-social-marker.is-today::before { content: ''; position: absolute; inset: -7px; border: 2px solid rgba(57,118,108,.72); border-radius: 50%; background: rgba(57,118,108,.08); pointer-events: none; animation: crc-calendar-social-pulse 3s ease-out infinite; }
.crc-calendar-social-marker-wrap:hover .crc-calendar-social-marker,
.crc-calendar-social-marker-wrap:focus-visible .crc-calendar-social-marker { background: #285b53; box-shadow: 0 0 0 3px rgba(57,118,108,.18), 0 5px 14px rgba(38,91,83,.38); }
.crc-calendar-popup { display: grid; gap: 5px; min-width: 175px; }
.crc-calendar-popup strong { font-size: 14px; }
.crc-calendar-popup span { color: var(--crc-app-muted); font-size: 12px; }
.crc-calendar-popup a { margin-top: 3px; color: var(--crc-app-accent); font-weight: 800; text-decoration: none; }

@keyframes crc-calendar-social-pulse {
    0%, 100% { transform: scale(1); opacity: .52; }
    72% { transform: scale(1.32); opacity: 0; }
    73% { transform: scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .crc-calendar-social-marker.is-today::before { animation: none; opacity: .55; }
}

.crc-calendar-app.is-list-view .crc-calendar-app__map { visibility: hidden; }
.crc-calendar-app.is-list-view .crc-calendar-results { width: min(1120px, 100%); right: 0; margin: 0 auto; box-shadow: none; }
.crc-calendar-app.is-list-view .crc-calendar-results__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; padding: 88px 20px 20px; }
.crc-calendar-app.is-list-view .crc-calendar-results__header { position: absolute; z-index: 2; top: 0; right: 0; left: 0; background: white; }
.crc-calendar-app.is-list-view .crc-calendar-app__toolbar { left: 18px; }
.crc-calendar-app.is-list-view .crc-calendar-chips { left: 18px; }
.crc-calendar-app.is-list-view .crc-calendar-close { display: none; }

@media (max-width: 899px) {
    .crc-calendar-app {
        --crc-bottomnav-height: 0px;
        min-height: 520px;
    }
    /* Site header is hidden on the calendar page (below), so the toolbar always sits at the very top now. */
    .crc-calendar-app__toolbar { top: max(8px, env(safe-area-inset-top)); left: 10px; right: 10px; gap: 7px; }
    .crc-calendar-search { height: 44px; border-radius: 11px; }
    .crc-calendar-search button { padding: 0 13px; }
    .crc-calendar-icon-button { width: 44px; height: 44px; min-width: 44px; padding: 0; }
    .crc-calendar-icon-button[data-crc-action="filters"] { position: relative; }
    .crc-calendar-icon-button .crc-calendar-filter-count {
        position: absolute;
        top: 3px;
        right: 3px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 10px;
        line-height: 1;
    }
    .crc-calendar-icon-button > span:not([data-crc-filter-count]) { font-size: 0; }
    .crc-calendar-icon-button > span[aria-hidden="true"] { font-size: 20px; }
    .crc-calendar-site-menu { display: inline-flex; }
    .crc-calendar-app__toolbar > [data-crc-action="filters"],
    .crc-calendar-app__toolbar > .crc-calendar-panel-toggle { display: none; }
    .crc-calendar-app__logo { display: none; }
    .crc-calendar-favorite-notice {
        top: 62px;
        right: 10px;
        left: 10px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        width: auto;
    }
    .crc-calendar-favorite-notice a { grid-column: 2; white-space: normal; }
    .crc-calendar-favorite-notice__close { grid-column: 3; grid-row: 1 / span 2; }

    /* Remove the site header on the calendar page so the map fills the screen;
       logo, search and menu now live together in the app's own toolbar row. */
    body.crc-calendar-page .site-header,
    body.crc-calendar-page .lb-header,
    body.crc-calendar-page header[role="banner"],
    body.crc-city-calendar-page .site-header,
    body.crc-city-calendar-page .lb-header,
    body.crc-city-calendar-page header[role="banner"] { display: none !important; }
    body.crc-calendar-page,
    body.crc-city-calendar-page { --lb-header-height: 0px; }
    .crc-calendar-chips { top: 67px; left: 76px; right: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .crc-calendar-chips button { flex: 0 0 auto; }
    .crc-calendar-results {
        z-index: 600;
        inset: auto 0 calc(var(--crc-bottomnav-height) + var(--crc-context-safe-area) + var(--crc-globalnav-height)) 0;
        width: 100%;
        height: 46dvh;
        max-height: calc(100dvh - var(--crc-bottomnav-height) - var(--crc-context-safe-area) - var(--crc-globalnav-height) - 26px);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -8px 30px rgba(15,23,42,.18);
        transform: none;
        /* More of the map shows through the results sheet on mobile. */
        background: rgba(255, 255, 255, .82);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    .crc-calendar-results.is-closed { transform: translateY(calc(100% - 62px)); }
    .crc-calendar-sheet-handle { display: block; width: 64px; min-height: 22px; height: 22px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; }
    .crc-calendar-sheet-handle::after { content: ""; display: block; width: 44px; height: 5px; margin: 8px auto; border-radius: 999px; background: #cbd5e1; }
    .crc-calendar-results[data-sheet-size="peek"] { height: 116px; }
    .crc-calendar-results[data-sheet-size="half"] { height: 46dvh; }
    .crc-calendar-results[data-sheet-size="full"] { height: calc(100dvh - var(--crc-bottomnav-height) - var(--crc-context-safe-area) - var(--crc-globalnav-height) - 10px); }
    .crc-calendar-results__header { position: relative; z-index: 2; flex: 0 0 auto; min-height: 56px; padding: 6px 14px 10px 18px; background: rgba(255,255,255,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
    .crc-calendar-results__header .crc-calendar-results-collapse { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; background: #f1f5f9; color: var(--crc-app-ink); font-size: 26px; line-height: 1; }
    .crc-calendar-results__header .crc-calendar-results-collapse span { margin: -5px 0 0; color: inherit; font-size: inherit; }
    .crc-calendar-results.is-closed .crc-calendar-results-collapse { transform: rotate(180deg); }
    .crc-calendar-results__list { padding-bottom: 18px; }
    .crc-calendar-filters { top: auto; right: 0; bottom: var(--crc-globalnav-height); left: 0; width: 100%; max-height: calc(92dvh - var(--crc-globalnav-height)); border-radius: 20px 20px 0 0; }
    .crc-calendar-filters__header { min-height: 58px; padding-top: 7px; }
    .crc-calendar-app.is-list-view .crc-calendar-app__toolbar,
    .crc-calendar-app.is-list-view .crc-calendar-chips { display: none; }
    .crc-calendar-app.is-list-view .crc-calendar-results { inset: 0 0 calc(var(--crc-bottomnav-height) + var(--crc-context-safe-area) + var(--crc-globalnav-height)); height: auto; max-height: none; border-radius: 0; }
    .crc-calendar-app.is-list-view .crc-calendar-results__header { position: static; }
    .crc-calendar-app.is-list-view .crc-calendar-results__list { display: block; padding: 12px 12px 12px 76px; }

    .crc-calendar-bottomnav {
        position: absolute;
        z-index: 650;
        top: calc(max(8px, env(safe-area-inset-top)) + 54px);
        right: auto;
        bottom: auto;
        left: max(10px, env(safe-area-inset-left));
        display: flex;
        width: 58px;
        min-height: 0;
        flex-direction: column;
        gap: 3px;
        padding: 5px;
        border: 1px solid rgba(15, 23, 42, .1);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.15);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .crc-calendar-bottomnav button {
        position: relative;
        display: flex;
        width: 46px;
        min-width: 46px;
        min-height: 48px;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 4px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--crc-app-muted);
        font-size: 9.5px;
        font-weight: 700;
        line-height: 1.05;
    }

    .crc-calendar-bottomnav button > svg { width: 18px; height: 18px; }

    .crc-calendar-bottomnav button[aria-pressed="true"],
    .crc-calendar-bottomnav button[aria-expanded="true"] {
        background: rgba(255, 77, 0, 0.08);
        color: var(--crc-app-accent);
    }

    .crc-calendar-bottomnav button:focus-visible {
        outline: 2px solid var(--crc-app-accent);
        outline-offset: -2px;
    }

    .crc-calendar-bottomnav__badge {
        position: absolute;
        top: 2px;
        right: 1px;
        left: auto;
        display: inline-grid;
        min-width: 16px;
        height: 16px;
        place-items: center;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--crc-app-accent);
        color: #fff;
        font-size: 9px;
        line-height: 16px;
    }

    .crc-calendar-app .leaflet-control-attribution {
        margin-bottom: calc(var(--crc-bottomnav-height) + var(--crc-context-safe-area) + var(--crc-globalnav-height)) !important;
    }
}

@media (max-width: 760px) {
    :root {
        --crc-globalnav-height: var(--lb-mobile-tabs-height, calc(72px + env(safe-area-inset-bottom)));
        --crc-context-safe-area: 0px;
    }
}

@media (min-width: 900px) and (max-width: 1100px) {
    .crc-calendar-results { width: 380px; }
    .crc-calendar-app__toolbar,
    .crc-calendar-chips { left: 398px; }
}

@media (max-width: 380px) {
    .crc-calendar-search button { width: 48px; padding: 0; font-size: 0; }
    .crc-calendar-search button::after { content: "→"; font-size: 18px; }
    .crc-calendar-card { grid-template-columns: 96px minmax(0, 1fr); }
    .crc-calendar-field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .crc-calendar-results,
    .crc-calendar-card { transition: none; }
    .crc-calendar-card--skeleton > span,
    .crc-calendar-card--skeleton i { animation: none; }
}
