/* Mapa - sticky wrapper */
.map-sticky-wrapper {
    position: relative;
}

.map-sticky {
    overflow: hidden;
}

.map-sticky.map-is-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 50% !important;
    height: 100vh !important;
    border-radius: 0 !important;
    z-index: 999;
}

.map-sticky.map-is-pinned {
    position: absolute !important;
    left: 0;
    width: 50% !important;
    height: 100vh !important;
    border-radius: 0 !important;
    z-index: 999;
}

/* Filtr - Tom Select základní styly */
#acf-filter-zarazeni .ts-wrapper,
#acf-filter-taxonomie .ts-wrapper {
    width: 100%;
}

#acf-filter-zarazeni .ts-control,
#acf-filter-taxonomie .ts-control {
    background: #fff;
    border: 1.5px solid #d4d6cc;
    border-radius: 6px;
    padding: 10px 38px 10px 12px;
    min-height: 52px;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(36, 42, 20, 0.1);
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    color: #242a14;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#acf-filter-zarazeni .ts-control:focus-within,
#acf-filter-taxonomie .ts-control:focus-within {
    border-color: #f9964a;
    box-shadow: 0 2px 10px rgba(36, 42, 20, 0.1), 0 0 0 3px rgba(249, 150, 74, 0.2);
    outline: none;
}

#acf-filter-zarazeni .ts-control input,
#acf-filter-taxonomie .ts-control input {
    color: #242a14;
    font-size: 15px;
}

#acf-filter-zarazeni .ts-control input::placeholder,
#acf-filter-taxonomie .ts-control input::placeholder {
    color: #999;
}

/* Vybrané tagy */
#acf-filter-zarazeni .ts-control .item,
#acf-filter-taxonomie .ts-control .item {
    background: #f9964a;
    color: #fff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
}

#acf-filter-zarazeni .ts-control .item .remove,
#acf-filter-taxonomie .ts-control .item .remove {
    color: #fff;
    border-left: 1px solid rgba(255,255,255,0.4);
    margin-left: 6px;
    padding-left: 6px;
    opacity: 0.8;
}

#acf-filter-zarazeni .ts-control .item .remove:hover,
#acf-filter-taxonomie .ts-control .item .remove:hover {
    opacity: 1;
    background: transparent;
    color: #fff;
}

/* Dropdown */
#acf-filter-zarazeni .ts-dropdown,
#acf-filter-taxonomie .ts-dropdown {
    background: #fff;
    border: 1.5px solid #d4d6cc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgba(36, 42, 20, 0.12);
    font-family: inherit;
    font-size: 15px;
    color: #242a14;
}

#acf-filter-zarazeni .ts-dropdown .option,
#acf-filter-taxonomie .ts-dropdown .option {
    padding: 11px 14px;
    cursor: pointer;
    color: #242a14;
}

#acf-filter-zarazeni .ts-dropdown .option:hover,
#acf-filter-zarazeni .ts-dropdown .option.active,
#acf-filter-taxonomie .ts-dropdown .option:hover,
#acf-filter-taxonomie .ts-dropdown .option.active {
    background: rgba(249, 150, 74, 0.1);
    color: #242a14;
}

#acf-filter-zarazeni .ts-dropdown .option.selected,
#acf-filter-taxonomie .ts-dropdown .option.selected {
    background: rgba(249, 150, 74, 0.18);
    font-weight: 600;
}

#acf-filter-zarazeni .ts-dropdown .ts-dropdown-content,
#acf-filter-taxonomie .ts-dropdown .ts-dropdown-content {
    max-height: 260px;
}

/* Filtr - Tom Select ikony */
#acf-filter-zarazeni .ts-wrapper,
#acf-filter-taxonomie .ts-wrapper {
    position: relative;
}

/* Levá ikona - mapa */
#acf-filter-zarazeni .ts-control {
    padding-left: 38px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242a14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6'/%3E%3Cline x1='8' y1='2' x2='8' y2='18'/%3E%3Cline x1='16' y1='6' x2='16' y2='22'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 17px;
    padding-right: 34px !important;
}

/* Levá ikona - pin */
#acf-filter-taxonomie .ts-control {
    padding-left: 34px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z' fill='%23242a14'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 15px;
    padding-right: 34px !important;
}

/* Pravá šipka */
.ts-filter-arrow {
    position: absolute;
    right: 10px;
    top: 14px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242a14' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    transition: transform 0.2s ease;
    z-index: 10;
}

.ts-wrapper.is-open .ts-filter-arrow {
    transform: rotate(180deg);
}

/* Mapa - popup */
.map-popup {
    display: block;
    position: relative;
    width: 240px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #242a14;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}

.map-popup__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgb(0 0 0 / 25%) 30%, rgba(0, 0, 0, 0) 100%);
}

.map-popup__title {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    z-index: 1;
}

.leaflet-popup-content {
    margin: 3px !important;
}
.leaflet-container a.leaflet-popup-close-button {
    color: #fff !important;
    margin-right: 5px;
    margin-top: 5px;
}