/* Soubor: style.css | Verze: 89.0 (PWA Toast Update) */
:root {
    --primary-color: #3b82f6; 
    --accent-color: #ef4444;
    --notify-color: #ff8800;
    --success-color: #10b981;
    --edit-color: #f59e0b;
    --type-video: #a855f7; 
    --type-text: #f59e0b;
    --type-text-bg: #fff7ed;
    --bg-main: #000000; 
    --bg-panel: #1e1e1e;
    --text-main: #ffffff; 
    --text-muted: #aaaaaa;
    --border-glass: 1px solid rgba(255, 255, 255, 0.15);
    /* Z-Indexy */
    --z-map: 1; --z-ui: 100; --z-modal: 10000; --z-toast: 10001; --z-overlay: 20000;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }
body, html { width: 100%; height: 100%; overflow: hidden; background-color: var(--bg-main); font-family: 'Inter', sans-serif; color: var(--text-main); }

/* --- PWA BANNERS (Install & Update) --- */
.pwa-install-banner { position: fixed; bottom: 85px; left: 50%; transform: translateX(-50%); width: 95%; max-width: 400px; background: rgba(30, 30, 30, 0.95); backdrop-filter: blur(10px); border: var(--border-glass); border-radius: 15px; padding: 12px 15px; display: flex; align-items: center; gap: 15px; z-index: 5000; box-shadow: 0 5px 20px rgba(0,0,0,0.5); animation: slideUp 0.4s ease-out; }
@keyframes slideUp { from { transform: translate(-50%, 100%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.pwa-install-info { display: flex; align-items: center; gap: 12px; flex: 1; }
.pwa-install-info img { width: 40px; height: 40px; border-radius: 8px; }
.pwa-install-info div { display: flex; flex-direction: column; }
.pwa-install-info strong { font-size: 0.9rem; color: #fff; }
.pwa-install-info span { font-size: 0.75rem; color: #aaa; }
.btn-close-banner { background: transparent; border: none; color: #888; font-size: 1.5rem; cursor: pointer; padding: 0 5px; margin-left: 5px; }

/* --- TOAST --- */
#toastContainer { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: var(--z-toast); pointer-events: none; display: flex; flex-direction: column; gap: 10px; width: 90%; max-width: 350px; }
.toast { background: rgba(59, 130, 246, 0.95); color: white; padding: 12px 20px; border-radius: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); font-weight: 500; font-size: 0.9rem; text-align: center; animation: slideDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); backdrop-filter: blur(5px); }
.toast.toast-info { background: rgba(16, 185, 129, 0.95); }
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- ONLINE STATUS --- */
.online-status { position: fixed; bottom: 85px; left: 15px; z-index: 600; background: rgba(20, 20, 20, 0.7); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 4px 10px; display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 500; box-shadow: 0 2px 10px rgba(0,0,0,0.3); transition: all 0.3s; opacity: 0.8; }
.online-status:hover { opacity: 1; background: rgba(20, 20, 20, 0.9); }
.online-status.online i { color: #10b981; }
.online-status.offline i { color: #ef4444; }

/* --- HELP BUTTON --- */
.help-btn { position: absolute; top: 22px; left: 280px; width: 40px; height: 40px; border-radius: 50%; background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(10px); color: rgba(255,255,255,0.7); border: var(--border-glass); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 500; font-size: 1.1rem; transition: all 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.help-btn:hover { background: rgba(255,255,255,0.2); color: #fff; transform: scale(1.1); }

/* --- MAP --- */
.map-area { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: var(--z-map); }
#mapContainer { width: 100%; height: 100%; background: #111; position: relative; }
.leaflet-container { cursor: grab !important; }
.leaflet-bottom .leaflet-control { margin-bottom: 90px !important; }
#mapContainer.map-labels-hidden .marker-text-preview { display: none !important; }

.map-controls-right { position: fixed; right: 15px; top: 50%; transform: translateY(-50%); z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.map-control-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.map-control-btn:hover { background: rgba(20, 20, 20, 0.9); transform: scale(1.1); }

#mapContainer.drag-active::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(59, 130, 246, 0.2); border: 3px dashed var(--primary-color); z-index: 999; pointer-events: none; animation: dragPulse 1s infinite; }
#mapContainer.drag-active::after { content: 'Přetáhněte sem soubor'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.9); color: white; padding: 20px 40px; border-radius: 15px; font-size: 1.2rem; font-weight: bold; z-index: 1000; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,0.7); }
@keyframes dragPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* Markers */
.user-location-marker { background-color: #3b82f6; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 10px rgba(0,0,0,0.3); animation: pulse-blue 2s infinite; }
@keyframes pulse-blue { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 var(--pulse-color); border-color: var(--pulse-target); } 50% { box-shadow: 0 0 15px 5px var(--pulse-color); border-color: #fff; } 100% { box-shadow: 0 0 0 0 var(--pulse-color); border-color: var(--pulse-target); } }
@keyframes like-bounce { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

.custom-map-marker { transition: z-index 0.2s; }
.marker-visual { width: 44px; height: 44px; background-position: center; background-size: cover; border-radius: 50%; border: 3px solid; box-shadow: 0 4px 10px #000; position: relative; transition: all 0.3s; }
.marker-visual.type-photo { border-color: var(--primary-color); }
.marker-visual.type-video { border-color: var(--type-video); }
.marker-visual.type-text { border-color: var(--type-text); background-color: var(--type-text-bg); }
.marker-visual.type-text-small { width: 34px !important; height: 34px !important; background-color: var(--type-text-bg); border-color: var(--type-text); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.marker-visual.is-new { animation: pulse-glow 2s infinite; }
.marker-visual.type-photo.is-new { --pulse-color: rgba(59, 130, 246, 0.6); --pulse-target: var(--primary-color); }
.marker-visual.type-video.is-new { --pulse-color: rgba(168, 85, 247, 0.6); --pulse-target: var(--type-video); }
.marker-visual.type-text.is-new, .marker-visual.type-text-small.is-new { --pulse-color: rgba(245, 158, 11, 0.6); --pulse-target: var(--type-text); }

/* Marker Badges */
.marker-badge { position: absolute; top: -6px; right: -6px; background: var(--accent-color); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; font-weight: bold; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.5); z-index: 10; border: 2px solid #fff; }
.marker-visual.type-text-small .marker-badge { width: 16px; height: 16px; font-size: 9px; top: -4px; right: -4px; }
.marker-like-badge { position: absolute; bottom: -6px; right: -6px; background: rgba(20, 20, 20, 0.9); border: 2px solid #fff; color: var(--accent-color); border-radius: 12px; padding: 2px 5px; font-size: 10px; font-weight: bold; display: flex; align-items: center; gap: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.5); z-index: 10; }
.marker-visual.type-text-small .marker-like-badge { bottom: -4px; right: -4px; padding: 1px 4px; font-size: 9px; }

/* 360 Badge */
.marker-badge-360 { position: absolute; top: -6px; left: -6px; background: rgba(16, 185, 129, 0.9); border: 2px solid #fff; color: #fff; border-radius: 12px; padding: 2px 5px; font-size: 10px; font-weight: bold; display: flex; align-items: center; gap: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.5); z-index: 10; }
// --- KONEC ČÁSTI 1/2 (čekám na pokyn) ---
/* --- POKRAČOVÁNÍ ČÁSTI 2/2 --- */

.marker-text-preview { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.7); color: rgba(255, 255, 255, 0.9); padding: 4px 8px; border-radius: 8px; font-size: 0.7rem; font-weight: 400; white-space: nowrap; pointer-events: none; border: 1px solid rgba(255,255,255,0.1); max-width: 120px; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(2px); transition: opacity 0.2s; }
.marker-visual.type-text-small .marker-text-preview { bottom: 40px; }
.marker-text-preview::after { content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); border-width: 4px 4px 0; border-style: solid; border-color: rgba(0,0,0,0.7) transparent transparent transparent; }

.custom-map-marker:hover { z-index: 1000 !important; }
.custom-map-marker:hover .marker-visual { transform: scale(1.15); border-radius: 12px; }
.custom-cluster { background: rgba(30, 30, 30, 0.9); border: 2px solid var(--primary-color); color: #fff; border-radius: 50%; font-weight: bold; display: flex; align-items: center; justify-content: center; flex-direction: column; box-shadow: 0 4px 10px rgba(0,0,0,0.5); font-size: 1.1rem; width: 44px; height: 44px; }
.custom-cluster.has-new { border-color: var(--primary-color); animation: pulse-glow 2s infinite; --pulse-color: rgba(59, 130, 246, 0.5); --pulse-target: var(--primary-color); }
.cluster-new-badge { position: absolute; top: -5px; right: -5px; background: var(--accent-color); color: #fff; border-radius: 50%; width: 22px; height: 22px; font-size: 11px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.cluster-stats { display: flex; gap: 4px; font-size: 0.6rem; color: #aaa; margin-top: -2px; } .cluster-stats i { font-size: 0.6rem; }

/* --- TOP CONTROLS --- */
.search-container-top { position: absolute; top: 20px; left: 20px; z-index: 500; width: calc(100% - 180px); max-width: 250px; transition: all 0.3s; }
.search-box { background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(10px); border: var(--border-glass); border-radius: 25px; padding: 0 15px; height: 45px; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s; }
.search-box:focus-within { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4); border-color: var(--primary-color); }
.search-icon { color: #888; } 

input[type="search"]::-webkit-search-cancel-button { display: none; }
input[type="search"] { -webkit-appearance: none; appearance: none; }

#searchInput { background: transparent; border: none; color: #fff; font-size: 0.95rem; width: 100%; }
.search-clear-btn { background: transparent; border: none; color: #888; cursor: pointer; padding: 5px; font-size: 1rem; transition: color 0.2s; } .search-clear-btn:hover { color: #fff; }

.filter-container-top { position: absolute; top: 20px; right: 20px; z-index: 500; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transition: all 0.3s; }
.filter-pill { background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(10px); border: var(--border-glass); border-radius: 25px; padding: 8px 15px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s; }
.filter-pill.filter-active, .search-box.filter-active { border-color: var(--primary-color); box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }

.filter-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.2); margin: 0 5px; }
.filter-select { background: transparent; border: none; color: #fff; font-size: 0.9rem; font-weight: 500; padding: 0; cursor: pointer; max-width: 130px; } .filter-select option { background: #1e1e1e; color: #fff; }
.filter-input { background: transparent; border: none; color: #fff; font-size: 0.9rem; font-weight: 500; padding: 5px 8px; width: 120px; border-radius: 5px; transition: background 0.2s; } .filter-input:focus { background: rgba(255, 255, 255, 0.1); } .filter-input::placeholder { color: #888; }

.filter-label { font-size: 0.7rem; color: #aaa; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; margin-right: 2px; }
.quick-filter-btn { background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.3); color: #3b82f6; border-radius: 5px; padding: 2px 8px; font-size: 0.75rem; font-weight: bold; cursor: pointer; transition: all 0.2s; }
.quick-filter-btn:hover { background: rgba(59, 130, 246, 0.4); color: #fff; }

.btn-icon-small { background: transparent; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; padding: 0 5px; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.btn-icon-small:hover { transform: scale(1.2); }

/* --- TAGS (ZNAČKY NAŠEPTÁVAČ) --- */
.tag-suggestions-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; max-height: 85px; overflow-y: auto; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 8px; width: 100%; border: 1px solid rgba(255,255,255,0.05); }
.tag-suggestion-pill { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); border-radius: 12px; padding: 4px 10px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; display: inline-block; }
.tag-suggestion-pill:hover { background: rgba(59, 130, 246, 0.4); color: #fff; }
.hashtag-text { color: #3b82f6; font-weight: 600; cursor: pointer; transition: color 0.2s; }
.hashtag-text:hover { color: #60a5fa; text-decoration: underline; }

/* --- LINKS IN TEXT --- */
.comment-text a, .gallery-text-only a, .marker-text-preview a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.comment-text a:hover, .gallery-text-only a:hover, .marker-text-preview a:hover { text-decoration: underline; color: #60a5fa; }

/* --- BOTTOM CONTROLS & NEW FAB MENU --- */
.bottom-controls-container { position: absolute; bottom: 0; left: 0; width: 100%; z-index: var(--z-ui); pointer-events: none; padding-bottom: 25px; display: flex; justify-content: center; }
.bottom-controls-container > * { pointer-events: auto; }

.bottom-bar { display: flex; justify-content: space-between; align-items: center; width: 95%; max-width: 420px; background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(15px); border: var(--border-glass); border-radius: 35px; padding: 5px 15px; height: 65px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); position: relative; gap: 2px; }

.nav-btn { background: transparent; border: none; color: rgba(255,255,255,0.8); font-size: 1.2rem; padding: 8px 10px; border-radius: 12px; cursor: pointer; transition: all 0.2s; min-width: 40px; display: flex; justify-content: center; align-items: center; } 
.nav-btn:active { background: rgba(255,255,255,0.1); color: #fff; transform: scale(0.9); } 
.nav-btn.active-user { color: var(--primary-color); text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }

.fab-container { position: absolute; left: 50%; top: -25px; transform: translateX(-50%); pointer-events: auto; }

.fab-menu { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%) scale(0.8); display: flex; flex-direction: column; gap: 10px; opacity: 0; pointer-events: none; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 100; transform-origin: bottom center; }
.fab-menu.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); }
.fab-menu-item { background: rgba(30, 30, 30, 0.95); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; padding: 12px 20px; border-radius: 20px; font-size: 0.95rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); white-space: nowrap; transition: all 0.2s; }
.fab-menu-item:hover { background: rgba(59, 130, 246, 0.8); border-color: #3b82f6; transform: scale(1.05); }
.fab-menu-item i { color: var(--primary-color); font-size: 1.2rem; transition: color 0.2s; width: 20px; text-align: center; }
.fab-menu-item:hover i { color: #fff; }

.fab-btn { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-color); border: none; color: #fff; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5); cursor: pointer; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); } .fab-btn:active { transform: scale(0.9); } .fab-btn.mode-confirm { background: #10b981; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5); }
.cancel-fab-btn { position: absolute; right: -50px; top: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(40,40,40,0.9); color: #fff; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: all 0.2s; transform: scale(0.5); } .cancel-fab-btn.visible { opacity: 1; pointer-events: auto; transform: scale(1); }

.crosshair { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: var(--z-ui); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; } .crosshair.visible { opacity: 1; }
.crosshair-icon { font-size: 2rem; color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.5); } .crosshair-label { margin-top: 10px; background: rgba(0,0,0,0.7); color: #fff; padding: 5px 10px; border-radius: 10px; font-size: 0.8rem; backdrop-filter: blur(5px); }
.gps-averaging-status { font-size: 0.8rem; color: #3b82f6; margin-left: 10px; font-weight: bold; animation: pulse-text 1.5s infinite; } @keyframes pulse-text { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.notification-badge { position: absolute; top: 2px; right: 2px; background: var(--notify-color); color: #fff; font-size: 0.65rem; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(20,20,20,0.9); box-shadow: 0 0 8px var(--notify-color); animation: pulse-orange 1.5s infinite; }
@keyframes pulse-orange { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 136, 0, 0.7); } 70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(255, 136, 0, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 136, 0, 0); } }

.notification-item { display: flex; align-items: flex-start; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: background 0.2s; border-left: 3px solid transparent; }
.notification-item:hover { background: rgba(255,255,255,0.08); }
.notification-item.notif-unread { background: rgba(59, 130, 246, 0.1); border-left-color: var(--notify-color); }
.notification-item.notif-mention { background: rgba(245, 158, 11, 0.1); border-left-color: var(--type-text); }
.notification-item.notif-mention.notif-unread { background: rgba(245, 158, 11, 0.25); box-shadow: inset 0 0 10px rgba(245, 158, 11, 0.1); }
.notif-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 12px; object-fit: cover; background: #333; border: 1px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.notif-content { flex: 1; min-width: 0; }
.notif-text { font-size: 0.85rem; color: #ddd; margin-bottom: 4px; line-height: 1.3; }
.notif-text strong { color: #fff; font-weight: 600; }
.notif-preview { font-size: 0.8rem; color: #aaa; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 0.7rem; color: #666; margin-top: 4px; }
.notif-unread-dot { width: 8px; height: 8px; background: var(--notify-color); border-radius: 50%; margin-left: 10px; margin-top: 5px; box-shadow: 0 0 5px var(--notify-color); flex-shrink: 0; }
.notif-thumbnail { width: 44px; height: 44px; border-radius: 6px; margin-left: 10px; object-fit: cover; background-color: #222; border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #888; }

/* --- SIDEBAR --- */
#sidebarOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2400; opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(2px); } #sidebarOverlay.visible { opacity: 1; pointer-events: auto; }
#sidebar { position: fixed; top: 0; right: 0; bottom: 0; width: 300px; background: rgba(20,20,20,0.98); backdrop-filter: blur(10px); border-left: var(--border-glass); display: flex; flex-direction: column; z-index: 2500; transform: translateX(100%); transition: transform 0.3s; } #sidebar.open { transform: translateX(0); }
.sidebar-header { padding: 20px; border-bottom: var(--border-glass); display: flex; justify-content: space-between; align-items: center; }
.sidebar-content { padding: 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 15px; }

/* REDESIGNED SWITCH */
.switch-container { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 8px 0; flex-wrap: wrap; gap: 5px; } 
.switch-label { font-size: 0.9rem; color: #ddd; font-weight: 500; } .switch-input { display: none; }
.switch-slider { width: 46px; height: 26px; background: #3a3a3a; border-radius: 26px; position: relative; transition: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); border: 1px solid #555; flex-shrink: 0; } 
.switch-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); box-shadow: 0 2px 4px rgba(0,0,0,0.3); } 
.switch-input:checked + .switch-slider { background: var(--success-color); border-color: var(--success-color); } 
.switch-input:checked + .switch-slider::after { left: 22px; }

/* --- MODALS & LISTS --- */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(5px); z-index: var(--z-modal); display: none; justify-content: center; align-items: center; } .modal.show { display: flex; animation: fadeIn 0.2s; }
#authModal, #loginModal, #userProfileModal, #navChoiceModal { z-index: 10010; }

.modal-content { background: #1e1e1e; border: var(--border-glass); width: 90%; max-width: 450px; padding: 25px; border-radius: 20px; position: relative; max-height: 85vh; overflow-y: auto; }
.close-modal-btn { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.1); color: #fff; width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.2s; } .close-modal-btn:hover { background: rgba(255,255,255,0.2); }
.my-markers-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.my-marker-item { display: flex; align-items: center; background: rgba(255,255,255,0.05); padding: 10px; border-radius: 10px; border: 1px solid transparent; transition: all 0.2s; cursor: pointer; } .my-marker-item:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.1); transform: translateX(-3px); }
.my-marker-thumb { width: 50px; height: 50px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; background-color: #333; }
.my-marker-info { flex: 1; margin-left: 15px; overflow: hidden; }
.my-marker-date { font-size: 0.75rem; color: #888; }
.my-marker-text { font-size: 0.9rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-marker-stats { font-size: 0.75rem; color: var(--primary-color); margin-top: 2px; }
.nearby-dist-badge { background: rgba(59, 130, 246, 0.15); color: #3b82f6; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; margin-left: auto; white-space: nowrap; }

.profile-header { text-align: center; margin-bottom: 20px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: #333; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #888; border: 2px solid var(--primary-color); overflow: hidden; }
.profile-stats { display: flex; justify-content: center; gap: 20px; margin-top: 10px; font-size: 0.9rem; color: #aaa; } .profile-stats span { color: #fff; font-weight: bold; }
.avatar-small { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.3); vertical-align: middle; margin-right: 5px; }
.avatar-large { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-color); background-color: #222; }
.sidebar-avatar-section { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; background: rgba(255,255,255,0.03); border-radius: 10px; margin-bottom: 15px; }

/* --- GALLERY & SAFE ZONES --- */
.modal-content-fullscreen { width: 100%; height: 100%; background: #000; display: flex; flex-direction: column; position: relative; transition: all 0.3s ease; }
.gallery-layout { display: flex; width: 100%; height: 100%; position: relative; }
.gallery-media-container { flex: 1; background: #000; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: grab; transition: all 0.3s ease; }
.gallery-media-container:active { cursor: grabbing; }

.protected-media { max-width: calc(100% - 120px); max-height: 100%; object-fit: contain; transition: transform 0.1s linear; will-change: transform; transform-origin: center center; -webkit-user-select: none; user-select: none; pointer-events: none; }

.modal-backdrop-glass { background-color: rgba(0, 0, 0, 0.6) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gallery-text-only { text-align: center; color: #fff; font-size: 1.5rem; padding: 40px 20px; overflow-y: auto; max-height: 100%; display: flex; align-items: center; justify-content: center; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

/* GALLERY NAVIGATION ARROWS */
.gallery-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20, 20, 20, 0.5); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); width: 50px; height: 50px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); backdrop-filter: blur(4px); pointer-events: auto; opacity: 1; }
.gallery-nav-btn:hover { background: rgba(59, 130, 246, 0.8); border-color: var(--primary-color); color: #fff; transform: translateY(-50%) scale(1.15); box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.gallery-nav-btn:active { transform: translateY(-50%) scale(0.95); }
.gallery-nav-btn.disabled { opacity: 0; pointer-events: none; cursor: default; }
.gallery-nav-btn.prev { left: 20px; } 
.gallery-nav-btn.next { right: 20px; }

.gallery-sidebar { width: 380px; background: #1a1a1a; border-left: var(--border-glass); display: flex; flex-direction: column; height: 100%; z-index: 20; transition: transform 0.3s ease, width 0.3s ease; }
.mobile-drag-handle { display: none; } .mobile-comments-toggle { display: none; } .mobile-hidden { display: block; }
.gallery-actions-bar { border-top: 1px solid #333; padding-top: 10px; margin-top: 10px; }
#btnLikeMarker.is-liked { background: rgba(239, 68, 68, 0.2); border: 1px solid var(--accent-color); color: var(--accent-color); }
#btnLikeMarker.is-liked i { animation: like-bounce 0.4s; font-weight: 900; }

.settings-group { background: rgba(255, 255, 255, 0.03); padding: 15px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.05); }
.settings-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.input-group { display: flex; gap: 10px; } .input-group input { flex: 1; }
.danger-zone { background: rgba(239, 68, 68, 0.1); padding: 15px; border-radius: 10px; border: 1px solid rgba(239, 68, 68, 0.3); }
.progress-container { margin-top: 15px; width: 100%; display: none; } .progress-bar { width: 100%; height: 8px; background: #333; border-radius: 4px; overflow: hidden; } .progress-bar-fill { height: 100%; background: var(--success-color); width: 0%; transition: width 0.2s; }
.comment-input-box { padding: 15px; border-top: 1px solid #333; display: flex; flex-direction: column; gap: 10px; background: #222; }
.comment-input-wrapper { display: flex; gap: 10px; align-items: center; }
.btn-camera { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 10px; border-radius: 10px; cursor: pointer; transition: 0.2s; } .btn-camera:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.comment-image-preview-container { display: none; padding: 10px; background: rgba(0,0,0,0.3); border-radius: 10px; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.comment-image-preview { height: 50px; border-radius: 5px; }
.btn-remove-image { background: transparent; border: none; color: var(--accent-color); cursor: pointer; padding: 5px; }
.comment-img { display: block; max-width: 100%; max-height: 200px; margin-top: 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.gallery-header-info { padding: 15px 20px; border-bottom: 1px solid #333; }
.author-tag { font-size: 0.8rem; color: var(--primary-color); margin-top: 5px; font-weight: 500; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.comments-list { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }

.comment-item { background: rgba(255,255,255,0.05); padding: 10px; border-radius: 10px; border: 1px solid transparent; transition: all 0.2s ease-in-out; }
.comment-item.is-new { border-left: 3px solid var(--primary-color); background: rgba(59, 130, 246, 0.08); }
.comment-text { font-size: 0.95rem; margin-bottom: 5px; line-height: 1.4; word-break: break-word; }
.comment-meta { font-size: 0.75rem; color: #888; text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 5px; }
.full-width { width: 100%; padding: 12px; margin-bottom: 10px; border-radius: 10px; border: 1px solid #333; background: #222; color: #fff; font-size: 16px; }

/* TLAČÍTKA A FLEX ROZLOŽENÍ */
.flex-1 { flex: 1; }
.btn { padding: 12px; border-radius: 10px; border: none; cursor: pointer; font-weight: bold; color: #fff; font-size: 14px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; } 
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); } 
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary-color); } 
.btn-success { background: #10b981; } 
.btn-danger { background: var(--accent-color); } 
.btn-secondary { background: #444; }
.btn-edit { background: var(--edit-color); color: #fff; } 
.btn-icon { background: transparent; border: none; color: #fff; font-size: 1.2rem; padding: 10px; cursor: pointer; transition: all 0.2s; } .btn-icon:hover { background: rgba(255, 255, 255, 0.1); border-radius: 50%; }

/* MAPY NAVIGACE MODÁL */
.nav-choice-btn { width: 100%; padding: 15px; margin-bottom: 15px; border-radius: 12px; border: none; cursor: pointer; font-weight: bold; color: #fff; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s; }
.nav-choice-btn.mapycz { background: #10b981; }
.nav-choice-btn.googlemaps { background: #3b82f6; }
.nav-choice-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.4); }

.hidden { display: none !important; } .admin-only { display: none; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.btn-reply { background: transparent; border: none; color: #666; font-size: 0.75rem; cursor: pointer; padding: 2px 5px; }
.btn-reply:hover { color: var(--primary-color); text-decoration: underline; }
.comment-like-btn { background: transparent; border: none; color: #666; font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; gap: 3px; transition: 0.2s; padding: 2px 5px; }
.comment-like-btn:hover { color: #888; }
.comment-like-btn.is-liked { color: var(--accent-color); }
.comment-like-btn.is-liked i { animation: like-bounce 0.4s; font-weight: 900; }
.comment-item.comment-highlight { background: rgba(245, 158, 11, 0.2) !important; border: 1px solid rgba(245, 158, 11, 0.5) !important; animation: flashHighlight 1.5s ease-out forwards; }
@keyframes flashHighlight { 0% { background: rgba(245, 158, 11, 0.4); } 100% { background: rgba(245, 158, 11, 0.1); } }

/* SWIPE ANIMATIONS */
.anim-slide-left { animation: slideOutLeft 0.3s ease-in forwards; }
.anim-slide-right { animation: slideInRight 0.3s ease-out forwards; }
.anim-slide-in-left { animation: slideInLeft 0.3s ease-out forwards; }
.anim-slide-out-right { animation: slideOutRight 0.3s ease-in forwards; }

@keyframes slideOutLeft { to { transform: translateX(-100%); opacity: 0; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { to { transform: translateX(100%); opacity: 0; } }

/* DOUBLE TAP HEART ANIMATION */
.gallery-heart-animation { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); font-size: 6rem; color: rgba(255, 255, 255, 0.9); pointer-events: none; z-index: 500; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); opacity: 0; }
.gallery-heart-animation.animate { animation: heartPopup 0.8s ease-out forwards; }
@keyframes heartPopup { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(1.0); } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

/* SKELETON LOADING */
.skeleton { background: #2a2a2a; background: linear-gradient(110deg, #2a2a2a 8%, #3a3a3a 18%, #2a2a2a 33%); background-size: 200% 100%; animation: 1.5s shine linear infinite; border-radius: 8px; width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 5; }
@keyframes shine { to { background-position-x: -200%; } }

/* EMPTY STATES */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 20px; color: #888; height: 100%; }
.empty-state-icon { font-size: 3rem; margin-bottom: 15px; color: #333; }
.empty-state-text { margin-bottom: 20px; font-size: 0.95rem; }

/* --- FULLSCREEN MODIFIER CLASSES --- */
.gallery-layout.gallery-is-fullscreen .gallery-sidebar { display: none !important; }
.gallery-layout.gallery-is-fullscreen .gallery-media-container { max-height: none !important; height: 100vh !important; width: 100vw !important; flex: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999; }
.gallery-layout.gallery-is-fullscreen .protected-media { max-width: 100%; }

/* OPRAVA MOBILNÍHO ROZLOŽENÍ A SKRYTÍ ONLINE */
@media (max-width: 768px) {
    .mobile-hidden { display: none !important; }
    
    .online-status { display: none !important; }
    
    .search-container-top { width: calc(100% - 70px); left: 10px; top: 15px; max-width: none; }
    .help-btn { top: 18px; left: auto; right: 10px; width: 45px; height: 45px; background: rgba(20,20,20,0.9); }
    
    .filter-container-top { 
        top: 75px; right: auto; left: 10px; flex-direction: row; width: calc(100% - 20px); 
        padding-bottom: 5px; align-items: center; justify-content: flex-start; gap: 8px; 
        scrollbar-width: none; flex-wrap: wrap; overflow: visible; 
    }
    .filter-container-top::-webkit-scrollbar { display: none; }
    
    .filter-label { display: none; }
    .filter-pill { flex-shrink: 0; padding: 6px 10px; height: 38px; }
    .filter-select { font-size: 0.85rem; max-width: 90px; }
    #filterPillAuthor, #filterPillRadius { display: none !important; }

    /* --- MOBILE SPLIT SCREEN --- */
    .modal-content-fullscreen { display: flex; flex-direction: column; overflow: hidden; }
    .gallery-layout { display: flex; flex-direction: column; height: 100%; width: 100%; position: absolute; top: 0; left: 0; }
    
    .gallery-media-container { width: 100%; height: 50vh; max-height: 50vh; flex-shrink: 0; background: #000; border-bottom: 1px solid #333; }
    
    #panoramaViewer { width: 100%; height: 100% !important; }
    .protected-media { max-width: 100%; }

    .gallery-sidebar { position: relative; width: 100%; flex: 1; height: auto; transform: none !important; border-left: none; background: #1a1a1a; z-index: auto; display: flex; flex-direction: column; overflow: hidden; }
    .gallery-header-info { padding: 10px 15px; }
    .gallery-actions-bar { margin-top: 5px; }
    .comments-list { flex: 1; overflow-y: auto; padding: 10px 15px; padding-bottom: 10px; }
    .comment-input-box { flex-shrink: 0; background: #1a1a1a; z-index: 100; border-top: 1px solid #333; padding: 10px; }
    .mobile-drag-handle { display: none; } .mobile-comments-toggle { display: none !important; }
    
    .gallery-nav-btn { width: 44px; height: 44px; background: rgba(0, 0, 0, 0.4); border: none; color: rgba(255,255,255,0.7); font-size: 1.2rem; box-shadow: none; backdrop-filter: none; } 
    .gallery-nav-btn.prev { left: 5px; } 
    .gallery-nav-btn.next { right: 5px; }
    .gallery-nav-btn:hover { transform: translateY(-50%) scale(1.1); background: rgba(0, 0, 0, 0.6); }
    
    .gallery-text-only { padding: 20px; font-size: 1.1rem; }
}
