﻿/* CSS styly pro custom POI markery ve tvaru špendlíku */
.custom-poi-marker {
    background: transparent !important;
    border: none !important;
}

.poi-icon-container {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
    position: relative;
}

    .poi-icon-container:hover {
        transform: rotate(-45deg) scale(1.15);
    }

    .poi-icon-container i {
        font-size: 12px;
        color: #333;
        transform: rotate(45deg);
        margin-top: -1px;
        margin-left: 1px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* Barevné třídy podle stavu POI */
    .poi-icon-container.color-exist {
        background-color: #c1a064;
        border-color: #9b7a3f;
        /*background-color: #4CAF50;
        border-color: #2E7D32;*/
    }

        .poi-icon-container.color-exist i {
            color: white;
        }

    .poi-icon-container.color-miss {
        background-color: #F44336;
        border-color: #C62828;
    }

        .poi-icon-container.color-miss i {
            color: white;
        }

    .poi-icon-container.color-default {
        background-color: #2196F3;
        border-color: #1565C0;
    }

        .poi-icon-container.color-default i {
            color: white;
        }

    /* Další barvy podle potřeby */
    .poi-icon-container.color-warning {
        background-color: #FF9800;
        border-color: #E65100;
    }

        .poi-icon-container.color-warning i {
            color: white;
        }

    .poi-icon-container.color-info {
        background-color: #00BCD4;
        border-color: #006064;
    }

        .poi-icon-container.color-info i {
            color: white;
        }

/* CSS styly pro popup okna POI */
.poi-popup {
    width: 300px;
    font-family: Arial, sans-serif;
}

.poi-popup-header h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .poi-popup-header h5 i {
        font-size: 14px;
    }

.poi-popup-content {
    display: flex;
    gap: 15px;
}

.poi-popup-left {
    flex: 0 0 120px; /* Pevná šířka pro levý sloupec */
    display: flex;
    flex-direction: column;
}

.poi-popup-right {
    flex: 1; /* Zabere zbytek místa */
}

.poi-popup-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.poi-no-image {
    width: 100%;
    height: 80px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    text-align: center;
}

.poi-popup-right p {
    margin: 0 0 5px 0;
    font-size: 13px;
    line-height: 1.4;
}

.poi-popup-right strong {
    color: #333;
}

/* Responsive pro malé popup */
@media (max-width: 350px) {
    .poi-popup {
        width: 250px;
    }

    .poi-popup-content {
        flex-direction: column;
        gap: 10px;
    }

    .poi-popup-left {
        flex: none;
    }
}

/* Styly pro filtrovací panel mapy */

/* Panel na spodku mapy */
.bottom-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.3s ease;
}

    .bottom-panel.collapsed {
        transform: translateX(-50%) translateY(calc(100% - 40px));
    }

.panel-toggle {
    width: 100%;
    height: 40px;
    border: none;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #495057;
    transition: background 0.2s ease;
}

    .panel-toggle:hover {
        background: rgba(233, 236, 239, 0.9);
    }

.panel-content {
    padding: 20px;
    min-height: 200px;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.bottom-panel.collapsed .toggle-icon {
    transform: rotate(180deg);
}

/* Filtrovací skupiny */
.filter-group {
    margin-bottom: 15px;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #495057;
    font-size: 14px;
}

/* Filtrovací tlačítka */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.filter-btn {
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .filter-btn:hover {
        background: #f8f9fa;
        border-color: #adb5bd;
    }

    .filter-btn.active {
        background: #0d6efd;
        border-color: #0d6efd;
        color: white;
    }

        .filter-btn.active:hover {
            background: #0b5ed7;
            border-color: #0a58ca;
        }

/* Loading stav */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive styly */
@media (max-width: 768px) {
    .bottom-panel {
        width: calc(100vw - 40px);
    }

        .bottom-panel.collapsed {
            transform: translateX(-50%) translateY(calc(100% - 40px));
        }

    .filter-buttons {
        gap: 3px;
    }

    .filter-btn {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .bottom-panel {
        width: calc(100vw - 20px);
    }

    .panel-content {
        padding: 15px;
    }

    .filter-group {
        margin-bottom: 12px;
    }
}