.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

input[type="checkbox"], input[type="radio"] {
    accent-color: #1b4aae;
}

/* Фірмовий шрифт Inter (як на zaraz.lviv.ua) */
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Фон під картками подій — як на zaraz */
main {
    background-color: #f8fafc;
}

/* Картка події: transition + тонкий бордер, як на zaraz */
.event-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
}

/* === Кольори категорій (точні значення zaraz.lviv.ua) === */
.bg-music { background-color: #EFF6FF; border-top: 4px solid #3B82F6; }
.icon-music { color: #2563EB; background-color: #DBEAFE; }
.bg-theater { background-color: #FDF2F8; border-top: 4px solid #EC4899; }
.icon-theater { color: #DB2777; background-color: #FCE7F3; }
.bg-standup { background-color: #FFF7ED; border-top: 4px solid #F97316; }
.icon-standup { color: #EA580C; background-color: #FFEDD5; }
.bg-kids { background-color: #F0FDF4; border-top: 4px solid #22C55E; }
.icon-kids { color: #16A34A; background-color: #DCFCE7; }
.bg-circus { background-color: #FAF5FF; border-top: 4px solid #A855F7; }
.icon-circus { color: #9333EA; background-color: #F3E8FF; }
.bg-party { background-color: #FFF1F2; border-top: 4px solid #F43F5E; }
.icon-party { color: #E11D48; background-color: #FFE4E6; }
.bg-culture { background-color: #dcfce7; border-top: 4px solid #15803d; }
.icon-culture { color: #15803d; background-color: #dcfce7; }
.bg-art { background-color: #FEFCE8; border-top: 4px solid #EAB308; }
.icon-art { color: #CA8A04; background-color: #FEF9C3; }
.bg-puppet { background-color: #F7D5E8; border-top: 4px solid #D81B60; }
.icon-puppet { color: #AD1457; background-color: #F8BBD0; }
.bg-cinema { background-color: #ECFEFF; border-top: 4px solid #06B6D4; }
.icon-cinema { color: #0891B2; background-color: #CFFAFE; }
.icon-gray { color: #4B5563; background-color: #F3F4F6; }

/* Чип лічильника подій у заголовку афіші: як час у картці, але фіолетовий */
.bg-count { background-color: #f1f3ff; border-top: 4px solid #A855F7; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Кольорові чипи категорій (як category-chip на zaraz.lviv.ua) */
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.category-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}
.category-chip.active {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12);
}
.chip-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
/* Великий варіант (show-категорії, /categories/{slug}) — 48px незалежно від порядку CSS */
.chip-icon.w-12.h-12 {
    width: 3rem;
    height: 3rem;
    font-size: 20px;
}
/* Нормалізація відступів іконки всередині чіпа: лінійна висота 1, гліф по центру */
.chip-icon i {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Іконка категорії у картці події (як category-icon на zaraz.lviv.ua) */
.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

/* Минулі події — сірі, як на zaraz */
.event-card.event-past {
    opacity: 0.5;
    filter: grayscale(50%);
    background-color: #f3f4f6 !important;
}
.event-card.event-past::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(107, 114, 128, 0.3);
    pointer-events: none;
    border-radius: inherit;
}

/* Минула подія — стрічка + градієнт на превʼю (шар фото — найнижчий) */
.event-past-ribbon {
    position: absolute;
    top: calc(20px * var(--past-scale, 1));   /* зміщення 20px від краю фото */
    left: 0;
    right: 0;
    z-index: 3;
    background: #facc15;     /* жовта */
    color: #800020;          /* бордовий */
    font-size: max(calc(9px * var(--past-scale, 1)), 7px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-align: center;
    padding: calc(5px * var(--past-scale, 1)) calc(4px * var(--past-scale, 1));
}
.event-past-gradient {
    position: absolute;
    top: 0;                  /* вгорі, біля рамки превʼю */
    left: 0;
    right: 0;
    height: 50%;             /* половина висоти превʼю */
    z-index: 2;
    border-radius: 12px 12px 0 0;   /* як у превʼю (rounded-xl) */
    background: linear-gradient(to bottom, rgba(107, 114, 128, 0.55) 0%, rgba(107, 114, 128, 0) 100%);
    pointer-events: none;
}
/* Hero-постер події: ті самі оверлеї, пропорційно формату (≈3× більший за превʼю 120px) */
.event-poster { --past-scale: 3; }
.event-poster .event-past-gradient { border-radius: 1rem 1rem 0 0; }
/* Маленька мініатюра (кабінет): скруглення як rounded-lg */
.event-past-gradient--sm { border-radius: 8px 8px 0 0; }

/* Годинник «Зараз»: мигаюче двокрапка + смужки прогресу (як на zaraz) */
@keyframes blink-colon { 0%,49% { opacity: 1; } 50%,100% { opacity: .3; } }
.colon-blink { animation: blink-colon 1s infinite; display: inline-block; }

.progress-stripes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.75) 0px,
        rgba(255, 255, 255, 0.75) 6px,
        rgba(255, 255, 255, 0.0) 6px,
        rgba(255, 255, 255, 0.0) 12px
    );
}

/* Кнопка вибраного у стилі zaraz (glass + active красна) */
.favorite-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.favorite-btn.active {
    background: rgba(239, 68, 68, 0.9) !important;
    color: #ffffff !important;
    border-color: rgba(239, 68, 68, 0.6);
}
.favorite-btn.active i {
    color: #ffffff !important;
}
.favorite-btn:hover:not(.active) {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* === Сторінка події: hero + постер (беклог event-page-design) === */
.event-poster {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    isolation: isolate;
}
.event-poster__blur {
    position: absolute;
    inset: -15%;
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.2);
    opacity: 0.45;
    z-index: -1;
}
.event-poster__img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.event-poster__placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
}
.poster--vertical { aspect-ratio: 2 / 3; max-width: 22rem; }
.poster--horizontal { /* aspect-ratio: 16 / 10; */ }
.poster--square { aspect-ratio: 1 / 1; max-width: 26rem; }
@media (max-width: 1023px) {
    .event-poster { aspect-ratio: 16 / 9 !important; max-width: none !important; width: 100%; }
}

/* Hero: права текстова колонка */
.event-hero__date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Блоки «Основна інформація» */
.event-info-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem;
}
.event-info-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fef3c7;
    color: #b45309;
}

/* Опис: read-more на мобільному */
.event-description[data-read-more] { max-height: 9rem; overflow: hidden; position: relative; }
.event-description[data-read-more]::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 3rem;
    background: linear-gradient(transparent, #f8fafc);
}
.event-description.is-expanded { max-height: none; }
.event-description.is-expanded::after { display: none; }

/* Стикі CTA-бар (мобільний) */
.sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
@media (min-width: 1024px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 4.5rem; }
@media (min-width: 1024px) { body.has-sticky-cta { padding-bottom: 0; } }

/* Countdown-бейдж */
.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 42px;               /* нормалізовано з .category-chip */
    padding: 0 0.75rem;
    box-sizing: border-box;
    border-radius: 9999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* Маркер карти — логотип ZARAZ замість піна */
.map-logo-pin {
    background: transparent;
    border: none;
}
.map-logo-pin img {
    width: 28px;
    height: 34px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

/* Галерея */
.event-gallery img { object-fit: cover; width: 100%; height: 100%; }

/* Галерея */
.event-gallery img { object-fit: cover; width: 100%; height: 100%; }

/* Hero: адаптивна сітка фото + опис (беклог event-page-design) */
.event-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    /* Вертикальна афіша — вузька колонка, опис розширюється поруч */
    .event-hero--vertical { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
    /* Квадратна */
    .event-hero--square { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); }
    /* Горизонтальна — порівну */
    .event-hero--horizontal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* === Маршрут на карті: маркери/стрілки/stop-cards/pills (беклог route-ux) === */
.route-marker-wrap { background: none; border: none; }
.route-marker {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--mc, #d97706);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.route-marker.is-active {
    transform: scale(1.18);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12), 0 4px 14px rgba(0, 0, 0, 0.4);
}
.route-arrow-wrap { background: none; border: none; }
.route-arrow {
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 12px solid rgba(30, 58, 138, 0.75);
}

/* Summary stats (reference: Total Duration | Distance) */
.route-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 0.9rem 1.5rem;
}
.route-summary__divider { width: 1px; height: 2.5rem; background: #e2e8f0; flex-shrink: 0; }
.route-summary__label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.route-summary__value { font-size: 1.05rem; font-weight: 700; color: #0f172a; }

/* Timeline stop-cards (reference style: icon dot + connector rail) */
.route-stops { list-style: none; margin: 0; padding: 0; }
.route-stop {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.75rem;
}
.route-stop__rail { display: flex; flex-direction: column; align-items: center; }
.route-stop__dot {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 1;
    transition: box-shadow 0.15s ease;
}
.route-stop__dot-num {
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 9999px;
    background: #fff;
    color: #374151;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.route-stop__body { padding: 0.25rem 0 1.75rem; min-width: 0; }
/* Зупинка з drag-ручкою (кабінет) — 3 колонки */
.route-stop--dragable { grid-template-columns: 1.25rem 2.75rem minmax(0, 1fr); gap: 0.35rem 0.75rem; }
.route-stop--dragable .route-stop__drag { grid-column: 1; align-self: start; padding-top: 0.8rem; }
.route-stop--dragable .route-stop__rail { grid-column: 2; }
.route-stop--dragable .route-stop__body { grid-column: 3; }
.route-stop.is-active .route-stop__dot {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), 0 6px 18px rgba(0, 0, 0, 0.28);
    transform: scale(1.08);
}
.route-stop.is-active .route-stop__title { color: #d97706; }
.route-stop__transit {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}
.route-stop__risk {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #b91c1c;
    background: #fee2e2;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

/* Floating bottom CTA (reference: Start Journey) — mobile only */
.plan-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e5e7eb;
    padding: 0.9rem 1rem;
}
@media (min-width: 1024px) { .plan-cta { display: none; } }

/* ===== Route page split-view (spec 1.1 OSM) ===== */
.route-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    position: relative;
}
.route-map-pane { min-width: 0; position: relative; }
.route-map { height: 55dvh; width: 100%; border-radius: 1rem; z-index: 0; }
.route-map--empty {
    display: flex; align-items: center; justify-content: center;
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 1rem; color: #9ca3af;
}
.route-map__footer { margin-top: 0.5rem; font-size: 0.75rem; color: #9ca3af; }

/* Desktop: карта 50% + панель 50% */
@media (min-width: 1024px) {
    .route-page {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0;
        height: calc(100dvh - 21rem);
        min-height: 520px;
        border: 1px solid #e5e7eb;
        border-radius: 1rem;
        overflow: hidden;
        background: #fff;
    }
    .route-map-pane { height: 100%; }
    .route-map { height: 100%; border-radius: 0; }
    .route-map__footer {
        position: absolute; bottom: 0.5rem; left: 0.75rem; z-index: 500;
        background: rgba(255, 255, 255, 0.9); padding: 0.2rem 0.6rem; border-radius: 9999px;
        border: 1px solid #e5e7eb;
    }
    .route-results-pane {
        border-left: 1px solid #e5e7eb;
        background: #fff;
        overflow-y: auto;
        padding: 1rem;
    }
    .route-sheet__handle { display: none; }
}

/* Mobile: bottom sheet */
@media (max-width: 1023px) {
    .route-results-pane {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        height: 45dvh;
        background: #fff;
        border-radius: 1.25rem 1.25rem 0 0;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.14);
        overflow-y: auto;
        padding: 0 1rem 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        transition: height 0.25s ease;
    }
    .route-results-pane.is-collapsed { height: 96px; overflow: hidden; }
    .route-results-pane.is-expanded { height: 88dvh; }
}
.route-sheet__handle {
    display: flex; justify-content: center; align-items: center;
    width: 100%; padding: 0.5rem 0 0.25rem; cursor: ns-resize;
    background: none; border: 0; min-height: 24px;
}

/* Режим пересування */
.route-mode {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem;
    padding: 0.25rem; background: #f1f5f9; border-radius: 0.75rem;
}
.route-mode a,
.route-mode button {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    padding: 0.45rem 0.25rem; border-radius: 0.6rem;
    font-size: 0.8rem; font-weight: 600; color: #64748b; white-space: nowrap;
    border: 0; background: none; cursor: pointer;
}
.route-mode a.is-active,
.route-mode button.is-active { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

/* Drag-and-drop пересортування */
.route-stop.is-dragging { opacity: 0.4; }
.route-stop__drag { cursor: grab; color: #9ca3af; padding: 0.25rem 0.1rem 0 0; }
.route-stop.is-dragging .route-stop__drag { cursor: grabbing; }

/* Leaflet-попап картки точки */
.route-popup-title { font-weight: 700; }




/* ==================== Рухома часова шкала подій (головна, home_timeline) — як zaraz-2014 ==================== */
/* Таби-сортувалки категорій над таймлайном: приклеєні до таймлайну (спільний контейнер) */
.tlm-shell {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 0.75rem;
}
.tlm-shell .tlm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}
.tlm-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--cat-bg, #f3f4f6); /* точний світлий фон категорії (палітра zaraz.lviv.ua) */
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top-width: 3px;
    border-top-style: solid;
    border-top-color: var(--cat-border, #374151); /* точний акцент категорії */
    border-radius: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cat-border, #374151); /* колір тексту = колір бордеру категорії */
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.tlm-tab:hover {
    border-color: #cbd5e1;
    border-top-color: var(--cat, #374151); /* наведення — бордер кольором категорії */
}
.tlm-tab.active {
    background: var(--cat, #374151); /* вибраний — фон кольором категорії */
    color: #ffffff;                  /* білий текст */
    border-color: var(--cat, #374151);
}
.tlm-tab.active .tlm-tab-count {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.tlm-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 9999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.7rem;
    font-weight: 700;
}
.tlm-shell .tlm {
    background: transparent;
    border: 0;
    border-radius: 0;
}
/* Смуга 2880px (2px/хв), автоматично рухається за поточним часом, перетягується мишею. */
.tlm {
    position: relative;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    cursor: ew-resize; /* стрілки вліво-вправо */
    touch-action: pan-y;
    user-select: none;
}
.tlm:hover { cursor: ew-resize; }
.tlm:active { cursor: ew-resize; }
.tlm-wrap { position: relative; }
.tlm-strip {
    position: absolute;
    top: 0;
    left: 0;
    will-change: left;
}
.tlm-axis {
    position: relative;
    height: 40px;
    border-bottom: 1px solid #e2e8f0;
    background: url('/timeline_time_under.png') repeat-x;
    z-index: 3;
}
.tlm-hour {
    position: absolute;
    top: 11px;
    font-size: 13px;
    font-weight: 700;
    color: #1B4AAE; /* брендовий синій (brand-600) */
    white-space: nowrap;
    transform: translateX(-50%);
    letter-spacing: .01em;
    z-index: 6; /* година — найвищий шар */
}
/* Велика рисочка щогодини — 1/5 висоти осі, прибита до верхнього краю */
.tlm-hour-tick {
    position: absolute;
    top: 0;
    height: 20%;
    width: 2px;
    background: #9ca3af;
    z-index: 4;
}
/* Маленькі рисочки між годинами — 5 шт рівномірно, 1/5 висоти, прибиті до нижнього краю */
.tlm-hour-sub {
    position: absolute;
    bottom: 0;
    width: 1px;
    height: 20%;
    background: #9ca3af;
}
.tlm-zebra {
    position: absolute;
    left: 0;
    right: 0;
    top: 26px;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}
.tlm-hour-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
}
.tlm-events {
    position: relative;
    z-index: 1;
    margin-top: 20px; /* відступ карток від шкали-лінійки з годинами */
}
.tlm-event {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    height: 40px;
    max-width: 210px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--category-color, #374151);
    border-radius: 6px;
    padding: 2px 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    text-decoration: none;
    box-sizing: border-box;
    z-index: 1;
}
.tlm-event .tlm-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}
.tlm-cat {
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    font-size: 12px;
    line-height: 1;
    color: var(--category-color, #374151);
}
.tlm-event:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    z-index: 2;
    background: var(--category-color, #374151);
    border-color: var(--category-color, #374151);
}
.tlm-event:hover .tlm-time,
.tlm-event:hover .tlm-title,
.tlm-event:hover .tlm-place,
.tlm-event:hover .tlm-cat {
    color: #fff;
}
.tlm-event:hover.past-event {
    filter: none;
    opacity: 1;
}
.tlm-event.past-event {
    filter: grayscale(100%);
    opacity: .5;
}
.tlm-time {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    line-height: 1.1;
    letter-spacing: .02em;
}
.tlm-title {
    font-size: 11px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tlm-place {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tlm-now {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1fade1;
    z-index: 20;
    pointer-events: none;
}
.tlm-now-label {
    position: absolute;
    top: -2px;
    left: 6px;
    background: #1fade1;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(31, 173, 225, .4);
}
/* Кнопка «Розкрити» — прихована частина шкали за градієнтом затухання */
.tlm-expand {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    pointer-events: none;
    z-index: 30;
}
.tlm-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0), #fafafa 70%);
    pointer-events: none;
}
.tlm-expand-btn {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #1B4AAE;
    border: 1px solid #d4d8e5;
    border-radius: 9999px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(27, 74, 174, .12);
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.tlm-expand-btn:hover {
    background: #1B4AAE;
    color: #fff;
    box-shadow: 0 4px 12px rgba(27, 74, 174, .28);
}
/* Пульсуюче фіолетове кільце навколо країв кнопки (як animate-ping на lvivgo.com.ua) */
.tlm-ping {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: #A855F7;
    opacity: .4;
    pointer-events: none;
    z-index: -1;
    animation: tlm-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes tlm-ping {
    0% { transform: scale(1); opacity: .4; }
    70%, 100% { transform: scale(1.45); opacity: 0; }
}




