/* ================================================================
   Blokové čištění – Frontend CSS
   ================================================================ */

.bc-wrap { max-width: 1100px; margin: 0 auto 40px; font-family: inherit; }

/* ---- Dnes / Zítra ---- */
.bc-today-wrap {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.bc-today-block {
    flex: 1;
    min-width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.09);
    padding: 16px 18px;
    border-top: 4px solid transparent;
}
.bc-today-today    { border-top-color: #e74c3c; }
.bc-today-tomorrow { border-top-color: #3498db; }

.bc-today-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.bc-today-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    font-size: .78em;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
    flex-shrink: 0;
}
.bc-today-blok {
    font-size: .75em;
    background: #eee;
    padding: 2px 8px;
    border-radius: 8px;
    color: #555;
}
.bc-today-subtitle {
    font-size: .8em;
    color: #888;
    margin-left: auto;
}
.bc-today-streets {
    list-style: none;
    margin: 0; padding: 0;
    columns: 2;
    column-gap: 12px;
}
.bc-today-streets li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .84em;
    padding: 4px 0;
    cursor: pointer;
    color: #333;
    break-inside: avoid;
    transition: color .12s;
}
.bc-today-streets li:hover { color: #000; text-decoration: underline; }
.bc-today-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
@media (max-width: 520px) {
    .bc-today-streets { columns: 1; }
}

/* ---- Dlaždice ---- */
.bc-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.bc-tile {
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    color: #fff;
    font-size: .85em;
    font-weight: 700;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
    transition: opacity .15s, transform .12s, box-shadow .15s;
    outline: none;
    min-width: 80px;
    text-align: center;
}
.bc-tile:hover {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.bc-tile-active {
    box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 5px rgba(0,0,0,.35) !important;
    transform: translateY(-1px);
}
.bc-tile-today {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0,0,0,.3);
}

/* ---- Mapa ---- */
.bc-map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 18px rgba(0,0,0,.12);
    margin-bottom: 24px;
    background: #e8eef3;
}
.bc-map { width: 100%; height: 480px; }
@media (max-width: 600px) { .bc-map { height: 300px; } }

/* Loading */
.bc-map-loading {
    display: none;
    position: absolute;
    bottom: 14px; left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,.92);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: .82em;
    color: #444;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    z-index: 800;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.bc-map-loading.bc-visible { display: flex; }
.bc-spinner {
    width: 13px; height: 13px;
    border: 2px solid #bbb;
    border-top-color: #555;
    border-radius: 50%;
    animation: bc-spin .7s linear infinite;
    display: inline-block;
}
@keyframes bc-spin { to { transform: rotate(360deg); } }

/* Map info panel */
.bc-map-info {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,.95);
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,.15);
    padding: 10px 14px 12px;
    max-width: 240px;
    z-index: 700;
    font-size: .82em;
}
.bc-map-info-toggle {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    background: #333 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #fff !important;
    padding: 5px 10px !important;
    line-height: 1.3 !important;
    width: auto !important;
    height: auto !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.2) !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    transition: background .12s;
    z-index: 1 !important;
}
.bc-map-info-toggle:hover { background: #111 !important; }
.bc-map-info.bc-info-collapsed .bc-map-info-toggle { background: #333 !important; }
.bc-map-info.bc-info-collapsed .bc-map-info-toggle .bc-toggle-arrow { display: inline-block; transform: rotate(180deg); }
.bc-toggle-label { font-size: 12px !important; }
.bc-map-info-inner { transition: opacity .2s; }
.bc-map-info.bc-info-collapsed .bc-map-info-inner { display: none; }
/* When collapsed, panel shows only the button */
.bc-map-info.bc-info-collapsed { padding: 8px 8px 8px 8px !important; }
.bc-map-info-date {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1em;
    padding-right: 20px; /* prostor pro toggle */
}
.bc-map-info-date em {
    font-style: normal;
    font-size: .82em;
    background: #eee;
    padding: 1px 7px;
    border-radius: 8px;
    color: #555;
    margin-left: 6px;
}
.bc-map-info-streets {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 180px;
    overflow-y: auto;
}
.bc-map-info-streets span {
    font-size: .88em;
    color: #444;
    line-height: 1.4;
}
/* Na mobilu začít zabalený */
@media (max-width: 600px) {
    .bc-map-info { max-width: 180px; }
    .bc-map-info-streets { max-height: 120px; }
}

/* Leaflet popup */
.bc-lf-popup { font-family: inherit; min-width: 180px; }
.bc-lf-popup-date { font-weight: 700; font-size: .95em; margin-bottom: 4px; }
.bc-lf-popup-block {
    display: inline-block; font-size: .75em; padding: 2px 8px;
    border-radius: 10px; color: #fff; font-weight: 600; margin-bottom: 8px;
}
.bc-lf-popup-street { font-size: .9em; color: #444; }

/* ---- Sekce pod mapou – všechny dny ---- */
.bc-below-map {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bc-day-section {
    background: #fff;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
}
.bc-day-section:first-child { border-radius: 12px 12px 0 0; }
.bc-day-section:last-child  { border-radius: 0 0 12px 12px; border-bottom: none; }
.bc-day-section:first-child:last-child { border-radius: 12px; }
.bc-below-map { box-shadow: 0 2px 10px rgba(0,0,0,.07); }

.bc-day-section-active {
    background: #f7f9ff;
}

.bc-day-section-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    background: inherit;
    cursor: default;
}
.bc-day-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bc-day-pill {
    font-size: .72em;
    background: #eee;
    padding: 2px 8px;
    border-radius: 8px;
    color: #555;
    font-weight: 600;
}
.bc-day-section-date {
    margin-left: auto;
    font-size: .78em;
    color: #aaa;
}

/* Ulice ve 3 sloupcích */
.bc-street-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 4px 12px 12px;
}
@media (max-width: 700px) { .bc-street-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .bc-street-cols { grid-template-columns: 1fr; } }

.bc-col-street {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: .84em;
    cursor: pointer;
    color: #333;
    transition: background .12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bc-col-street:hover, .bc-col-street:focus {
    background: #f0f4ff;
    outline: none;
    white-space: normal;
}
.bc-col-street.bc-col-active {
    background: #e3eafe;
    font-weight: 600;
}
.bc-col-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bc-empty { color: #888; font-style: italic; }
