/* ============================================================
   PLUGIN OVERRIDES — PACE Design System v2.0
   Harmonises CRC, Club-Index and RunRoute with the theme.
   All rules are scoped to plugin root selectors so nothing
   bleeds into the global theme.
   ============================================================ */

/* ============================================================
   SHARED — bridge CSS custom properties from theme into plugins
   ============================================================ */
:root {
    /* ── Community Run Calendar ── */
    --crc-green:   #00D46A;           /* was #34C759 */
    --crc-orange:  #FF4D00;           /* was #FF6B35 */
    --crc-blue:    #1A8FFF;           /* was #007AFF */
    --crc-red:     #FF3B30;

    /* ── Club-Index ── */
    --ci-primary:      #FF4D00;       /* override blue primary with PACE orange */
    --ci-primary-dark: #CC3A00;
    --ci-radius:       10px;
    --ci-radius-lg:    16px;
    --ci-transition:   0.28s cubic-bezier(0.22, 1, 0.36, 1);

    /* ── RunRoute (uses unprefixed variables in global scope) ── */
    --green:       #00D46A;           /* was #34C759 */
    --green-dark:  #00A855;
    --orange:      #FF4D00;           /* was #FF6B35 */
    --orange-dark: #CC3A00;
    --blue:        #1A8FFF;           /* was #007AFF */

    /* ── Shared radius — all plugins harmonised to PACE ── */
    --crc-radius-sm:   6px;           /* was 8px */
    --crc-radius-md:   10px;          /* was 12px */
    --crc-radius-lg:   16px;
    --crc-radius-xl:   24px;          /* was 20px */
    --crc-radius-pill: 999px;

    /* RunRoute uses unprefixed radius tokens too */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-pill: 999px;

    /* ── Shared transition ── */
    --crc-transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    --transition:     0.28s cubic-bezier(0.22, 1, 0.36, 1);

    /* ── Typography ── */
    --crc-font: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   COMMUNITY RUN CALENDAR (CRC)
   ============================================================ */

/* ── Font override — all CRC contexts ── */
.crc-app,
.crc-app *,
.crc-mobile-app,
.crc-mobile-app *,
.crc-single,
.crc-single *,
.crc-widget,
.crc-widget * {
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif !important;
}

/* ── Map + Filter unified card — stitched together ── */
.crc-map-filter-wrap {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09), 0 1px 6px rgba(0,0,0,0.06) !important;
    margin-bottom: 24px !important;
}

/* ── Filter bar — flush below the map ── */
.crc-filter-bar {
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: 1px solid rgba(17,24,39,0.07) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ── Map container — full bleed inside wrapper ── */
#crc-map,
.crc-map {
    border-radius: 0 !important;
    display: block !important;
}

/* ── Breathing room between hero and the map+filter card ── */
.lb-calendar-wrap {
    padding-top: 28px !important;
}

/* ── Search input ── */
.crc-filter-group--search {
    min-width: 100% !important;
    order: -1 !important;
}
.crc-search-wrapper {
    position: relative !important;
}
.crc-search-icon {
    position: absolute !important;
    left: 11px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    color: #9CA3AF !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
}
.crc-search-input {
    width: 100% !important;
    padding-left: 36px !important;
    box-sizing: border-box !important;
}

/* ── Marker clusters — PACE theme ── */
.crc-cluster {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.2s ease !important;
}
.crc-cluster--sm {
    width: 36px !important;
    height: 36px !important;
    background: #FF4D00 !important;
    box-shadow: 0 2px 10px rgba(255,77,0,0.40),
                0 0 0 2px rgba(255,255,255,0.85) !important;
}
.crc-cluster--md {
    width: 44px !important;
    height: 44px !important;
    background: linear-gradient(135deg, #FF4D00 0%, #CC3A00 100%) !important;
    box-shadow: 0 4px 14px rgba(255,77,0,0.45),
                0 0 0 2.5px rgba(255,255,255,0.90) !important;
}
.crc-cluster--lg {
    width: 54px !important;
    height: 54px !important;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.30),
                0 0 0 3px #FF4D00 !important;
}
.crc-cluster:hover {
    transform: scale(1.12) translateY(-1px) !important;
}
.crc-cluster--sm:hover {
    box-shadow: 0 5px 18px rgba(255,77,0,0.55),
                0 0 0 2px rgba(255,255,255,0.90) !important;
}
.crc-cluster--md:hover {
    box-shadow: 0 8px 24px rgba(255,77,0,0.55),
                0 0 0 3px rgba(255,255,255,0.90) !important;
}
.crc-cluster--lg:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.35),
                0 0 0 3px #FF4D00 !important;
}
.crc-cluster__count {
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    user-select: none !important;
}
.crc-cluster--sm .crc-cluster__count { font-size: 0.85rem !important; }
.crc-cluster--md .crc-cluster__count { font-size: 0.95rem !important; }
.crc-cluster--lg .crc-cluster__count { font-size: 1.1rem !important; }

/* ── Event cards (desktop calendar) ── */
.crc-card {
    border-radius: 10px !important;
    border: 1px solid rgba(17,24,39,0.08) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.28s cubic-bezier(0.22,1,0.36,1),
                border-color 0.28s cubic-bezier(0.22,1,0.36,1) !important;
    overflow: hidden !important;
}
.crc-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10) !important;
    border-color: rgba(255,77,0,0.18) !important;
}
.crc-card.is-today {
    border-color: #00D46A !important;
}

/* ── Card title ── */
.crc-card-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: #111827 !important;
}

/* ── Card meta items ── */
.crc-card-meta-item {
    font-family: 'Jost', sans-serif !important;
    color: #4B5563 !important;
    font-size: 0.85rem !important;
}

/* ── Buttons — all CRC primary actions ── */
.crc-app .crc-btn-primary,
.crc-app .crc-btn-primary:visited,
.crc-single .crc-btn-primary,
.crc-single .crc-btn-full,
.crc-widget .crc-btn-primary,
.crc-widget .crc-btn-sm,
.crc-submit-btn,
.crc-filter-btn--active,
.crc-page-nav .crc-btn {
    background: #FF4D00 !important;
    border-color: #FF4D00 !important;
    color: #fff !important;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
}
.crc-app .crc-btn-primary:hover,
.crc-single .crc-btn-primary:hover,
.crc-single .crc-btn-full:hover,
.crc-widget .crc-btn-primary:hover,
.crc-widget .crc-btn-sm:hover,
.crc-submit-btn:hover,
.crc-page-nav .crc-btn:hover {
    background: #CC3A00 !important;
    border-color: #CC3A00 !important;
    transform: translateY(-1px) !important;
}

/* ── Outline buttons ── */
.crc-app .crc-btn-outline {
    border-color: rgba(255,77,0,0.35) !important;
    color: #FF4D00 !important;
    border-radius: 6px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}
.crc-app .crc-btn-outline:hover {
    background: #FF4D00 !important;
    border-color: #FF4D00 !important;
    color: #fff !important;
}

/* ── Favorites / strong-arm button ── */
.crc-strong-arm {
    border-color: rgba(255,77,0,0.3) !important;
    color: #FF4D00 !important;
    border-radius: 50% !important;
}
.crc-strong-arm.is-favorited,
.crc-strong-arm:hover {
    background: #FF4D00 !important;
    color: #fff !important;
    border-color: #FF4D00 !important;
}

/* ── Race type badges — PACE sharp corners ── */
.crc-badge,
.crc-type-badge {
    border-radius: 4px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
}

/* ── Distance pills on cards and widgets ── */
.crc-dist-pill {
    border-radius: 4px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
    background: rgba(26,143,255,0.10) !important;
    color: #1A8FFF !important;
    border: 1px solid rgba(26,143,255,0.18) !important;
}
.crc-dist-pill.dist-half-marathon {
    background: rgba(255,77,0,0.10) !important;
    color: #FF4D00 !important;
    border-color: rgba(255,77,0,0.18) !important;
}
.crc-dist-pill.dist-marathon {
    background: rgba(0,212,106,0.10) !important;
    color: #00D46A !important;
    border-color: rgba(0,212,106,0.18) !important;
}
.crc-dist-pill.dist-ultra {
    background: rgba(139,92,246,0.10) !important;
    color: #8B5CF6 !important;
    border-color: rgba(139,92,246,0.18) !important;
}

/* ── Distance tags (admin/form token input) ── */
.crc-distance-tag {
    background: rgba(255,77,0,0.08) !important;
    color: #FF4D00 !important;
    border: 1px solid rgba(255,77,0,0.18) !important;
    border-radius: 4px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

/* ── Filter inputs ── */
.crc-filter,
.crc-date-range-input {
    border-radius: 6px !important;
    border: 1.5px solid rgba(17,24,39,0.10) !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 0.9rem !important;
    transition: border-color 0.18s ease !important;
}
.crc-filter:focus,
.crc-date-range-input:focus {
    border-color: #FF4D00 !important;
    box-shadow: 0 0 0 3px rgba(255,77,0,0.10) !important;
    outline: none !important;
}

/* ── Range slider track ── */
.crc-range-fill,
.crcm-range-fill {
    background: #FF4D00 !important;
}
.crc-range-input::-webkit-slider-thumb,
.crcm-range-input::-webkit-slider-thumb {
    background: #FF4D00 !important;
    box-shadow: 0 0 0 3px rgba(255,77,0,0.25) !important;
}
.crc-range-input::-moz-range-thumb,
.crcm-range-input::-moz-range-thumb {
    background: #FF4D00 !important;
}

/* ── Auth modal ── */
.crc-auth-modal {
    border-radius: 16px !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2) !important;
}
.crc-auth-modal-title i { color: #FF4D00 !important; }
.crc-auth-tab.active {
    color: #FF4D00 !important;
    border-bottom-color: #FF4D00 !important;
}
.crc-auth-submit {
    background: #FF4D00 !important;
    border-radius: 6px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}
.crc-auth-submit:hover { background: #CC3A00 !important; }

/* ── Section headings inside CRC ── */
.crc-section-title,
.crc-widget-title,
.crc-widget-header-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #111827 !important;
}

/* ── Map popups ── */
.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(17,24,39,0.08) !important;
}
.leaflet-popup-content {
    font-family: 'Jost', sans-serif !important;
    font-size: 0.875rem !important;
}

/* ============================================================
   CRC — WIDGETS (vertical + horizontal)
   ============================================================ */

/* Widget container */
.crc-widget {
    background: transparent !important;
}

/* Widget header */
.crc-widget-header {
    border-bottom: 2px solid #FF4D00 !important;
    padding-bottom: 10px !important;
    margin-bottom: 16px !important;
}
.crc-widget-header-title {
    font-size: 1.1rem !important;
}

/* Widget footer nav links */
.crc-widget-footer-nav {
    border-top: 1px solid rgba(17,24,39,0.08) !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
}
.crc-widget-footer-link {
    color: #FF4D00 !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
}
.crc-widget-footer-link:hover {
    color: #CC3A00 !important;
}

/* Vertical widget items */
.crc-widget-item--h {
    border-radius: 10px !important;
    border: 1px solid rgba(17,24,39,0.08) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.28s cubic-bezier(0.22,1,0.36,1),
                border-color 0.28s cubic-bezier(0.22,1,0.36,1) !important;
    overflow: hidden !important;
    background: #fff !important;
}
.crc-widget-item--h:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.09) !important;
    border-color: rgba(255,77,0,0.18) !important;
}

/* Shared title styles (horizontal) */
.crc-widget-item-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: #111827 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
}
.crc-widget-item-title:hover {
    color: #FF4D00 !important;
}

/* Shared meta (horizontal) */
.crc-widget-meta-date,
.crc-widget-meta-loc,
.crc-widget-meta-dist {
    font-size: 0.8rem !important;
    color: #4B5563 !important;
}

/* Shared footer (horizontal) */
.crc-widget-item-footer {
    border-top: 1px solid rgba(17,24,39,0.06) !important;
    padding-top: 10px !important;
}

/* ============================================================
   CRC — SINGLE EVENT PAGE
   ============================================================ */

/* Font on single event page */
.crc-single {
    font-family: 'Jost', sans-serif !important;
}

/* Page title */
.crc-single-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    color: #111827 !important;
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    line-height: 1.05 !important;
    margin-bottom: 24px !important;
}

/* Orange accent bar above title */
.crc-single-title::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #FF4D00;
    border-radius: 2px;
    margin-bottom: 14px;
}

/* Sidebar panel */
.crc-sidebar-panel {
    border-radius: 16px !important;
    border: 1px solid rgba(17,24,39,0.08) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05) !important;
    overflow: hidden !important;
    background: #fff !important;
}

/* Sidebar image */
.crc-sidebar-image {
    position: relative;
}
.crc-sidebar-image img {
    border-radius: 0 !important;
    display: block;
    width: 100%;
}

/* Sidebar heading */
.crc-sidebar-heading {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-size: 0.9rem !important;
    color: #9CA3AF !important;
    margin-bottom: 14px !important;
    padding-top: 4px !important;
}

/* Sidebar detail list */
.crc-sidebar-dl {
    border: none !important;
}
.crc-sidebar-dl dt {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
    color: #9CA3AF !important;
}
.crc-sidebar-dl dd {
    font-family: 'Jost', sans-serif !important;
    font-weight: 600 !important;
    color: #111827 !important;
    font-size: 0.95rem !important;
}

/* Event map on single page */
#crc-event-map {
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid rgba(17,24,39,0.08) !important;
}

/* ============================================================
   CRC — MOBILE CALENDAR VIEW
   ============================================================ */

/* Mobile app fonts */
.crc-mobile-app,
#crc-mobile-app {
    font-family: 'Jost', sans-serif !important;
}

/* Mobile toolbar buttons */
.crcm-btn-create {
    background: #FF4D00 !important;
    border-color: #FF4D00 !important;
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
}
.crcm-btn-create:hover {
    background: #CC3A00 !important;
    border-color: #CC3A00 !important;
}

.crcm-btn-filter {
    border-radius: 6px !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 0.875rem !important;
    border-color: rgba(17,24,39,0.12) !important;
    color: #4B5563 !important;
}
.crcm-btn-filter.is-active {
    background: rgba(255,77,0,0.08) !important;
    border-color: rgba(255,77,0,0.3) !important;
    color: #FF4D00 !important;
}

/* Filter badge count */
.crcm-filter-badge {
    background: #FF4D00 !important;
}

/* Apply filters button */
.crcm-apply-btn {
    background: #FF4D00 !important;
    border-color: #FF4D00 !important;
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
}
.crcm-apply-btn:hover {
    background: #CC3A00 !important;
}

/* Mobile event cards */
.crcm-card {
    border-radius: 10px !important;
    border: 1px solid rgba(17,24,39,0.08) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.28s cubic-bezier(0.22,1,0.36,1) !important;
    overflow: hidden !important;
    background: #fff !important;
}
.crcm-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.09) !important;
    border-color: rgba(255,77,0,0.15) !important;
}
.crcm-card.is-today {
    border-color: #00D46A !important;
    border-left: 3px solid #00D46A !important;
}

/* Mobile card title */
.crcm-card-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: #111827 !important;
}

/* Mobile card meta */
.crcm-card-meta-row {
    color: #4B5563 !important;
    font-size: 0.8rem !important;
}

/* Mobile filter label */
.crcm-filter-label {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    font-size: 0.78rem !important;
    color: #9CA3AF !important;
}


/* ============================================================
   CRC — FOOTER EVENTS WIDGET
   Dark-surface minimal race schedule list for the site footer.
   Inherits the footer's #07090F background; uses PACE orange
   accent for dates and Barlow Condensed for event titles.
   ============================================================ */

.crc-footer-widget {
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

/* Widget title */
.crc-footer-widget-title {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240, 242, 246, 0.35);
    margin: 0 0 16px;
    padding: 0;
}

/* List reset */
.crc-footer-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual event row */
.crc-footer-event-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.18s ease;
}
.crc-footer-event-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Date badge — electric orange, condensed, fixed width */
.crc-footer-event-date {
    flex-shrink: 0;
    width: 44px;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FF4D00;
    line-height: 1.3;
    padding-top: 1px;
}

/* Body: title + meta stacked */
.crc-footer-event-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/* Event title link */
.crc-footer-event-title {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(240, 242, 246, 0.88);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s ease;
}
.crc-footer-event-title:hover {
    color: #FF4D00;
    text-decoration: none;
}

/* Location · distance metadata */
.crc-footer-event-meta {
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.78rem;
    color: rgba(240, 242, 246, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* "Se alle løb →" CTA */
.crc-footer-event-cta {
    display: inline-block;
    margin-top: 14px;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FF4D00;
    text-decoration: none;
    transition: color 0.18s ease, letter-spacing 0.18s ease;
}
.crc-footer-event-cta:hover {
    color: #CC3A00;
    letter-spacing: 0.12em;
    text-decoration: none;
}


/* ============================================================
   CLUB-INDEX
   ============================================================ */

/* ── Font override ── */
.club-index-wrapper,
.club-index-wrapper * {
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif !important;
}

/* ── Map section — rounded top corners, clips map tiles, covers filter shadow ── */
.club-index-map-section.is-visible {
    position: relative;
    z-index: 2;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

/* ── Filter bar ── */
.club-index-filter-bar {
    background: #fff !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
    border-top: none !important;
}

/* ── Filter inputs & selects ── */
.club-index-filter-bar input,
.club-index-filter-bar select,
.club-index-search-input {
    border: 1.5px solid rgba(17,24,39,0.10) !important;
    border-radius: 6px !important;
    font-family: 'Jost', sans-serif !important;
    transition: border-color 0.18s ease !important;
}
.club-index-filter-bar input:focus,
.club-index-filter-bar select:focus,
.club-index-search-input:focus {
    border-color: #FF4D00 !important;
    box-shadow: 0 0 0 3px rgba(255,77,0,0.10) !important;
    outline: none !important;
}

/* ── Primary action button ── */
.club-index-btn,
.club-index-filter-bar button[type="submit"],
.club-index-submit-btn {
    background: #FF4D00 !important;
    border-color: #FF4D00 !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    transition: background 0.18s ease, transform 0.18s ease !important;
}
.club-index-btn:hover,
.club-index-submit-btn:hover {
    background: #CC3A00 !important;
    border-color: #CC3A00 !important;
    transform: translateY(-1px) !important;
}

/* ── Club wrapper — centred with max-width, prevent horizontal overflow ── */
.club-index-wrapper {
    box-sizing: border-box;
    max-width: var(--lb-max-width);
    margin-left: auto;
    margin-right: auto;
    overflow-x: clip;
}

/* ── Filter group min-widths cause page-wide overflow on mobile ── */
.club-index-filter-group--days {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

/* ── Club card grid — mobile-safe ── */
.club-index-club-list {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

@media (max-width: 640px) {
    .club-index-wrapper {
        padding: 8px !important;
    }

    .club-index-list-body-inner {
        padding: 10px !important;
    }

    .club-index-filter-bar {
        padding: 12px !important;
        gap: 10px !important;
    }

    .club-index-filter-group--days,
    .club-index-filter-group--price,
    .club-index-filter-group--actions {
        min-width: 0 !important;
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .club-index-day-pills {
        flex-wrap: wrap;
    }

    .club-index-club-list {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
}

/* ── Club cards ── */
.club-index-card,
.club-card {
    border-radius: 10px !important;
    border: 1px solid rgba(17,24,39,0.08) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.28s cubic-bezier(0.22,1,0.36,1) !important;
    overflow: hidden !important;
}
.club-index-card:hover,
.club-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10) !important;
    border-color: rgba(255,77,0,0.15) !important;
}

/* ── Club name / title ── */
.club-index-card h3,
.club-card__name,
.club-index-club-name {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

/* ── Region / type badge ── */
.club-index-badge,
.club-index-region-badge {
    border-radius: 4px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-size: 0.72rem !important;
    background: rgba(255,77,0,0.08) !important;
    color: #FF4D00 !important;
    border: 1px solid rgba(255,77,0,0.15) !important;
}

/* ── Map popups (shared with CRC Leaflet) ── */
.club-index-popup,
.club-index-popup * {
    font-family: 'Jost', sans-serif !important;
}
.club-index-popup a { color: #FF4D00 !important; }

/* ── Add club form ── */
.club-index-add-form input,
.club-index-add-form textarea,
.club-index-add-form select {
    border: 1.5px solid rgba(17,24,39,0.10) !important;
    border-radius: 6px !important;
    font-family: 'Jost', sans-serif !important;
}
.club-index-add-form input:focus,
.club-index-add-form textarea:focus {
    border-color: #FF4D00 !important;
    box-shadow: 0 0 0 3px rgba(255,77,0,0.10) !important;
    outline: none !important;
}


/* ============================================================
   RUNROUTE — public-facing widget + recent routes
   (The full-screen app uses fixed positioning and manages
   its own z-index; we only style the embedded widget here)
   ============================================================ */

/* ── RunRoute recent-routes widget (.rrw) ── */

/* Widget fill — no internal padding, let cards flush */
.lb-route-teaser__preview .rrw {
    padding: 0 !important;
    width: 100% !important;
    align-self: stretch !important;
}

/* Hide the internal header — the section already provides title + CTA */
.lb-route-teaser__preview .rrw-header {
    display: none !important;
}

/* Card list — flush stacked feed, no gap */
.lb-route-teaser__preview .rrw-vertical .rrw-cards {
    gap: 0 !important;
}

/* Each card: flush rows separated by a hairline */
.lb-route-teaser__preview .rrw-card {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(17,24,39,0.07) !important;
    box-shadow: none !important;
    background: #fff !important;
    position: relative !important;
    animation: none !important;
    transition: background 0.2s ease !important;
}
.lb-route-teaser__preview .rrw-card:last-child {
    border-bottom: none !important;
}

/* Blue left accent bar — appears on hover */
.lb-route-teaser__preview .rrw-card::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important; top: 0 !important; bottom: 0 !important;
    width: 0 !important;
    background: #1A8FFF !important;
    transition: width 0.2s cubic-bezier(0.22,1,0.36,1) !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    inset: unset !important;
}
.lb-route-teaser__preview .rrw-card:hover {
    background: #F5F8FF !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(17,24,39,0.07) !important;
}
.lb-route-teaser__preview .rrw-card:hover::before {
    width: 3px !important;
}

/* Cancel the orange gradient overlay on hover */
.lb-route-teaser__preview .rrw-card:hover .rrw-info::before {
    opacity: 0 !important;
}

/* Larger mini-map thumbnail */
.lb-route-teaser__preview .rrw-vertical .rrw-map-thumb {
    width: 110px !important;
    min-width: 110px !important;
    height: 110px !important;
}

/* Info padding */
.lb-route-teaser__preview .rrw-vertical .rrw-info {
    padding: 12px 16px !important;
}

/* Route name — Barlow Condensed, slightly larger */
.lb-route-teaser__preview .rrw-route-name {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: #111827 !important;
    margin-bottom: 5px !important;
}

/* Distance — blue bold stat (first meta span) */
.lb-route-teaser__preview .rrw-route-meta {
    gap: 8px !important;
    font-size: 0.76rem !important;
    margin-bottom: 5px !important;
}
.lb-route-teaser__preview .rrw-route-meta span:first-child {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    color: #1A8FFF !important;
    letter-spacing: 0.03em !important;
}
.lb-route-teaser__preview .rrw-route-meta i {
    color: #1A8FFF !important;
}

/* Author — muted, small */
.lb-route-teaser__preview .rrw-route-author {
    font-size: 0.7rem !important;
    color: #9CA3AF !important;
}

/* Keep row layout on small phones (plugin forces column at ≤480px) */
@media (max-width: 480px) {
    .lb-route-teaser__preview .rrw-vertical .rrw-card {
        flex-direction: row !important;
    }
    .lb-route-teaser__preview .rrw-vertical .rrw-map-thumb {
        width: 80px !important;
        min-width: 80px !important;
        height: 80px !important;
    }
    .lb-route-teaser__preview .rrw-vertical .rrw-info {
        padding: 10px 12px !important;
    }
    .lb-route-teaser__preview .rrw-route-name {
        font-size: 0.85rem !important;
    }
}

/* ── Public single route page ── */
.runroute-single {
    font-family: 'Jost', sans-serif !important;
}
.runroute-single h1,
.runroute-single h2,
.runroute-single h3 {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}


/* ============================================================
   LEAFLET MAP — shared across CRC & Club-Index
   ============================================================ */
.leaflet-control-zoom a {
    border-radius: 6px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
}
.leaflet-control-zoom a:hover {
    background: #FF4D00 !important;
    color: #fff !important;
}

/* Attribution — smaller, less intrusive */
.leaflet-control-attribution {
    font-size: 0.65rem !important;
    opacity: 0.6 !important;
}


/* ============================================================
   RESPONSIVE tweaks for plugin content in PACE layout
   ============================================================ */
@media (max-width: 640px) {
    .crc-filter-bar { flex-direction: column !important; }
    .crc-filter-group { width: 100% !important; }
    .club-index-filter-bar { flex-direction: column !important; }
}

/* ============================================================
   LØBEKLUBBEN AUTH — PACE Design System bridge
   ============================================================ */

/* Override the plugin's own token to PACE orange */
:root {
    --lb-primary:       #FF4D00;
    --lb-primary-hover: #CC3A00;
}

/* Modal: use PACE dark base for dark-scheme and keep light as white */
#lbAuthModal .lb-auth-modal {
    font-family: 'Jost', var(--lb-font-body, sans-serif);
}

#lbAuthModal .lb-auth-modal-title {
    font-family: 'Barlow Condensed', var(--lb-font-display, sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#lbAuthModal .lb-auth-tab {
    font-family: 'Barlow Condensed', var(--lb-font-display, sans-serif);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#lbAuthModal .lb-auth-tab.lb-active {
    color: #FF4D00;
    border-bottom-color: #FF4D00;
}

#lbAuthModal .lb-auth-field input:focus {
    border-color: #FF4D00;
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.15);
}

#lbAuthModal .lb-auth-submit {
    background: #FF4D00;
    font-family: 'Barlow Condensed', var(--lb-font-display, sans-serif);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#lbAuthModal .lb-auth-submit:hover {
    background: #CC3A00;
}

#lbAuthModal .lb-auth-switch a {
    color: #FF4D00;
}

/* ── Nav item (desktop header — dark bg) ── */
.lb-header .lb-auth-nav-item {
    margin-left: 4px;
}

.lb-header .lb-auth-user-btn {
    color: #fff;
    font-family: 'Jost', var(--lb-font-body, sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 6px 10px !important;
    gap: 6px;
}

.lb-header .lb-auth-user-btn:hover,
.lb-header .lb-auth-user-btn--open {
    background: rgba(255, 255, 255, 0.1);
}

.lb-header .lb-auth-login-link {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Jost', var(--lb-font-body, sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
}

.lb-header .lb-auth-login-link:hover {
    color: #fff;
    opacity: 1;
}

/* Dropdown styling */
.lb-header .lb-auth-dropdown {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lb-header .lb-auth-dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Jost', var(--lb-font-body, sans-serif);
    font-size: 0.875rem;
}

.lb-header .lb-auth-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lb-header .lb-auth-dropdown-item.lb-auth-logout-link {
    color: #FF6B6B;
}

.lb-header .lb-auth-dropdown-item.lb-auth-logout-link:hover {
    background: rgba(255, 59, 48, 0.12);
}

.lb-header .lb-auth-dropdown-divider {
    background: rgba(255, 255, 255, 0.1);
}

.lb-header .lb-auth-dropdown-icon {
    color: #FF4D00;
    opacity: 1;
}

/* ── Mobile drawer profile block ── */
.lb-mobile-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 4px;
}

.lb-mobile-profile__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #FF4D00;
    object-fit: cover;
}

.lb-mobile-profile__name {
    font-family: 'Barlow Condensed', var(--lb-font-display, sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.lb-mobile-logout {
    color: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    margin-top: 4px;
}

.lb-mobile-logout:hover {
    color: #FF6B6B !important;
    border-color: #FF6B6B !important;
}

/* ============================================================
   CLUB DETAIL PAGE — PACE Design System v2.0 Redesign
   Targets all .cip-* classes from club-index plugin
   ============================================================ */

/* ── Club page container ── */
.cip-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 80px;
    box-sizing: border-box;
}

.cip-page *,
.cip-page *::before,
.cip-page *::after {
    box-sizing: border-box;
}

/* ── Hero — dark athletic header ── */
.cip-hero {
    position: relative;
    background: #07090F;
    width: 100%;
    padding: 48px clamp(16px, 4vw, 48px) 56px;
    margin-bottom: 0;
    border-bottom: none;
    overflow: hidden;
    box-sizing: border-box;
}

/* Track line texture */
.cip-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -14deg,
        transparent,
        transparent 48px,
        rgba(255,255,255,0.025) 48px,
        rgba(255,255,255,0.025) 50px
    );
    pointer-events: none;
}

/* Diagonal bottom cut */
.cip-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: #fff;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.cip-hero__body {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    overflow-wrap: break-word;
}

/* Orange accent bar */
.cip-hero__body::before {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: #FF4D00;
    margin-bottom: 16px;
    border-radius: 2px;
}

.cip-hero__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.0;
    color: #fff;
    margin: 0 0 16px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.cip-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 0;
}

.cip-hero__location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
}

.cip-hero__location svg {
    color: #FF4D00;
    flex-shrink: 0;
}

.cip-hero__region {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    padding: 2px 10px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
}

/* Lime "Gratis" badge on dark hero */
.cip-hero .cip-badge--free {
    background: #C8FF00;
    color: #07090F;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}

/* Admin edit button */
.cip-admin-edit-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 16px 24px 0;
    padding: 7px 14px;
    background: rgba(255,77,0,0.08);
    border: 1px solid rgba(255,77,0,0.25);
    color: #FF4D00;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cip-admin-edit-open-btn:hover {
    background: rgba(255,77,0,0.14);
    border-color: #FF4D00;
}

/* ── Layout ── */
.cip-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 32px 24px 0;
    align-items: start;
}

@media (max-width: 860px) {
    .cip-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px 16px 0;
    }

    .cip-hero {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .cip-sidebar {
        order: -1;
    }
}

/* ── Main content sections ── */
.cip-section {
    margin-bottom: 40px;
}

.cip-section__heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #07090F;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cip-section__heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: #FF4D00;
    border-radius: 2px;
    flex-shrink: 0;
}

.cip-description {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

.cip-map {
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 100%;
}

/* ── Sidebar panel ── */
.cip-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    border: none;
    width: 100%;
    max-width: 100%;
}

/* Logo area */
.cip-panel__logo-wrap {
    background: #f9fafb;
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.cip-panel__logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* Panel section */
.cip-panel__section {
    padding: 18px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.cip-panel__section:last-child {
    border-bottom: none;
}

.cip-panel__section--cta {
    background: #fff;
    padding: 16px 20px;
}

.cip-panel__heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 14px;
}

/* Definition list */
.cip-dl__row {
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    gap: 8px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.cip-dl__row dt {
    color: #6b7280;
    font-weight: 400;
    min-width: 0;
    flex: 0 0 auto;
}

.cip-dl__row dd {
    color: #111827;
    font-weight: 600;
    text-align: right;
    min-width: 0;
    word-break: break-word;
    flex: 1 1 auto;
}

/* Training day tags — orange */
.cip-day-tags {
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}

.cip-day-tag {
    background: rgba(255, 77, 0, 0.1);
    color: #FF4D00;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: auto;
    padding: 3px 8px;
    height: auto;
    border-radius: 6px;
}

/* CTA button — orange outline on white */
.cip-btn--primary {
    background: transparent;
    color: #FF4D00;
    border: 2px solid #FF4D00;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 11px 20px;
    border-radius: 8px;
    word-break: break-all;
    white-space: normal;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.cip-btn--primary:hover {
    background: #FF4D00;
    color: #fff;
}

/* Contact list */
.cip-contact-list li {
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    min-width: 0;
}

.cip-contact-list li svg {
    color: #FF4D00;
    flex-shrink: 0;
}

.cip-contact-list li a {
    color: #FF4D00;
    word-break: break-all;
    min-width: 0;
    flex: 1;
}

/* Social links — neutral background, brand-colored icon only */
.cip-social-link,
.cip-social-link--facebook,
.cip-social-link--instagram,
.cip-social-link--strava {
    background: #f3f4f6;
    color: #1f2937;
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.cip-social-link:hover,
.cip-social-link--facebook:hover,
.cip-social-link--instagram:hover,
.cip-social-link--strava:hover {
    background: #e9eaec;
    color: #1f2937;
    opacity: 1;
}

/* Keep brand colors on the SVG icons only */
.cip-social-link--facebook svg { color: #1877f2; }
.cip-social-link--instagram svg { color: #e1306c; }
.cip-social-link--strava svg { color: #fc4c02; }

/* Address */
.cip-address {
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #4b5563;
}

/* Badges */
.cip-badge--free {
    background: #dcfce7;
    color: #166534;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Suggest changes section ── */
.cip-edit-section {
    padding: 0 24px;
    margin-top: 8px;
}

@media (max-width: 860px) {
    .cip-edit-section {
        padding: 0 16px;
    }
}

.cip-request-change-btn {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.cip-request-change-btn:hover {
    color: #FF4D00;
    border-color: #FF4D00;
}

/* ── Extra small screens (390px) ── */
@media (max-width: 420px) {
    .cip-hero__title {
        font-size: 2rem;
    }

    .cip-panel {
        border-radius: 10px;
    }

    .cip-dl__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cip-dl__row dd {
        text-align: left;
    }

    .cip-day-tags {
        justify-content: flex-start;
    }
}

/* ============================================================
   RUNROUTE — Theme Integration
   ============================================================ */

/* RunRoute page body class */
body.runroute-page {
    overflow: hidden;
}

/* Position RunRoute app below theme header */
body.runroute-page #runroute-app {
    top: var(--lb-header-height, 68px);
}

/* Ensure RunRoute uses theme fonts */
#runroute-app,
#runroute-app .app {
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Section labels use display font */
#runroute-app .section-label,
#runroute-app .modal-title,
#runroute-app .elev-title,
#runroute-app .onboarding-card h2 {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Color variable bridge to theme tokens */
#runroute-app {
    --green: var(--lb-green, #00D46A);
    --green-dark: #00A855;
    --orange: var(--lb-orange, #FF4D00);
    --orange-dark: var(--lb-orange-dark, #CC3A00);
    --blue: var(--lb-blue, #1A8FFF);
}

/* Accent buttons use theme orange */
#runroute-app .btn-accent-fill {
    background: var(--lb-orange, #FF4D00) !important;
    border-color: var(--lb-orange, #FF4D00) !important;
}

#runroute-app .btn-accent-fill:hover {
    background: var(--lb-orange-dark, #CC3A00) !important;
    border-color: var(--lb-orange-dark, #CC3A00) !important;
}

#runroute-app .btn-accent-outline {
    color: var(--lb-orange, #FF4D00) !important;
    border-color: var(--lb-orange, #FF4D00) !important;
}

#runroute-app .btn-accent-outline:hover {
    background: var(--lb-orange, #FF4D00) !important;
    color: #fff !important;
}

/* Floating search overlay - inherits from RunRoute theme variables */
#runroute-app .map-search-overlay .search-bar {
    background: var(--glass-bg-thick, rgba(255, 255, 255, 0.92));
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.06));
    box-shadow: var(--glass-shadow, 0 2px 20px rgba(0, 0, 0, 0.08));
}

#runroute-app .map-search-overlay .search-bar:focus-within {
    border-color: var(--orange, #FF6B35);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.15), var(--glass-shadow, 0 2px 20px rgba(0, 0, 0, 0.08));
}

#runroute-app .map-search-overlay .search-bar input {
    color: var(--text-primary, #1d1d1f);
}

#runroute-app .map-search-overlay .search-bar input::placeholder {
    color: var(--text-tertiary, #aeaeb2);
}

#runroute-app .map-search-overlay .search-bar i {
    color: var(--text-tertiary, #aeaeb2);
}

/* Search results dropdown */
#runroute-app .map-search-overlay .search-results {
    background: var(--glass-bg-thick, rgba(255, 255, 255, 0.92));
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.06));
}

/* FAB buttons (theme toggle, settings) */
#runroute-app .fab-theme,
#runroute-app .fab-settings {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

#runroute-app[data-theme="dark"] .fab-theme,
#runroute-app[data-theme="dark"] .fab-settings {
    background: rgba(28, 28, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
}

/* Elevation panel styling */
#runroute-app .elevation-panel {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

#runroute-app[data-theme="dark"] .elevation-panel {
    background: rgba(28, 28, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* iOS-style toggle styling */
#runroute-app .ios-toggle {
    width: 42px;
    height: 26px;
    background: #e5e5ea;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

#runroute-app .ios-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

#runroute-app .ios-toggle.active,
#runroute-app .ios-toggle[aria-checked="true"] {
    background: var(--lb-green, #00D46A);
}

#runroute-app .ios-toggle.active::after,
#runroute-app .ios-toggle[aria-checked="true"]::after {
    transform: translateX(16px);
}

/* Admin bar offset */
body.admin-bar.runroute-page #runroute-app {
    top: calc(32px + var(--lb-header-height, 68px));
}

@media screen and (max-width: 782px) {
    body.admin-bar.runroute-page #runroute-app {
        top: calc(46px + var(--lb-header-height, 68px));
    }
}

/* Mobile adjustments */
@media (max-width: 860px) {
    body.runroute-page #runroute-app {
        top: 60px;
    }

    body.admin-bar.runroute-page #runroute-app {
        top: calc(46px + 60px);
    }
}
