/* Kultursemesterticket Bremen – Programm
   Gestaltung nach kultursemesterticket-bremen.de (Salient-Theme):
   Schriften PP Agrandir / NEIMA, Dunkelblau #171b8d, Gelb #fff6a0,
   Gruen #6cbe95, flache Flaechen, 6px Radien, 7vw Seitenrand. */

:root {
    /* Farben der Hauptseite */
    --kst-blue: #171b8d;
    --kst-blue-dark: #10136a;
    --kst-yellow: #fff6a0;
    --kst-green: #6cbe95;
    --kst-lightblue: #6aaadd;
    --kst-orange: #ff6b3d;

    --bg: #ffffff;
    --bg-alt: #f7f7f7;
    --text: #111111;
    --text-light: #5f6368;
    --border: #e4e4e4;
    --border-strong: #cfd1e6;

    /* Schriften */
    --font-body: 'PP Agrandir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-bold: 'PP Agrandir Text', 'PP Agrandir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'NEIMA', Georgia, 'Times New Roman', serif;
    --font-label: 'PP Agrandir Tight', 'PP Agrandir', sans-serif;

    /* Masse */
    --header-h: 74px;
    --gutter: clamp(16px, 7vw, 110px);
    --radius: 6px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(23, 27, 141, 0.12);

    /* Abwaertskompatibel fuer filter.css / detail.css */
    --primary-color: var(--kst-blue);
    --primary-light: #2a2fa8;
    --accent-color: var(--kst-orange);
    --background-alt: var(--bg-alt);
    --text-color: var(--text);
    --border-color: var(--border);
    --font-family: var(--font-body);
    --radius-sm: var(--radius);
    --radius-md: var(--radius);
    --radius-lg: 10px;
    --radius-full: var(--radius-pill);
    --shadow-lg: var(--shadow-md);
}

/* ===== Reset & Basis ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--kst-blue); text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-bold);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.label {
    font-family: var(--font-label);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===== Buttons (nectar-cta Nachbau) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.8em 2em;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

.btn-yellow {
    background: var(--kst-yellow);
    color: var(--kst-blue);
    border-color: var(--kst-yellow);
}
.btn-yellow:hover, .btn-yellow:focus-visible {
    background: var(--kst-green);
    border-color: var(--kst-green);
    color: #fff;
}

.btn-blue {
    background: var(--kst-blue);
    color: #fff;
    border-color: var(--kst-blue);
}
.btn-blue:hover, .btn-blue:focus-visible {
    background: var(--kst-green);
    border-color: var(--kst-green);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--kst-blue);
    border-color: var(--kst-blue);
}
.btn-outline:hover, .btn-outline:focus-visible {
    background: var(--kst-blue);
    color: #fff;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-white:hover, .btn-outline-white:focus-visible {
    background: #fff;
    color: var(--kst-blue);
}

/* ===== Header (Salient: transparent ueber dem Hero, weiss beim Scrollen) ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    font-family: var(--font-bold);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
}

.site-nav a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
    transition: color 0.3s ease;
}

/* animierte Unterstreichung wie im Theme (animated_underline) */
.site-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav li.current a::after { transform: scaleX(1); }

/* Header auf weissem Grund (nach dem Scrollen / Detailseite) */
.site-header.is-solid {
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.site-header.is-solid .site-logo,
.site-header.is-solid .site-nav a { color: var(--kst-blue); }

/* Burger (gelbe Pille wie auf der Hauptseite, mobil) */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 30px;
    border-radius: var(--radius-pill);
    background: var(--kst-yellow);
    position: relative;
    flex-shrink: 0;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--kst-blue);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Vollbild-Menue (slide-out-widget-area fullscreen-alt) */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 990;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

.mobile-menu ul { list-style: none; }
.mobile-menu li { margin: 0.4em 0; }
.mobile-menu a {
    font-family: var(--font-body);
    font-size: clamp(28px, 6vw, 36px);
    line-height: 1.35;
    letter-spacing: -0.03em;
    color: #fff;
}
.mobile-menu li.current a { color: var(--kst-yellow); }
.mobile-menu a:hover { color: var(--kst-yellow); }

/* ===== Hero (blau, Haende-Illustration, NEIMA-Headline) ===== */
.hero {
    position: relative;
    background: var(--kst-blue) url('../img/kst-haende-bg.png') center top / cover no-repeat;
    color: #fff;
    padding: calc(var(--header-h) + 5vw) 0 5vw;
    overflow: hidden;
}

.hero .container { position: relative; }

.hero-kicker {
    color: var(--kst-yellow);
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    font-size: clamp(3.2rem, 9vw, 8rem);
    line-height: 0.92;
    color: #fff;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: clamp(17px, 1.4vw, 22px);
    line-height: 1.45;
    max-width: 640px;
    margin-bottom: 2.2rem;
}

/* ===== Suche (im Hero) ===== */
.search-box {
    display: flex;
    gap: 0.75rem;
    max-width: 780px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    height: 58px;
    padding: 0 6.2rem 0 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--text);
    font-size: 17px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.search-input-wrapper input::placeholder { color: #8a8d99; }
.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--kst-yellow);
    box-shadow: 0 0 0 4px rgba(255, 246, 160, 0.35);
}

.voice-btn {
    position: absolute;
    right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--kst-blue);
    transition: background-color 0.2s ease;
}
.voice-btn:hover { background: var(--bg-alt); }
.voice-btn.recording { color: var(--kst-orange); animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.search-clear-btn {
    position: absolute;
    right: 52px;
    display: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #8a8d99;
    font-size: 1.4rem;
    line-height: 1;
}
.search-clear-btn.visible { display: flex; }
.search-clear-btn:hover { color: var(--kst-blue); background: var(--bg-alt); }

.search-btn { height: 58px; padding: 0 2em; }

.search-status {
    min-height: 1.6rem;
    margin-top: 0.9rem;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}
.search-status.loading { color: var(--kst-yellow); }
.search-status.error { color: #ffb4a0; }

.search-hint {
    margin-top: 0.4rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}
.search-hint button {
    color: var(--kst-yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== Filterleiste (unter dem Hero) ===== */
.toolbar {
    background: var(--bg-alt);
    padding: 1.6rem 0 1.4rem;
}

/* Zickzack-Trenner wie auf der Startseite (gruen) */
.zigzag {
    height: 14px;
    background: repeat-x center / 24px 14px
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpolyline points='0,11 6,3 12,11 18,3 24,11' fill='none' stroke='%236cbe95' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* ===== Ergebnisse ===== */
.results-section {
    padding: 2.2rem 0 4rem;
    scroll-margin-top: calc(var(--header-h) + 8px);
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.results-count {
    font-family: var(--font-bold);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    min-height: 1.6rem;
}
.results-count span { font-family: var(--font-body); color: var(--text-light); font-weight: 400; }

/* "powered by molo" (schwarzes Logo, da heller Hintergrund) */
.powered-by-molo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.powered-by-molo:hover { opacity: 1; }
.powered-by-molo img { height: 18px; width: auto; }
/* Zaehler + Logo links, Umschalter rechts */
.results-bar .view-toggle { margin-left: auto; }

/* Umschalter Liste / Karte */
.view-toggle {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--kst-blue);
    border-radius: var(--radius-pill);
    background: #fff;
}
.view-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.5em 1.1em;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    color: var(--kst-blue);
    transition: background-color 0.2s ease, color 0.2s ease;
}
.view-toggle button svg { width: 16px; height: 16px; }
.view-toggle button[aria-pressed="true"] { background: var(--kst-blue); color: #fff; }
.view-toggle button:not([aria-pressed="true"]):hover { background: var(--bg-alt); }

.results-view { display: none; }
.results-view.active { display: block; }

/* Karten-Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.6rem;
}

.event-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeIn 0.35s ease both;
}
.event-card:hover {
    border-color: var(--kst-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.event-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }

.event-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    overflow: hidden;
}
.event-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.event-card:hover .event-card-image img { transform: scale(1.04); }

/* dunkler Verlauf mit Veranstalter, wie die Partnerkacheln der Hauptseite */
.event-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 55%);
    pointer-events: none;
}
.event-card-organizer {
    position: absolute;
    left: 1rem; right: 1rem; bottom: 0.85rem;
    z-index: 1;
    color: #fff;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card-date {
    position: absolute;
    top: 0.85rem; left: 0.85rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.35em 0.9em;
    border-radius: var(--radius-pill);
    background: var(--kst-yellow);
    color: var(--kst-blue);
    font-family: var(--font-bold);
    font-size: 13px;
    letter-spacing: -0.01em;
}
.event-card-date svg { width: 14px; height: 14px; }

.event-card-content {
    padding: 1.1rem 1.2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.event-card-title {
    font-size: 1.15rem;
    line-height: 1.25;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-location {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 15px;
    color: var(--text-light);
}
.event-card-location svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--kst-blue); }
.event-card-location span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.event-card-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-footer {
    margin-top: auto;
    padding-top: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.event-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 15px;
    font-weight: 500;
    color: var(--kst-blue);
}
.event-card-cta svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.event-card:hover .event-card-cta svg { transform: translateX(3px); }

/* Zugang & Inklusion: Symbole unten rechts (Hover-Text "ggf. ...") */
.event-card-access { display: inline-flex; gap: 0.3rem; }
.access-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--kst-blue);
    color: #fff;
    font-family: var(--font-bold);
    font-size: 10px;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: help;
}
.access-badge svg { width: 17px; height: 17px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nachladen */
.load-more { display: none; justify-content: center; padding: 1.6rem 0 0.5rem; min-height: 1px; }
.load-more.visible { display: flex; }

/* Laden / keine Treffer */
.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-light);
}
.loading-indicator.visible { display: flex; }

.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--kst-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-light);
}
.no-results svg { width: 64px; height: 64px; margin: 0 auto 1.2rem; color: var(--kst-lightblue); }
.no-results h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 0.4rem; }

/* ===== Karte ===== */
#map-container {
    position: relative;
    height: clamp(420px, 70vh, 760px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
}
#map { height: 100%; width: 100%; }

.fit-map-btn {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.5em 1em;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--kst-blue);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.fit-map-btn:hover { background: var(--kst-blue); color: #fff; border-color: var(--kst-blue); }
.fit-map-btn svg { width: 16px; height: 16px; }

.map-hint {
    margin-top: 0.8rem;
    font-size: 14px;
    color: var(--text-light);
}

/* Marker in Markenfarbe */
.kst-marker {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--kst-blue);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--kst-blue), 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}
.kst-marker:hover { transform: scale(1.25); }

.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper {
    border-radius: var(--radius) !important;
    padding: 0 !important;
    box-shadow: var(--shadow-md) !important;
}
.leaflet-popup-content { margin: 0 !important; min-width: 230px; line-height: 1.4; }
.leaflet-popup-tip { box-shadow: none !important; }

.popup-content { padding: 1rem 1.1rem; }
.popup-title { font-family: var(--font-bold); font-size: 15px; color: var(--text); margin-bottom: 0.25rem; }
.popup-date { font-size: 13px; color: var(--text-light); margin-bottom: 0.7rem; }
.popup-place { font-size: 13px; color: var(--text-light); margin-bottom: 0.7rem; }
.popup-link {
    display: inline-block;
    padding: 0.45em 1.1em;
    border-radius: var(--radius-pill);
    background: var(--kst-yellow);
    color: var(--kst-blue) !important;
    font-size: 13px;
    font-weight: 500;
}
.popup-link:hover { background: var(--kst-green); color: #fff !important; }

/* ===== Footer (blaue Zeilen wie auf der Hauptseite) ===== */
.site-footer {
    background: var(--kst-blue);
    color: #fff;
    padding: clamp(3rem, 8vw, 7rem) 0 clamp(2rem, 3vw, 3rem);
}

.footer-claim {
    font-family: var(--font-bold);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.03em;
    max-width: 22em;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.footer-text { font-size: 16px; line-height: 1.55; max-width: 640px; }

.footer-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    max-width: 640px;
}
.footer-logos a { display: block; opacity: 0.85; transition: opacity 0.2s ease; }
.footer-logos a:hover { opacity: 1; }
.footer-logos img { width: 100%; height: auto; }

.footer-links p { margin-bottom: 0.4rem; font-size: 16px; }
.footer-links a {
    color: #fff;
    background-image: linear-gradient(to right, var(--kst-yellow) 0, var(--kst-yellow) 100%);
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 0.25s ease;
}
.footer-links a:hover { background-size: 100% 1px; }

.footer-meta {
    margin-top: 2.5rem;
    font-size: 13px;
    opacity: 0.7;
}
.footer-meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Hilfsklassen ===== */
.hidden { display: none !important; }
.visible { display: flex !important; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
    .site-nav { display: none; }
    .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .hero {
        background-image: url('../img/kst-haende-bg-m.png');
        padding-top: calc(var(--header-h) + 8vw);
        padding-bottom: 9vw;
    }

    .search-box { flex-direction: column; }
    .search-btn { width: 100%; }

    .view-toggle { width: 100%; }
    .view-toggle button { flex: 1; justify-content: center; }

    .events-grid { grid-template-columns: 1fr; gap: 1.2rem; }

    #map-container { height: 65vh; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-logos { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
