/* ===== RockLive main styles =====
   Extracted from index.php for maintainability.
   Theme variables (dark/light) included so the page works standalone.
*/

:root {
    --bg-page: #0a0a0a;
    --bg-header: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-elevated: #2c2c2c;
    --bg-hover: #333333;

    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #999999;
    --text-faint: #666666;

    --border-color: #333333;
    --border-subtle: #2c2c2c;

    --accent-red: #e74c3c;
    --accent-red-dark: #b91c1c;
    --accent-yellow: #facc15;

    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.5);
    --bg-page-gradient: radial-gradient(circle at 20% 30%, #1a0c0c 0%, #020101 100%);
    --card-translucent-bg: #111111dd;

    --accent-peach: #f5c6a0;
    --warm-tint: #2a1a1a;
    --warm-tint-strong: #2c0f0f;
    --warm-gradient-start: #1f1a17;
    --warm-text: #ffaa88;

    color-scheme: dark;
}

[data-theme="light"] {
    --bg-page: #f7f5f3;
    --bg-header: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f0eeec;
    --bg-hover: #e8e6e4;

    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #6b6b6b;
    --text-faint: #999999;

    --border-color: #e2e0de;
    --border-subtle: #ececea;

    --accent-red: #e74c3c;
    --accent-red-dark: #b91c1c;
    --accent-yellow: #b8860b;

    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --bg-page-gradient: none;
    --card-translucent-bg: #ffffff;

    --accent-peach: #a8551f;
    --warm-tint: #fbeee7;
    --warm-tint-strong: #f6dcd0;
    --warm-gradient-start: #fff3ec;
    --warm-text: #c2410c;

    color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; position: relative; }
body {
    background: var(--bg-page);
    background-image: var(--bg-page-gradient);
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    padding: 0;
    color: var(--text-secondary);
}
.global-container { max-width: 1200px; margin: 0 auto; width: 100%; flex: 1; padding-top: 10px; }




/* ===== HEADER ===== */
.rock-header-optimized {
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--bg-header) 95%, transparent);
    display: flex;
    justify-content: center;
}
.rock-header-optimized .header-inner { max-width: 1200px; width: 100%; }
.header-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 4px 0;
    flex-wrap: nowrap;
    max-width: 100%;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.4rem;
    font-weight: 800;
    white-space: nowrap;
    flex: 0 0 auto;
}
.header-logo img { height: 36px; display: block; vertical-align: middle; }

.header-news {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.header-news a {
    color: var(--accent-yellow);
    text-decoration: none;
    font-size: 0.85rem;
    background: var(--bg-header);
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.4;
}
.header-news a:hover { background: var(--accent-red); color: white; }
.add-link, .contact-link {
    background: var(--bg-header);
    color: var(--accent-yellow);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}
.add-link:hover, .contact-link:hover { background: var(--accent-red); color: white; }
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--accent-yellow);
    font-size: 1.8rem;
    cursor: pointer;
}
.close-hamburger {
    background: none;
    border: none;
    color: var(--accent-yellow);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    margin-left: auto;
}
/* ===== КАРТА С ВСИЧКИ КОНЦЕРТИ (OVERLAY) ===== */
#mapContainer {
    background: var(--bg-page);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    height: 450px;
    min-height: 350px;
}
#mapContainer.map-overlay-inner { height: 80vh; }
#mapOverlay.open { display: flex !important; }
#mapContainer .map-legend {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1000;
    background: color-mix(in srgb, var(--bg-header) 85%, transparent);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.65rem;
}
#mapContainer .map-legend span { display: flex; align-items: center; gap: 4px; }
#mapContainer .map-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
#mapContainer .map-legend .dot.festival { background: #7c2d12; border: 1px solid gold; }
#mapContainer .map-legend .dot.original { background: var(--accent-red); }
#mapContainer .map-legend .dot.tribute { background: #2c5f2d; }
#mapContainer .leaflet-popup-content-wrapper { background: var(--bg-header); color: var(--text-secondary); border: 1px solid var(--border-color); border-radius: 12px; }
#mapContainer .leaflet-popup-tip { background: var(--bg-header); }
#mapContainer .leaflet-popup-content { font-size: 0.8rem; min-width: 200px; max-width: 280px; }
#mapContainer .leaflet-popup-content .popup-title { color: var(--accent-yellow); font-weight: bold; font-size: 0.9rem; margin-bottom: 4px; }
#mapContainer .leaflet-popup-content .popup-meta { color: var(--text-muted); font-size: 0.7rem; }
#mapContainer .leaflet-popup-content .popup-link { display: inline-block; margin-top: 6px; color: var(--accent-yellow); text-decoration: none; font-size: 0.7rem; border: 1px solid var(--accent-yellow); padding: 2px 12px; border-radius: 20px; }
#mapContainer .leaflet-popup-content .popup-link:hover { background: var(--accent-yellow); color: #000; }
@media (max-width: 700px) {
    #mapContainer { height: 320px; min-height: 250px; margin: 10px 0 15px 0; }
    #mapContainer.map-overlay-inner { height: 90vh; margin: 0; }
    #mapContainer .map-legend { top: 8px; left: 8px; padding: 6px 10px; font-size: 0.55rem; gap: 8px; flex-wrap: wrap; max-width: 90%; }
    #mapContainer .map-legend .dot { width: 8px; height: 8px; }
    #mapContainer .leaflet-popup-content { font-size: 0.7rem; min-width: 150px; max-width: 200px; }
    #mapContainer .leaflet-popup-content .popup-title { font-size: 0.8rem; }
}
.header-row-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
}
.header-search { flex: 0 0 auto; width: 130px; position: relative; }
.search-input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    width: 100%;
    position: relative;
    z-index: 5;
    transition: width 0.25s ease, box-shadow 0.25s ease;
}
.search-input:focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 50;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.search-input:focus { outline: none; border-color: var(--accent-red); background: #2a2a2a; }
.header-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-left: 12px;
}
.year-tabs-inline {
    display: flex;
    gap: 6px;
    background: var(--bg-card);
    padding: 3px;
    border-radius: 50px;
}
.year-btn-inline {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 14px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.year-btn-inline.active { background: var(--accent-red); color: black; }
.year-btn-inline .concert-count { font-size: 0.65rem; opacity: 0.7; margin-left: 3px; }
.header-filters, .header-archives { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-link, .archive-icon {
    background: var(--bg-card);
    color: var(--accent-yellow);
    padding: 5px 12px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.filter-link.active { background: var(--accent-red); color: black; }

/* ===== ДВА ГЛАВНИ БУТОНА (ТИП / ДЪРЖАВА) ===== */
.filter-buttons-group { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.filter-toggle-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-card); border: 1px solid var(--border-color); color: var(--accent-yellow);
    padding: 8px 16px; border-radius: 40px; cursor: pointer; font-size: 0.8rem; font-weight: bold;
    white-space: nowrap; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-toggle-btn:hover { border-color: var(--accent-yellow); }
.filter-toggle-btn.active-panel { background: var(--accent-red); color: #000; border-color: var(--accent-red); }
.filter-toggle-arrow { font-size: 0.55rem; display: inline-block; transition: transform 0.2s ease; }
.filter-toggle-btn.active-panel .filter-toggle-arrow { transform: rotate(180deg); }

/* ===== ПЪЛНОШИРОЧИНЕН ПАНЕЛ (ТИП / ДЪРЖАВА) ===== */
.filter-panel-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 998;
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.filter-panel-backdrop.open { opacity: 1; pointer-events: auto; }
.filter-panel {
    position: fixed; left: 0; right: 0; top: 0;
    background: var(--bg-header); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 1001;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}
.filter-panel.open { max-height: 200px; opacity: 1; }
.filter-panel-inner {
    max-width: 1200px; margin: 0 auto; padding: 12px 16px;
    display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: flex-start;
}
.filter-panel-link {
    background: none; border: none; cursor: pointer;
    color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 400;
    padding: 4px 2px; white-space: nowrap; border-bottom: 2px solid transparent;
}
.filter-panel-link:hover { color: var(--accent-yellow); border-bottom-color: var(--accent-yellow); }
.filter-panel-link.active { color: var(--accent-yellow); font-weight: 600; border-bottom-color: var(--accent-yellow); }
.flag-ico { width: 18px; height: 13px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); margin-right: 2px; }
.cc { color: var(--text-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; }
.filter-panel-link.active .cc { color: inherit; opacity: 0.8; }
.filter-panel-link .country-count { font-size: 0.7rem; opacity: 0.65; font-weight: normal; margin-left: 2px; }
.filter-panel-close-row { display: contents; }
.filter-panel-close-x {
    background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-muted);
    width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 0.85rem; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: auto; padding: 0;
}
.filter-panel-close-x:hover { border-color: var(--accent-red); color: var(--accent-red); }

@media (max-width: 700px) {
    /* Панелът се отваря ОТГОРЕ (както на десктоп), а не като bottom-sheet -
       за да съвпада с посоката на отваряне на хамбургер менюто. */
    .filter-panel { border-radius: 0 0 16px 16px; }
    .filter-panel.open { max-height: 75vh; overflow-y: auto; }
    .filter-panel-inner { padding: 10px 14px 14px; }
    .filter-panel-link { font-size: 0.8rem; }
}

.header-mobile-links { display: flex; flex-wrap: wrap; gap: 6px; }
.header-mobile-links .archive-icon {
    background: var(--bg-card);
    color: var(--accent-yellow);
    padding: 5px 12px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
}
.header-mobile-links .archive-icon:hover { background: var(--accent-red); color: black; }

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 3px;
    border-radius: 50px;
    margin-right: 8px;
}
.view-toggle button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
}
.view-toggle button.active { background: var(--accent-red); color: #000; }

/* ===== НОВИНА В ХЕДЪРА ===== */
.header-news .news-link {
    display: inline-block !important;
    flex: 1 1 auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.8rem !important;
    text-align: left !important;
    padding: 4px 16px !important;
    background: var(--bg-header) !important;
    border-radius: 50px !important;
    color: var(--accent-yellow) !important;
    text-decoration: none !important;
    vertical-align: middle !important;
}

/* ===== DESKTOP ===== */
@media (min-width: 701px) {
    .header-news { flex: 1 1 auto !important; gap: 4px; justify-content: flex-end; max-width: 100%; }
    .header-news .add-link, .header-news .contact-link { flex: 0 0 auto !important; font-size: 0.7rem; padding: 4px 8px; }
    .header-logo img { height: 28px; }
    .header-logo { font-size: 1.1rem; gap: 4px; }
    .header-row-top { gap: 6px; margin: 0 auto 2px 0; }
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
    .header-row-top { flex-wrap: nowrap; justify-content: space-between; gap: 6px; }
    .header-news a:last-child { display: none; }
    .header-news .add-link, .header-news .contact-link { display: inline-block; padding: 4px 8px; font-size: 0.8rem; }
    .header-mobile-news { display: none; margin-right: 4px; }
    .hamburger { display: block; font-size: 1.5rem; padding: 4px 8px; background: none; border: none; color: var(--accent-yellow); cursor: pointer; }
    .header-logo { font-size: 1rem; }
    .header-news { display: flex; justify-content: flex-end; gap: 4px; flex: 0 1 auto; }
    .header-news .news-link { display: none !important; }
    .header-row-bottom { display: none; flex-direction: column; width: 100%; background: var(--bg-header); border-radius: 16px; margin-top: 12px; padding: 12px; gap: 12px; }
    .header-row-bottom.open { display: flex; }
    .header-search { width: 100%; }
    .header-controls { margin-left: 0; justify-content: center; width: 100%; flex-direction: column; }
    .filter-link, .archive-icon, .year-btn-inline { font-size: 0.8rem; padding: 6px 12px; }
    .close-hamburger { display: block; margin-top: 12px; width: 100%; text-align: center; padding: 8px; background: color-mix(in srgb, var(--accent-red) 19%, transparent); border-radius: 40px; font-size: 0.9rem; cursor: pointer; }
    .header-mobile-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-color); }
    .header-mobile-links .archive-icon { background: var(--bg-card); color: var(--accent-yellow); padding: 6px 14px; font-size: 0.8rem; font-weight: bold; border-radius: 40px; text-decoration: none; display: inline-block; }
    .view-toggle { margin-right: 0; }
    .modal { align-items: flex-start !important; justify-content: flex-start !important; }
    .modal-content { width: 100% !important; max-width: 100% !important; padding: 10px; max-height: 100vh; overflow-y: auto; overflow-x: hidden; word-wrap: break-word; border-left: none !important; border-radius: 0 !important; position: relative; box-sizing: border-box; }
    .modal-content h2 { font-size: 1.35rem; word-break: break-word; padding-right: 0; }
    .modal-content .close-btn { position: absolute !important; top: 8px; right: 8px; float: none !important; margin: 0 !important; padding: 4px 10px; font-size: 24px; z-index: 20; }
    .modal-details { font-size: 0.85rem; padding: 6px 4px; margin: 8px 0; word-break: break-word; }
    .modal-links { gap: 6px; }
    .modal-link { font-size: 0.75rem; padding: 6px 10px; white-space: normal; text-align: center; }

    /* ============================================================
       ХАМБУРГЕР МЕНЮ - по-ясен, по-едър, в нормалния поток на
       страницата (не position:fixed overlay - на реални Android
       устройства комбинацията fixed+transform/backdrop-filter
       предизвикваше нестабилно/невидимо рендиране). Менюто просто
       избутва календара надолу, докато е отворено - по-малко
       "полирано", но напълно надеждно на всички устройства.
       ============================================================ */
    .header-row-bottom.open {
        padding: 14px !important;
        gap: 10px !important;
    }
    .header-row-bottom .filter-buttons-group { width: 100%; gap: 8px !important; }
    .header-row-bottom .filter-toggle-btn { flex: 1 1 0; justify-content: center; font-size: 1rem !important; padding: 10px 12px !important; }
    .header-row-bottom #mapToggleBtn { width: 100%; box-sizing: border-box; font-size: 1rem !important; padding: 10px !important; }
    .header-row-bottom .header-search input {
        width: 100%; box-sizing: border-box; font-size: 0.95rem !important; padding: 8px 14px !important;
    }
    .header-row-bottom .year-tabs-inline { width: 100%; gap: 8px; }
    .header-row-bottom .year-btn-inline { flex: 1; font-size: 0.95rem !important; padding: 8px !important; }
    .header-row-bottom .header-mobile-links,
    .header-row-bottom .header-archives {
        width: 100%; gap: 8px !important;
    }
    .header-row-bottom .header-mobile-links .archive-icon,
    .header-row-bottom .header-archives .archive-icon {
        width: 100%; box-sizing: border-box; display: flex !important; justify-content: center;
        font-size: 1rem !important; padding: 10px !important;
    }
    .header-row-bottom .header-controls {
        display: flex !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-left: 0 !important;
    }
    .header-row-bottom .close-hamburger {
        width: 100%; font-size: 1rem; padding: 10px; border-radius: 14px;
    }
    .video-tab { font-size: 0.65rem; padding: 4px 10px; }
    #modalMapContainer { height: 200px !important; min-height: 180px; }
    #modalLeafletMap { min-height: 180px; height: 100%; }
    #modalLeafletMap .leaflet-control-zoom { transform: scale(0.8); transform-origin: top left; }
    .news-overlay-content { padding: 20px; max-width: 95%; }
    .news-overlay-content h2 { font-size: 1.2rem; padding-right: 30px; }
    .news-overlay-close { font-size: 26px; top: 10px; right: 14px; }
    .news-overlay-fb-section .fb-buttons { flex-direction: column; }
}

/* ===== CALENDAR ===== */
.month-card { background: var(--card-translucent-bg); border-radius: 24px; margin-bottom: 28px; overflow: hidden; border: 1px solid var(--border-color); scroll-margin-top: var(--header-scroll-offset, 120px); }
.month-header { background: linear-gradient(95deg, var(--warm-gradient-start), var(--warm-tint-strong)); padding: 12px; text-align: center; font-size: 1.2rem; font-weight: 800; color: var(--accent-peach); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: #2a2a2a; padding: 4px; }
.weekday { background: var(--warm-tint); color: var(--warm-text); text-align: center; padding: 6px 2px; font-size: 0.65rem; font-weight: bold; }
.day-cell { position: relative; background: var(--bg-page); border: 1px solid var(--border-color); min-height: 85px; padding: 6px 3px; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: background 0.15s ease, box-shadow 0.15s ease; scroll-margin-top: var(--header-scroll-offset, 120px); }
.day-archive-link { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; background: var(--accent-yellow); color: #000; border-radius: 50%; font-size: 0.65rem; line-height: 1; text-decoration: none; z-index: 2; box-shadow: 0 0 0 1px var(--bg-page); }
.day-archive-link:hover { transform: scale(1.2); }
.day-cell:hover { background: var(--warm-tint); box-shadow: inset 0 0 0 1px var(--accent-yellow); }
.day-number { font-size: 1rem; font-weight: bold; }
.concert-badge { background: var(--accent-red); font-size: 0.6rem; font-weight: bold; padding: 4px 6px; border-radius: 20px; max-width: 100%; width: auto; color: white; cursor: pointer; text-align: center; word-break: break-word; white-space: normal; line-height: 1.2; }
.tribute-badge { background: #2c5f2d; }
.festival-badge { background: #7c2d12; border-left: 3px solid gold; }
.current-day { outline: 2px solid var(--accent-yellow); background: var(--warm-tint); }
.other-month { background: var(--bg-page); opacity: 0.5; }
.year-section { display: none; }
.year-section.active-year { display: block; }

/* ===== LIST VIEW ===== */
.list-view-container { display: none; margin-top: 20px; flex: 1; min-width: 0; }
.list-layout-wrapper {
    display: flex; gap: 24px; align-items: flex-start;
}
.list-news-sidebar {
    display: block;
    width: 100%; 
    padding: 0;
    background: var(--bg-elevated); border-radius: 16px;
    border: 1px solid var(--border-color);
}
.list-sidebar-column {
    display: none;
    width: 300px; flex-shrink: 0;
    position: sticky; top: 25px;
    margin-top: -90px;
    flex-direction: column; gap: 16px;
}
.list-gods-sidebar {
    margin-top: 0;
}
.list-news-sidebar .sidebar-title {
    font-size: 1rem; font-weight: bold; color: var(--text-primary);
    margin: 0; padding: 16px 16px 8px;
    border-bottom: 2px solid var(--accent-red);
}
.list-news-sidebar .sidebar-news-item {
    display: flex; gap: 10px; margin: 0;
    text-decoration: none; color: inherit;
    transition: background 0.15s; padding: 10px 16px;
}
.list-news-sidebar .sidebar-news-item:hover { background: var(--warm-tint); }
.list-news-sidebar .sidebar-news-img {
    width: 80px; height: 52px; object-fit: cover; border-radius: 6px;
    flex-shrink: 0; background: var(--bg-card);
}
.list-news-sidebar .sidebar-news-title {
    font-size: 0.8rem; color: var(--text-primary); line-height: 1.3;
}
        .list-news-sidebar .sidebar-news-date {
    font-size: 0.65rem; color: var(--text-faint); margin-top: 3px;
}
@media (max-width: 900px) {
    .list-sidebar-column { display: none !important; }
    .list-layout-wrapper { flex-direction: column; }
}
.list-view-heading { font-size: 1.5rem; font-weight: bold; color: var(--accent-peach); margin: 4px 4px 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.list-view-heading-count { color: var(--text-muted); font-weight: normal; font-size: 1.1rem; }
.list-view { display: flex; flex-direction: column; gap: 10px; background: var(--bg-page); border-radius: 20px; padding: 10px; }
.list-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-header); padding: 10px 16px 10px 10px; border-radius: 16px; border-left: 4px solid var(--accent-red); cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.15s; flex-wrap: wrap; gap: 16px; }
.list-item:hover { background: var(--warm-tint); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.list-item-left { display: flex; align-items: center; gap: 18px; flex: 1 1 auto; min-width: 280px; }
.list-item-type { font-size: 1.3rem; flex-shrink: 0; }
.list-item-thumb { width: 220px; height: 124px; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: var(--bg-elevated); }
.list-item-info { flex: 1; min-width: 0; }
.list-item-name { font-weight: bold; color: var(--accent-peach); font-size: 1.1rem; }
.list-item-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.list-item-excerpt {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-top: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-item-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.list-item-price { font-size: 0.78rem; color: var(--accent-yellow); background: var(--bg-card); padding: 3px 12px; border-radius: 20px; }
.list-item-badge { font-size: 0.65rem; padding: 3px 12px; border-radius: 20px; background: var(--bg-hover); color: var(--text-muted); }
.list-item-badge.original { background: var(--accent-red); color: white; }
.list-item-badge.tribute { background: #2c5f2d; color: white; }
.list-item-badge.festival { background: #7c2d12; color: white; border-left: 2px solid gold; }
.list-archive-link { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; color: var(--accent-yellow); font-size: 0.85rem; font-weight: bold; text-decoration: none; padding: 4px 0; transition: opacity 0.2s; }
.list-archive-link:hover { opacity: 0.7; }

/* ===== КОМПАКТЕН GRID ЗА СЪСЕДНИ ДЪРЖАВИ (като архива) ===== */
.nb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nb-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border: 1px solid var(--border-color); border-radius: 14px;
    background: var(--bg-elevated); cursor: pointer; min-width: 0;
    box-sizing: border-box; transition: background 0.15s;
}
.nb-card:hover { background: var(--warm-tint); }
.nb-thumb {
    width: 44px; height: 44px; object-fit: cover; border-radius: 8px;
    flex-shrink: 0; background: var(--bg-card);
}
.nb-icon {
    width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; background: var(--bg-card);
}
.nb-info { min-width: 0; flex: 1; }
.nb-name {
    font-weight: bold; color: var(--accent-peach); font-size: 0.9rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nb-meta { color: var(--text-muted); font-size: 0.75rem; margin-top: 3px; line-height: 1.4; }
.nb-badge {
    flex-shrink: 0; font-size: 0.65rem; font-weight: bold; padding: 3px 9px;
    border-radius: 20px; background: var(--bg-card); color: var(--text-muted); white-space: nowrap;
}
.nb-badge.festival { background: #7c2d12; color: white; }
.nb-badge.original { background: var(--accent-red); color: white; }
.nb-badge.tribute { background: #2c5f2d; color: white; }
.nb-country-heading {
    font-size: 1rem; font-weight: bold; color: var(--text-primary);
    margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border-color);
}
.nb-country-heading:first-child { margin-top: 4px; }
@media (max-width: 700px) {
    .nb-grid { grid-template-columns: 1fr; }
}

/* ---- Мобилен изглед: снимка отгоре (пълна ширина), инфо отдолу, по-едър текст ---- */
@media (max-width: 700px) {
    .list-item {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 14px;
        border-left: none;
        border-radius: 18px;
        overflow: hidden;
        gap: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    }
    .list-item-left {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-width: 0;
    }
    .list-item-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 0;
        margin-bottom: 12px;
    }
    .list-item-info { padding: 0 16px; }
    .list-item-name { font-size: 1.1rem; line-height: 1.35; }
    .list-item-meta { font-size: 0.85rem; }
    .list-item-excerpt { font-size: 0.85rem; -webkit-line-clamp: 3; }
    .list-item-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 12px;
        padding: 0 16px;
        gap: 10px;
    }
    .list-item-price { font-size: 0.82rem; }
    .list-item-badge { font-size: 0.7rem; }
    .list-archive-link { font-size: 0.75rem; padding: 12px 14px; }
}


/* ===== LEGEND ===== */
.legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0; font-size: 0.7rem; }
.legend span { display: inline-block; width: 16px; height: 16px; border-radius: 20px; margin-right: 5px; }

/* ===== FB SHARE ===== */
.fb-share-wrapper { text-align: center; margin: 30px auto 20px; }
.fb-share-btn { background: #1877f2; color: white; padding: 10px 24px; border-radius: 50px; border: none; cursor: pointer; font-size: 0.9rem; }

/* ===== FOOTER ===== */
footer { margin-top: 30px; font-size: 0.7rem; color: var(--text-faint); border-top: 1px solid var(--border-color); padding-top: 20px; text-align: center; }

/* ===== SEARCH ===== */
.search-results { background: var(--bg-header); border-radius: 24px; margin: 20px 0; border: 1px solid var(--accent-red); overflow: hidden; display: none; }
.search-results.visible { display: block; }
.search-category { padding: 16px 20px; border-bottom: 1px solid var(--border-color); background: var(--bg-elevated); }
.category-title { color: var(--accent-peach); font-weight: bold; margin-bottom: 12px; font-size: 0.9rem; }
.search-item { padding: 10px 0; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.search-item a { color: var(--accent-yellow); text-decoration: none; font-weight: bold; font-size: 0.9rem; }
.search-item a:hover { color: var(--accent-red); }
.search-item small { color: var(--text-muted); font-size: 0.7rem; background: var(--bg-card); padding: 2px 8px; border-radius: 20px; }
.close-results { float: right; background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; }

/* ===== MODAL ===== */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); align-items: center; justify-content: center; }
.modal-content { background: var(--bg-header); border-left: 6px solid var(--accent-red); border-radius: 24px; max-width: 90%; width: 750px; padding: 24px; position: relative; max-height: 85vh; overflow-y: auto; overflow-x: hidden; word-wrap: break-word; overflow-wrap: break-word; }
       .close-btn {
    position: sticky;
    top: 8px;
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 20;
    background: var(--bg-header);
    padding: 4px 12px;
    border-radius: 50%;
    margin-bottom: -40px;
    display: inline-block;
    line-height: 1;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}
.close-btn:hover {
    color: var(--accent-red);
    background: var(--warm-tint);
    transform: scale(1.05);
}
.modal h2 { font-size: 1.4rem; color: var(--accent-peach); margin-bottom: 10px; }
.modal-date { color: var(--accent-yellow); margin-bottom: 12px; font-size: 0.85rem; }
.video-tabs-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; justify-content: center; }
.video-tab { background: var(--bg-hover); border: none; color: white; padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: 0.75rem; }
.video-tab.active { background: var(--accent-red); color: #000; font-weight: bold; }
.modal-video { margin: 15px 0; border-radius: 12px; overflow: hidden; background: #000; }
.video-item { position: relative; padding-bottom: 56.25%; height: 0; }
.video-item iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.modal-details { margin: 15px 0; padding: 12px; background: var(--bg-elevated); border-radius: 12px; font-size: 0.85rem; line-height: 1.4; }
.modal-drop-cap { float: left; font-size: 3rem; line-height: 0.8; color: var(--accent-red); font-weight: bold; margin: 4px 8px 0 0; }
.modal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.modal-link { background: var(--accent-red); color: white; padding: 8px 16px; border-radius: 40px; text-decoration: none; font-size: 0.8rem; }
#modalMapContainer { margin: 15px 0; border-radius: 12px; overflow: hidden; background: var(--bg-page); border: 1px solid var(--border-color); height: 260px; }
#modalLeafletMap { width: 100%; height: 100%; min-height: 220px; }
#modalLeafletMap .leaflet-control-zoom { border-color: var(--border-color); }
#modalLeafletMap .leaflet-control-zoom a { background: var(--bg-header); color: var(--text-secondary); }
#modalLeafletMap .leaflet-popup-content-wrapper { background: var(--bg-header); color: var(--text-secondary); border: 1px solid var(--border-color); }
#modalLeafletMap .leaflet-popup-tip { background: var(--bg-header); }

/* ===== NEWS OVERLAY ===== */
.news-overlay { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); align-items: center; justify-content: center; backdrop-filter: blur(5px); padding: 20px; }
.news-overlay.active { display: flex; }
.news-overlay-content { background: var(--bg-header); border-left: 6px solid var(--accent-yellow); border-radius: 24px; max-width: 90%; width: 800px; padding: 30px; position: relative; max-height: 90vh; overflow-y: auto; overflow-x: hidden; word-wrap: break-word; overflow-wrap: break-word; animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.news-overlay-close {
    position: sticky;
    top: 0;
    float: right;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
    background: var(--bg-header);
    padding: 6px 14px;
    border-radius: 50%;
    margin-bottom: 10px;
    display: inline-block;
    line-height: 1;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}
.news-overlay-close:hover {
    color: var(--accent-red);
    background: var(--warm-tint);
    transform: scale(1.05);
}
.news-overlay-content h2 { font-size: 1.6rem; color: var(--accent-peach); margin-bottom: 10px; padding-right: 40px; }
.news-overlay-meta { color: var(--accent-yellow); font-size: 0.85rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }
.news-overlay-image { width: 100%; border-radius: 16px; margin: 15px 0; }
.news-overlay-content .news-content { line-height: 1.7; font-size: 1rem; color: var(--text-secondary); }
.news-overlay-content .news-content p { margin-bottom: 15px; }
.news-overlay-content .news-content a { color: var(--accent-yellow); text-decoration: none; }
.news-overlay-content .news-content a:hover { text-decoration: underline; }
.news-overlay-video { margin: 15px 0; border-radius: 12px; overflow: hidden; background: #000; }
.news-overlay-video .video-item { padding-bottom: 56.25%; height: 0; position: relative; }
.news-overlay-video .video-item iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.news-overlay-content .photo-credit { font-size: 0.7rem; color: var(--text-muted); text-align: right; margin-top: 8px; margin-bottom: 15px; }
.news-overlay-fb-section { margin: 25px 0 10px; padding: 20px; background: var(--bg-elevated); border-radius: 16px; text-align: center; border: 1px solid var(--border-color); }
.news-overlay-fb-section .fb-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.news-overlay-fb-section .fb-share-btn { background: #1877f2; color: white; padding: 8px 20px; border-radius: 40px; border: none; cursor: pointer; font-size: 0.85rem; font-weight: bold; }
.news-overlay-fb-section .fb-follow-btn { background: var(--bg-hover); color: var(--accent-yellow); padding: 8px 20px; border-radius: 40px; text-decoration: none; font-size: 0.85rem; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; }
.news-overlay-fb-section .fb-follow-btn:hover { background: #1877f2; color: white; }
.news-overlay-fb-section .fb-like { display: inline-block; }
    
    /* ===== ЕЗИКОВИ БУТОНИ В МОДАЛИТЕ ===== */
    .modal .lang-switch,
    .news-overlay .lang-switch {
display: flex;
gap: 4px;
justify-content: flex-start;
margin: 0;
padding: 8px 0;
flex-wrap: nowrap;
align-items: center;
position: sticky;
top: 0;
z-index: 15;
background: var(--bg-header);
    }

    .modal .lang-switch a,
    .news-overlay .lang-switch a {
display: flex;
align-items: center;
gap: 2px;
padding: 3px 8px;
border-radius: 40px;
text-decoration: none;
font-size: 0.65rem;
font-weight: 600;
transition: all 0.2s ease;
    }

    .modal .lang-switch a:hover,
    .news-overlay .lang-switch a:hover {
transform: scale(1.05);
    }

    .modal .lang-switch a.lang-bg,
    .news-overlay .lang-switch a.lang-bg {
color: var(--accent-yellow);
background: rgba(250, 204, 21, 0.15);
border: 1px solid rgba(250, 204, 21, 0.3);
    }

    .modal .lang-switch a.lang-en,
    .news-overlay .lang-switch a.lang-en {
color: var(--text-muted);
background: transparent;
border: 1px solid var(--border-color);
    }

    .modal .lang-switch a.lang-en:hover,
    .news-overlay .lang-switch a.lang-en:hover {
color: var(--text-primary);
border-color: var(--accent-yellow);
background: rgba(250, 204, 21, 0.1);
    }
    
    /* ПЛАВАЩА ТЪРСАЧКА ЗА МОБИЛЕН */
    #floatingSearchMobile {
display: none;
    }

    #floatingSearchMobile .search-input:focus {
outline: none;
border-color: var(--accent-red);
background: #2a2a2a;
    }

    .floating-search-result {
padding: 12px 16px;
border-bottom: 1px solid var(--border-subtle);
cursor: pointer;
transition: background 0.2s;
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
    }

    .floating-search-result:hover {
background: #2a2a2a;
    }

    .floating-search-result .result-name {
color: var(--accent-yellow);
font-weight: bold;
font-size: 0.9rem;
    }

    .floating-search-result .result-meta {
color: var(--text-muted);
font-size: 0.7rem;
background: var(--bg-card);
padding: 2px 10px;
border-radius: 20px;
white-space: nowrap;
    }

    .floating-search-result .result-type {
color: var(--text-faint);
font-size: 0.6rem;
text-transform: uppercase;
background: var(--bg-header);
padding: 2px 8px;
border-radius: 10px;
border: 1px solid var(--border-color);
    }

    #floatingSearchResults .search-category {
padding: 8px 16px;
background: var(--bg-elevated);
border-bottom: 1px solid var(--border-color);
    }

    #floatingSearchResults .category-title {
color: var(--accent-peach);
font-weight: bold;
font-size: 0.8rem;
padding: 6px 0;
    }

    /* ПОКАЗВАМЕ САМО НА МОБИЛЕН (< 700px) */
    @media (max-width: 700px) {
#floatingSearchMobile {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: color-mix(in srgb, var(--bg-header) 95%, transparent) !important;
    backdrop-filter: blur(12px) !important;
    padding: 8px 12px !important;
    border-top: 1px solid var(--border-color) !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.6) !important;
}

.global-container {
    padding-bottom: 80px !important;
}

#mobileMenu .header-search {
    display: none !important;
}

#floatingSearchInput {
    flex: 1 !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: white !important;
    padding: 10px 16px !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    width: 100% !important;
}

#floatingSearchInput:focus {
    outline: none !important;
    border-color: var(--accent-red) !important;
    background: #2a2a2a !important;
}

#floatingSearchClose {
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
}

#floatingSearchResults {
    background: var(--bg-header) !important;
    border-radius: 16px !important;
    margin-top: 8px !important;
    max-height: 50vh !important;
    overflow-y: auto !important;
    border: 1px solid var(--border-color) !important;
}
    }
    
    /* ===== MOBILE HAMBURGER FIX ===== */
    @media (max-width: 700px) {
.header-row-top {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    overflow: visible !important;
}

.header-logo {
    flex: 0 0 auto !important;
    order: 1 !important;
}

.hamburger {
    display: block !important;
    order: 10 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    font-size: 2rem !important;
    padding: 4px 6px !important;
    background: none !important;
    border: none !important;
    color: var(--accent-yellow) !important;
    cursor: pointer !important;
}

.header-row-top > div:last-child {
    display: flex !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    order: 2 !important;
    gap: 2px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.header-row-top .news-link {
    display: none !important;
}

.header-row-top > div:last-child .add-link,
.header-row-top > div:last-child .contact-link,
.header-row-top > div:last-child a[href*="facebook"] {
    font-size: 1rem !important;
    padding: 4px 8px !important;
}

.header-row-top > div:last-child span {
    transform: scale(1.05) !important;
    display: inline-flex !important;
}

/* 📅/📋 и 🇧🇬/🇬🇧 бутоните - по-едри */
.header-row-top button[onclick*="switchView"] {
    font-size: 1rem !important;
    padding: 4px 9px !important;
}

.header-row-top a[style*="border-radius:40px"] {
    font-size: 0.9rem !important;
    padding: 4px 9px !important;
}
    }
	
	/* ===== НАВИГАЦИОННИ БУТОНИ В МОДАЛА ===== */
#prevConcertBtn:hover:not(:disabled),
#nextConcertBtn:hover:not(:disabled) {
    background: var(--accent-red) !important;
    color: #000 !important;
    transform: scale(1.02);
}

#prevConcertBtn:disabled,
#nextConcertBtn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

#prevConcertBtn:disabled:hover,
#nextConcertBtn:disabled:hover {
    background: var(--bg-hover) !important;
    color: var(--accent-yellow) !important;
}

/* ===== НАВИГАЦИОННИ БУТОНИ В МОДАЛА ===== */
#prevConcertBtn:hover:not(:disabled),
#nextConcertBtn:hover:not(:disabled) {
    background: var(--accent-red) !important;
    color: #000 !important;
    transform: scale(1.02);
}

#prevConcertBtn:disabled,
#nextConcertBtn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

#prevConcertBtn:disabled:hover,
#nextConcertBtn:disabled:hover {
    background: var(--bg-hover) !important;
    color: var(--accent-yellow) !important;
}

/* ===== ФОКУС ИНДИКАТОРИ ЗА ДОСТЪПНОСТ ===== */
:focus-visible {
    outline: 2px solid var(--accent-yellow) !important;
    outline-offset: 2px !important;
}

/* За бутони и линкове */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-yellow) !important;
    outline-offset: 2px !important;
}

/* За търсачката */
input:focus-visible {
    outline: 2px solid var(--accent-yellow) !important;
    outline-offset: 2px !important;
}
/* ===== СКРИВАМЕ ХАМБУРГЕРА САМО НА ДЕСКТОП ===== */
@media (min-width: 701px) {
    .hamburger {
display: none !important;
    }
}
/* ===== HIGHLIGHT BAR ===== */
.highlight-bar {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent-yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999;
    background: color-mix(in srgb, var(--bg-header) 95%, transparent);
    backdrop-filter: blur(10px);
    min-height: 40px;
    width: 100%;
    margin-top: 0;
    box-sizing: border-box;
    /* top се задава динамично от JS (updateHeaderOffsets) спрямо реалната височина на хедъра */
}
/* ===== КОРЕКЦИЯ ЗА HIGHLIGHT BAR =====
   padding-top на body се задава динамично от JS (updateHeaderOffsets),
   защото височината на хедъра се променя според резолюцията.
   Стойностите по-долу са само fallback, докато JS-ът се изпълни. */
body {
    padding-top: 110px;
}

@media (max-width: 700px) {
    body {
padding-top: 100px;
    }
}

.highlight-bar a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
}

.highlight-bar a:hover {
    text-decoration: underline;
}

.highlight-bar span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== СПЕЦИАЛНО ЗА 📅/📋 БУТОНИТЕ ===== */
@media (max-width: 700px) {
    #viewCalendarBtn .view-btn-label,
    #viewListBtn .view-btn-label {
display: none !important;
    }
}

@media (min-width: 701px) {
    #viewCalendarBtn .view-btn-label,
    #viewListBtn .view-btn-label {
display: inline !important;
    }
}
