/* =====================================================================
   Golf Empire â€” Search+   /css/ge-search.css
   Moved out of the inline <style> in /search/index.php (Nov 2026), so the
   64 KB is cached instead of sent with every search. Loaded by that page
   only, in the same place the <style> block was.
   Colours that match a token now use it (same values). Note the old names:
   --ge-text-muted is the token --c-text-strong (#4b5563) and --ge-text-faint
   is --c-text-muted (#6b7280).
   ===================================================================== */
/* =============================================================================
   Golf Empire â€” Search page styles
   Round 1 (Phase 1d polish): brand-aligned visual tightening
   See HANDOFF doc for context. Tokens mirror sitewide brand system.
   ============================================================================= */

/* --- Design tokens ------------------------------------------------------ */

:root {
    /* Brand â€” navy family */
    --ge-navy:           var(--c-brand);   /* primary */
    --ge-navy-dark:      #1f3f5c;   /* hover */
    --ge-navy-darker:    #17344d;   /* deeper hover (links) */
    --ge-navy-soft:      #2b5b82;   /* lighter hover bar */
    --ge-navy-accent:    #3A6EA5;   /* bright accent strip on dark bars */
    --ge-navy-accent-h:  #4a86c5;   /* accent strip on hover */
    --ge-blue-soft:      var(--c-brand-tint);   /* pale soft blue */
    --ge-blue-tint:      #f4f8fb;   /* very pale tint for hovers */

    /* Brand â€” wine / premium */
    --ge-wine:           var(--c-premium);
    --ge-wine-soft:      var(--c-premium-tint);
    --ge-gold:           var(--c-focus);

    /* Accent â€” orange/amber, kept for "Clear all" pill (destructive/reset) */
    --ge-amber:          #c54100;
    --ge-amber-bg:       #fff5e6;
    --ge-amber-bg-hover: #ffe7c2;
    --ge-amber-border:   #ffd9a8;

    /* Status */
    --ge-green:          var(--c-success);
    --ge-red:            var(--c-danger);

    /* Neutrals â€” text */
    --ge-text:           var(--c-text);
    --ge-text-strong:    #1f2f3a;
    --ge-text-muted:     var(--c-text-strong);
    --ge-text-faint:     var(--c-text-muted);
    --ge-text-fainter:   #8a929c;

    /* Neutrals â€” borders & surfaces */
    --ge-border:         var(--c-border);   /* standard */
    --ge-border-soft:    #eef2f5;   /* softer dividers */
    --ge-border-softer:  #e6ebef;
    --ge-bg-page:        #ffffff;   /* page bg (sits inside #container which is white) */
    --ge-bg-tinted:      #fafbfc;   /* card-like tinted bg */
    --ge-bg-card:        #ffffff;
    --ge-bg-pale:        #f5f7f9;   /* very pale fill for headers */
    --ge-bg-hover:       #f4f8fb;   /* subtle hover */

    /* Type */
    --ge-font: "TikTok Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Shape */
    --ge-radius-sm: 6px;
    --ge-radius-md: 8px;
    --ge-radius-lg: 10px;
    --ge-radius-xl: 14px;
    --ge-radius-pill: 999px;

    /* Shadow */
    --ge-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --ge-shadow-md: 0 6px 14px rgba(0,0,0,.05);
    --ge-shadow-lg: 0 10px 22px rgba(0,0,0,.06);

    /* Focus ring (sitewide convention) */
    --ge-focus-ring: 2px solid rgba(254,206,32,.95);
}


/* --- Base --------------------------------------------------------------- */

* { box-sizing: border-box; }

/* Note: we don't override body â€” the sitewide stylesheet already sets font,
   colour, antialiasing, and background. The search page lives inside #container. */

.container {
    max-width: 1154px;
    margin: 0 auto;
    padding: 15px;
    font-family: var(--ge-font);
    color: var(--ge-text);
	background-color: var(--c-border);
}

h1 {
    margin: 0 0 5px;
    font-size: 1.6em;
    color: var(--ge-text-strong);
    font-weight: 700;
}
.intro {
    color: var(--ge-text-muted);
    margin-bottom: 20px;
}


/* --- Layout: sidebar + results ----------------------------------------- */

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .layout { grid-template-columns: 1fr; }

    /* Hide the sidebar by default on mobile â€” it lives inside the drawer now */
    .sidebar {
        order: 2;
        display: none;
    }

    /* When the drawer is open, the sidebar reveals (inside the drawer) */
    body.drawer-open .sidebar {
            display: block;
            position: static;
            max-height: none;
            border: none;
            border-radius: 0;
            box-shadow: none;
            padding: 4px 12px;       /* gives every input some room for its focus ring */
            background: transparent;
        }
}


/* --- Sidebar ----------------------------------------------------------- */

.sidebar {
    background: var(--ge-bg-card);
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-xl);
    padding: 18px;
    box-shadow: var(--ge-shadow-lg);
}

.sidebar h2 {
    margin: 0 0 16px;
    font-size: 1.1em;
    color: var(--ge-text-strong);
    font-weight: 600;
}

.filter-group {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ge-border-soft);
}
.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.filter-group h3 {
    margin: 0 0 8px;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ge-text-muted);
    font-weight: 600;
}

.filter-search input,
.filter-group input[type=text],
.filter-group input[type=number],
.filter-group input[type=date],
.filter-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    font-size: 0.9em;
    font-family: inherit;
    color: var(--ge-text);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.filter-search input:focus,
.filter-search input:focus-visible,
.filter-group input:focus,
.filter-group input:focus-visible,
.filter-group select:focus,
.filter-group select:focus-visible {
    outline: none;
    border-color: var(--ge-navy);
    /* Use box-shadow (not outline) for the focus ring so it stays inside
       the sidebar's overflow-y:auto container without getting clipped. */
    box-shadow: 0 0 0 3px rgba(254,206,32,.55);
}

.filter-options {
    font-size: 0.9em;
}
.filter-option {
    display: flex;
    align-items: flex-start;
    padding: 4px 0;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--ge-text);
}
.filter-option:hover .label {
    color: var(--ge-navy);
}
.filter-option input {
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--ge-navy);
}
.filter-option .label {
    flex: 1;
    min-width: 0;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    transition: color .15s ease;
}
.filter-option .count {
    color: var(--ge-text-fainter);
    font-size: 0.85em;
    margin-left: 6px;
    flex-shrink: 0;
}
.filter-option.disabled {
    color: #b3bac3;
    cursor: not-allowed;
}
.filter-option.disabled .count {
    color: #d0d6de;
}

/* Type pills (filter sidebar â€” Individual / Pairs / Team etc.) */
.type-pills {
    display: flex;
    gap: 4px;
}
.type-pills label {
    flex: 1;
    text-align: center;
    padding: 7px 4px;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    background: #fff;
    cursor: pointer;
    font-size: 0.85em;
    color: var(--ge-navy);
    font-weight: 500;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.type-pills label:hover {
    background: var(--ge-bg-hover);
}
.type-pills input { display: none; }
.type-pills input:checked + span {
    font-weight: 700;
}
.type-pills label:has(input:checked) {
    background: var(--ge-navy);
    color: #fff;
    border-color: var(--ge-navy);
    box-shadow: 0 4px 10px rgba(37,78,113,.20);
}

/* Date preset shortcut buttons */
.date-presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}
.date-presets a {
    text-align: center;
    padding: 6px 4px;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    text-decoration: none;
    color: var(--ge-navy);
    font-size: 0.85em;
    font-weight: 600;
    background: #fff;
    transition: background .15s ease, border-color .15s ease;
}
.date-presets a:hover {
    background: var(--ge-bg-hover);
    border-color: rgba(37,78,113,.25);
}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 6px;
}
.date-range > div {
    display: flex;
    flex-direction: column;
}
.date-range label {
    font-size: 0.8em;
    color: var(--ge-text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}
.date-range input[type=date] {
    min-width: 0;
    width: 100%;
}

/* "Clear all" â€” top of sidebar (link variant) */
.clear-all {
    display: block;
    text-align: center;
    margin-bottom: 14px;
    padding: 8px;
    background: var(--ge-amber-bg);
    color: var(--ge-amber);
    border: 1px solid var(--ge-amber-border);
    border-radius: var(--ge-radius-md);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: background .15s ease;
}
.clear-all:hover { background: var(--ge-amber-bg-hover); }
.clear-all.inactive {
    background: var(--ge-bg-pale);
    color: #aaa;
    border-color: var(--ge-border);
    cursor: default;
    pointer-events: none;
}

/* "Clear all" â€” inline in pills row (subtle dashed pill) */
.pills-clear-all {
    background: transparent;
    border: 1px dashed var(--ge-amber);
    color: var(--ge-amber);
    padding: 4px 12px;
    border-radius: var(--ge-radius-pill);
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: background .15s ease, border-style .15s ease;
}
.pills-clear-all:hover {
    background: var(--ge-amber-bg);
    border-style: solid;
}

/* Sticky footer at the bottom of the sidebar â€” visible regardless of scroll. */
/* Desktop: redundant with top Clear All + pills-row Clear All â€” hide. */
.sidebar-sticky-footer {
    display: none;
}
/* Mobile drawer: the drawer pattern needs an accessible bottom
   Clear All since the user can scroll a lot inside the drawer. */
@media (max-width: 768px) {
    .sidebar-sticky-footer {
        display: block;
        margin: 12px 0 0;
        padding: 12px 0 0;
        border-top: 1px solid var(--ge-border);
    }
}
.clear-all-bottom {
    display: block;
    text-align: center;
    padding: 8px;
    background: var(--ge-amber-bg);
    color: var(--ge-amber);
    border: 1px solid var(--ge-amber-border);
    border-radius: var(--ge-radius-md);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.clear-all-bottom:hover { background: var(--ge-amber-bg-hover); }
.clear-all-bottom.inactive {
    background: var(--ge-bg-pale);
    color: #aaa;
    border-color: var(--ge-border);
    cursor: default;
    pointer-events: none;
}

/* Apply button (fallback for no-JS) */
.apply-button {
    width: 100%;
    padding: 10px;
    background: var(--ge-navy);
    color: #fff;
    border: none;
    border-radius: var(--ge-radius-md);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    font-family: inherit;
    transition: background .15s ease;
}
.apply-button:hover { background: var(--ge-navy-dark); }

.note {
    color: var(--ge-text-faint);
    font-size: 0.8em;
    font-style: italic;
    margin-top: 4px;
}


/* --- Results column ---------------------------------------------------- */

.results {
    min-width: 0;
}
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
    scroll-margin-top: 135px;
}

[hidden] { display: none !important; }

.results-header .count {
    color: var(--ge-text);
    font-size: 0.95em;
    font-weight: 500;
}
.results-header .count strong {
    color: var(--ge-text-strong);
    font-weight: 700;
}
.results-header select {
    padding: 6px 10px;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    font-family: inherit;
    font-size: 0.9em;
    color: var(--ge-text);
    background: #fff;
    cursor: pointer;
}
.results-header select:focus-visible {
    outline: var(--ge-focus-ring);
    outline-offset: 2px;
}


/* --- Active filter pills ---------------------------------------------- */

#active-filters {
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
#active-filters.empty { display: none; }

.filter-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(37,78,113,.08);
    color: var(--ge-navy);
    padding: 4px 6px 4px 12px;
    border-radius: var(--ge-radius-pill);
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid rgba(37,78,113,.15);
}
.pill-remove {
    background: none;
    border: none;
    color: var(--ge-navy);
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
    margin-left: 4px;
    padding: 0 4px;
    font-family: inherit;
    border-radius: 50%;
    transition: background .15s ease, color .15s ease;
}
.pill-remove:hover {
    background: rgba(37,78,113,.18);
    color: var(--ge-navy-dark);
}


/* --- View toggle (List / Calendar / Map tabs) -------------------- */

.view-toggle {
    display: inline-flex;
    gap: 0;
    margin-bottom: 16px;
    background: var(--ge-bg-pale);
    padding: 4px;
    border-radius: var(--ge-radius-md);
    border: 1px solid var(--ge-border-softer);
}
.view-toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    font-size: 0.95em;
    cursor: pointer;
    color: var(--ge-text-muted);
    font-family: inherit;
    border-radius: var(--ge-radius-sm);
    transition: background .15s ease, color .15s ease;
    font-weight: 500;
}
.view-toggle-btn:hover { color: var(--ge-navy); }
.view-toggle-btn.active {
    background: #fff;
    color: var(--ge-navy);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.view-toggle-btn:focus-visible {
    outline: var(--ge-focus-ring);
    outline-offset: 2px;
}
.view-toggle-btn i { margin-right: 6px; }


/* --- Calendar grid ---------------------------------------------------- */

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}
.calendar-nav h2 {
    margin: 0;
    color: var(--ge-navy);
    font-size: 1.4em;
    min-width: 240px;
    text-align: center;
    font-weight: 700;
}
.calendar-nav button {
    background: #fff;
    border: 1px solid var(--ge-navy);
    color: var(--ge-navy);
    padding: 6px 14px;
    border-radius: var(--ge-radius-md);
    cursor: pointer;
    font-size: 1.2em;
    font-family: inherit;
    transition: background .15s ease, color .15s ease;
}
.calendar-nav button:hover { background: var(--ge-navy); color: #fff; }
.calendar-nav button:focus-visible {
    outline: var(--ge-focus-ring);
    outline-offset: 2px;
}
.calendar-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #fff;
    color: var(--ge-navy);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));  /* minmax(0,â€¦) lets cells shrink below content width */
    gap: 2px;
    background: var(--ge-border);
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    overflow: hidden;
}
.calendar-grid .cal-day-header {
    background: var(--ge-bg-pale);
    padding: 6px;
    text-align: center;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--ge-text-strong);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.calendar-grid .cal-cell {
    background: #fff;
    min-height: 80px;
    padding: 6px 8px;
    cursor: pointer;
    transition: background .1s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;       /* lets the cell shrink horizontally */
    overflow: hidden;   /* clips count text rather than blowing out the grid */
}
.calendar-grid .cal-cell:hover {
    background: var(--ge-bg-hover);
}
.calendar-grid .cal-cell.empty {
    background: var(--ge-bg-tinted);
    cursor: default;
}
.calendar-grid .cal-cell.empty:hover { background: var(--ge-bg-tinted); }
.calendar-grid .cal-cell.past {
    background: var(--ge-bg-pale);
    color: #aaa;
    cursor: default;
}
.calendar-grid .cal-cell.past:hover { background: var(--ge-bg-pale); }
.calendar-grid .cal-cell.no-events {
    background: var(--ge-bg-tinted);
    color: #b3bac3;
    cursor: default;
}
.calendar-grid .cal-cell.no-events:hover { background: var(--ge-bg-tinted); }
.calendar-grid .cal-cell.today {
    outline: 2px solid var(--ge-gold);
    outline-offset: -2px;
    background: #fff7d6;
}
.calendar-grid .cal-cell.selected {
    background: var(--ge-navy);
    color: #fff;
}
.calendar-grid .cal-cell.selected:hover { background: var(--ge-navy); }
.calendar-grid .cal-cell.selected .cal-count { color: #fff; }
.cal-date {
    font-weight: 600;
    font-size: 1.3em;
    line-height: 1;
}
.cal-count {
    margin-top: auto;
    font-size: 0.8em;
    color: var(--ge-navy);
    font-weight: 500;
}

.calendar-day-panel {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--ge-border);
    /* Offset scroll-into-view so the day title isn't tucked behind
       the sticky site header. */
    scroll-margin-top: 110px;
}
.calendar-day-panel h3 {
    margin: 0 0 12px;
    color: var(--ge-navy);
    font-weight: 600;
}
#cal-day-events .empty {
    color: var(--ge-text-faint);
    font-style: italic;
    padding: 16px;
    text-align: center;
}

/* Calendar tier upsell â€” uses the wine/premium upsell pattern from sitewide */
.calendar-upsell {
    background: #fff;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-xl);
    padding: 40px 32px;        /* generous, sized for headline + paragraph + 3 buttons */
    text-align: center;
    margin: 16px 0;
    box-shadow: var(--ge-shadow-lg);
    position: relative;        /* anchor for the accent strip */
    overflow: hidden;
}
/* Wine accent strip across the top */
.calendar-upsell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(163,0,63,.70);
}
.calendar-upsell h3 {
    margin: 0 0 12px;
    color: var(--ge-text-strong);
    font-size: 1.3em;
    font-weight: 600;
}
.calendar-upsell p {
    margin: 0 0 16px;
    color: var(--ge-text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}
.calendar-upsell .tier-wall-actions {
    margin-top: 24px;
}


/* --- Sidebar radius search (Near a location) ------------------------- */

.sidebar-radius {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sidebar-radius input[type=text],
.sidebar-radius input[type=search],
.sidebar-radius select {
    padding: 8px 10px;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    font-family: inherit;
    font-size: 0.9em;
    background: #fff;
    color: var(--ge-text);
    -webkit-appearance: none;  /* kill iOS default search styling */
    appearance: none;
}
.sidebar-radius input:focus,
.sidebar-radius input:focus-visible,
.sidebar-radius select:focus,
.sidebar-radius select:focus-visible {
    outline: none;
    border-color: var(--ge-navy);
    box-shadow: 0 0 0 3px rgba(254,206,32,.55);
}
.sidebar-radius button {
    padding: 8px 12px;
    border: 1px solid var(--ge-navy);
    background: var(--ge-navy);
    color: #fff;
    border-radius: var(--ge-radius-md);
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.sidebar-radius button:hover { background: var(--ge-navy-dark); }
/* A place typed but not applied yet: the button stands out, with a hint */
.sidebar-radius.is-stale button { box-shadow: 0 0 0 3px rgba(254,206,32,.7); }
.sidebar-radius-stale { font-size: 0.82em; color: var(--ge-navy); margin: 6px 0 0; }
.sidebar-radius-msg { font-size: 0.82em; color: var(--c-danger); margin: 6px 0 0; }
.sidebar-radius-hint {
    font-size: 0.8em;
    color: var(--ge-text-faint);
    margin: 6px 0 0;
}


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

.map-controls {
    margin-bottom: 12px;
}
.map-search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: stretch;
}
.map-search input[type=text],
.map-search input[type=search] {
    flex: 1 1 200px;
    min-width: 200px;
    padding: 9px 12px;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    font-family: inherit;
    font-size: 0.95em;
    color: var(--ge-text);
    -webkit-appearance: none;
    appearance: none;
}
.map-search input:focus,
.map-search input:focus-visible,
.map-search select:focus,
.map-search select:focus-visible {
    outline: none;
    border-color: var(--ge-navy);
    box-shadow: 0 0 0 3px rgba(254,206,32,.55);
}
.map-search select {
    padding: 9px 12px;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    font-family: inherit;
    font-size: 0.95em;
    background: #fff;
    color: var(--ge-text);
}
.map-search button {
    padding: 9px 16px;
    border: 1px solid var(--ge-navy);
    background: var(--ge-navy);
    color: #fff;
    border-radius: var(--ge-radius-md);
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.map-search button:hover { background: var(--ge-navy-dark); }
.map-search #map-clear-search {
    background: #fff;
    color: var(--ge-amber);
    border-color: var(--ge-amber-border);
}
.map-search #map-clear-search:hover { background: var(--ge-amber-bg); }
.map-hint {
    font-size: 0.8em;
    color: var(--ge-text-faint);
    margin: 6px 0 0;
}
#map-canvas {
    height: 450px;
    width: 100%;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    z-index: 0;  /* stay below sidebar/popovers */
}
.map-warning {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff7e6;
    border: 1px solid #f0c060;
    border-radius: var(--ge-radius-md);
    color: #885500;
    font-size: 0.85em;
}

/* Marker popup styling */
.leaflet-popup-content {
    margin: 12px 16px;
    font-family: inherit;
    line-height: 1.4;
}
.leaflet-popup-content .marker-comp {
    font-weight: 600;
    color: var(--ge-navy);
    font-size: 1em;
    margin-bottom: 4px;
}
.leaflet-popup-content .marker-club {
    font-size: 0.9em;
    color: var(--ge-text-muted);
    margin-bottom: 4px;
}
.leaflet-popup-content .marker-meta {
    font-size: 0.85em;
    color: var(--ge-text-faint);
    margin-bottom: 8px;
}
.leaflet-popup-content .marker-link {
    display: inline-block;
    background: var(--ge-navy);
    color: #fff;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: var(--ge-radius-sm);
    font-size: 0.85em;
    font-weight: 600;
    transition: background .15s ease;
}
.leaflet-popup-content .marker-link:hover { background: var(--ge-navy-dark); }
.leaflet-popup-content .marker-drive {
    color: var(--ge-navy);
    font-weight: 600;
    margin-top: 2px;
}

#map-event-list {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--ge-border);
    scroll-margin-top: 110px;
}
#map-event-list h3 {
    margin: 0 0 12px;
    color: var(--ge-navy);
    font-weight: 600;
}
.map-card {
    background: #fff;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-lg);
    padding: 12px 14px;
    margin-bottom: 10px;
}
.map-card-title {
    font-weight: 600;
    color: var(--ge-navy);
    text-decoration: none;
    font-size: 1em;
}
.map-card-title:hover { color: var(--ge-navy-dark); text-decoration: underline; }
.map-card-extra {
    font-size: 0.9em;
    color: var(--ge-text-muted);
    margin-top: 2px;
}
.map-card-club {
    font-size: 0.9em;
    color: var(--ge-text-muted);
    margin-top: 4px;
}
.map-card-meta {
    font-size: 0.85em;
    color: var(--ge-text-faint);
    margin-top: 4px;
}
.map-card-drive {
    font-size: 0.85em;
    color: var(--ge-navy);
    font-weight: 600;
    margin-top: 4px;
}


/* --- Event cards ---------------------------------------------------- */

.event-card {
    background: var(--ge-bg-card);
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-xl);
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
}
.event-card .photo { flex: 0 0 160px; }
.event-card .photo img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--ge-radius-md);
    display: block;
}
.event-card .photo .placeholder {
    width: 160px;
    height: 110px;
    background: var(--ge-bg-pale);
    border-radius: var(--ge-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ge-text-faint);
    font-size: 0.85em;
    text-align: center;
}
.event-card .body { flex: 1; min-width: 0; }
.event-card .compname {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 2px;
    line-height: 1.3;
}
.event-card .compname a {
    color: var(--ge-navy);
    text-decoration: none;
    transition: color .15s ease;
}
.event-card .compname a:hover {
    color: var(--ge-navy-darker);
    text-decoration: underline;
}
.event-card .compnameextra {
    font-style: italic;
    color: var(--ge-text-muted);
    margin: 0 0 8px;
    font-size: 0.95em;
}
.event-card .club-name {
    font-size: 0.95em;
    color: var(--ge-text);
    margin: 0 0 8px;
}
.event-card .club-name a {
    color: var(--ge-text);
    text-decoration: none;
}
.event-card .club-name a:hover {
    color: var(--ge-navy);
    text-decoration: underline;
}
.event-card .date {
    font-weight: 600;
    color: var(--ge-navy);
    margin: 4px 0;
}
.event-card .closing {
    color: var(--ge-text-faint);
    font-size: 0.85em;
}
/* "Entries closed" pill â€” shown when the closing date is in the past.
   Muted grey to be visible but not alarming. */
.event-card .closed-pill {
    display: inline-block;
    background: var(--ge-bg-pale);
    color: var(--ge-text-muted);
    font-size: 0.78em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--ge-radius-pill);
    border: 1px solid var(--ge-border);
    margin-left: 6px;
    vertical-align: middle;
}
.event-card .price {
    font-weight: 600;
    margin: 4px 0;
    color: var(--ge-text-strong);
}
.event-card .meta {
    color: var(--ge-text-muted);
    font-size: 0.9em;
    margin: 4px 0;
}
.event-card .drive-time {
    color: var(--ge-navy);
    font-size: 0.9em;
    font-weight: 600;
    margin: 4px 0;
}
.event-card .location {
    color: var(--ge-text-faint);
    font-size: 0.85em;
    margin: 4px 0;
}
.event-card .badges { margin-top: 8px; }

/* Course-attribute badges (Top 100, True Links, Royal, Open Venue, Ryder Cup) */
.event-card .badge {
    display: inline-block;
    background: rgba(254,206,32,.22);
    color: #6a4d00;
    padding: 3px 9px;
    border-radius: var(--ge-radius-sm);
    font-size: 0.78em;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
    border: 1px solid rgba(254,206,32,.40);
}
/* Tag chips (Charity, Multi-Day, Scratch etc.) */
.event-card .tag {
    display: inline-block;
    background: rgba(37,78,113,.08);
    color: var(--ge-navy);
    padding: 3px 9px;
    border-radius: var(--ge-radius-sm);
    font-size: 0.78em;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
    border: 1px solid rgba(37,78,113,.15);
}
.event-card .cta { margin-top: 10px; }
.event-card .cta a {
    display: inline-block;
    background: var(--ge-navy);
    color: #fff;
    padding: 7px 16px;
    text-decoration: none;
    border-radius: var(--ge-radius-md);
    font-size: 0.9em;
    font-weight: 600;
    transition: background .15s ease;
}
.event-card .cta a:hover { background: var(--ge-navy-dark); }


/* --- Tier gating ---------------------------------------------------- */

/* Loading state: faint overlay on the sidebar while Memberstack initialises */
.tier-loading aside .filter-group {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}
.tier-loading aside::before {
    content: 'Loading filtersâ€¦';
    display: block;
    font-size: 0.85em;
    color: var(--ge-text-faint);
    text-align: center;
    padding: 8px;
    background: var(--ge-bg-pale);
    border-radius: var(--ge-radius-md);
    margin-bottom: 12px;
}
.tier-loading #event-list,
.tier-loading #load-more-wrap {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* "New" badge on a filter heading (remove the span from the heading when it's no longer new) */
.filter-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #e7f6e9; color: #166534;
  font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; vertical-align: 2px; }

/* My Courses filter hint */
.filter-group--mc .pred-hint { display: block; margin: 6px 0 0 2px; font-size: .82em; color: #64748b; line-height: 1.4; }
.filter-group--mc .pred-hint a { color: var(--c-brand); font-weight: 600; }

/* Locked filter groups (Premium-only filters seen by free/anon users) */
.tier-locked {
    position: relative;
    opacity: 0.55;
}
.tier-locked::after {
    content: 'ðŸ”’ Premium';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--ge-wine);
    color: var(--ge-gold);
    font-size: 0.7em;
    padding: 3px 9px;
    border-radius: 0 var(--ge-radius-md) 0 var(--ge-radius-md);
    font-weight: 600;
    letter-spacing: .2px;
}
/* Block all interaction with locked filter inputs */
.tier-locked .filter-options,
.tier-locked input,
.tier-locked select,
.tier-locked button,
.tier-locked .filter-option,
.tier-locked .date-range,
.tier-locked .sidebar-radius,
.tier-locked p,
.tier-locked label {
    pointer-events: none !important;
    cursor: not-allowed !important;
}
.tier-locked::after {
    pointer-events: auto;
}

/* Walls â€” appear at the bottom of the result list when the cap is hit */
.tier-wall {
    background: var(--ge-wine-soft);
    margin-top: 16px;          /* clear separation from the last card */
    padding: 40px 20px;
    text-align: center;
    border-radius: var(--ge-radius-xl);
    position: relative;
}
.tier-wall-inner {
    background: #fff;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-xl);
    padding: 32px 28px;        /* generous breathing room */
    max-width: 480px;
    margin: 0 auto;
    box-shadow: var(--ge-shadow-lg);
    position: relative;        /* anchor for the accent strip */
    overflow: hidden;
}
/* Wine accent strip across the top */
.tier-wall-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(163,0,63,.70);
}
.tier-wall h3 {
    margin: 0 0 8px;
    color: var(--ge-text-strong);
    font-weight: 600;
}
.tier-wall p {
    margin: 0 0 16px;
    color: var(--ge-text-muted);
    line-height: 1.55;
}
.tier-wall-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.tier-wall-actions .btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: var(--ge-radius-md);
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    transition: background .15s ease, color .15s ease, filter .15s ease;
}
.tier-wall-actions .btn--prem {
    background: var(--ge-wine);
    color: var(--ge-gold);
    border-color: transparent;
}
.tier-wall-actions .btn--prem:hover { filter: brightness(1.05); }
.tier-wall-actions .btn--free {
    background: var(--ge-navy);
    color: #fff;
    border-color: transparent;
}
.tier-wall-actions .btn--free:hover { background: var(--ge-navy-dark); }
.tier-wall-actions .btn--ghost {
    background: #fff;
    color: var(--ge-navy);
    border-color: var(--ge-navy);
    border-width: 2px;
}
.tier-wall-actions .btn--ghost:hover {
    background: var(--ge-blue-soft);
    color: var(--ge-navy);
}
.tier-wall-actions .btn:focus-visible {
    outline: var(--ge-focus-ring);
    outline-offset: 3px;
}


/* --- Load more / empty state --------------------------------------- */

#load-more-wrap {
    margin: 30px 0;
    text-align: center;
}
#load-more {
    background: #fff;
    border: 1px solid var(--ge-navy);
    color: var(--ge-navy);
    padding: 11px 28px;
    border-radius: var(--ge-radius-md);
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease, color .15s ease;
}
#load-more:hover {
    background: var(--ge-navy);
    color: #fff;
}
#load-more:focus-visible {
    outline: var(--ge-focus-ring);
    outline-offset: 2px;
}
#load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--ge-text-muted);
}


/* --- Mobile (sitewide breakpoint: 768px) --------------------------- */

@media (max-width: 768px) {
    .event-card { flex-direction: column; }
    .event-card .photo { flex: 0; }
    .event-card .photo img,
    .event-card .photo .placeholder {
        width: 100%;
        height: 180px;
    }
}

/* ============================================================
   Mobile filter FAB â€” floating filters button
   Conditionally shown based on view + state (see body[data-*]
   attributes set by JS).
   ============================================================ */

.filter-fab {
    display: none;  /* mobile only â€” show rules below */
}

@media (max-width: 768px) {
    .filter-fab {
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--ge-navy);
        color: #fff;
        border: none;
        padding: 12px 22px;
        border-radius: var(--ge-radius-pill);
        font-family: inherit;
        font-size: 1em;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
        z-index: 900;          /* below drawer (999), above content */
        white-space: nowrap;
        transition: opacity 0.2s ease, transform 0.18s ease;
    }
    .filter-fab:hover {
        background: var(--ge-navy-dark);
    }
    .filter-fab:active {
        transform: translateX(-50%) scale(0.96);
    }
    .filter-fab:focus-visible {
        outline: var(--ge-focus-ring);
        outline-offset: 3px;
    }

    .filter-fab .filter-fab-count {
        background: rgba(255,255,255,0.25);
        padding: 2px 9px;
        border-radius: var(--ge-radius-pill);
        font-size: 0.85em;
        font-weight: 700;
        min-width: 22px;
        text-align: center;
    }
    .filter-fab .filter-fab-count.zero {
        display: none;
    }

    /* SHOW the FAB when on List view */
    body[data-active-view=list] .filter-fab {
        display: inline-flex;
    }

    /* SHOW the FAB on Calendar only after a day has been selected */
    body[data-active-view=calendar][data-cal-day-selected="1"] .filter-fab {
        display: inline-flex;
    }

    /* SHOW the FAB on Map only after a centre has been set */
    body[data-active-view=map][data-map-centre-set="1"] .filter-fab {
        display: inline-flex;
    }

    /* HIDE while drawer is open â€” sliding it off-screen rather than
       display:none avoids a flash when the drawer closes. */
    body.drawer-open .filter-fab {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(20px);
    }

    /* HIDE when page footer is in view â€” IntersectionObserver in JS
       toggles .footer-visible on body. */
    body.footer-visible .filter-fab {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Respect reduced motion â€” no transform on press */
@media (prefers-reduced-motion: reduce) {
    .filter-fab,
    .filter-fab:active {
        transition: opacity 0.2s ease;
        transform: translateX(-50%);
    }
}

/* ============================================================
   Mobile filter drawer â€” slides in from the left under 768px
   ============================================================ */

/* The trigger button â€” hidden on desktop, shown on mobile in results header */
.filter-trigger {
    display: none;  /* shown only at <768px via media query below */
    align-items: center;
    gap: 8px;
    background: var(--ge-navy);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--ge-radius-md);
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.filter-trigger:hover { background: var(--ge-navy-dark); }
.filter-trigger:focus-visible {
    outline: var(--ge-focus-ring);
    outline-offset: 2px;
}
.filter-trigger .filter-trigger-count {
    background: rgba(255,255,255,.20);
    padding: 1px 8px;
    border-radius: var(--ge-radius-pill);
    font-size: 0.85em;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}
.filter-trigger .filter-trigger-count.zero {
    display: none;
}

/* The drawer + backdrop are present in the DOM at all sizes but display:none
   on desktop (>=768px). Below 768px they become visible when .drawer-open
   is added to <body>. */
.filter-drawer-backdrop,
.filter-drawer {
    display: none;
}

@media (max-width: 768px) {
    /* Show the trigger in the results header */
    .filter-trigger {
        display: inline-flex;
    }

    /* Backdrop */
    .filter-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }
    body.drawer-open .filter-drawer-backdrop {
        opacity: 1;
        visibility: visible;
    }

    /* Drawer container */
    .filter-drawer {
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 92%;
            max-width: 420px;
            background: #fff;
            z-index: 999;
            transform: translateX(-100%);
            transition: transform .28s ease;
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        }
    body.drawer-open .filter-drawer {
        transform: translateX(0);
    }

    /* Drawer header â€” title + clear all + close button */
    .filter-drawer-header {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border-bottom: 1px solid var(--ge-border);
        background: #fff;
    }
    .filter-drawer-header h2 {
        margin: 0;
        font-size: 1.1em;
        font-weight: 600;
        color: var(--ge-text-strong);
        flex: 1;
    }
    .filter-drawer-clear {
        background: transparent;
        border: 1px dashed var(--ge-amber);
        color: var(--ge-amber);
        padding: 4px 12px;
        border-radius: var(--ge-radius-pill);
        font-size: 0.8em;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        text-decoration: none;
    }
    .filter-drawer-clear.inactive {
        display: none;
    }
    .filter-drawer-close {
        background: transparent;
        border: none;
        color: var(--ge-text);
        font-size: 1.6em;
        line-height: 1;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: var(--ge-radius-md);
        font-family: inherit;
    }
    .filter-drawer-close:hover {
        background: var(--ge-bg-hover);
    }
    .filter-drawer-close:focus-visible {
        outline: var(--ge-focus-ring);
        outline-offset: 2px;
    }

    /* Drawer body â€” scrollable region housing the existing sidebar */
    .filter-drawer-body {
            flex: 1 1 auto;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 16px 8px;       /* deliberately TIGHT â€” sidebar inside has its own padding */
            -webkit-overflow-scrolling: touch;
        }

    /* Drawer footer â€” sticky "Show N events" button */
    .filter-drawer-footer {
        flex: 0 0 auto;
        padding: 12px 16px;
        border-top: 1px solid var(--ge-border);
        background: #fff;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
    }
    .filter-drawer-apply {
        width: 100%;
        background: var(--ge-navy);
        color: #fff;
        border: none;
        padding: 14px 16px;
        border-radius: var(--ge-radius-md);
        font-family: inherit;
        font-size: 1em;
        font-weight: 600;
        cursor: pointer;
        transition: background .15s ease;
    }
    .filter-drawer-apply:hover { background: var(--ge-navy-dark); }
    .filter-drawer-apply:focus-visible {
        outline: var(--ge-focus-ring);
        outline-offset: 2px;
    }

    /* Hide the original sidebar Apply button + sticky-bottom Clear All
       inside the drawer (the drawer footer + drawer header handle these) */
    body.drawer-open .sidebar .apply-button,
    body.drawer-open .sidebar .sidebar-sticky-footer,
    body.drawer-open .sidebar h2 {
        display: none;
    }

    /* Lock body scroll while drawer is open */
    body.drawer-open {
        overflow: hidden;
    }

    /* ============================================================
       Mobile touch-target enlargements
       ============================================================ */

    /* Filter checkbox/radio rows â€” bigger tappable area */
    .filter-option {
        padding: 8px 0;
        min-height: 40px;
    }
    .filter-option input {
        margin-top: 5px;
        transform: scale(1.15);
        margin-right: 12px;
    }

    /* Type pills â€” bigger */
    .type-pills label {
        padding: 10px 4px;
        font-size: 0.9em;
    }

    /* Date preset buttons â€” bigger */
    .date-presets a {
        padding: 9px 4px;
        font-size: 0.9em;
    }

    /* Active filter pill remove Ã— â€” bigger tap area */
    .pill-remove {
        font-size: 1.4em;
        padding: 2px 8px;
    }

    /* View toggle (List/Calendar/Map) â€” full-width tabs */
    .view-toggle {
        display: flex;
        width: 100%;
    }
    .view-toggle-btn {
        flex: 1;
        padding: 10px 8px;
        font-size: 0.9em;
    }
    .view-toggle-btn i {
        margin-right: 4px;
    }

    /* Radius search â€” stack the controls full-width */
    .map-search {
        flex-direction: column;
    }
    .map-search input[type=text],
    .map-search select,
    .map-search button {
        width: 100%;
        min-width: 0;
    }

    /* Results header: count and sort can wrap better */
    .results-header {
        gap: 12px;
    }
    
    

        /* Calendar grid: tighter cells on phone */
        .calendar-grid .cal-cell {
            min-height: 56px;
            padding: 4px 3px;
        }
        .cal-date {
            font-size: 1em;
        }
        .cal-count {
            font-size: 0.7em;
        }
        .calendar-grid .cal-day-header {
            padding: 4px 2px;
            font-size: 0.65em;
            letter-spacing: 0.02em;
        }
}

/* Force-fix map postcode input height on mobile.
   Some Android keyboard helpers and browser extensions inflate the
   input row even after autocomplete suppression. This pins the height. */
@media (max-width: 768px) {
    #map-search-input {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        line-height: 1.4 !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
}

/* ============================================================
   Price filter â€” quick-pick chips with custom reveal
   ============================================================ */

.price-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.price-chip {
    flex: 1 1 calc(33.333% - 4px);
    min-width: 0;
    padding: 8px 4px;
    background: #fff;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    color: var(--ge-navy);
    font-size: 0.85em;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.price-chip:hover {
    background: var(--ge-bg-hover);
}
.price-chip:focus-visible {
    outline: none;
    border-color: var(--ge-navy);
    box-shadow: 0 0 0 3px rgba(254,206,32,.55);
}
.price-chip.active {
    background: var(--ge-navy);
    color: #fff;
    border-color: var(--ge-navy);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(37,78,113,.20);
}

/* Custom price input â€” hidden until the Custom chip is tapped */
.price-custom-wrap {
    margin-top: 8px;
    display: none;
}
.price-custom-wrap.visible {
    display: block;
}
.price-custom-wrap label {
    display: block;
    font-size: 0.8em;
    color: var(--ge-text-muted);
    margin-bottom: 4px;
}

/* ============================================================
   Loading state â€” spinner near result count, soft card dim
   ============================================================ */

/* Spinner that appears next to the count during fetches */
.results-loading-spinner {
    display: none;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(37,78,113,.20);
    border-top-color: var(--ge-navy);
    border-radius: 50%;
    animation: ge-spin .7s linear infinite;
    vertical-align: -2px;
}
.results-header.is-loading .results-loading-spinner {
    display: inline-block;
}

@keyframes ge-spin {
    to { transform: rotate(360deg); }
}

/* Softer card dim while loading â€” was 0.5, now 0.85 (less alarming) */
#event-list.is-loading {
    opacity: 0.85;
    transition: opacity .15s ease;
}

/* Respect users who prefer reduced motion: don't spin */
@media (prefers-reduced-motion: reduce) {
    .results-loading-spinner {
        animation: none;
        border-top-color: rgba(37,78,113,.20);
        opacity: .6;
    }
}

/* ============================================================
   Collapsible filter groups (County, Day of Week)
   ============================================================ */

/* Make the h3 a button-like clickable target */
.filter-group.is-collapsible > h3 {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    padding-right: 4px;
    /* Match existing h3 styles otherwise â€” those still cascade */
}

/* Chevron â€” small triangle that rotates on collapse */
.filter-group.is-collapsible > h3::after {
    content: "";
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--ge-text-muted);
    transition: transform 0.18s ease;
    transform-origin: center;
    margin-left: 6px;
}
/* Collapsed state â€” chevron points right */
.filter-group.is-collapsible.is-collapsed > h3::after {
    transform: rotate(-90deg);
}

/* Hide the contents when collapsed. Use display:none so the
   collapsed group takes minimum vertical space. */
.filter-group.is-collapsible.is-collapsed > .filter-options,
.filter-group.is-collapsible.is-collapsed > label,
.filter-group.is-collapsible.is-collapsed > div:not([class]) {
    display: none;
}

/* Hover on the h3 to hint at clickability */
.filter-group.is-collapsible > h3:hover {
    color: var(--ge-navy);
}
.filter-group.is-collapsible > h3:focus-visible {
    outline: none;
    color: var(--ge-navy);
}

/* ============================================================
   Results toast â€” brief confirmation when async results render
   ============================================================ */

.results-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--c-text);  /* matches your --ge-text token */
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--ge-radius-pill);
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: var(--ge-shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}
.results-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .results-toast {
        transition: opacity 0.2s ease;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================================
   Map pin hover preview (desktop only)
   ============================================================ */

.marker-hover-preview {
    position: fixed;
    background: #fff;
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    box-shadow: var(--ge-shadow-md);
    padding: 8px 12px;
    font-size: 0.85em;
    line-height: 1.35;
    max-width: 240px;
    z-index: 1100;
    pointer-events: none;       /* hover passes through to map */
    opacity: 0;
    transition: opacity 0.12s ease;
}
.marker-hover-preview.is-visible {
    opacity: 1;
}
.marker-hover-preview .hover-comp {
    font-weight: 700;
    color: var(--ge-navy);
    margin-bottom: 2px;
}
.marker-hover-preview .hover-date {
    color: var(--ge-text-muted);
    font-size: 0.92em;
}

.marker-hover-preview .hover-club {
    color: var(--ge-text-muted);
    font-size: 0.88em;
    margin-bottom: 2px;
}

/* Suppress on touch devices â€” pure hover, no business on mobile */
@media (hover: none) {
    .marker-hover-preview { display: none !important; }
}

/* ============================================================
   "View N events as a list" â€” below-map jump link.
   Lets users opt into scrolling to the result cards rather than
   being yanked there automatically.
   ============================================================ */

.map-view-list-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    background: var(--ge-bg-pale);
    border: 1px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    color: var(--ge-navy);
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.map-view-list-link:hover {
    background: var(--ge-bg-hover);
    border-color: rgba(37,78,113,.25);
    text-decoration: none;
}
.map-view-list-link:focus-visible {
    outline: none;
    border-color: var(--ge-navy);
    box-shadow: 0 0 0 3px rgba(254,206,32,.55);
}

/* ============================================================
   Enhanced/Premium club listing â€” gold star next to club name
   ============================================================ */

.event-card .club-name .recommended-club-star {
    display: inline-block;
    color: var(--ge-gold);        /* var(--c-focus) â€” your gold token */
    font-size: 1em;
    margin-left: 4px;
    vertical-align: baseline;
    line-height: 1;
    /* Subtle drop shadow gives it definition against the navy text */
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* ============================================================
   Featured / Enhanced listing â€” full visual treatment.
   Applied to .event-card.is-featured. Quiet but distinct: gold
   left lane, faint gold wash, bigger more prominent star.
   ============================================================ */

.event-card.is-featured {
    position: relative;
    background: linear-gradient(
        to right,
        rgba(254, 206, 32, 0.06) 0%,
        #fff 60%
    );
    border-color: rgba(254, 206, 32, 0.40);
    /* Gold left lane â€” sits flush against the card's rounded corner */
    box-shadow:
        inset 4px 0 0 var(--ge-gold),
        0 1px 3px rgba(0, 0, 0, 0.03);
}

/* The star inside a featured card â€” bigger and more confident */
.event-card.is-featured .club-name .recommended-club-star {
    font-size: 1.15em;
    margin-left: 6px;
    color: var(--ge-gold);
    /* Sharper drop shadow so it pops slightly off the page */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

/* Hover on a featured card â€” slightly more saturated gold band.
   Keeps the same lane but invites attention. */
.event-card.is-featured:hover {
    background: linear-gradient(
        to right,
        rgba(254, 206, 32, 0.10) 0%,
        #fff 60%
    );
    box-shadow:
        inset 4px 0 0 var(--ge-gold),
        0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   Favourites button on event cards
   Three tier variants:
     .fav-card-btn              â€” premium, working toggle
     .fav-card-btn--upgrade     â€” free, link to upgrade
     .fav-card-btn--signup      â€” guest, opens signup modal
   ============================================================ */

.event-card .cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
/* View details and Save: size to content, sit beside each other. */
.event-card .cta > a,
.event-card .cta > button {
    flex: 0 0 auto;
}

.fav-card-btn {
    /* Reset differences between button and a renderers */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    padding: 8px 14px;
    background: #fff;
    color: var(--ge-navy);
    border: 1.5px solid var(--ge-border);
    border-radius: var(--ge-radius-md);
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    appearance: none;            /* kill Safari's default button look */
    -webkit-appearance: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 0;                   /* button has UA margin by default */
}
/* Force consistent rendering on the a variant â€” anchors inside
   certain parents inherit color/text-decoration that we don't want. */
a.fav-card-btn,
a.fav-card-btn:visited {
    color: #ffffff;
    text-decoration: none;
}
.fav-card-btn i,
.fav-card-btn svg {
    font-size: 1em;
    line-height: 1;
    margin-right: 4px;    /* Belt-and-braces â€” flex gap should handle
                             this, but Font Awesome's svg swap can
                             collapse the gap on a variants. */
}
/* When the label is hidden (mobile), kill the right margin so the
   icon sits centred in the heart-only button. */
@media (max-width: 480px) {
    .fav-card-btn i,
    .fav-card-btn svg {
        margin-right: 0;
    }
}
.fav-card-btn:hover,
.fav-card-btn:focus {
    background: var(--ge-bg-pale);
    border-color: rgba(37,78,113,.4);
    color: var(--ge-navy);
    text-decoration: none;
}
.fav-card-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254,206,32,.55);
}
.fav-card-btn i { font-size: 1em; }

/* Saved state (premium, currently favourited) */
.fav-card-btn.is-saved {
    background: var(--ge-wine);    /* var(--c-premium) */
    border-color: var(--ge-wine);
    color: #fff;
}
.fav-card-btn.is-saved:hover,
.fav-card-btn.is-saved:focus {
    background: #8a0035;
    border-color: #8a0035;
    color: #fff;
}

/* Hide label on narrow cards â€” heart-only on mobile */
@media (max-width: 480px) {
    .fav-card-btn .fav-card-btn__label { display: none; }
    .fav-card-btn { padding: 8px 10px; }
}

/* Deterministic tier gating for favourite buttons on JS-rendered cards. */
body.tier-anon .fav-card-btn[data-fav-tier=member] { display: none !important; }
body.tier-free .fav-card-btn[data-fav-tier=guest]  { display: none !important; }
body.tier-premium .fav-card-btn[data-fav-tier=guest]  { display: none !important; }

.container {
	padding-top: 0%;
}

#fullwidth {
	padding-top: 0%;
}

.ge-search-method__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.ge-search-method__icon {
  margin-bottom: 0;  /* remove the old bottom margin */
  flex-shrink: 0;    /* stop icon from squashing */
}

.ge-search-methods {
  border-bottom: 3px solid #ffffff;
  padding-bottom: 2%;
}

/* Golf Empire â€” Search+ "Save this search" button + popover.
   Add to your main stylesheet (or load as a file). Uses the same
   --ge-alert-accent variable defined in ge-alert.css. */

.ge-save { position: relative; display: inline-block; margin-left: 12px; vertical-align: middle; }

.ge-save__btn {
  font-size: 0.9em;
  border: 1px solid var(--ge-alert-accent, #B8860B);
  color: var(--ge-alert-accent, #B8860B);
  background: #fff;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.ge-save__btn:hover { background: var(--ge-alert-accent, #B8860B); color: #fff; }

.ge-save__pop {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  padding: 14px;
  text-align: left;
}
.ge-save__label { display: block; font-size: 0.85em; color: #374151; margin-bottom: 10px; }
.ge-save__input {
  display: block; width: 100%; box-sizing: border-box; margin-top: 4px;
  padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.95em;
}
.ge-save__notify { display: flex; align-items: center; gap: 6px; font-size: 0.88em; color: #374151; margin-bottom: 10px; cursor: pointer; }
.ge-save__freq { display: flex; gap: 14px; font-size: 0.9em; color: #374151; margin-bottom: 12px; }
.ge-save__freq label { display: inline-flex; align-items: center; gap: 5px; }
.ge-save__premium {
  font-size: 0.78em; color: var(--c-premium); cursor: pointer; text-decoration: underline; margin-left: 2px;
}
.ge-save__actions { display: flex; gap: 8px; }
.ge-save__save {
  flex: 1; background: var(--ge-alert-accent, #B8860B); color: #fff; border: 0;
  border-radius: 6px; padding: 8px; font-weight: 600; cursor: pointer;
}
.ge-save__cancel { background: none; border: 0; color: var(--c-text-muted); cursor: pointer; padding: 8px; }
.ge-save__status { margin-top: 10px; font-size: 0.85em; color: #374151; }
.ge-save__status--ok  { color: #166534; }
.ge-save__status--err { color: var(--c-danger); }
.ge-save__status a.ge-save__upgrade { color: var(--c-premium); font-weight: 600; }   /* My Golf phase 1: upgrade links in wine */

/* Daily disabled for free members */
.ge-save__freq input:disabled + .ge-save__premium,
.ge-save__freq label:has(input:disabled) { opacity: 1; }
.ge-save__freq input:disabled { cursor: not-allowed; }

/* Mobile: the popover anchors to the button's right edge with a fixed 270px
   width, which runs off the left of narrow screens. Re-anchor it to the left
   and clamp the width to the viewport so it always stays fully on screen. */
@media (max-width: 560px) {
  .ge-save__pop {
    left: 0;
    right: auto;
    width: min(270px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }
}

/* ============================================================
   Premium explainer video â€” link in upsells + lightbox player
   ============================================================ */
.ge-vid-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--ge-navy);
    text-decoration: none;
}
.ge-vid-link i { color: var(--ge-wine); font-size: 1.2em; }
.ge-vid-link:hover { color: var(--ge-navy-dark); text-decoration: underline; }
.ge-vid-link:focus-visible { outline: var(--ge-focus-ring); outline-offset: 3px; border-radius: 4px; }

.ge-vid-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;              /* above drawer (999) and toast (1000) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 16px;
    background: rgba(15, 34, 51, 0.82);
}
.ge-vid-modal__box { position: relative; width: 100%; max-width: 900px; }
.ge-vid-modal__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--ge-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.ge-vid-modal__frame iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.ge-vid-modal__close {
    position: absolute;
    top: -46px; right: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}
.ge-vid-modal__close:hover { background: rgba(255, 255, 255, 0.3); }
.ge-vid-modal__close:focus-visible { outline: var(--ge-focus-ring); outline-offset: 2px; }
.ge-vid-modal__cta { margin-top: 18px; }
body.ge-vid-open { overflow: hidden; }

/* Keyword help (no results / "Looking for results?") */
.q-help { list-style: none; margin: 12px auto 4px; padding: 0; max-width: 560px; text-align: left; }
.q-help li { margin: 0 0 8px; padding: 10px 12px; background: #f4f7fa; border: 1px solid #dde5ee; border-radius: 10px; font-size: 14px; line-height: 1.5; color: #33485c; }
.q-help li span { display: block; }
.q-help li a { display: inline-block; margin: 4px 14px 0 0; font-weight: 700; color: var(--c-brand); }
.q-help li span a { display: inline; margin: 0; }
.q-results-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 14px; background: #fff7e0; border: 1px solid #e8d39a; border-radius: 10px; font-size: 14px; line-height: 1.5; color: #5c4400; }
.q-results-note[hidden] { display: none; }
.q-results-note i { margin-top: 3px; color: #b8860b; }
.q-results-clubs { display: block; }
.q-results-clubs:empty { display: none; }
.q-results-clubs a { display: inline-block; margin: 6px 14px 0 0; font-weight: 700; color: #7a5806; }
/* Distance and club searches are Premium: free members and guests get the region / keyword link instead */
body.tier-premium .q-help .q-free, body:not(.tier-premium) .q-help .q-prem { display: none !important; }


/* =====================================================================
   Search+ rework (Nov 2026)
   The page shell (wide), the reorganised sidebar (free filters first,
   then a Premium section), tappable locked filters, the view bar,
   the calendar preview and the full-screen map.
   ===================================================================== */

/* Page: on the shared page shell (main.ge-col.ge-col--wide), wide layout */
.sp-page .sp-wrap { max-width: var(--container-wide, 1320px); margin: 0 auto; padding: 18px 0 20px; font-family: var(--ge-font); color: var(--ge-text); }
.sp-page .layout { grid-template-columns: 300px minmax(0, 1fr); gap: 26px; }
@media (max-width: 768px) { .sp-page .sp-wrap { padding-top: 10px; } .sp-page .layout { grid-template-columns: 1fr; } }

/* Sidebar head */
.sf-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.sf-top h2 { margin: 0 !important; }
.sf-top .clear-all { margin: 0; }
.sf-hint { display: block; font-size: .82em; color: var(--ge-text-faint); font-weight: 400; line-height: 1.35; }

/* County: finder, and "Show all" */
.sf-county__find { width: 100%; margin: 0 0 8px; padding: 7px 10px; border: 1px solid var(--ge-border); border-radius: var(--ge-radius-md, 8px); font: inherit; font-size: .9em; }
.sf-more, .sf-link { background: none; border: 0; padding: 4px 0; margin: 4px 0 0; color: var(--ge-navy); font: inherit; font-size: .88em; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.filter-option[hidden] { display: none !important; }

/* The Premium section */
.sf-prem { margin: 18px -18px 0; padding: 14px 18px 4px; border-top: 1px solid var(--ge-border); background: linear-gradient(#fbf7f9, #fff 160px); }
.sf-prem__head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px !important; font-size: 1.05em; color: var(--ge-wine, #A3003F); }
.sf-prem__lock { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--ge-wine, #A3003F); color: var(--ge-gold, #FECE20); font-size: .75em; }
.sf-prem__head p { margin: 0 0 10px; font-size: .86em; line-height: 1.45; color: var(--ge-text-muted); }
.sf-prem__head a { color: var(--ge-wine, #A3003F); font-weight: 700; }
body.tier-premium [data-sf-when="locked"], body:not(.tier-premium) [data-sf-when="open"] { display: none !important; }
body.tier-premium .sf-prem { background: none; }
body.tier-premium .sf-prem__head h2 { color: var(--ge-text-strong); }
body.tier-premium .sf-prem__lock { display: none; }
body.tier-loading [data-sf-when] { visibility: hidden; }
.sf-sec { margin: 0 0 6px; }
.sf-sec__h { margin: 14px 0 8px; font-size: .74em; letter-spacing: .08em; text-transform: uppercase; color: var(--ge-text-faint); font-weight: 700; }

/* Locked filters: readable (counts and all), with the lock on the section,
   and tappable: a tap explains the filter (.sf-lockpop) */
.sf-prem .filter-group.tier-locked { opacity: 1; cursor: pointer; border-radius: 8px; transition: background .15s ease; }
.sf-prem .filter-group.tier-locked:hover { background: #fbf3f6; }
.sf-prem .filter-group.tier-locked::after { content: none; }
.sf-prem .tier-locked h3::after { content: "Premium"; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #f6e7ee; color: var(--ge-wine, #A3003F); font-size: .68em; font-weight: 700; vertical-align: 2px; }
.sf-prem .tier-locked .label, .sf-prem .tier-locked .count, .sf-prem .tier-locked .sf-chip span, .sf-prem .tier-locked .sf-day span { color: #8a96a2; }
.sf-prem .tier-locked .sf-lockpop, .sf-prem .tier-locked .sf-lockpop * { pointer-events: auto !important; cursor: auto !important; }
.sf-lockpop { margin: 6px 0 10px; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid #ecd3de; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.sf-lockpop p { margin: 0 0 8px; font-size: .88em; line-height: 1.45; color: var(--ge-text); }
.sf-lockpop__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sf-lockpop .btn { padding: 7px 14px; font-size: .88em; }
.sf-lockpop .sf-link { margin: 0; font-weight: 500; color: var(--ge-text-faint); }

/* Chips (radios or buttons shown as small pills) */
.sf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-chip { display: inline-flex; align-items: center; margin: 0; cursor: pointer; }
.sf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sf-chip span, button.sf-chip { display: inline-block; padding: 5px 11px; border: 1px solid var(--ge-border); border-radius: 999px; background: #fff; font: inherit; font-size: .85em; color: var(--ge-text); line-height: 1.3; cursor: pointer; }
button.sf-chip small { color: var(--ge-text-faint); font-size: .85em; }
.sf-chip input:checked + span, button.sf-chip.is-on { background: var(--ge-navy); border-color: var(--ge-navy); color: #fff; }
button.sf-chip.is-on small { color: rgba(255,255,255,.8); }
.sf-chip input:focus-visible + span { outline: var(--ge-focus-ring, 2px solid #FECE20); outline-offset: 2px; }
.sf-months { margin: 0 0 8px; }
.sf-dates summary { cursor: pointer; font-size: .86em; font-weight: 600; color: var(--ge-navy); }
.sf-dates .date-range { margin-top: 8px; }

/* Days of the week as a row of small boxes */
.sf-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sf-day { position: relative; margin: 0; cursor: pointer; }
.sf-day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sf-day span { display: block; padding: 6px 0; text-align: center; border: 1px solid var(--ge-border); border-radius: 6px; font-size: .78em; background: #fff; }
.sf-day input:checked + span { background: var(--ge-navy); border-color: var(--ge-navy); color: #fff; }
.sf-day input:focus-visible + span { outline: var(--ge-focus-ring, 2px solid #FECE20); outline-offset: 2px; }

/* Age */
.sf-age__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; margin: 6px 0 8px; }
.sf-age__lab { font-size: .95em; color: var(--ge-text); }
.sf-age__row .sf-chips { grid-column: 1 / -1; }
.sf-myage { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px 26px; font-size: .88em; }
.sf-myage input { width: 80px; padding: 6px 8px; border: 1px solid var(--ge-border); border-radius: 6px; font: inherit; }
.sf-myage[hidden] { display: none; }

/* "Only opens I can enter": a switch */
.sf-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92em; }
.sf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sf-switch__ui { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: #cfd6dd; transition: background .15s ease; }
.sf-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s ease; }
.sf-switch input:checked + .sf-switch__ui { background: var(--ge-navy); }
.sf-switch input:checked + .sf-switch__ui::after { transform: translateX(16px); }
.sf-switch input:focus-visible + .sf-switch__ui { outline: var(--ge-focus-ring, 2px solid #FECE20); outline-offset: 2px; }
.sf-elig__using { margin: 8px 0 0; font-size: .86em; color: var(--ge-text-muted); }
.sf-elig__using .sf-link { margin: 0 0 0 6px; }
.sf-elig__fields { margin: 8px 0 0; padding: 10px; border: 1px solid var(--ge-border); border-radius: 8px; background: #fafbfc; }
.sf-elig__fields[hidden] { display: none; }
.sf-elig__note { margin: 0 0 8px; font-size: .82em; color: var(--ge-text-muted); }
.sf-elig__g { display: flex; gap: 14px; }
.sf-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 0; font-size: .88em; }
.sf-field input { width: 90px; padding: 6px 8px; border: 1px solid var(--ge-border); border-radius: 6px; font: inherit; }

/* The view bar: List / Calendar / Map, larger and easy to spot */
.sp-views { display: flex; width: 100%; padding: 5px; margin-bottom: 14px; background: #fff; border: 1px solid var(--ge-border); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sp-views .view-toggle-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 10px; font-size: 1em; font-weight: 600; color: var(--ge-text-muted); }
.sp-views .view-toggle-btn i { margin: 0; font-size: 1.05em; }
.sp-views .view-toggle-btn.active { background: var(--ge-navy); color: #fff; box-shadow: none; }
.sp-views .view-toggle-btn:not(.active):hover { background: var(--ge-bg-pale); }
.sp-prem-mark { padding: 1px 7px; border-radius: 999px; background: #f6e7ee; color: var(--ge-wine, #A3003F); font-size: .66em; font-weight: 700; letter-spacing: .02em; }
.view-toggle-btn.active .sp-prem-mark { background: rgba(255,255,255,.18); color: #fff; }
body.tier-premium .sp-prem-mark { display: none !important; }
@media (max-width: 480px) { .sp-views .view-toggle-btn { padding: 10px 4px; font-size: .92em; } .sp-prem-mark { display: none; } }

/* Calendar for guests and free members: the real month, faded, with the offer over it */
#calendar-view { position: relative; }
#calendar-view.is-preview .calendar-grid, #calendar-view.is-preview .calendar-nav { opacity: .45; filter: saturate(.6); pointer-events: none; user-select: none; }
#calendar-view.is-preview .calendar-upsell { position: absolute; z-index: 2; left: 50%; top: 90px; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); margin: 0; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.sp-preview-offer h3 i, .sp-map-offer h3 i { color: var(--ge-wine, #A3003F); margin-right: 6px; }
.sp-offer-list { margin: 0 0 14px; padding-left: 18px; text-align: left; font-size: .92em; line-height: 1.6; }
@media (max-width: 640px) { #calendar-view.is-preview .calendar-upsell { top: 60px; } }

/* Full-screen map */
.sp-map-full-btn { margin-left: auto; padding: 8px 14px; border: 1px solid var(--ge-border); border-radius: var(--ge-radius-md, 8px); background: #fff; color: var(--ge-navy); font: inherit; font-size: .9em; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sp-map-full-btn:hover { background: var(--ge-bg-pale); }
.map-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.sp-map-full { overflow: hidden; }
body.sp-map-full #map-view { position: fixed; inset: 0; z-index: 9990; margin: 0; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
body.sp-map-full #map-view .map-controls { flex: 0 0 auto; }
body.sp-map-full #map-canvas { flex: 1 1 auto; height: auto !important; min-height: 0; }
body.sp-map-full #map-event-list { display: none; }
body.sp-map-full #map-view-list-link { flex: 0 0 auto; margin: 0; }
body.sp-map-full .filter-fab { display: none !important; }
@media (min-width: 900px) { .sp-page #map-canvas { height: 560px; } }
#sf-weekends.is-on { font-weight: 700; text-decoration: none; }
#sf-weekends.is-on::before { content: "\2713\00a0"; }
/* Phone filter drawer sits above the sticky site header and sub-nav */
@media (max-width: 768px) {
    .filter-drawer-backdrop { z-index: var(--z-drawer-bg, 99996); }
    .filter-drawer { z-index: var(--z-drawer, 99997); }
}
.filter-drawer .sf-top { display: none; }
/* The page shell is its own stacking layer; let the full-screen map rise above the site header */
body.sp-map-full #container.ge-shell, body.sp-map-full .ge-shell { z-index: auto; }

/* ===== Search+ v1.1 (Nov 2026 feedback) ===== */
/* Full width of the page (the shared .ge-col 900px cap outranks .ge-col--wide) */
main.ge-col.sp-page { max-width: none; }
.sp-page .sp-wrap { padding-top: 0; }
@media (max-width: 768px) { .sp-page .sp-wrap { padding-top: 0; } }

/* Sidebar padding as a variable, so full-width bands line up in the sidebar and the drawer */
.sp-page .sidebar { --sf-pad: 18px; }
body.drawer-open .sidebar { --sf-pad: 12px; }
.sf-prem { margin-left: calc(-1 * var(--sf-pad, 18px)); margin-right: calc(-1 * var(--sf-pad, 18px)); padding-left: var(--sf-pad, 18px); padding-right: var(--sf-pad, 18px); }

/* Section headings (Where, When, Who can enterâ€¦) stand apart from filter headings */
.sf-sec__h {
    margin: 20px calc(-1 * var(--sf-pad, 18px)) 12px; padding: 8px var(--sf-pad, 18px);
    background: #eef2f6; border-top: 1px solid #dfe6ee; border-bottom: 1px solid #dfe6ee;
    font-size: .92em; letter-spacing: 0; text-transform: none; color: var(--ge-navy); font-weight: 700;
}
body:not(.tier-premium) .sf-prem .sf-sec__h { background: #f6eef2; border-color: #eddde5; }

/* Premium heading and padlock in the phone drawer too */
body.drawer-open .sidebar .sf-prem__head h2 { display: flex; }

/* Locked filters: room around the text on hover */
.sf-prem .filter-group.tier-locked:hover { box-shadow: 0 0 0 8px #fbf3f6; border-radius: 2px; }
.sf-prem .tier-locked .sf-lockpop a, .sf-prem .tier-locked .sf-lockpop button { cursor: pointer !important; }
.sp-page .btn--prem, .sp-page .btn--prem:visited { background: var(--ge-wine, #A3003F); color: var(--ge-gold, #FECE20); border-color: transparent; text-decoration: none; }
.sp-page .btn--prem:hover { filter: brightness(1.08); color: var(--ge-gold, #FECE20); }
.sp-page .btn--prem i { margin-right: 6px; }

/* Text sizes in line with the filter labels */
.sf-switch { font-size: .81em; }
.sf-price-note { display: block; margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--ge-text-faint); }

/* Predicted dates box: keep its dashed bottom edge */
.sf-sec .filter-group.filter-group--pred, .sf-sec .filter-group.filter-group--pred:last-child { border-bottom: 1.5px dashed #94a3b8; margin-bottom: 12px; }

/* "Any" chips readable when not selected */
.sf-chip input[value=""]:not(:checked) + span { color: var(--ge-text); }
.sf-prem .tier-locked .sf-chip input[value=""] + span { color: #6b7785; }

/* Near a location: the button only shows when the box holds a new place
   (leaving the box, Enter or a new radius all apply it anyway) */
.sp-page .sidebar-radius:not(.is-stale) #sidebar-search-btn { display: none; }

/* Sticky results strip on desktop: count, Save this search, sort */
@media (min-width: 900px) {
    .sp-page .results-header { position: sticky; top: var(--sp-stick-top, 64px); z-index: 20; padding: 8px 0; background: var(--ge-page-bg, #e9edf0); border-radius: 0 0 10px 10px; transition: padding .15s ease; }
    .sp-page .results-header.is-stuck { padding: 8px 14px; background: #fff; box-shadow: 0 6px 16px rgba(16,40,64,.10); }
}
/* Save this search: a solid button in the alerts colour, so it stands apart from the pills and sort */
.sp-page .ge-save__btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 0; border-radius: 6px; background: var(--ge-alert-accent, #B8860B); color: #fff; font: inherit; font-size: .88em; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.sp-page .ge-save__btn:hover { filter: brightness(1.08); background: var(--ge-alert-accent, #B8860B); color: #fff; }

/* Full / closed badge on cards */
.event-card .sp-full { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--ge-wine, #A3003F); color: #fff; font-size: .72em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }

/* Map: Full screen as a control in the map's top-right corner; click to zoom hint */
.sp-map-wrap { position: relative; }
.sp-map-wrap .sp-map-full-btn { position: absolute; top: 10px; right: 10px; z-index: 500; margin: 0; padding: 7px 12px; border: 0; border-radius: 6px; background: #fff; color: var(--ge-navy); font: inherit; font-size: .85em; font-weight: 700; box-shadow: 0 1px 5px rgba(0,0,0,.25); cursor: pointer; }
.sp-map-wrap .sp-map-full-btn:hover { background: #f3f6f9; }
.sp-map-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 500; padding: 6px 12px; border-radius: 999px; background: rgba(16,40,64,.78); color: #fff; font-size: .8em; pointer-events: none; transition: opacity .2s ease; }
.sp-map-wrap.is-active .sp-map-hint, body.sp-map-full .sp-map-hint { opacity: 0; }

/* Map preview for guests and free members: the real map, dimmed, behind the offer */
#map-view.is-preview { position: relative; min-height: 460px; }
#map-view.is-preview .sp-map-preview { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; opacity: .55; filter: saturate(.7); pointer-events: none; }
#map-view.is-preview .map-upsell { position: relative; z-index: 600; margin: 70px auto 0; width: min(520px, calc(100% - 24px)); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.sp-map-preview .leaflet-control-container { display: none; }
.sp-map-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ge-wine, #A3003F); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
body.sp-map-full .sp-map-wrap { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
body.sp-map-full .sp-map-wrap #map-canvas { flex: 1 1 auto; }
/* In the drawer the bands also cover the drawer's own 8px side padding */
body.drawer-open .sidebar .sf-prem { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
body.drawer-open .sidebar .sf-sec__h { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }

/* ===== Search+ v1.2 ===== */
/* Map: pins only after "Drop a pin" */
.sp-map-pin-btn { padding: 8px 12px; border: 1px solid var(--ge-border); border-radius: var(--ge-radius-md, 8px); background: #fff; color: var(--ge-navy); font: inherit; font-size: .9em; font-weight: 600; cursor: pointer; }
.sp-map-pin-btn i { color: var(--ge-wine, #A3003F); }
.sp-map-pin-btn.is-on { background: var(--ge-navy); border-color: var(--ge-navy); color: #fff; }
.sp-map-pin-btn.is-on i { color: var(--ge-gold, #FECE20); }
#map-canvas.sp-pin-mode, #map-canvas.sp-pin-mode .leaflet-interactive { cursor: crosshair; }
/* Section bands: a touch stronger against the grey page */
.sf-sec__h { background: #dfe7f0; border-color: #cfd9e5; box-shadow: inset 4px 0 0 var(--ge-navy); }
body:not(.tier-premium) .sf-prem .sf-sec__h { background: #f3e3ea; border-color: #e6cdd8; box-shadow: inset 4px 0 0 var(--ge-wine, #A3003F); }
/* List / Calendar / Map as three separate buttons */
.sp-views { gap: 10px; padding: 0; background: none; border: 0; box-shadow: none; }
.sp-views .view-toggle-btn { background: #fff; border: 1px solid var(--ge-border); border-radius: var(--ge-radius-md, 8px); box-shadow: 0 1px 3px rgba(16,40,64,.06); }
.sp-views .view-toggle-btn.active { border-color: var(--ge-navy); }
@media (max-width: 480px) { .sp-views { gap: 6px; } }
/* Drop a pin: navy like the Search button; gold while waiting for the click */
.map-controls .sp-map-pin-btn { background: var(--ge-navy); border-color: var(--ge-navy); color: #fff; }
.map-controls .sp-map-pin-btn i, .sp-map-pin-btn.is-on i { color: inherit; }
.map-controls .sp-map-pin-btn.is-on { background: var(--ge-gold, #FECE20); border-color: var(--ge-gold, #FECE20); color: var(--ge-navy); }
.sp-pin-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 600; padding: 7px 14px; border-radius: 999px; background: var(--ge-gold, #FECE20); color: var(--ge-navy); font-size: .85em; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.2); pointer-events: none; }
/* Sticky strip: a light navy tint and a border, so it stands apart from the white cards */
@media (min-width: 900px) {
    .sp-page .results-header.is-stuck { background: #f2f6fa; border: 1px solid #d3dde8; border-top: 0; box-shadow: 0 6px 16px rgba(16,40,64,.12); }
}
/* "Your Premium filters" for Premium members: the same wine styling, with a crown */
body.tier-premium .sf-prem { background: linear-gradient(#fbf7f9, #fff 160px); }
body.tier-premium .sf-prem__head h2 { color: var(--ge-wine, #A3003F); }
body.tier-premium .sf-prem__lock { display: inline-grid; }
/* Max. handicap limit: Other */
.sf-hcp-other { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .85em; color: var(--ge-text-muted); }
.sf-hcp-other input { width: 90px; padding: 7px 9px; border: 1px solid var(--ge-border); border-radius: 8px; font: inherit; font-size: 1em; }
.sidebar .sf-hcp-other input#sf-hcp-other { flex: 0 0 90px; width: 90px; max-width: 90px; }
.sf-hcp-other span { white-space: nowrap; }
/* Age group: senior chips sit under "Seniors only" once it's picked */
.sf-senior { margin: 2px 0 8px; }
/* Click-to-zoom hint: top of the map, easier to see */
.sp-map-hint { top: 12px; bottom: auto; padding: 8px 16px; background: var(--ge-navy); font-size: .88em; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.sp-map-wrap:has(.sp-pin-hint:not([hidden])) .sp-map-hint { opacity: 0; }
@media (max-width: 640px) { .sp-map-hint { top: 56px; } }

/* ===== Search+ cards v2 (Nov 2026): shorter, cleaner, one family with the site's listings ===== */
.sp-page .event-card:not(.event-card--pred) { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; grid-template-areas: "photo body cta"; gap: 4px 18px; align-items: start; padding: 14px 16px; margin-bottom: 10px; }
.sp-page .event-card:not(.event-card--pred) .photo { grid-area: photo; }
.sp-page .event-card:not(.event-card--pred) .photo img,
.sp-page .event-card:not(.event-card--pred) .photo .placeholder { width: 150px; height: 104px; }
.sp-page .event-card:not(.event-card--pred) .body { grid-area: body; }
.sp-page .event-card:not(.event-card--pred) .cta { grid-area: cta; display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; min-width: 128px; }
.sp-page .event-card .cta > a, .sp-page .event-card .cta > button { justify-content: center; text-align: center; }
.sp-page .event-card .compname { font-size: 1.12em; margin: 0 0 1px; }
.sp-page .event-card .compnameextra { margin: 0 0 2px; font-size: .9em; }
.sp-page .event-card .club-name { margin: 0 0 4px; font-size: .93em; font-weight: 600; color: var(--ge-text-strong); }
.sp-page .event-card .club-name a { color: inherit; }
.sp-page .event-card .sp-where { font-weight: 400; color: var(--ge-text-muted); }
.sp-page .event-card .sp-course { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 4px; background: #fdf3d2; color: #7a5806; font-size: .76em; font-weight: 700; line-height: 1.6; vertical-align: 1px; }
.sp-page .event-card .date { margin: 0 0 3px; font-size: .93em; }
.sp-page .event-card .meta { margin: 0; font-size: .88em; color: var(--ge-text-muted); }
.sp-page .event-card .meta .price { color: var(--ge-text-strong); font-weight: 700; }
.sp-page .event-card .sp-sep { color: #b7c2cd; }
.sp-page .event-card .drive-time { margin: 3px 0 0; font-size: .86em; }
.sp-page .event-card .gec-mdline { margin: 4px 0 0; }
.sp-page .event-card .sp-full { background: #b91c1c; }   /* the same red as FULL on the site's listings */
@media (max-width: 768px) {
    .sp-page .event-card:not(.event-card--pred) { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "photo body" "cta cta"; gap: 10px 12px; padding: 12px; }
    .sp-page .event-card:not(.event-card--pred) .photo img,
    .sp-page .event-card:not(.event-card--pred) .photo .placeholder { width: 96px; height: 80px; font-size: .7em; }
    .sp-page .event-card:not(.event-card--pred) .cta { flex-direction: row; min-width: 0; }
    .sp-page .event-card:not(.event-card--pred) .cta > a:first-child { flex: 1 1 auto; }
}

/* ===== Search+ v1.6 ===== */
/* Save sits apart from View details: white with a wine heart at rest (guests and members alike),
   solid wine once saved */
.sp-page .event-card .cta .fav-card-btn,
.sp-page .event-card .cta a.fav-card-btn,
.sp-page .event-card .cta a.fav-card-btn:visited { background: #fff; color: var(--ge-navy); border: 1.5px solid #d5dde6; }
.sp-page .event-card .cta .fav-card-btn i { color: var(--ge-wine, #A3003F); }
.sp-page .event-card .cta .fav-card-btn:hover,
.sp-page .event-card .cta a.fav-card-btn:hover { background: #fbf3f6; border-color: #e6cdd8; color: var(--ge-navy); }
.sp-page .event-card .cta .fav-card-btn.is-saved { background: var(--ge-wine, #A3003F); border-color: var(--ge-wine, #A3003F); color: #fff; }
.sp-page .event-card .cta .fav-card-btn.is-saved i { color: #fff; }
.sp-page .event-card .cta .fav-card-btn.is-saved:hover { background: #8a0035; border-color: #8a0035; color: #fff; }
/* County a touch smaller than the club */
.sp-page .event-card .sp-where { font-size: .9em; }
/* Course chips in the colours the site's listings use */
.sp-page .event-card .sp-course { background: #254e71; color: #fff; }
.sp-page .event-card .sp-course--top-100 { background: #6f0f1a; }
.sp-page .event-card .sp-course--true-links { background: #084f33; }
.sp-page .event-card .cta .fav-card-btn:not(.is-saved) .fav-card-btn__label { color: var(--ge-navy); }

/* ===== Search+ wall v2: the rest of the search, faded, then the offer ===== */
.sp-wall { margin: 4px 0 18px; padding: 0; background: none; border: 0; }
.sp-wall__teaser { position: relative; display: grid; gap: 8px; margin-bottom: -40px; padding: 0 0 40px; pointer-events: none; user-select: none; }
.sp-wall__teaser::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(233,237,240,0) 0%, rgba(233,237,240,.6) 45%, var(--ge-page-bg, #e9edf0) 100%); }
.sp-wall__row { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #fff; border: 1px solid var(--ge-border); border-radius: var(--ge-radius-xl, 12px); opacity: .75; filter: saturate(.6); }
.sp-wall__row .sp-tile, .sp-wall__row > span:first-child { flex: 0 0 auto; transform: scale(.82); transform-origin: left center; }
.sp-wall__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; filter: blur(1.2px); }
.sp-wall__txt b { color: var(--ge-navy); font-size: 1.02em; }
.sp-wall__txt span { color: var(--ge-text-muted); font-size: .9em; }
.sp-wall__lock { color: var(--ge-wine, #A3003F); font-size: 1.1em; }
.sp-wall__box { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 24px 26px 20px; background: #fff; border: 1px solid #ecd3de; border-top: 4px solid var(--ge-wine, #A3003F); border-radius: 14px; box-shadow: 0 14px 40px rgba(16,40,64,.14); text-align: center; }
.sp-wall__box::before { content: none !important; }
.sp-wall__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: #f6e7ee; color: var(--ge-wine, #A3003F); font-size: .78em; font-weight: 700; letter-spacing: .02em; }
.sp-wall__box h3 { margin: 4px 0 10px; font-size: 1.35em; line-height: 1.25; color: var(--ge-text-strong); }
.sp-wall__lede { margin: 0 auto 12px; max-width: 520px; font-size: .92em; color: var(--ge-text-muted); }
.sp-wall__wins { display: inline-block; margin: 0 0 14px; padding: 0; list-style: none; text-align: left; font-size: .93em; }
.sp-wall__wins li { margin: 5px 0; }
.sp-wall__wins i { color: #2f7a3a; margin-right: 6px; }
.sp-wall .tier-wall-actions { justify-content: center; }
.sp-wall .tier-wall-actions .btn--prem { padding: 12px 22px; font-size: 1.02em; }
.sp-wall .tier-wall-actions .btn--prem i { color: var(--ge-gold, #FECE20); margin-right: 6px; }
@media (max-width: 640px) {
    .sp-wall__box { padding: 20px 16px 16px; }
    .sp-wall__box h3 { font-size: 1.15em; }
    .sp-wall__row { padding: 8px 10px; }
}
.sp-wall__row { text-align: left; }

/* ===== Search+ v1.8: mobile polish and the save heart ===== */
/* Save is a heart in the card's top-right corner: white with a wine heart, solid wine once saved.
   View details is the only button in the card's action area. */
.sp-page .event-card:not(.event-card--pred) { position: relative; }
.sp-page .event-card .cta .fav-card-btn,
.sp-page .event-card .cta a.fav-card-btn,
.sp-page .event-card .cta a.fav-card-btn:visited { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-grid; place-items: center; width: 38px; height: 38px; min-width: 0; padding: 0; border-radius: 50%; border: 1.5px solid #e6cdd8; background: #fff; box-shadow: 0 1px 4px rgba(16,40,64,.12); }
.sp-page .event-card .cta .fav-card-btn i { margin: 0; font-size: 1.05em; }
.sp-page .event-card .cta .fav-card-btn .fav-card-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-page .event-card .cta .fav-card-btn:hover,
.sp-page .event-card .cta a.fav-card-btn:hover { background: #fbf3f6; border-color: var(--ge-wine, #A3003F); }
.sp-page .event-card .cta .fav-card-btn.is-saved { background: var(--ge-wine, #A3003F); border-color: var(--ge-wine, #A3003F); }
.sp-page .event-card .cta .fav-card-btn.is-saved i { color: #fff; }
/* Keep the event name clear of the heart */
.sp-page .event-card:not(.event-card--pred) .compname { padding-right: 40px; }
/* Desktop: the heart sits top right, View details drops to the bottom of the card */
@media (min-width: 769px) {
    .sp-page .event-card:not(.event-card--pred) { align-items: stretch; }
    .sp-page .event-card:not(.event-card--pred) .cta { justify-content: flex-end; padding-top: 46px; }
}

@media (max-width: 768px) {
    /* The photo fills the height of the card's text, so there's no gap under it */
    .sp-page .event-card:not(.event-card--pred) { grid-template-columns: 84px minmax(0, 1fr); }
    .sp-page .event-card:not(.event-card--pred) .photo { align-self: stretch; min-height: 84px; }
    .sp-page .event-card:not(.event-card--pred) .photo img,
    .sp-page .event-card:not(.event-card--pred) .photo .placeholder { width: 84px; height: 100%; min-height: 84px; object-fit: cover; }
    /* No "No photo available" text on phones: the grey panel says it */
    .sp-page .event-card:not(.event-card--pred) .photo .placeholder { padding: 0; font-size: 0; }
    /* A smaller date tile in the corner: month and day only (the full date is in the text) */
    .sp-page .event-card .ph-wrap .ev-tile--on { left: 6px; top: 6px; width: 40px; height: auto; padding-bottom: 3px; }
    .sp-page .event-card .ph-wrap .ev-tile--on .gec-cal__m { height: 14px; line-height: 14px; font-size: 8.5px; letter-spacing: .4px; }
    .sp-page .event-card .ph-wrap .ev-tile--on .gec-cal__n { font-size: 17px; line-height: 1.1; }
    .sp-page .event-card .ph-wrap .ev-tile--on .gec-cal__w,
    .sp-page .event-card .ph-wrap .ev-tile--on .gec-cal__y { display: none; }
    /* Closing date off on phones (the "Closed" pill stays) */
    .sp-page .event-card .date .closing { display: none; }
    /* View details full width */
    .sp-page .event-card:not(.event-card--pred) .cta > a:first-child { flex: 1 1 100%; }
    /* Filters: an outline button, so it doesn't read as a fourth view */
    .sp-page .filter-trigger { background: #fff; color: var(--ge-navy); border: 1.5px solid var(--ge-navy); border-radius: 999px; padding: 8px 14px; }
    .sp-page .filter-trigger:hover { background: #f3f6f9; }
    .sp-page .filter-trigger i { color: var(--ge-navy); }
    .sp-page .filter-trigger .filter-trigger-count { background: var(--ge-navy); color: #fff; }
}
/* Compare link under the wall's buttons, above the video link */
.sp-wall__more { margin: 10px 0 0; font-size: .9em; }
.sp-wall__more a { color: var(--ge-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sp-wall__more a:hover { color: var(--ge-navy-dark); }
.sp-wall__more + .ge-vid-link { margin-top: 6px; }

/* ===== Saved favourites: one look everywhere (Nov 2026) =====
   Wine is for Premium only, so a saved open shows a red heart instead: navy heart at rest,
   red heart with a red edge on a pale pink once saved. The same rule is in ge-search.css,
   event-page.css, entryform.css and ge-multiday.css. */
.fav-card-btn.is-saved,
.fav-card-btn.is-saved:hover,
.fav-card-btn.is-saved:focus { background: #fff1f4; border-color: #e0245e; color: #b0183f; }
.fav-card-btn.is-saved i { color: #e0245e; }
.sp-page .event-card .cta .fav-card-btn i { color: var(--ge-navy, #254e71); }
.sp-page .event-card .cta .fav-card-btn,
.sp-page .event-card .cta a.fav-card-btn,
.sp-page .event-card .cta a.fav-card-btn:visited { border-color: #d5dde6; }
.sp-page .event-card .cta .fav-card-btn:hover,
.sp-page .event-card .cta a.fav-card-btn:hover { background: #f6f8fb; border-color: var(--ge-navy, #254e71); }
.sp-page .event-card .cta .fav-card-btn.is-saved,
.sp-page .event-card .cta .fav-card-btn.is-saved:hover { background: #fff1f4; border-color: #e0245e; color: #b0183f; }
.sp-page .event-card .cta .fav-card-btn.is-saved i { color: #e0245e; }
