/* ===== DriveZone Servisník – design sjednocen s drivezone-mapa ===== */

/* ─── BASE ─── */
#dzs-wrap a,
.dzs-seo-wrap a {
    text-decoration: none !important;
}
#dzs-wrap a:hover,
.dzs-seo-wrap a:hover {
    text-decoration: none !important;
}
.dzs-seo-map-btn {
    vertical-align: middle;
    margin-left: 6px;
}
#dzs-wrap {
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #222;
}

/* ─── FILTRY – čisté, bez boxu ─── */
#dzs-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

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

.dzs-filter-row-2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Dropdowny – přesně jako .dz-select */
#dzs-filters select {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 7px 30px 7px 10px;
    border-radius: 8px;
    border: 1px solid #ddd !important;
    font-size: 13px;
    background: #fff !important;
    color: #222 !important;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    cursor: pointer;
    transition: border-color .15s;
}
#dzs-filters select:hover,
#dzs-filters select:focus { border-color: #0088ff !important; outline: none; }

/* ─── SLIDER – přesně jako .dz-range ─── */
.dzs-radius-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 180px;
    padding-bottom: 6px;
}

.dzs-radius-wrap label {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    line-height: 1.4;
    align-self: flex-end;
}

#dzs-filter-radius {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 4px !important;
    border-radius: 2px !important;
    outline: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    /* background nastavuje JS přes --val */
    background: linear-gradient(to right, #0088ff 0%, #0088ff var(--val, 5%), #ddd var(--val, 5%), #ddd 100%) !important;
}
#dzs-filter-radius::-webkit-slider-runnable-track {
    height: 4px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
#dzs-filter-radius::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #0088ff !important;
    cursor: pointer !important;
    border: 2px solid #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25) !important;
    margin-top: -7px !important;
}
#dzs-filter-radius::-moz-range-track {
    height: 4px !important;
    background: #ddd !important;
    border: none !important;
    box-shadow: none !important;
}
#dzs-filter-radius::-moz-range-progress { height: 4px !important; background: #0088ff !important; }
#dzs-filter-radius::-moz-range-thumb {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #0088ff !important;
    cursor: pointer !important;
    border: 2px solid #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25) !important;
}

/* ─── TLAČÍTKA – přesně jako .dz-btn ─── */
.dzs-btn-primary,
.dzs-btn-secondary,
#dzs-btn-locate {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 7px 14px !important;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background 0.12s;
    line-height: 1.4;
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
}

.dzs-btn-primary {
    background: #0088ff !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
}
.dzs-btn-primary:hover { background: #006fcc !important; color: #fff !important; text-decoration: none !important; }

.dzs-btn-secondary,
#dzs-btn-locate {
    background: #f0f2f5 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}
.dzs-btn-secondary:hover,
#dzs-btn-locate:hover {
    background: #e4e6ea !important;
    color: #333 !important;
    text-decoration: none !important;
}
.dzs-btn-secondary:active,
#dzs-btn-locate:active {
    background: #0088ff !important;
    color: #fff !important;
    border-color: #0070d8 !important;
    transform: scale(0.96);
    transition: none !important;
}

/* ─── MAPA ─── */
#dzs-map {
    width: 100%;
    height: 480px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 14px;
    z-index: 0;
}

/* ─── VÝSLEDKY ─── */
#dzs-results-meta { font-size: 12px; color: #888; margin-bottom: 8px; padding: 0 2px; }

#dzs-results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

/* Karta – jako .dz-route-card */
.dzs-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: box-shadow 0.12s, border-color 0.12s;
}
.dzs-card:hover { border-color: #0088ff; box-shadow: 0 2px 8px rgba(0,136,255,0.1); }
.dzs-card-title { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 4px; }
.dzs-card-meta  { font-size: 12px; color: #777; margin-bottom: 6px; }
.dzs-card-typy  { font-size: 11px; color: #0088ff; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dzs-stars       { color: #BA7517; font-size: 14px; letter-spacing: 1px; }
.dzs-stars-count { font-size: 11px; color: #888; margin-left: 4px; }

/* ─── MODAL ─── */
.dzs-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dzs-modal-box {
    background: #fff !important;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    /* scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #c4c9d4 #f0f1f3;
}
.dzs-modal-box::-webkit-scrollbar { width: 6px; }
.dzs-modal-box::-webkit-scrollbar-track { background: #f0f1f3; border-radius: 3px; }
.dzs-modal-box::-webkit-scrollbar-thumb { background: #c4c9d4; border-radius: 3px; }
.dzs-modal-box::-webkit-scrollbar-thumb:hover { background: #0088ff; }

.dzs-modal-form { max-width: 560px; }

/* Modal header */
.dzs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.dzs-modal-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #111 !important;
}

.dzs-modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.dzs-modal-footer { padding: 12px 20px; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; }

/* Tlačítko Zrušit – neutrální, hover červené */
.dzs-btn-cancel {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 7px 14px !important;
    background: #f0f2f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 8px;
    color: #555 !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.4 !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    width: auto !important;
    max-width: none !important;
}
.dzs-btn-cancel:hover {
    background: #fee2e2 !important;
    color: #c0392b !important;
    border-color: #fca5a5 !important;
}
.dzs-btn-cancel:active {
    background: #fecaca !important;
    color: #c0392b !important;
    border-color: #f87171 !important;
    transform: scale(0.96);
    transition: none !important;
}

/* Close btn */
.dzs-modal-close {
    background: none !important;
    border: none !important;
    font-size: 22px;
    cursor: pointer;
    color: #888 !important;
    line-height: 1;
    padding: 0 4px;
    text-decoration: none !important;
}
.dzs-modal-close:hover { color: #222 !important; }

/* ─── DETAIL ─── */
#dzs-modal-content > .dzs-detail-body { padding: 16px 20px; }
#dzs-modal-content h2 { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: #111 !important; }

.dzs-detail-meta { font-size: 13px; color: #555; opacity: 1; margin-bottom: 10px; }
.dzs-detail-typy { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* Tagy – jako .dz-badge */
.dzs-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    background: rgba(0,136,255,0.12) !important;
    color: #0088ff !important;
    text-decoration: none !important;
}

/* Kontakty */
.dzs-detail-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.dzs-contact-link {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    text-decoration: none !important;
    padding: 5px 11px;
    background: #f0f2f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 8px;
    color: #333 !important;
    font-weight: 500;
    transition: background 0.12s, border-color 0.12s;
}
.dzs-contact-link:hover {
    background: #e4e6ea !important;
    border-color: #0088ff !important;
    color: #0088ff !important;
    text-decoration: none !important;
}
.dzs-contact-link svg { flex-shrink: 0; }

.dzs-detail-popis { font-size: 14px; color: #333; line-height: 1.6; margin-bottom: 14px; }

/* Navigační tlačítka */
.dzs-detail-actions { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; align-items: flex-start; }
.dzs-detail-actions a,
.dzs-detail-actions button { width: auto !important; flex: 0 0 auto !important; }
.dzs-detail-actions a,
.dzs-detail-actions a:visited,
.dzs-detail-actions a:hover,
.dzs-detail-actions a:focus { text-decoration: none !important; }

.dzs-share-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 7px 14px !important;
    background: #f0f2f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 8px;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.4 !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.12s;
    width: auto !important;
    max-width: none !important;
}
.dzs-share-btn:hover {
    background: #e4e6ea !important;
    border-color: #0088ff !important;
    text-decoration: none !important;
}

/* ─── HVĚZDIČKY ─── */
.dzs-rating-widget { display: flex; gap: 4px; margin: 10px 0 4px; }
.dzs-rating-widget span {
    font-size: 22px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.1s;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}
.dzs-rating-widget span.active,
.dzs-rating-widget span.hover { color: #BA7517 !important; }
#dzs-rating-msg { font-size: 11px; color: #888; margin-top: 2px; }

/* ─── RECENZE ─── */
.dzs-recenze-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
    color: #111 !important;
}

.dzs-recenze-item {
    background: #f7f8fa !important;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.dzs-recenze-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

.dzs-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
}
.dzs-avatar-initials {
    display: flex; align-items: center; justify-content: center;
    background: #0088ff !important;
    color: #fff !important;
    font-size: 14px; font-weight: 700;
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dzs-recenze-author {
    display: block;
    font-size: 13px; font-weight: 600;
    color: #111 !important;
    text-decoration: none !important;
    line-height: 1.3;
}
.dzs-recenze-author:hover { color: #0088ff !important; text-decoration: none !important; }
.dzs-recenze-meta { font-size: 11px; color: #888; margin-top: 1px; }
.dzs-recenze-text { font-size: 13px; line-height: 1.55; color: #444; }

.dzs-recenze-form { margin-top: 10px; }
.dzs-recenze-form textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    background: #fff !important;
    color: #222 !important;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    margin-bottom: 8px;
}
.dzs-recenze-form textarea:focus { border-color: #0088ff; }

/* ─── FORMULÁŘ PŘIDAT ─── */
.dzs-form-group { margin-bottom: 12px; }
.dzs-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444 !important;
    margin-bottom: 4px;
}

.dzs-form-group input[type="text"],
.dzs-form-group input[type="email"],
.dzs-form-group input[type="url"],
.dzs-form-group select,
.dzs-form-group textarea {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #ddd !important;
    font-size: 13px;
    background: #fff !important;
    color: #222 !important;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .15s;
}
.dzs-form-group input:focus,
.dzs-form-group select:focus,
.dzs-form-group textarea:focus { border-color: #0088ff !important; }

.dzs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Checkboxy typy */
.dzs-checkboxes { display: flex; flex-wrap: wrap; gap: 6px; }
.dzs-checkboxes label {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 400; color: #444 !important;
    cursor: pointer;
    background: #f0f2f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 20px;
    padding: 4px 10px;
    transition: all 0.12s;
    margin-bottom: 0 !important;
    white-space: nowrap;
}
.dzs-checkboxes label:hover { background: #e4e6ea !important; border-color: #0088ff !important; }
.dzs-checkboxes input[type="checkbox"] { accent-color: #0088ff; }

/* Geocode */
.dzs-geocode-row { display: flex; gap: 8px; }
.dzs-geocode-row input {
    flex: 1;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    background: #fff !important;
    color: #222 !important;
    outline: none;
}
.dzs-geocode-row input:focus { border-color: #0088ff; }

#dzs-geocode-results { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.dzs-geocode-option {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 12px;
    cursor: pointer;
    color: #333;
    background: #f7f8fa !important;
    transition: all 0.12s;
}
.dzs-geocode-option:hover { border-color: #0088ff; color: #0088ff; background: #f0f4ff !important; }

#dzs-mini-map { height: 200px; border-radius: 8px; border: 1px solid #ddd; margin-bottom: 6px; }
#dzs-coords-info { font-size: 11px; color: #888; margin: 4px 0 10px; min-height: 14px; }

/* Akční tlačítka formuláře */
.dzs-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 12px 0 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 14px;
}

/* ─── STAVY ─── */
.dzs-error   { padding: 10px 14px; border-radius: 8px; font-size: 13px; background: #fee2e2 !important; color: #991b1b !important; }
.dzs-success { padding: 10px 14px; border-radius: 8px; font-size: 13px; background: #dcfce7 !important; color: #166534 !important; }
.dzs-empty   { text-align: left !important; padding: 16px 0; color: #aaa; font-size: 13px; }
.dzs-loading { text-align: center; padding: 12px; color: #888; font-size: 13px; }

/* ─── LEAFLET POPUP ─── */
/* Popup bublina je vždy light (přepsáno i pro dark mode v sekci níže) */
.dzs-popup-link { color: #0088ff; font-size: 13px; cursor: pointer; text-decoration: none !important; display: inline-block; margin-top: 6px; }


/* ─── DARK MODE ─── */
html.dark #dzs-wrap,
body.dark #dzs-wrap,
[data-theme="dark"] #dzs-wrap { color: #e8e8e8; }

html.dark #dzs-filters select,
body.dark #dzs-filters select   {
    background: #2b2e33 !important;
    color: #e8e8e8 !important;
    border-color: #3a3d44 !important;
    /* Šipka světlá pro tmavé pozadí */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    scrollbar-width: thin;
    scrollbar-color: #4a4d55 #2b2e33;
    color-scheme: dark;
}
html.dark #dzs-filters select::-webkit-scrollbar { width: 6px; }
html.dark #dzs-filters select::-webkit-scrollbar-track { background: #2b2e33; }
html.dark #dzs-filters select::-webkit-scrollbar-thumb { background: #4a4d55; border-radius: 3px; }
html.dark #dzs-filters select::-webkit-scrollbar-thumb:hover { background: #0088ff; }

html.dark #dzs-filter-radius    { background: linear-gradient(to right, #0088ff 0%, #0088ff var(--val, 5%), #3a3d44 var(--val, 5%), #3a3d44 100%) !important; }
html.dark #dzs-filter-radius::-moz-range-track { background: #3a3d44 !important; }

html.dark .dzs-btn-secondary,
html.dark #dzs-btn-locate       { background: #3a3d44 !important; color: #e8e8e8 !important; border-color: #555 !important; }
html.dark .dzs-btn-secondary:hover,
html.dark #dzs-btn-locate:hover { background: #42464d !important; }
html.dark .dzs-btn-secondary:active,
html.dark #dzs-btn-locate:active { background: #0088ff !important; color: #fff !important; border-color: #0070d8 !important; }

html.dark .dzs-btn-cancel       { background: #3a3d44 !important; color: #bbb !important; border-color: #555 !important; }
html.dark .dzs-btn-cancel:hover { background: #4a1a1a !important; color: #f87171 !important; border-color: #7f1d1d !important; }
html.dark .dzs-btn-cancel:active { background: #5a1f1f !important; color: #f87171 !important; }

html.dark .dzs-card             { background: #2b2e33 !important; border-color: #3a3d44; }
html.dark .dzs-card:hover       { border-color: #0088ff; }
html.dark .dzs-card-title       { color: #e8e8e8 !important; }
html.dark .dzs-card-meta        { color: #999 !important; }

html.dark .dzs-modal-box        { background: #2b2e33 !important; scrollbar-color: #4a4d55 #1e2024; }
html.dark .dzs-modal-box::-webkit-scrollbar-track { background: #1e2024; }
html.dark .dzs-modal-box::-webkit-scrollbar-thumb { background: #4a4d55; }

html.dark .dzs-modal-header     { border-bottom-color: #3a3d44; }
html.dark .dzs-modal-header h2  { color: #e8e8e8 !important; }
html.dark .dzs-modal-footer     { border-top-color: #3a3d44; }

html.dark #dzs-modal-content h2 { color: #e8e8e8 !important; }
html.dark .dzs-detail-meta      { color: #aaa !important; }
html.dark .dzs-detail-popis     { color: #ccc !important; }
html.dark .dzs-contact-link     { background: #3a3d44 !important; border-color: #555 !important; color: #e8e8e8 !important; }
html.dark .dzs-contact-link:hover { background: #42464d !important; border-color: #0088ff !important; color: #7ab0ff !important; }
html.dark .dzs-share-btn        { background: #3a3d44 !important; border-color: #555 !important; color: #e8e8e8 !important; }
html.dark .dzs-share-btn:hover  { background: #42464d !important; border-color: #0088ff !important; }
html.dark .dzs-detail-actions a.dzs-btn-secondary { background: #3a3d44 !important; border-color: #555 !important; color: #e8e8e8 !important; }
html.dark .dzs-detail-actions a.dzs-btn-secondary:hover { background: #42464d !important; border-color: #0088ff !important; color: #7ab0ff !important; }

html.dark .dzs-recenze-section h3 { color: #e8e8e8 !important; border-top-color: #3a3d44; }
html.dark .dzs-recenze-item     { background: #191b1f !important; }
html.dark .dzs-recenze-author   { color: #e8e8e8 !important; }
html.dark .dzs-recenze-meta     { color: #888 !important; }
html.dark .dzs-recenze-text     { color: #ccc !important; }
html.dark .dzs-recenze-form textarea { background: #191b1f !important; color: #e8e8e8 !important; border-color: #3a3d44 !important; }

html.dark .dzs-form-group label { color: #ccc !important; }
html.dark .dzs-form-group input,
html.dark .dzs-form-group select,
html.dark .dzs-form-group textarea { background: #2b2e33 !important; color: #e8e8e8 !important; border-color: #3a3d44 !important; }
html.dark .dzs-geocode-row input { background: #2b2e33 !important; color: #e8e8e8 !important; border-color: #3a3d44 !important; }
html.dark .dzs-geocode-option   { background: #191b1f !important; color: #ccc !important; border-color: #3a3d44 !important; }
html.dark .dzs-geocode-option:hover { border-color: #0088ff !important; color: #7ab0ff !important; }
html.dark .dzs-checkboxes label { background: #3a3d44 !important; color: #ccc !important; border-color: #555 !important; }
html.dark .dzs-checkboxes label:hover { background: #42464d !important; border-color: #0088ff !important; }
html.dark #dzs-coords-info      { color: #888 !important; }
html.dark .dzs-radius-wrap label { color: #999 !important; }
html.dark .dzs-form-actions     { border-top-color: #3a3d44; }
html.dark #dzs-adresa-results .dzs-geocode-option { background: #191b1f !important; color: #ccc !important; border-color: #3a3d44 !important; }

html.dark .dzs-error   { background: #450a0a !important; color: #fca5a5 !important; }
html.dark .dzs-success { background: #14532d !important; color: #86efac !important; }
html.dark .dzs-empty   { color: #666; }
html.dark .dzs-loading { color: #888; }
html.dark .dzs-tag { background: rgba(0,136,255,0.2) !important; }

html.dark #dzs-map { border-color: #3a3d44; }

/* ─── POPUP BUBLINA – vždy light, bez ohledu na dark mode ─── */
/* Přepisuje Leaflet výchozí i případné dark mode overrides */
.leaflet-popup-content-wrapper,
html.dark .leaflet-popup-content-wrapper,
body.dark .leaflet-popup-content-wrapper {
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important;
}
.leaflet-popup-tip,
html.dark .leaflet-popup-tip,
body.dark .leaflet-popup-tip { background: #fff !important; }
.dzs-popup-title { font-weight: 600; font-size: 14px; margin-bottom: 3px; color: #111 !important; }
.dzs-popup-meta  { font-size: 12px; color: #777 !important; }

/* responsive – viz mobile blok níže */

/* ─── MOBILE layout filtrovacího panelu ─── */
@media (max-width: 600px) {
    .dzs-filter-row { grid-template-columns: 1fr; }
    .dzs-form-row   { grid-template-columns: 1fr; }
    #dzs-map        { height: 320px; }

    /* Slider přes celou šířku, label nad ním */
    .dzs-filter-row-2 {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .dzs-radius-wrap {
        flex-direction: column;
        align-items: stretch;
        min-width: unset;
        padding-bottom: 2px;
    }
    .dzs-radius-wrap label {
        align-self: flex-end;
        margin-bottom: 2px;
    }

    /* Moje poloha + Přidat servis vedle sebe, celá šířka */
    #dzs-btn-locate,
    #dzs-btn-add {
        flex: 1;
        justify-content: center;
    }
    /* Zabalíme je do flex řádku – uděláme to v CSS pomocí display wrapper */
    .dzs-filter-row-2 > #dzs-btn-locate,
    .dzs-filter-row-2 > #dzs-btn-add {
        width: 100%;
        flex: 1 1 0;
    }
    /* Skupina tlačítek vedle sebe – 50/50 */
    .dzs-filter-btn-group {
        display: flex;
        gap: 8px;
        margin-top: 6px;
    }
    .dzs-filter-btn-group > button {
        flex: 1;
        justify-content: center;
    }
    .dzs-radius-wrap {
        padding-bottom: 8px;
    }
}

/* ─── OPRAVY ─── */

/* Avatar bez borderu */
.dzs-avatar { border: none !important; }

/* Share-btn = stejný styl jako .dzs-btn-secondary */
.dzs-share-btn {
    background: #f0f2f5 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}
.dzs-share-btn:hover {
    background: #e4e6ea !important;
    color: #333 !important;
    border-color: #0088ff !important;
    text-decoration: none !important;
}
.dzs-share-btn:active {
    background: #0088ff !important;
    color: #fff !important;
    border-color: #0070d8 !important;
    transform: scale(0.96);
    transition: none !important;
}

/* Popup link – tlačítko jako u Okresek */
.dzs-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 5px 12px;
    background: #0088ff !important;
    color: #fff !important;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.12s;
    border: none;
}
.dzs-popup-link:hover {
    background: #006fcc !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Modal close – viditelný hover v dark i light */
.dzs-modal-close {
    background: none !important;
    border: none !important;
    font-size: 22px;
    cursor: pointer;
    color: #888 !important;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.12s, color 0.12s;
}
.dzs-modal-close:hover {
    background: rgba(0,0,0,0.08) !important;
    color: #222 !important;
}
html.dark .dzs-modal-close:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #e8e8e8 !important;
}

/* Průměrné hodnocení v hlavičce sekce */
.dzs-recenze-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dzs-avg-stars {
    font-size: 14px;
    font-weight: 400;
    color: #BA7517;
}
.dzs-avg-stars small { color: #888; font-size: 12px; }

/* Hvězdičky v recenzi inline */
.dzs-recenze-stars {
    color: #BA7517;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Rating prompt nad formulářem */
.dzs-rating-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.dzs-rating-prompt-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* Dark mode opravy */
html.dark .dzs-share-btn { background: #3a3d44 !important; color: #e8e8e8 !important; border-color: #555 !important; }
html.dark .dzs-share-btn:hover { background: #42464d !important; border-color: #0088ff !important; }
html.dark .dzs-rating-prompt-label { color: #aaa; }
html.dark .dzs-avg-stars small { color: #777; }

/* ─── Hvězdičky v pravém horním rohu recenze ─── */
.dzs-recenze-corner-stars {
    flex-shrink: 0;
    font-size: 13px;
    color: #BA7517;
    letter-spacing: 1px;
    white-space: nowrap;
    align-self: flex-start;
    padding-top: 1px;
}

/* ─── Rating hint ─── */
.dzs-rating-hint {
    font-size: 12px;
    color: #aaa;
    font-style: italic;
}

/* ─── Recenze textarea vždy viditelná ─── */
.dzs-recenze-form textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    background: #fff !important;
    color: #222 !important;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    margin-top: 6px;
}
.dzs-recenze-form textarea:focus { border-color: #0088ff; }

/* ─── Shake animace pro widget bez hvězdiček ─── */
@keyframes dzs-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    40%       { transform: translateX(5px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}
.dzs-shake { animation: dzs-shake 0.4s ease; }

/* Dark mode */
html.dark .dzs-recenze-form textarea { background: #191b1f !important; color: #e8e8e8 !important; border-color: #3a3d44 !important; }
html.dark .dzs-rating-hint { color: #666; }

/* Odsazení chybové hlášky */
#dzs-recenze-msg .dzs-error,
#dzs-recenze-msg .dzs-success {
    display: block;
    margin-top: 10px;
    padding: 10px 14px;
}

/* Recenze list pod formulářem */
.dzs-recenze-list { display: flex; flex-direction: column; gap: 8px; }

/* Primary btn – float right v action footer */
.dzs-form-actions .dzs-btn-primary { float: right !important; }

/* Adresní našeptávač – výsledky hned pod polem */
#dzs-adresa-results { margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
#dzs-f-adresa-search { width: 100%; }

/* ─── Karta servisu – odebraný klik na celou kartu, nová tlačítka ─── */
.dzs-card { cursor: default; }
.dzs-card:hover { transform: none; }

.dzs-card-rating { margin-bottom: 10px; }

.dzs-card-actions {
    display: flex;
    gap: 6px;
}
.dzs-card-btn {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 0 10px;
    height: 32px;
}

/* ─── Cluster ikony – sjednocená modrá barva místo defaultní zelená/žlutá/oranžová ─── */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(0, 136, 255, 0.25) !important;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(0, 136, 255, 0.75) !important;
    color: #fff !important;
}

/* ─── Tlačítko Nahlásit ─── */
.dzs-btn-report {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 7px 14px !important;
    background: transparent !important;
    border: 1px solid #ddd !important;
    border-radius: 8px;
    color: #aaa !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.4 !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.12s;
    width: auto !important;
    max-width: none !important;
    margin-left: 0;
}
.dzs-btn-report:hover {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    background: rgba(239,68,68,0.06) !important;
}

/* ─── Reporter info (Nahlašuješ jako) – stejný styl jako Okresky ─── */
.dzs-reporter-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f7f8fa !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #333 !important;
}
.dzs-reporter-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.dzs-reporter-initials {
    background: #0088ff !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* ─── Červené nebezpečné tlačítko ─── */
.dzs-btn-danger {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: #dc2626 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background 0.12s;
    line-height: 1.4;
}
.dzs-btn-danger:hover {
    background: #b91c1c !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Tlačítko Nahlásit v detailu – plně červené */
.dzs-btn-report {
    background: #dc2626 !important;
    border: 1px solid #dc2626 !important;
    color: #fff !important;
}
.dzs-btn-report:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
}

/* Dark mode reporter */
html.dark .dzs-reporter-info { background: #191b1f !important; color: #e8e8e8 !important; }

/* ─── Vyhledávací pole – styl jako u Okresek ─── */
.dzs-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}
.dzs-search-icon {
    position: absolute;
    left: 10px;
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
}
#dzs-search {
    width: 100%;
    padding: 10px 36px 10px 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff !important;
    color: #222 !important;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}
#dzs-search:focus { border-color: #0088ff; }
#dzs-search::placeholder { color: #aaa; }

#dzs-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    align-items: center;
    justify-content: center;
}
#dzs-search-clear:hover { color: #555; }

/* Dark mode search */
html.dark #dzs-search { background: #2b2e33 !important; color: #e8e8e8 !important; border-color: #3a3d44 !important; }
html.dark #dzs-search::placeholder { color: #555; }
html.dark #dzs-search:focus { border-color: #0088ff !important; }
html.dark #dzs-search-clear { color: #666; }
html.dark #dzs-search-clear:hover { color: #ccc; }

/* ─── SEO – card title as crawlable link ─── */
.dzs-card-title-link {
    display: block;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}
.dzs-card-title-link:hover { color: #0088ff; }

/* ── Loading spinner ── */
#dzs-wrap { position: relative; }
#dzs-init-spinner {
    position: absolute;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    pointer-events: none;
    transition: opacity .25s;
}
html.dark #dzs-init-spinner { background: #2b2e33; }
#dzs-init-spinner.dzs-spinner-hidden { opacity: 0; }
.dzs-spinner-ring {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0,136,255,.18);
    border-top-color: #0088ff;
    border-radius: 50%;
    animation: dzs-spin .75s linear infinite;
}
@keyframes dzs-spin { to { transform: rotate(360deg); } }
html.dark .dzs-spinner-ring { border-color: rgba(0,136,255,.18); border-top-color: #0088ff; }
