
#mapa-container { 
    height: 650px; 
    width: 100%;
    cursor: crosshair; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1; 
    margin-bottom: 20px;
}


.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 240px !important;
}

.popup-container {
    display: flex;
    flex-direction: column;
}

.popup-image-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    overflow: hidden;
    cursor: pointer;
}

.popup-img-preview {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center;
    transition: transform 0.3s ease;
}

.popup-image-wrapper:hover .popup-img-preview {
    transform: scale(1.1);
}

.popup-magnify-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    pointer-events: none;
}

.popup-image-wrapper:hover .popup-magnify-icon {
    opacity: 1;
}

.popup-info {
    padding: 10px 12px;
}

.popup-info h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.popup-meta {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}


.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: none;
    width: 75vw;
    max-width: none;
    height: 75vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    }
}


.close {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}


.modal-img-full {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    background-color: #fff;
}

@media (min-width: 768px) {
    .modal-img-full {
        width: 65%;
        height: 100%;
    }
}


.modal-details {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.modal-details-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 25px;
}
.modal-details .modal-komentar-form-bottom {
    flex-shrink: 0;
    padding: 1rem 25px 25px;
    border-top: 1px solid #dee2e6;
    background: #fff;
}

@media (min-width: 768px) {
    .modal-details {
        width: 35%;
    }
}


.exif-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.exif-item {
    font-size: 0.85rem;
    color: #555;
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.exif-item strong {
    display: block;
    color: #222;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}


.komentar-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.komentar-akce .btn {
    min-width: 28px;
}
.komentar-toolbar .btn {
    padding: 0.15rem 0.4rem;
    font-size: 0.85rem;
}
.modal-details-flex {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}
.modal-details-top {
    flex-shrink: 0;
}
.hodnoceni-hvezdy .hodnoceni-btn {
    text-decoration: none;
    font-size: 1.25rem;
}
.modal-details .komentare-scroll-box {
    flex: 1 1 0;
    min-height: 100px;
    max-height: 32vh;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    padding: 0.75rem;
}

.filter-col {
    flex-grow: 1;
    min-width: 0;
}

.filter-card:hover,
.filter-card:focus-within,
.filter-card.filter-card-active {
    transform: scale(1.05) !important;
    z-index: 2;
}

.seznam-page-input {
    width: 4em;
}


.card-img-seznam {
    width: 100% !important;
    height: 120px !important;
    object-fit: contain !important;
    object-position: center;
    background-color: #f8f9fa;
}


.novy-pin-icon {
    background: none !important;
    border: none !important;
}