html {
    color-scheme: light; /* hint browsers (forms, scrollbars, etc.) */
}

:root {
    /* Light text & spacing tokens */
    --ink: #111827; /* near-black for good contrast on light bg */
    --sectionGap: clamp(24px, 4vw, 64px) !important;

    /* Brand accents unchanged (used for chips, buttons, links, etc.) */
    --brand-a: #0ea5e9;
    --brand-b: #6366f1;
    --brand-c: #9333ea;
}

/* Page + layout */
body {
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(14,165,233,0.10), transparent 60%),
        radial-gradient(1000px 500px at 110% 10%, rgba(99,102,241,0.10), transparent 60%),
        radial-gradient(1000px 700px at 50% 120%, rgba(147,51,234,0.08), transparent 60%),
        #ffffff;                                  /* base: white */
    background-size: auto;                      /* stop dark sweep */
    animation: none !important;                 /* kill gradientShift */
    overflow-x: hidden;
}

/* Decorative blobs: make them subtle & light */
.blob {
    filter: blur(60px);
    opacity: .25;
}
.blob1 { background: rgba(99,102,241,.18); }  /* brand-b tint */
.blob2 { background: rgba(14,165,233,.16); }  /* brand-a tint */

/* Utilities on light */
.glass {
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(17,24,39,.08);
    backdrop-filter: blur(10px);
}
.text-muted { color: #6b7280 !important; opacity: 1; }

/* Cards on light */
.card {
    background: #ffffff;
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 6px 16px rgba(17,24,39,.06);
}
.card:hover {
    box-shadow: 0 12px 28px rgba(17,24,39,.10);
    transform: translateY(-4px);
}

/* Hero & sections: tighten spacing already declared */
.hero { padding-bottom: clamp(0px, 2vw, 20px) !important; }
.section-popular,
.section-categories,
.section-events {
    margin-block-start: 0 !important;
    margin-block-end: clamp(12px, 3vw, 32px) !important;
    padding-top: clamp(12px, 2vw, 28px) !important;
    padding-bottom: clamp(12px, 2vw, 28px) !important;
}

/* SVG tiles rail */
.svg-attractors .cs-item {
    background: #ffffff;
    border: 1px solid rgba(17,24,39,.08);
}

/* Footer — switch to light, no dark overlay */
.footer {
    color: #374151;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.0)),
        #f8fafc; /* light gray */
    border-top: 1px solid rgba(17,24,39,.08);
}
.footer-wave { display: none; } /* remove dark wave if present */
.footer .content { padding: 28px 0; }
.footer h6 { color: #111827; }
.footer a {
    color: #1f2937;
    opacity: 1;
    text-decoration: none;
}
.footer a:hover { text-decoration: underline; }
.footer .social a {
    background: #ffffff;
    border: 1px solid rgba(17,24,39,.10);
}
.footer .newsletter .form-control {
    background: #ffffff;
    border: 1px solid rgba(17,24,39,.12);
    color: #111827;
}
.footer .newsletter .form-control::placeholder { color: #6b7280; }
.footer .bottom {
    border-top: 1px solid rgba(17,24,39,.08);
    color: #6b7280;
}

/* Buttons/links that were designed for dark bg */
.hero .btn-light { color: #111827; }

/* Tabs/filters */
#discover-events .de-filter.card { border-radius: 18px; background: #ffffff; }

/* Force light even if user prefers dark */
@media (prefers-color-scheme: dark) {
    body {
        color: var(--ink);
        background:
            radial-gradient(1200px 600px at 10% -10%, rgba(14,165,233,0.10), transparent 60%),
            radial-gradient(1000px 500px at 110% 10%, rgba(99,102,241,0.10), transparent 60%),
            radial-gradient(1000px 700px at 50% 120%, rgba(147,51,234,0.08), transparent 60%),
            #ffffff !important;
        animation: none !important;
    }
}

/* Force light button appearance everywhere (including <a> buttons) */
.btn-light,
a.btn.btn-light {
    /* Bootstrap 5 variable overrides */
    --bs-btn-color: #111827;
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: rgba(17,24,39,.12);
    --bs-btn-hover-color: #111827;
    --bs-btn-hover-bg: #f3f4f6;
    --bs-btn-hover-border-color: rgba(17,24,39,.20);
    --bs-btn-active-color: #111827;
    --bs-btn-active-bg: #e5e7eb;
    --bs-btn-active-border-color: rgba(17,24,39,.25);
    --bs-btn-focus-shadow-rgb: 14,165,233;

    /* Fallbacks if your Bootstrap build doesn’t use vars */
    color: #111827 !important;
    background-color: #ffffff !important;
    border-color: rgba(17,24,39,.12) !important;
    background-image: none !important; /* kills any gradient */
}

.btn-light:hover,
a.btn.btn-light:hover,
.btn-light:focus,
a.btn.btn-light:focus {
    color: #111827 !important;
    background-color: #f3f4f6 !important;
    border-color: rgba(17,24,39,.20) !important;
    text-decoration: none;
    box-shadow: 0 0 0 .25rem rgba(14,165,233,.15); /* subtle focus ring */
}

/* If something in .hero was forcing dark styles, neutralize it */
.hero .btn-light {
    mix-blend-mode: normal !important;
    filter: none !important;
}

/* Force the sidebar container to a light look */
.filter-shell.filters--sidebar,
.filter-shell.filters--sidebar.glass {
    position: relative;
    isolation: isolate;                  /* stop weird blending from ancestors */
    background: #ffffff !important;      /* nuke gradients/overlays */
    background-image: none !important;
    color: #111827;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(17,24,39,.06);
    backdrop-filter: none !important;     /* defeat “glass” */
    mix-blend-mode: normal !important;
    opacity: 1 !important;
}

/* If a pseudo-element was painting a dark veil, turn it off */
.filter-shell.filters--sidebar::before,
.filter-shell.filters--sidebar::after {
    content: none !important;
}

/* Inside tiles/cards — ensure light too */
.filter-shell.filters--sidebar .cardish,
.filter-shell.filters--sidebar .card,
.filter-shell.filters--sidebar .fgroup,
.filter-shell.filters--sidebar .panel {
    background: #ffffff !important;
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 6px 16px rgba(17,24,39,.05);
}

/* Form controls in the sidebar */
.filter-shell.filters--sidebar input,
.filter-shell.filters--sidebar select,
.filter-shell.filters--sidebar textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(17,24,39,.15) !important;
}

/* Any “inverse” utility that might be forcing dark text/bg */
.filter-shell.filters--sidebar [class*="bg-"],
.filter-shell.filters--sidebar .glass {
    background: #ffffff !important;
    border-color: rgba(17,24,39,.08) !important;
    backdrop-filter: none !important;
}


/* Containers */
.geoapify-autocomplete .suggestions,
.pac-container {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
    border-radius: 10px !important;
    z-index: 10000 !important;         /* keep above maps/headers */
    overflow: hidden;                   /* clip rounded corners */
}

/* Items */
.geoapify-autocomplete .suggestions li,
.pac-container .pac-item {
    background: transparent !important;
    color: #111 !important;
    padding: 10px 12px !important;
    line-height: 1.2;
    cursor: pointer;
}

/* Sub-parts (Google Places often styles spans) */
.pac-container .pac-item span,
.pac-container .pac-item .pac-item-query {
    background: transparent !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important; /* Safari dark-mode fix */
}

/* Hover/active/focus */
.geoapify-autocomplete .suggestions li:hover,
.pac-container .pac-item:hover,
.pac-container .pac-item.pac-selected {
    background: rgba(0,0,0,.05) !important;
}

/* Make sure OS/browser dark mode doesn’t auto-darken these popups */
@media (prefers-color-scheme: dark) {
    .geoapify-autocomplete .suggestions,
    .pac-container,
    .geoapify-autocomplete .suggestions *,
    .pac-container * {
        background: initial;                 /* keep per-rule values above */
        color: initial;
        filter: none !important;
        mix-blend-mode: normal !important;
        -webkit-text-fill-color: currentColor !important;
    }
    .geoapify-autocomplete .suggestions,
    .pac-container {
        background: #fff !important;
        color: #111 !important;
    }
}

/* Optional: nicer scrollbar in long lists (non-essential) */
.geoapify-autocomplete .suggestions,
.pac-container {
    scrollbar-width: thin;
}
.geoapify-autocomplete .suggestions::-webkit-scrollbar,
.pac-container::-webkit-scrollbar { width: 8px; }
.geoapify-autocomplete .suggestions::-webkit-scrollbar-thumb,
.pac-container::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 8px; }



@media (prefers-color-scheme: dark) {
    .autocomplete-dropdown {
        background: #ffffff;
        border-color: rgba(255, 255, 255, .12);
    }
}

/* rows need a positioning context + real padding for icons */
#filter-location-suggestions .autocomplete-suggestion{
    position: relative;                 /* <-- add */
    display: flex;
    align-items: center;
    padding: 10px 36px 10px 44px;       /* left = space for pin, right = space for chevron */
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
    border-top: 1px solid #f1f3f5;
}

/* left pin */
#filter-location-suggestions .autocomplete-suggestion::before{
    content: "";
    position: absolute;
    left: 12px;                         /* <-- pin sits inside left padding */
    top: 50%;
    transform: translateY(-50%);        /* vertical center */
    width: 16px; height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'><path d='M8 0a5.5 5.5 0 0 0-5.5 5.5c0 3.2 5 9.9 5.2 10.2a.5.5 0 0 0 .6 0C8.5 15.4 13.5 8.7 13.5 5.5A5.5 5.5 0 0 0 8 0Zm0 8A2.5 2.5 0 1 1 8 3a2.5 2.5 0 0 1 0 5Z'/></svg>");
}

/* right chevron */
#filter-location-suggestions .autocomplete-suggestion::after{
    content: "";
    position: absolute;
    right: 10px;                        /* <-- uses right padding space */
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    opacity: 0; transition: opacity .15s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23909'><path d='M6 2l6 6-6 6-1.4-1.4L9.2 8 4.6 3.4 6 2z'/></svg>");
}
#filter-location-suggestions .autocomplete-suggestion:hover::after{
    opacity: .8;
}
