/* Partyfax CSS - Authentic 1:1 Blocksy Child Theme Reproduction */

:root {
    --theme-palette-color-1: #e5d7a7;
    --theme-palette-color-2: #847a52;
    --theme-palette-color-3: #b42225;
    --theme-palette-color-4: #44422b;
    --theme-palette-color-5: #E2E7ED;
    --theme-palette-color-6: #edeff2;
    --theme-palette-color-7: #f8f9fb;
    --theme-palette-color-8: #ece5ca;
    --theme-text-color: #5e573b;
    --theme-link-initial-color: #7a6b3e;
    --theme-link-hover-color: #ffffff;
    --theme-selection-text-color: #ffffff;
    --theme-selection-background-color: #e5d7a7;
    --theme-border-color: var(--theme-palette-color-5);
    --theme-headings-color: #e5d7a7;
    --theme-heading-1-color: var(--theme-palette-color-2);
    --theme-heading-3-color: var(--theme-palette-color-4);
    --theme-heading-4-color: #847a52;
    --theme-heading-5-color: #847a52;
    --theme-normal-container-max-width: 1000px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-position: 0% 0%;
    background-repeat: repeat-x;
    background-color: #010003;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../images/bodybg.gif');
    color: var(--theme-text-color);
    font-family: var(--font-stack);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

body.drawer-open {
    overflow: hidden;
}

a {
    color: var(--theme-link-initial-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--theme-palette-color-4);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--theme-heading-3-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 20px; font-weight: 800; line-height: 1.5; color: var(--theme-palette-color-2); }
h2 { font-size: 35px; font-weight: 700; line-height: 2; }
h3 { font-size: 25px; font-weight: 700; line-height: 2; color: var(--theme-palette-color-4); }
h4 { font-size: 17px; font-weight: 700; line-height: 2; color: #847a52; }
h5 { font-size: 15px; font-weight: 700; line-height: 2; color: #847a52; }

/* Main Wrapper (Centered 1000px on bodybg.gif) */
.site-wrapper,
#main-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--theme-palette-color-8); /* #ece5ca */
    box-shadow: 0px 12px 18px -6px rgba(34, 56, 101, 0.08);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ct-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Header Banner */
.ct-header {
    background-color: transparent;
    padding: 0;
    position: relative;
}

.site-branding {
    text-align: center;
    background-color: #ffffff;
}

.site-logo-container {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.site-logo-container img.default-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 290px;
    object-fit: cover;
}

/* Mobile Trigger Button in Header */
.mobile-header-top {
    display: none;
    background-color: var(--theme-palette-color-2);
    padding: 8px 15px;
    justify-content: flex-end;
    align-items: center;
}

.ct-header-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--theme-palette-color-1);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.ct-header-trigger:hover {
    background-color: var(--theme-palette-color-4);
    color: #ffffff;
}

/* Desktop Navigation Menu */
.main-navigation {
    background-color: var(--theme-palette-color-1); /* #e5d7a7 */
    height: 54px;
    display: flex;
    align-items: center;
    border-top: none;
    border-bottom: none;
}

.main-navigation .ct-container {
    height: 100%;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.nav-menu li {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-menu li a.ct-menu-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 9px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11.5px;
    white-space: nowrap;
    line-height: 1.3;
    color: var(--theme-text-color);
    background-color: transparent;
    border-radius: 0;
    border-bottom: 3.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.nav-menu li a.ct-menu-link:hover {
    background-color: transparent;
    color: var(--theme-palette-color-4);
    border-bottom: 3.5px solid var(--theme-palette-color-2);
}

.nav-menu li.active a.ct-menu-link {
    background-color: transparent;
    color: var(--theme-palette-color-4);
    border-bottom: 3.5px solid var(--theme-palette-color-4);
}

.nav-menu li.admin-menu-link {
    margin-left: 6px;
}

.nav-menu li.admin-menu-link a.ct-menu-link {
    height: auto;
    padding: 5px 11px;
    background-color: #847a52;
    color: #ffffff !important;
    border-radius: 4px;
    border-bottom: none;
    font-size: 11px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
    transition: background-color 0.2s;
}

.nav-menu li.admin-menu-link a.ct-menu-link:hover {
    background-color: #44422b;
    border-bottom: none;
    color: #ffffff !important;
}

/* Mobile Offcanvas Drawer */
.ct-drawer-canvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.ct-drawer-canvas.active {
    visibility: visible;
    opacity: 1;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
}

#offcanvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 82vw;
    max-width: 380px;
    height: 100%;
    background-color: var(--theme-palette-color-2);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    overflow-y: auto;
}

.ct-drawer-canvas.active #offcanvas {
    transform: translateX(0);
}

.ct-panel-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.ct-panel-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.ct-toggle-close {
    background: rgba(0,0,0,0.15);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.ct-toggle-close:hover {
    background: var(--theme-palette-color-3);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav-list li a {
    display: block;
    padding: 14px 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: padding-left 0.2s, color 0.2s;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li.active a {
    color: var(--theme-palette-color-1);
    padding-left: 16px;
}

/* Site Content Container */
.site-content {
    flex: 1;
    padding: 20px 0 40px 0;
    background-color: var(--theme-palette-color-8); /* #ece5ca */
}

/* App Hero Banner */
.app-banner-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--theme-palette-color-1);
    border-radius: 19px;
    margin: 0 auto 20px auto;
    padding: 2px 16px;
    width: fit-content;
}

.map-container {
    height: 360px;
    width: 100%;
    z-index: 1;
    margin: 0 0 20px 0;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Highlights (Volksfeste) Carousel & Day Sections */
.event-day-section,
.highlight-day-section {
    border: 2px solid #847a52;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    background-color: var(--theme-palette-color-8);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.highlight-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fill, 225px);
    grid-auto-flow: column;
    background-color: var(--theme-palette-color-8);
    padding: 12px 14px;
    overflow-x: auto; 
    margin: 0;
    border-radius: 0;
}

.highlight-label {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 4px 0;
    display: block; 
    text-align: center;
    white-space: nowrap;      
    overflow: hidden;         
    text-overflow: ellipsis;  
    max-width: 100%;
    color: #44422b;
}

.highlight-card {
    background-color: white;
    border-radius: 0.5rem;
    width: 225px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.highlight-card:hover {
    opacity: 0.7;
}

.highlight-card .event-image {
    height: 150px;
    overflow: hidden;
}

.highlight-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-details--highlight-inner {
    position: relative;
    padding: 0.5rem;
    text-align: center;
    background: #ffffff;
}

.highlight-label--small {
    font-size: 16px;
    font-weight: bold;
    color: #44422b;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blinking-border {
    padding: 5px;
    position: relative;
    z-index: 1;
}

.blinking-border::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #7a6b3e;
    border-radius: 0.5rem;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    animation: blink-border 2s infinite;
    z-index: -1;
}

@keyframes blink-border {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Event List Day Grouping */
.event-list {
    display: flex;
    flex-direction: column;
}

.event-day {
    background-color: #847a52;
    border-radius: 0;
    box-shadow: none;
    padding: 7px 14px;
    margin: 0;
    border-bottom: 1.5px solid #756c48;
}

.day-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #E5D7A7;
    margin: 0;
    line-height: 1.3;
}

.event-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    background-color: var(--theme-palette-color-8);
    padding: 12px 14px;
    margin: 0;
}

@media (max-width: 640px) {
    .event-day-section,
    .highlight-day-section {
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .event-day {
        padding: 6px 10px;
    }

    .day-title {
        font-size: 1.1rem;
    }

    .event-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }

    .highlight-grid {
        padding: 10px;
        gap: 10px;
    }
}

.event-card {
    position: relative;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 300px;
    line-height: normal;
    transition: opacity 0.2s ease;
}

.event-card:hover {
    opacity: 0.7;
}

.event-card--canceled {
    opacity: 0.4;
}

.event-image-bg {
    background-size: cover;
    background-position: center;
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.event-image-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
}

.time-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: #000000;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
    z-index: 2;
}

.genre-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-weight: 600;
    font-size: 12px;
    border-radius: 10px;
    padding: 0.25rem 0.5rem;
    z-index: 2;
}

.event-details--highlight {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    padding: 0.75rem;
    padding-top: 6px;
    min-height: 85px;
    box-sizing: border-box;
}

.event-title-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.event-title {
    font-size: 1rem;
    color: #847a52;
    font-weight: bold;
    margin: 0 0 4px 0;
    line-height: 1.3;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
}

.event-details-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
}

.event-details-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-band {
    flex-shrink: 0;
    max-width: 75px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-top: 2px;
}

.bandpic {
    max-height: 38px;
    max-width: 75px;
    object-fit: contain;
}

.event-location {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    font-weight: normal;
    margin-bottom: 0;
    padding-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-description {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.event-artists-text {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Single Event Page Specifics (1:1 with termin.php) */
.event-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border-radius: 10px;
    margin: 12px 0;
}

.event-badge {
    display: block;
    padding: 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #eaddba;
    color: #2f2f33;
    width: 100%;
    box-sizing: border-box;
}

.event-badge__label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #44422b;
    font-size: 0.95rem;
}

.event-badge__value {
    display: block;
    font-weight: 500;
    opacity: 0.95;
    color: #2f2f33;
    font-size: 0.95rem;
}

.event-badge__images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.event-badge__artist-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.event-badge__artist-link:hover {
    transform: translateY(-1px);
    opacity: 0.85;
}

.event-badge__artist-link:hover .event-badge__artist {
    background: rgba(255,255,255,0.35);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.event-badge__artist {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    gap: 6px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.event-badge__artist-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
}

.event-map {
    background: #eaddba;
    padding: 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 12px 0;
    width: 100%;
    box-sizing: border-box;
}

.event-map__label {
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    color: #44422b;
}

.event-description-badge {
    background: #eaddba;
    padding: 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

.event-description-badge .event-badge__value {
    display: block;
    font-weight: 500;
    color: #2f2f33;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.event-content {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 18px 0;
}

.event-content.no-description {
    justify-content: center;
}

.event-content.landscape {
    flex-direction: column;
}

.event-content.portrait {
    flex-direction: row;
}

.event-image-container {
    flex: 0 0 320px;
    max-width: 100%;
    box-sizing: border-box;
}

.event-image-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.event-content.landscape .event-image-container {
    flex: none;
    width: 100%;
    text-align: center;
}

.event-content.landscape .event-image-container img {
    max-height: 500px;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
}

.abgesagt {
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid #d32f2f;
    border-radius: 6px;
    background: rgba(211, 47, 47, 0.08);
}

.abgesagt-badge-center {
    color: #d32f2f;
    font-size: 1.5rem;
    font-weight: 800;
    border: 2.5px solid #d32f2f;
    padding: 6px 24px;
    border-radius: 8px;
    background: rgba(211, 47, 47, 0.08);
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(211,47,47,0.15);
    margin: 0 auto;
}

/* Date List View & Compact Grid (Alle Termine & Archiv) */
.event-grid--compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    background-color: var(--theme-palette-color-8);
    padding: 10px 12px;
    margin: 0;
}

.compact-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.compact-card {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #dcd4b8;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 105px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.compact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #847a52;
}

.compact-card--canceled {
    opacity: 0.55;
    background-color: #faf5f5;
}

.compact-abgesagt-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d32f2f;
    font-size: 1rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #d32f2f;
    border-radius: 6px;
    padding: 3px 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none;
    white-space: nowrap;
}

.compact-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    gap: 6px;
}

.compact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.compact-time-badge {
    background-color: #000000;
    color: #ffffff;
    font-weight: 600;
    font-size: 11px;
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.3;
}

.compact-genre-badge {
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 6px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-band-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    max-height: 28px;
    flex-shrink: 0;
    margin-left: 6px;
}

.compact-bandpic {
    max-height: 26px;
    max-width: 55px;
    object-fit: contain;
}

.compact-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compact-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #847a52;
    margin: 0;
    line-height: 1.25;
    word-break: break-word;
}

.compact-location {
    font-size: 0.8rem;
    font-weight: normal;
    color: #666666;
    font-style: italic;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-sonst {
    font-size: 0.8rem;
    font-weight: normal;
    color: #666666;
    margin: 0;
    line-height: 1.25;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-artists {
    font-size: 0.8rem;
    font-weight: normal;
    color: #666666;
    margin: 0;
    line-height: 1.25;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eventdiv {
    margin-bottom: 10px;
    padding: 10px 14px;
    position: relative;
    background-color: #EADFB9;
    color: #7a6b3e;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.eventdiv:hover {
    background-color: #dacea6;
}

/* Bands & DJs Grid */
.dj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 35px;
}

.dj-card {
    background: #ffffff;
    border: 1px solid #dcd4b8;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dj-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.dj-card-logo img {
    max-width: 100%;
    height: 75px;
    object-fit: contain;
    margin-bottom: 8px;
}

.dj-name-btn {
    display: inline-block;
    width: 100%;
    padding: 6px 0;
    background: var(--theme-palette-color-4);
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dj-name-btn:hover {
    background: var(--theme-palette-color-2);
    color: #fff;
}

/* Forms */
.formtbl {
    width: 100%;
    border-collapse: collapse;
}

.formcol {
    padding: 10px 8px;
    vertical-align: middle;
}

.formtbl input[type="text"],
.formtbl input[type="email"],
.formtbl input[type="date"],
.formtbl input[type="time"],
.formtbl select,
.formtbl textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}

.btn-primary {
    display: inline-block;
    background-color: var(--theme-palette-color-2);
    color: #ffffff;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--theme-palette-color-4);
    color: #ffffff;
}

/* Footer */
.ct-footer {
    background-color: var(--theme-palette-color-2); /* #847a52 */
    color: var(--theme-palette-color-1);
    padding: 25px 0 20px 0;
    text-align: center;
    margin-top: auto;
}

/* Footer App Badges */
.footer-app-section {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-app-heading {
    font-size: 13px;
    font-weight: 700;
    color: #E5D7A7;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-app-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1.5px solid rgba(229, 215, 167, 0.35);
    border-radius: 9px;
    padding: 6px 14px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    min-width: 145px;
    box-sizing: border-box;
}

.footer-app-btn:hover {
    background: rgba(0, 0, 0, 0.45);
    border-color: #E5D7A7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-app-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: block;
    flex-shrink: 0;
}

.footer-app-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.footer-app-btn-text small {
    font-size: 9.5px;
    color: rgba(229, 215, 167, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.footer-app-btn-text span {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

/* 3 Footer Sections */
.footer-nav-sections {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
    margin: 22px auto 20px auto;
    padding: 20px 15px 0 15px;
    border-top: 1px solid rgba(229, 215, 167, 0.25);
    text-align: center;
    max-width: 800px;
}

.footer-nav-section {
    flex: 1;
}

.footer-section-title {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #E5D7A7;
    margin-bottom: 10px;
}

.footer-section-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section-links li {
    margin: 0;
    padding: 0;
}

.footer-section-links li a {
    color: var(--theme-palette-color-1);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.footer-section-links li a:hover {
    color: #ffffff;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(229, 215, 167, 0.85);
    border-top: 1px solid rgba(229, 215, 167, 0.2);
    padding-top: 16px;
    margin-top: 12px;
}

@media (max-width: 680px) {
    .footer-nav-sections {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 16px auto 18px auto;
        padding-top: 16px;
    }

    .footer-nav-section {
        width: 100%;
    }

    .footer-section-title {
        margin-bottom: 6px;
    }

    .footer-section-links {
        gap: 7px;
    }
}

.more-events-footer {
    text-align: center;
    margin: 30px 0 10px 0;
}

.more-events-footer h4 {
    font-size: 18px;
    line-height: 0.8;
    color: var(--theme-palette-color-4);
}

.more-events-footer h1 a {
    font-size: 24px;
    color: var(--theme-palette-color-4);
    font-weight: 800;
}

.more-events-footer h1 a:hover {
    color: var(--theme-palette-color-2);
}

.divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin: 20px 0;
}

/* Modal Lightbox */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive Media Queries */
@media (max-width: 999.98px) {
    .mobile-header-top {
        display: flex;
    }
    .main-navigation {
        display: none;
    }
    .map-container {
        height: 220px;
        margin-bottom: 24px;
    }
    .event-meta {
        grid-template-columns: 1fr;
    }
    .event-content {
        flex-direction: column !important;
    }
    .event-image-container {
        flex: none;
        width: 100%;
    }
    .event-description-badge {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 220px;
        margin-bottom: 20px;
    }
}

.abgesagt-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abgesagt-overlay span {
    color: #d32f2f;
    font-size: 1.4rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #d32f2f;
    border-radius: 8px;
    padding: 6px 18px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Google AdSense Styles */
.event-card.event-ad-card {
    display: block;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 280px;
    min-width: 250px;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 10px 10px 10px;
    position: relative;
}

.event-card.event-ad-card .ad-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 9.5px;
    color: #888888;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    pointer-events: none;
    z-index: 2;
}

.event-card.event-ad-card .adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-width: 250px !important;
}

.event-card.event-ad-card .ad-google-wrapper {
    display: block;
    width: 100%;
}

.event-card.event-ad-card .ad-fallback-content {
    display: none;
    width: 100%;
}

/* Secondary ads: collapse if unfilled */
.event-card.event-ad-card:not(.event-ad-card--primary):has(ins[data-ad-status="unfilled"]),
.event-card.event-ad-card:not(.event-ad-card--primary)[data-ad-status="unfilled"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Primary ad (Position 2): ALWAYS visible */
.event-card.event-ad-card--primary {
    display: block !important;
    min-height: 280px;
}

.event-card.event-ad-card--primary.show-fallback .ad-google-wrapper,
.event-card.event-ad-card--primary:has(ins[data-ad-status="unfilled"]) .ad-google-wrapper {
    display: none !important;
}

.event-card.event-ad-card--primary.show-fallback .ad-fallback-content,
.event-card.event-ad-card--primary:has(ins[data-ad-status="unfilled"]) .ad-fallback-content {
    display: block !important;
}

.ad-fallback-inner {
    background: linear-gradient(135deg, #847a52 0%, #44422b 100%);
    border-radius: 8px;
    padding: 20px 12px;
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 245px;
}

.ad-fallback-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.ad-fallback-title {
    color: #E5D7A7;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

.ad-fallback-text {
    color: #ffffff;
    font-size: 0.88rem;
    margin: 0 0 16px 0;
    line-height: 1.35;
}

.ad-fallback-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ad-fallback-badges img {
    height: 32px;
    width: auto;
    border-radius: 4px;
    display: block;
}

.adsbygoogle-fluid {
    display: block;
    width: 100%;
    min-width: 250px;
}

.adsdiv {
    margin: 12px 0;
    text-align: center;
    background-color: #eaddba;
    border-radius: 18px;
    padding: 12px;
    overflow: hidden;
    width: 100%;
    min-width: 250px;
    box-sizing: border-box;
}

.adsdiv .adsbygoogle {
    min-width: 250px;
    border-radius: 12px;
}

/* Event Report Trigger & Modal */
.event-report-trigger-wrapper {
    text-align: center;
    margin: 14px 0 6px 0;
    width: 100%;
}

.btn-event-report-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eaddba;
    border: 1px solid #d4c49d;
    color: #44422b;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-event-report-link:hover {
    background: #847a52;
    border-color: #847a52;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.pf-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.72) !important;
    z-index: 9999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pf-modal-box {
    background: #ece5ca;
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #847a52;
    overflow: hidden;
    animation: pfModalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pfModalFadeIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.pf-modal-header {
    background: #e5d7a7;
    padding: 12px 18px;
    border-bottom: 1.5px solid #dcd4b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pf-modal-title {
    margin: 0;
    font-size: 1.1rem;
    color: #44422b;
    font-weight: 800;
}

.pf-modal-close {
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #44422b;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}

.pf-modal-close:hover {
    color: #b42225;
}

.pf-modal-body {
    padding: 16px 18px 20px 18px;
}

.pf-modal-subtitle {
    margin: 0 0 14px 0;
    font-size: 0.88rem;
    color: #555;
    background: #f7f3e8;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #847a52;
}

/* ==========================================================================
   Homepage Filter & Location Radius Bar (Single Row with Combobox)
   ========================================================================== */
.pf-home-filter-box {
    background: #847a52;
    border: 1px solid #726843;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 0 0 25px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.pf-filter-single-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 1. Location Input */
.pf-location-input-group {
    position: relative;
    flex: 2 1 200px;
    display: flex;
    align-items: center;
    min-width: 170px;
}

.pf-location-icon {
    position: absolute;
    left: 12px;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 2;
}

.pf-location-input {
    width: 100%;
    height: 40px;
    padding: 8px 64px 8px 34px;
    border-radius: 8px;
    border: 1.5px solid #d4c49d;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pf-location-input:focus {
    border-color: #847a52;
    box-shadow: 0 0 0 3px rgba(132, 122, 82, 0.18);
}

.pf-input-buttons {
    position: absolute;
    right: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.pf-gps-btn {
    background: #eaddba;
    border: 1px solid #d4c49d;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #44422b;
    transition: background 0.15s, transform 0.1s;
    padding: 0;
}

.pf-gps-btn:hover {
    background: #847a52;
    color: #fff;
    transform: scale(1.05);
}

.pf-clear-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.pf-clear-btn:hover {
    color: #b42225;
}

.pf-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #847a52;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    max-height: 220px;
    overflow-y: auto;
    z-index: 99999;
}

.pf-suggestion-item {
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0ecdf;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-suggestion-item:last-child {
    border-bottom: none;
}

.pf-suggestion-item:hover {
    background: #f7f3e8;
    color: #847a52;
}

/* 2. Categories Combobox */
.pf-cat-combo-wrapper {
    position: relative;
    flex: 1 1 180px;
    min-width: 160px;
}

.pf-combo-btn {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1.5px solid #d4c49d;
    background: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    color: #44422b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.15s;
    user-select: none;
}

.pf-combo-btn:hover,
.pf-combo-btn.active {
    border-color: #847a52;
    background: #faf8f2;
}

.pf-cat-dropdown-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 230px;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #847a52;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    padding: 8px;
    box-sizing: border-box;
    animation: pfComboFadeIn 0.15s ease-out;
}

@keyframes pfComboFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pf-cat-dropdown-header {
    display: flex;
    justify-content: space-between;
    padding: 2px 4px 6px 4px;
    border-bottom: 1px solid #ece5ca;
    margin-bottom: 6px;
}

.pf-cat-quick-btn {
    background: none;
    border: none;
    color: #847a52;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.pf-cat-quick-btn:hover {
    background: #eaddba;
    color: #44422b;
}

.pf-cat-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
}

.pf-cat-drop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #44422b;
    user-select: none;
    transition: background 0.12s;
}

.pf-cat-drop-item:hover {
    background: #f7f3e8;
}

.pf-cat-drop-item input[type="checkbox"] {
    accent-color: #847a52;
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* 3. Radius Select */
.pf-radius-group {
    flex: 0 0 auto;
}

.pf-radius-select {
    height: 40px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1.5px solid #d4c49d;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    color: #44422b;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

.pf-radius-select:focus {
    border-color: #847a52;
}

/* Filter Toggle Bar & Accordion */
.pf-filter-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
    user-select: none;
    padding: 2px 0;
}

.pf-filter-toggle-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pf-filter-toggle-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pf-filter-toggle-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pf-filter-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.pf-filter-reset-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: #b42225;
    border: 1px solid #9e1c1f;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.pf-filter-reset-btn:hover {
    background: #9e1c1f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.pf-filter-toggle-arrow {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    transition: transform 0.2s ease;
    display: inline-block;
    line-height: 1;
    margin-left: 2px;
}

.pf-filter-toggle-arrow.expanded {
    transform: rotate(180deg);
}

.pf-filter-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

/* Event Card Distance Badge (Vorbereitet, derzeit ausgeblendet) */
.event-distance-badge {
    display: none !important;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    background: rgba(68, 66, 43, 0.92);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    align-items: center;
    gap: 3px;
}

/* No events alert box */
.pf-no-events-notice {
    background: #ffffff;
    border: 1.5px dashed #847a52;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    color: #555;
    margin: 20px 0;
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================================================
   Mobile Responsive Optimizations for Homepage Filter (< 680px)
   ========================================================================== */
@media (max-width: 680px) {
    .pf-home-filter-box {
        padding: 10px 10px 8px 10px;
        margin: 10px 0 8px 0;
        border-radius: 10px;
    }

    .pf-filter-single-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* 1. Location Input: Spans full width */
    .pf-location-input-group {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        flex: none;
    }

    .pf-location-input {
        height: 42px;
        font-size: 14px;
        padding-right: 68px;
    }

    .pf-gps-btn {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    /* 2. Categories Combobox: Left column */
    .pf-cat-combo-wrapper {
        min-width: 0;
        flex: none;
        width: 100%;
    }

    .pf-combo-btn {
        height: 42px;
        font-size: 13px;
        padding: 8px 10px;
        justify-content: space-between;
    }

    .pf-cat-dropdown-panel {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        width: 270px;
        max-width: 85vw;
    }

    .pf-cat-drop-item {
        padding: 8px 10px;
        font-size: 13.5px;
    }

    .pf-cat-drop-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    /* 3. Radius Select: Right column */
    .pf-radius-group {
        min-width: 0;
        flex: none;
        width: 100%;
    }

    .pf-radius-select {
        width: 100%;
        height: 42px;
        font-size: 13.5px;
        padding: 6px 10px;
        text-align: center;
        text-align-last: center;
    }

    /* 4. Filter Toggle Bar (Mobil) */
    .pf-filter-toggle-bar {
        gap: 6px;
    }

    .pf-filter-toggle-title {
        font-size: 14.5px;
    }

    .pf-filter-toggle-right {
        gap: 6px;
    }

    .pf-filter-count-badge {
        font-size: 0.76rem;
        padding: 2.5px 7px;
    }

    .pf-filter-reset-btn {
        font-size: 0.76rem;
        padding: 2.5px 7px;
    }
}

.pf-app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: #191711;
    border-top: 2px solid #847a52;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    animation: pfSlideUp 0.35s ease-out;
}

@keyframes pfSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.pf-app-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.pf-app-banner-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-app-banner-close:hover {
    color: #fff;
}

.pf-app-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #847a52;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pf-app-banner-info {
    flex: 1;
    min-width: 0;
}

.pf-app-banner-title {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.pf-app-banner-desc {
    color: #bbb;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin-top: 1px;
}

.pf-app-banner-btn {
    background: #847a52;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.15s ease;
}

.pf-app-banner-btn:hover {
    background: #968c60;
}

@media (min-width: 769px) {
    .pf-app-banner {
        display: none !important;
    }
    .pf-fab-filter {
        display: none !important;
    }
}

/* ==========================================================================
   Mobile Floating Action Button (FAB) & Filter Modal
   ========================================================================== */
.pf-fab-filter {
    display: none;
}
.pf-mobile-filter-modal {
    display: none;
}

@media (max-width: 680px) {
    /* Completely hide desktop filter box on mobile */
    .pf-home-filter-box {
        display: none !important;
    }

    /* Round Floating Action Button (FAB) */
    .pf-fab-filter {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 18px;
        bottom: calc(20px + env(safe-area-inset-bottom));
        width: 56px;
        height: 56px;
        border-radius: 50%;
        z-index: 99998;
        background: linear-gradient(145deg, #847a52 0%, #44422b 100%);
        color: #ffffff;
        border: 2.5px solid #ece5ca;
        padding: 0;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease, bottom 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    body.has-app-banner .pf-fab-filter {
        bottom: calc(75px + env(safe-area-inset-bottom));
    }

    .pf-fab-filter:active {
        transform: scale(0.90);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    }

    .pf-fab-filter.active {
        background: linear-gradient(145deg, #44422b 0%, #2b2a1a 100%);
        border-color: #e5d7a7;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(229, 215, 167, 0.45);
    }

    .pf-fab-svg {
        width: 26px;
        height: 26px;
        fill: #ece5ca;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
    }

    .pf-fab-filter.active .pf-fab-svg {
        fill: #e5d7a7;
    }

    .pf-fab-badge {
        position: absolute;
        top: -6px;
        right: -8px;
        background: #44422b;
        color: #e5d7a7;
        font-size: 10.5px;
        font-weight: 800;
        border-radius: 12px;
        padding: 2px 6px;
        min-width: 22px;
        height: 18px;
        line-height: 18px;
        text-align: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
        border: 1.5px solid #ece5ca;
        letter-spacing: 0.2px;
        white-space: nowrap;
    }

    .pf-fab-filter.active .pf-fab-badge {
        background: #e5d7a7;
        color: #44422b;
        border-color: #ffffff;
    }

    /* Modal Overlay & Dialog */
    .pf-mobile-filter-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999999;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        animation: pfModalFadeIn 0.2s ease-out;
    }

    @keyframes pfModalFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .pf-modal-sheet {
        background: #ffffff;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
        animation: pfSheetSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes pfSheetSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .pf-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        background: #847a52;
        color: #ffffff;
        border-bottom: 2px solid #6f6643;
    }

    .pf-modal-title {
        font-size: 17px;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 8px;
        letter-spacing: 0.3px;
    }

    .pf-modal-close-btn {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: #ffffff;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 20px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        transition: background 0.15s;
    }

    .pf-modal-close-btn:active {
        background: rgba(255, 255, 255, 0.4);
    }

    .pf-modal-content {
        padding: 18px 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .pf-modal-section-title {
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #726843;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Modal Location Field */
    .pf-modal-loc-group {
        position: relative;
        display: flex;
        align-items: center;
    }

    .pf-modal-loc-input {
        width: 100%;
        height: 46px;
        padding: 10px 76px 10px 38px;
        border-radius: 10px;
        border: 1.5px solid #d4c49d;
        background: #fbf9f4;
        font-size: 15px;
        font-weight: 600;
        color: #333333;
        outline: none;
        box-sizing: border-box;
    }

    .pf-modal-loc-input:focus {
        border-color: #847a52;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(132, 122, 82, 0.2);
    }

    .pf-modal-loc-icon {
        position: absolute;
        left: 12px;
        font-size: 17px;
        pointer-events: none;
    }

    .pf-modal-input-actions {
        position: absolute;
        right: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .pf-modal-gps-btn {
        background: #eaddba;
        border: 1px solid #c9ba90;
        border-radius: 8px;
        width: 34px;
        height: 34px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #44422b;
    }

    .pf-modal-gps-btn:active {
        background: #847a52;
        color: #fff;
    }

    .pf-modal-clear-btn {
        background: none;
        border: none;
        font-size: 20px;
        color: #888;
        cursor: pointer;
        padding: 0 4px;
        line-height: 1;
    }

    .pf-modal-suggestions {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        background: #ffffff;
        border: 1.5px solid #847a52;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        max-height: 200px;
        overflow-y: auto;
        z-index: 100;
    }

    /* Modal Radius Buttons */
    .pf-modal-radius-options {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .pf-modal-radius-btn {
        background: #f7f3e8;
        border: 1.5px solid #d4c49d;
        border-radius: 8px;
        padding: 10px 4px;
        font-size: 13.5px;
        font-weight: 700;
        color: #44422b;
        text-align: center;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .pf-modal-radius-btn.active {
        background: #847a52;
        color: #ffffff;
        border-color: #6f6643;
        box-shadow: 0 2px 6px rgba(132, 122, 82, 0.35);
    }

    /* Modal Category Grid */
    .pf-modal-cat-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pf-modal-cat-chip {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #fbf9f4;
        border: 1.5px solid #e0d5b8;
        border-radius: 10px;
        padding: 9px 12px;
        font-size: 13.5px;
        font-weight: 600;
        color: #44422b;
        cursor: pointer;
        user-select: none;
        transition: all 0.15s ease;
    }

    .pf-modal-cat-chip.active {
        background: #eaddba;
        border-color: #847a52;
        font-weight: 700;
        color: #222015;
    }

    .pf-modal-cat-chip input[type=checkbox] {
        accent-color: #847a52;
        width: 17px;
        height: 17px;
        margin: 0;
    }

    .pf-modal-cat-actions {
        display: flex;
        gap: 8px;
    }

    .pf-modal-cat-action-btn {
        background: none;
        border: 1px solid #d4c49d;
        border-radius: 6px;
        padding: 3px 8px;
        font-size: 12px;
        font-weight: 700;
        color: #847a52;
        cursor: pointer;
    }

    /* Modal Footer */
    .pf-modal-footer {
        padding: 14px 20px calc(16px + env(safe-area-inset-bottom)) 20px;
        background: #f7f3e8;
        border-top: 1px solid #e2dac0;
        display: flex;
        gap: 10px;
    }

    .pf-modal-reset-action {
        flex: 1;
        height: 46px;
        background: #ffffff;
        border: 1.5px solid #d4c49d;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 700;
        color: #666666;
        cursor: pointer;
    }

    .pf-modal-apply-action {
        flex: 2;
        height: 46px;
        background: linear-gradient(135deg, #847a52 0%, #5e5535 100%);
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 800;
        color: #ffffff;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(132, 122, 82, 0.35);
    }

    .pf-modal-apply-action:active {
        transform: scale(0.98);
    }
}
