﻿/* ==========================================================================
   RESET & GLOBĂLNE PREMENNĂ‰
   ========================================================================== */

:root {
    --bg-obsah: #f2f5f8;
    --bg-legenda: #f7f9fb;
    --text: #033f75;
    --text-muted: rgba(3, 63, 117, 0.72);
    --primary-green: #0ba13b;
    --primary-green-dark: #078a32;
    --legend-red: #033f75;
    --popup-header-bg: #033f75;
    --child-header-bg: #033f75;
    --brand-blue: #033f75;
    --brand-blue-dark: #024781;
    --brand-blue-deep: #00265c;
    --brand-blue-soft: #e7f0f8;
    --brand-green-soft: #daf1e1;
    --brand-green-pale: rgba(218, 241, 225, 0.42);
    --brand-neutral: #f4f2ed;
    --panel-soft: #ffffff;
    --panel-border: #d9e2ea;
    --panel-border-strong: #c3d1de;
    --shadow-soft: 0 12px 28px rgba(2, 71, 129, 0.11);
    --shadow-panel: 0 8px 22px rgba(2, 71, 129, 0.08);
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Gotham, Arial, sans-serif;
    color: var(--text);
    overflow: hidden;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.layout {
    height: 100vh;
    display: flex;
}

/* OBSAH (MAPA) */
main.obsah {
    flex: 1;
    background: var(--bg-obsah);
}

#map {
    width: 100%;
    height: 100%;
}

/* LEGENDA */
aside.legenda {
    width: 320px;
    background-color: var(--bg-legenda);
    position: relative;
    height: 100vh;
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.legenda-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-color: rgba(3, 63, 117, 0.35) transparent;
}

/* RESIZE HANDLE */
.resize-handle {
    width: 2px;
    cursor: ew-resize;
    background: rgba(3, 63, 117, 0.18);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

/* ==========================================================================
   ACCORDION (LEGENDA)
   ========================================================================== */

.lvl1,
.lvl2,
.lvl3 {
    background: #ffffff;
    color: var(--brand-blue);
    cursor: pointer;
    text-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lvl1 {
    padding: 12px 14px;
    font-weight: 700;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(3, 63, 117, 0.08);
}

.lvl1:hover,
.lvl2:hover,
.lvl3:hover {
    background: var(--brand-green-soft);
    color: var(--primary-green);
}

.lvl2 {
    padding: 9px 12px 9px 22px;
    border-bottom: 1px solid var(--panel-border);
    font-weight: 500;
}

.lvl3 {
    padding: 7px 12px 7px 42px;
    border-bottom: 1px solid var(--panel-border);
    font-size: 14px;
    font-style: normal;
    color: #426782;
}

.content {
    display: none;
}

/* ==========================================================================
   FAQ ROZBAÄ˝OVACĂŤ ZOZNAM
   ========================================================================== */

.faq-dropdown {
    margin: 12px 0 4px;
    position: relative;
}

.faq-toggle,
.faq-option {
    width: 100%;
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.35;
    cursor: pointer;
}

.faq-toggle {
    min-height: 45px;
    padding: 12px 36px 12px 20px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.faq-toggle::after {
    content: "v";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 12px;
}

.faq-toggle[aria-expanded="true"]::after {
    content: "^";
}

.faq-toggle.has-answer {
    font-weight: normal;
}

.faq-options {
    margin-top: 4px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.faq-option {
    display: block;
    padding: 9px 12px;
    border-radius: 0;
    border-width: 0 0 1px;
    color: #1f2937;
    background: #ffffff;
    text-align: left;
}

.faq-option:hover,
.faq-option:focus {
    background: #f5eef2;
    outline: none;
}

.faq-answer {
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #1f2937;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.faq-answer-question {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.faq-answer-text {
    display: block;
}

.faq-answer-text a {
    color: var(--legend-red);
    font-weight: bold;
    text-decoration: underline;
}

.faq-answer-text a:hover,
.faq-answer-text a:focus {
    color: var(--primary-green-dark);
}

/* ==========================================================================
   TLAÄŚIDLO PRE VĹ ETKY TĂ‰MY
   ========================================================================== */

.all-themes-button-container {
    padding: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.toggle-themes-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ==========================================================================
   VLAJKY A LOGO
   ========================================================================== */

.vlajky {
    position: absolute;
    top: 70px;
    right: 0;
    padding: 6px 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.flag {
    width: 40px;
    transition: width 0.2s ease;
}

.flag:hover {
    width: 42px;
}

#logo-container {
    position: absolute;
    top: 10px;
    left: 55px;
    z-index: 1000;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

#logo-container:hover {
    background: white;
}

#site-logo {
    width: 5vw;
    min-width: 40px;
    max-width: 80px;
    height: auto;
    display: block;
}

/* ==========================================================================
   ĂšVODNĂ‰ VIDEO OVERLAY
   ========================================================================== */

#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay-film {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 2;
}

.overlay-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.overlay-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    color: white;
}

.avatar-intro {
    margin: 20px auto;
    width: 50%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: transparent;
    position: relative;
    z-index: 4;
}

.avatar-intro video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.prototype-version {
    font-size: 1.1rem;
    margin: 10px 0 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: white;
    position: relative;
    z-index: 4;
}

#enter-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
    position: relative;
    z-index: 4;
}

#enter-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    border-color: black;
}

/* ==========================================================================
   LEAFLET POPUP - ZĂKLADNĂ‰ Ĺ TĂťLY
   ========================================================================== */

.leaflet-popup-close-button {
    position: absolute;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    z-index: 10 !important;
}

.leaflet-popup-close-button:hover {
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
}

.leaflet-popup {
    max-width: 600px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
}

.leaflet-popup-content-wrapper {
    width: auto !important;
  max-width: 500px;	
    overflow: hidden;
    background-color: white !important;
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-popup-content {
    width: 500px !important;
    min-width: 280px !important;
    max-width: 500px !important;
    margin: 0 !important;
    background-color: white !important;
    padding: 0 !important;
}

.leaflet-popup-tip {
    background-color: #0b8f8f !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
	display: none!important;
}

/* ==========================================================================
   POPUP PRE CHILD
   ========================================================================== */

.popup-child-container {
    width: 100%;
}

.popup-child-header {
    background: var(--child-header-bg);
    padding: 12px 15px;
    color: white;
    border-radius: 8px 8px 0 0;
    text-align: left;
	height:37px !important
}


.popup-child-footer {
    background: var(--child-header-bg);
    padding: 12px 15px;
    color: white;
    border-radius: 8px 8px 0 0;
    text-align: left;
    height: 20px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

  .popup-footer-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    filter: brightness(0) invert(1);
    margin: 0;
    justify-content: left !important;	
}


.popup-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    line-height: 0;
    text-decoration: none;
}
.popup-footer-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.popup-footer-icon.active {
    transform: scale(1.15);
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

/* Ĺ PECIĂLNE PRE AVATAR IKONU - vĂ¤ÄŤĹˇia veÄľkosĹĄ */
.popup-footer-icon.last-icon {
    margin-left: auto !important;
} 



.popup-child-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.popup-child-address {
    font-size: 12px;
    line-height: 1.3;
}

/* Telo popupu - zĂˇkladnĂ˝ padding pre text */
/* ==========================================================================
   OBTIEKANIE TEXTU OKOLO OBRĂZKA V POPUPE
   ========================================================================== */

/* Kontajner pre text a obrĂˇzok - zabezpeÄŤĂ­ sprĂˇvne obtekanie */
.popup-child-body {
    padding: 0px 10px 0px 10px !important; 
    overflow: hidden; /* DĂ´leĹľitĂ© pre obtekanie */
}

/* ObrĂˇzok vpravo - text ho obtekĂˇ zÄľava */
.popup-float-image {
    float: right;
    width: 40%;
    margin-left: 15px;
    margin-bottom: 10px;
}

.popup-float-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* TextovĂ˝ obsah - automaticky obtekĂˇ float obrĂˇzok */
.popup-text-content {
    display: block;
    overflow: visible;
}

/* ZabezpeÄŤĂ­, Ĺľe po odteÄŤenĂ­ text pokraÄŤuje pod obrĂˇzkom */
.popup-text-content:after {
    content: "";
    display: table;
    clear: both;
}

/* Avatar text a description - obtekajĂş obrĂˇzok */
.popup-avatar-text-container,
.popup-child-description {
    display: block;
    overflow: visible;
}

/* ÄŚistĂ˝ clearing na konci */
.clear-both {
    clear: both;
    display: table;
    width: 100%;
}



/* ==========================================================================
   STREETVIEW A AVATAR - JEDNOTNĂ‰ ROZMERY (BEZ OKRAJOV)
   ========================================================================== */

/* OdstrĂˇnenie paddingu pre avatar a streetview */
.popup-child-body:has(.popup-avatar-video-container),
.popup-child-body:has(.popup-streetview-container) {
    padding: 0 !important;
    margin: 0 !important;
}

.popup-avatar-video-container,
.popup-streetview-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    background: transparent;
    display: block;
}

/* Video vypÄşĹa celĂş ĹˇĂ­rku kontajnera */
.popup-avatar-video {
    width: 100% !important;
    height: auto !important;
    min-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
}

.popup-streetview-iframe {
    width: 100% !important;
    height: 250px;
    border: none;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

/* Avatar text */
.popup-avatar-text-container {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.popup-avatar-text-label {
    font-weight: bold;
}

.popup-avatar-text {
    margin: 5px 0 0 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Popup footer ikony */
.popup-footer-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    filter: brightness(0) invert(1);
    margin: 0;
}


.popup-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    line-height: 0;
    text-decoration: none;
}
.popup-footer-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.popup-footer-icon.active {
    transform: scale(1.15);
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.popup-no-content {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* ==========================================================================
   AVATAR VIDEO DRAGGABLE
   ========================================================================== */

#avatar.draggable {
    position: fixed;
    width: 50%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    cursor: grab;
    z-index: 5000;
}

#avatar.draggable:active {
    cursor: grabbing;
}

#avatar.draggable video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



 


/* ==========================================================================
   RESPONZĂŤVNE Ĺ TĂťLY
   ========================================================================== */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    .leaflet-popup {
        width: 450px !important;
        max-width: 450px !important;
    }
    
    .popup-streetview-iframe {
        height: 200px !important;
    }
    
    .popup-avatar-video {
        width: 100% !important;
        height: auto !important;
    }
}

/* Mobil (max 768px) */
@media (max-width: 768px) {
    /* ===== POPUP Ĺ ĂŤRKA - NEMENIĹ¤ POZĂŤCIU ===== */
    .leaflet-popup {
        width: 280px !important;
        max-width: 280px !important;
        box-shadow: none !important;
        margin-bottom: 20px !important;
    }
    
    .leaflet-popup-content-wrapper {
        width: 280px !important;
        max-width: 280px !important;
        min-width: 280px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background-color: white !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
		
		
    }
    
    .leaflet-popup-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;		
		
    }
	

    
    /* ===== KRĂŤĹ˝IK NA ZATVORENIE ===== */
    .leaflet-popup-close-button {
        display: block !important;
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 20px !important;
        font-weight: bold !important;
        line-height: 20px !important;
        text-align: center !important;
        color: #666 !important;
        background: rgba(255,255,255,0.9) !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        z-index: 1000 !important;
    }
    
    .leaflet-popup-close-button:hover {
        color: #000 !important;
        background: #f0f0f0 !important;
    }
    
    /* ===== OBSAH POPUPU ===== */
    .popup-child-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    .popup-child-body {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px !important;
        max-height: 40vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    .popup-child-header {
        padding: 10px !important;
    }
    
    .popup-child-title {
        font-size: 14px !important;
        font-weight: bold !important;
    }
    
    .popup-child-address {
        font-size: 11px !important;
    }
    
    .popup-child-footer {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 8px !important;
    }
	




    

    
    /* ===== STREETVIEW ===== */
    .popup-streetview-iframe {
        height: 180px !important;
        width: 100% !important;
    }
    
    /* ===== VIDEO ===== */
    .popup-avatar-video {
        width: 100% !important;
        height: auto !important;
    }
    
    .popup-avatar-video-container {
        width: 100% !important;
    }
    
    /* ===== TEXT OBSAH ===== */
    .popup-avatar-text {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
    
    .popup-avatar-text-label {
        font-size: 11px !important;
    }
    
    .popup-child-description {
        font-size: 12px !important;
        line-height: 1.4 !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .popup-text-content,
    .popup-avatar-text,
    .popup-body {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
    }
    
    /* ===== OBRĂZKY ===== */
    .popup-item-image {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
        margin: 8px 0 !important;
    }
}

/* MalĂ˝ mobil (max 480px) */
@media (max-width: 480px) {
    .popup-streetview-iframe {
        height: 150px !important;
    }
    
    .popup-avatar-video {
        width: 100% !important;
        height: auto !important;
    }
}

/* Portrait reĹľim na mobile */
@media (max-width: 768px) and (orientation: portrait) {
    .layout {
        flex-direction: column;
        height: 100vh;
        flex-wrap: nowrap;
    }
    
    main.obsah {
        order: 1;
        width: 100% !important;
        height: calc(100vh - var(--legenda-height, 300px)) !important;
        flex: 1;
        min-height: 0;
        flex-shrink: 0;
    }
    
    aside.legenda {
        order: 2;
        width: 100% !important;
        height: auto !important;
        max-height: 50vh !important;
        overflow-y: auto;
        position: relative;
        flex-shrink: 0;
        border-top: 3px solid #ffffff;
    }
    
    .legenda-content {
        max-height: calc(50vh - 10px);
        overflow-y: auto;
    }
    
    #avatar.draggable {
        width: 250px;
        height: 130px;
        transform: translate(-50%, -30%);
    }
    
    #intro-overlay {
        overflow-y: auto;
    }
    
    .overlay-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px;
        min-height: 100%;
        gap: 15px;
    }
    
    .overlay-content h1 {
        font-size: 1.8rem;
        margin: 0;
        margin-top: 5vh;
        text-align: center;
        padding: 0 15px;
        line-height: 1.2;
    }
    
    .prototype-version {
        font-size: 0.9rem;
        margin: 0;
        text-align: center;
    }
    
    .avatar-intro {
        margin: 10px auto;
        width: 90vw;
        max-width: 90vw;
    }
    
    .avatar-intro video {
        width: 100%;
        height: auto;
        max-height: 35vh;
    }
    
    #enter-btn {
        padding: 10px 30px;
        font-size: 1.2rem;
        margin-top: 5px;
        margin-bottom: 20px;
    }
    
    .popup-streetview-iframe {
        height: 160px !important;
    }
    
    .popup-avatar-video {
        width: 100% !important;
        height: auto !important;
    }
}

/* Landscape reĹľim na mobile */
@media (max-width: 1024px) and (orientation: landscape) {
    .layout {
        flex-direction: row !important;
        height: 100vh;
    }
    
    main.obsah {
        order: 1 !important;
        width: calc(100% - 320px) !important;
        height: 100vh !important;
        flex: 1;
        min-height: 0;
    }
    
    aside.legenda {
        order: 2 !important;
        width: 320px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto;
        border-top: none !important;
        border-left: 3px solid #ffffff;
    }
    
    .leaflet-popup {
        width: 380px !important;
        max-width: 380px !important;
    }
    
    .leaflet-popup-content {
        width: 380px !important;
        max-width: 380px !important;
    }
    
    .popup-child-body {
        max-height: 200px !important;
        overflow-y: auto !important;
    }
    
    .popup-child-description {
        font-size: 12px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .popup-avatar-text {
        font-size: 11px;
    }
    
    .popup-child-title {
        font-size: 14px;
    }
    
    .popup-child-address {
        font-size: 10px;
    }
    

    
    .popup-streetview-iframe {
        height: 140px !important;
    }
    
    .popup-avatar-video {
        width: 100% !important;
        height: auto !important;
    }
    
    /* ĂšvodnĂˇ obrazovka v landscape */
    #intro-overlay {
        overflow: hidden;
    }
    
    .overlay-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 20px 40px;
        height: 100%;
        gap: 30px;
    }
    
    .overlay-content h1 {
        font-size: 1.6rem;
        margin: 0;
        text-align: center;
        grid-column: 1;
        grid-row: 1;
        align-self: end;
        justify-self: center;
        width: 100%;
    }
    
    .prototype-version {
        margin: 0;
        text-align: center;
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        justify-self: center;
    }
    
    #enter-btn {
        margin: 0;
        padding: 12px 30px;
        font-size: 1.2rem;
        grid-column: 1;
        grid-row: 3;
        align-self: start;
        justify-self: center;
    }
    
    .avatar-intro {
        margin: 0;
        width: 100%;
        max-width: 100%;
        grid-column: 2;
        grid-row: 1 / span 3;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .avatar-intro video {
        max-height: 70vh;
        width: auto;
        max-width: 100%;
    }
}

/* Desktop (min 1025px) */
@media (min-width: 1025px) {
    #avatar.draggable {
        width: 310px;
        height: 160px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        bottom: auto;
        right: auto;
    }
    
    #avatar.draggable:active {
        cursor: grabbing;
    }
    
    #avatar.draggable video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ==========================================================================
   DODATOÄŚNĂ‰ Ĺ TĂťLY (PĂ”VODNĂ‰ POPUPY)
   ========================================================================== */

.shelter-image-popup .leaflet-popup-content-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.shelter-image-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

.shelter-image-popup .leaflet-popup-tip {
    display: none !important;
}

.shelter-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.popup-container {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: Arial, sans-serif;
    background: white;
    box-sizing: border-box;
}

.popup-header {
    margin: 0;
    padding: 8px 12px 4px;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    background-color: var(--popup-header-bg) !important;
    color: white;
}

.popup-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 2px;
    color: white;
    line-height: 1.1;
}

.popup-address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    line-height: 1.1;
}

.popup-body {
    margin: 0;
    padding: 8px 10px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    max-height: 400px;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background-color: var(--popup-header-bg) !important;
    color: white;
}

.footer-icon {
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    filter: brightness(0) invert(1);
}

.footer-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* StabilizĂˇcia markerov poÄŤas animĂˇcie mapy */
.leaflet-marker-icon {
    transition: none !important;
    will-change: auto;
}

/* ZabrĂˇnenie "plĂˇvaniu" markerov */
.leaflet-marker-pane {
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
}

/* ==========================================================================
   STREETVIEW V HLAVNOM OKNE
   ========================================================================== */

.streetview-main-panel {
    position: absolute;
    inset: 0;
    z-index: 1500;
    display: none;
    flex-direction: column;
    background: #111827;
}

.streetview-main-panel.visible {
    display: flex;
}

.streetview-toolbar {
    height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.95);
    box-sizing: border-box;
}

.streetview-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
}

.streetview-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.streetview-close:hover,
.streetview-close:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

.streetview-frame {
    flex: 1;
    width: 100%;
    border: 0;
    display: block;
}

.streetview-message {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1600;
    max-width: min(520px, calc(100% - 32px));
    padding: 18px 22px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.94);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    display: none;
}

.streetview-message.visible {
    display: block;
}

@media (max-width: 768px) {
    .streetview-toolbar {
        height: 42px;
    }

    .streetview-title {
        font-size: 14px;
    }

    .streetview-message {
        font-size: 15px;
    }
}


/* ==========================================================================
   INFO OKNO PRE ITEM PRI STREETVIEW
   ========================================================================== */

.item-info-window {
    position: absolute;
    left: 50%;
    top: 50px;
    transform: translateX(-50%);
    z-index: 1700;
    width: min(500px, calc(100% - 48px));
    max-height: calc(100% - 100px);
    display: none;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.item-info-window.visible {
    display: block;
}

.item-info-header {
    min-height: 37px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    padding: 12px 44px 12px 15px;
    color: #ffffff;
    border-radius: 8px 8px 0 0;
    position: relative;
    box-sizing: border-box;
}

.item-info-title {
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 5px;
}

.item-info-address {
    font-size: 12px;
    line-height: 1.3;
}

.item-info-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: transparent;
    font-size: 24px;
    font-weight: bold;
    line-height: 24px;
    cursor: pointer;
}

.item-info-close:hover,
.item-info-close:focus {
    background: rgba(0, 0, 0, 0.25);
    outline: none;
}

.item-info-body {
    padding: 12px 15px;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    box-sizing: border-box;
}

.item-info-body .popup-child-description {
    margin: 0;
}

@media (max-width: 768px) {
    .item-info-window {
        left: 50%;
        right: auto;
        top: 50px;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-height: 45vh;
    }

    .item-info-title {
        font-size: 14px;
    }

    .item-info-address {
        font-size: 11px;
    }

    .item-info-body {
        max-height: calc(45vh - 72px);
        padding: 10px;
    }
}


.item-info-window.dragging {
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
}

.item-info-window.dragging .item-info-header {
    cursor: grabbing;
}

/* Zarovnanie textu v popup a info oknach */
.popup-child-description,
.popup-avatar-text,
.popup-text-content,
.popup-body,
.item-info-body {
    text-align: justify;
}


/* ProCare facility details */
.popup-meta {
    clear: both;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    line-height: 1.45;
    color: #263238;
}

.popup-meta-row + .popup-meta-row {
    margin-top: 3px;
}

/* Region filter */
.kraj-filter-panel {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.kraj-filter-label {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.kraj-filter-select {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: #ffffff;
    color: #1d2b2b;
    font-size: 14px;
}

.kategoria-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kategoria-checkbox-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--panel-border-strong);
    border-radius: 18px;
    background: #ffffff;
    color: var(--brand-blue-dark);
    font-size: 13px;
    cursor: pointer;
}

.kategoria-checkbox-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary-green);
}


/* Right panel width normalization */
aside.legenda,
.legenda-content,
.all-themes-button-container,
.kraj-filter-panel,
.lvl1,
.lvl2,
.lvl3,
.faq-dropdown,
.faq-toggle,
.faq-option {
    box-sizing: border-box;
}

.all-themes-button-container,
.kraj-filter-panel,
.lvl1,
.lvl2,
.lvl3,
.faq-dropdown {
    width: 100%;
    max-width: 100%;
}

.legenda-content {
    padding: 0 5px 10px;
}

.all-themes-button-container {
    padding: 10px 5px;
}

.kraj-filter-panel {
    padding: 10px 5px;
}

.lvl1 {
    margin-top: 0;
}

/* ==========================================================================
   PROCARE BRAND COMPOSITION
   ========================================================================== */

body {
    background: var(--bg-obsah);
    color: var(--text);
    font-weight: 400;
    letter-spacing: 0;
}

main.obsah {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-obsah) 100%);
}

aside.legenda {
    background: var(--bg-legenda);
    border-left: 1px solid var(--panel-border);
    box-shadow: -8px 0 26px rgba(2, 71, 129, 0.07);
}

.legenda-content {
    padding: 0 8px 12px;
}

.resize-handle {
    width: 3px;
    background: var(--panel-border);
}

.all-themes-button-container,
.kraj-filter-panel {
    padding: 10px 8px;
    border-bottom: 1px solid var(--panel-border);
    background: transparent;
}

.toggle-themes-btn,
.faq-toggle {
    min-height: 44px;
    border-radius: 24px;
    background: var(--primary-green);
    color: #ffffff;
    font-family: Gotham, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(11, 161, 59, 0.22);
}

.toggle-themes-btn:hover,
.toggle-themes-btn:focus,
.faq-toggle:hover,
.faq-toggle:focus {
    background: var(--primary-green-dark);
    box-shadow: 0 10px 22px rgba(11, 161, 59, 0.28);
    outline: none;
}

.lvl1,
.lvl2,
.lvl3,
.faq-option,
.faq-answer {
    font-family: Gotham, Arial, sans-serif;
    color: var(--brand-blue);
    background: #ffffff;
    border-color: var(--panel-border);
    box-shadow: none;
}

.lvl1 {
    margin: 8px 0 0;
    padding: 13px 15px;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--brand-blue-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: var(--shadow-panel);
}

.lvl2 {
    padding: 10px 13px 10px 22px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.28;
    border-bottom: 1px solid var(--panel-border);
}

.lvl3 {
    padding: 8px 13px 8px 42px;
    color: rgba(3, 63, 117, 0.66);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.28;
    border-bottom: 1px solid rgba(217, 226, 234, 0.72);
}

.lvl1:hover,
.lvl1:focus,
.lvl2:hover,
.lvl2:focus,
.lvl3:hover,
.lvl3:focus {
    background: var(--brand-green-pale);
    color: var(--brand-blue-dark);
    outline: none;
}

.lvl1.legend-selected,
.lvl2.legend-selected,
.lvl3.legend-selected {
    position: relative;
    background: var(--brand-green-soft);
    color: var(--brand-blue-deep);
    font-weight: 700;
    box-shadow: inset 4px 0 0 var(--primary-green), 0 8px 18px rgba(2, 71, 129, 0.08);
}

.lvl2.legend-selected,
.lvl3.legend-selected {
    border-bottom-color: rgba(11, 161, 59, 0.28);
}

.faq-options {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-panel);
}

.faq-option {
    color: var(--brand-blue-dark);
}

.faq-option:hover,
.faq-option:focus {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-deep);
}

.faq-answer {
    color: var(--brand-blue-dark);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-panel);
}

.faq-answer-text a {
    color: var(--primary-green);
}

.kraj-filter-label {
    color: var(--brand-blue-dark);
    font-size: 13px;
    font-weight: 700;
}

.kraj-filter-select {
    min-height: 42px;
    border: 1px solid var(--panel-border-strong);
    border-radius: 22px;
    color: var(--brand-blue-dark);
    background: #ffffff;
    font-family: Gotham, Arial, sans-serif;
    box-shadow: 0 5px 16px rgba(2, 71, 129, 0.06);
}

#logo-container {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(2, 71, 129, 0.11);
}

#logo-container:hover {
    background: #ffffff;
}

.flag {
    border-radius: 50%;
    box-shadow: 0 5px 16px rgba(2, 71, 129, 0.16);
}

.leaflet-popup-content-wrapper,
.item-info-window {
    border: 1px solid var(--panel-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 16px 38px rgba(2, 71, 129, 0.18) !important;
}

.popup-header,
.popup-footer {
    background: var(--brand-blue) !important;
    color: #ffffff;
}

.popup-child-header,
.popup-child-footer,
.item-info-header {
    color: #ffffff;
}

.popup-child-header,
.item-info-header {
    border-radius: 8px 8px 0 0;
}

.popup-child-footer {
    border-radius: 0 0 8px 8px;
}

.popup-child-title,
.popup-title,
.item-info-title {
    font-family: Gotham, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
}

.popup-child-address,
.popup-address,
.item-info-address {
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 400;
}

.popup-child-body,
.popup-body,
.item-info-body {
    color: var(--brand-blue-dark);
    background: #ffffff;
    font-family: Gotham, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.48;
}

.popup-avatar-text-container {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
}

.popup-meta {
    color: var(--text-muted);
    border-top: 1px solid var(--panel-border);
}

.leaflet-popup-close-button,
.item-info-close,
.streetview-close {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
}

.leaflet-popup-close-button:hover,
.item-info-close:hover,
.streetview-close:hover,
.leaflet-popup-close-button:focus,
.item-info-close:focus,
.streetview-close:focus {
    background: rgba(255, 255, 255, 0.28) !important;
}

.streetview-main-panel {
    background: var(--brand-blue-deep);
}

.streetview-toolbar,
.streetview-message {
    background: rgba(3, 63, 117, 0.96);
}

#intro-overlay {
    background: #ffffff;
}

.overlay-film {
    background: rgba(242, 245, 248, 0.52);
}

.overlay-content h1,
.prototype-version {
    color: var(--brand-blue);
    text-shadow: none;
}

#enter-btn {
    border: 0;
    border-radius: 28px;
    background: var(--primary-green);
    color: #ffffff;
    font-family: Gotham, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(11, 161, 59, 0.24);
}

#enter-btn:hover,
#enter-btn:focus {
    background: var(--primary-green-dark);
    color: #ffffff;
    outline: none;
}

@media (max-width: 768px) and (orientation: portrait) {
    aside.legenda {
        border-top: 1px solid var(--panel-border);
        border-left: 0;
        box-shadow: 0 -8px 24px rgba(2, 71, 129, 0.08);
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    aside.legenda {
        border-left: 1px solid var(--panel-border) !important;
    }
}


