/* Map Page Styles */
body {
    background: #b1bffa;
    height: 100vh;
    padding: 0;
    margin: 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.main-container {
    width: 1860px;
    max-width: 97.5%;
    height: 950px;
    max-height: 88vh;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 40px;
    /*box-shadow: 0 6px 25px rgba(0,0,0,0.3);*/
    border: 3px solid #000;
}

.filter-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 550px;
    height: 70px;
    background: white;
    border-bottom: 2px solid #000;
    padding: 15px 30px 10px 30px;  /* Changed: top right bottom left */
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Filter label - matches sidebar headers */
.filter-label {
    font-family: 'Work Sans', sans-serif;
    font-weight: 800;
    font-size: 18px;  /* Same as sidebar h2 */
    text-transform: lowercase;
    line-height: 1.3;  /* Same as sidebar h2 */
    color: #000;
    white-space: nowrap;
}



.filter-header h3 {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.static-map-container {
    position: absolute;
    top: 70px;  /* Updated to match filter height */
    left: 0;
    right: 550px; /* Changed from 450px - gives sidebar more width */
    bottom: 0;
    background: #D7D7D6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px; /* Reduced from 10px - less grey space */
}

/* Make sidebar sections fill space to push last section to bottom */
#sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 550px;
    bottom: 0;
    background: white;
    padding: 20px 30px;
    overflow-y: auto;
    border-left: 2px solid #000;
    display: flex;
    flex-direction: column;
}

/* Only the instructions section grows to fill available space */
.sidebar-section.instructions {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sidebar-section.instructions .sidebar-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

.sidebar-section.instructions.expanded .sidebar-text {
    flex: unset;
    overflow-y: visible;
    min-height: unset;
}

.sidebar-section.instructions.expanded {
    flex: unset;
    min-height: unset;
}

/* All other sections and dividers are fixed height — never grow */
.sidebar-section {
    flex-shrink: 0;
}

.sidebar-divider {
    flex-shrink: 0;
}
/* Map respects container while maintaining aspect ratio */
.static-map {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.markers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Slider styles */


/* Year badges - smaller and compact */
.year-badge {
    background: #6E1626;
    color: white;
    padding: 5px 14px;
    border-radius: 14px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    min-width: 48px;
    text-align: center;
}

.slider-container {
    flex: 1;
    max-width: 800px;  
    margin: 0 auto;
    margin-top: 25px;
}

.noUi-target {
    background: #f0f0f0;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    height: 10px;  /* Thicker - was 8px */
    margin-top: 4px;
}

.noUi-connect {
    background: linear-gradient(135deg, #6E1626, #5A1220);
    border-radius: 8px;
}

.noUi-handle {
    width: 18px !important;  /* Smaller - was 22px */
    height: 18px !important;  /* Smaller - was 22px */
    border: 2px solid #6E1626 !important;  /* Thinner - was 3px */
    border-radius: 50% !important;
    background: white !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    top: -5px !important;  /* Adjusted for smaller size */
    right: -9px !important;  /* Adjusted for smaller size */
}

/* Remove the white lines inside handles */
.noUi-handle::before,
.noUi-handle::after {
    display: none !important;
}

/* Ensure horizontal handles stay circular */
.noUi-horizontal .noUi-handle {
    width: 18px !important;
    height: 18px !important;
}

.noUi-tooltip {
    font-size: 15px;
    padding: 2px 12px;  /* Thinner - reduced from 4px to 3px */
    bottom: 130%;
    background: #6E1626;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    font-family: 'Work Sans', sans-serif;
    min-width: 52px;
}


/* Map Markers - Base Styles */
.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
    transition: all 0.3s ease;
    width: 16px;
    height: 16px;
}

.map-marker:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.map-marker .marker-aura {
    position: absolute;
    width: 24px;
    height: 24px;
    top: -4px;
    left: -4px;
    background: rgba(110, 22, 38, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.map-marker .marker-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #6E1626;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Active markers - white until clicked (have exhibitions in time range) */
.map-marker.marker-active .marker-center {
    background: white;
    border: 2px solid #6E1626;
}

.map-marker.marker-active .marker-aura {
    background: rgba(110, 22, 38, 0.2);
}

.map-marker.marker-active {
    cursor: pointer;
    opacity: 1;
}

/* Clicked/selected state - burgundy */
.map-marker.marker-selected .marker-center {
    background: #6E1626;
    border: 2px solid #6E1626;
}

.map-marker.marker-selected .marker-aura {
    background: rgba(110, 22, 38, 0.3);
}

/* Inactive markers - smaller and white (no exhibitions in time range) */
.map-marker.marker-inactive {
    width: 10px;
    height: 10px;
}

.map-marker.marker-inactive .marker-center {
    background: white;
    border: 2px solid #6E1626;
    width: 12px;
    height: 12px;
}

.map-marker.marker-inactive .marker-aura {
    display: none; /* Hide aura completely for inactive markers */
}

.map-marker.marker-inactive {
    cursor: default;
    opacity: 0.6;
}

.map-marker.marker-inactive:hover {
    opacity: 0.8;
    transform: translate(-50%, -50%);
}
/* Sidebar sections */
.sidebar-section {
    margin-bottom: 0px;
}

.sidebar-section h2 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.3;
    margin-top: 0 !important;  /* No extra space above heading */
    margin-bottom: 15px !important;  /* Space below heading */
    color: #000;
}

.sidebar-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.sidebar-text p {
    margin-bottom: 10px;
}

/* Reduce spacing for heading paragraphs (those with only bold text) */
.sidebar-text > p:first-of-type,
.expandable-content > p {
    margin-bottom: 10px;
}

/* Keep same spacing for first heading (Navigacija) */
.sidebar-text > p:first-of-type {
    margin-bottom: 10px;
}

/* Remove browser default top margin from lists that follow paragraphs */
.sidebar-text p + ul {
    margin-top: 0 !important;
}

/* Also reset all ul margins in sidebar-text for consistency */
.sidebar-text ul {
    margin-top: 0 !important;
    margin-bottom: 15px;
}

/* Add space above paragraph headings in expandable content (not the first one) */
.expandable-content > p:not(:first-of-type) {
    margin-top: 35px !important;
}

.expandable-content {
    margin-top: 35px;
}

.expand-link {
    color: #b1bffa;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-top: 15px !important;  /* Space above + več */
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

hr.sidebar-divider,
#sidebar > hr.sidebar-divider {
    border: none;
    border-top: 1px solid #000;
    margin: 15px 0 15px 0 !important;  /* 15px above and below divider */
    padding: 0 !important;
}
/* Alphabetical list */
.alphabetical-list {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

.alphabetical-list a {
    color: #000;
    text-decoration: none;
    display: block;
}

.alphabetical-list a:hover {
    color: #6E1626;
    text-decoration: underline;
}

/* Location sections - for city headers */
.location-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 20px;
}

.location-section h3 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 800;
    font-size: 18px;
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 15px;
    color: #000 !important;  /* Black instead of burgundy */
}

/* Exhibition paragraphs - dynamically added from JavaScript */
.exhibition-paragraph {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 15px;
    padding: 10px;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

/* Highlighted paragraphs (those matching the time filter) */
.exhibition-paragraph.highlighted {
    background-color: #b1bffa;
}

@media (max-width: 768px) {
    .main-container {
        display: none;
    }
    
    body::after {
        content: "Interaktivni zemljevid je na voljo samo na namiznih napravah.";
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 40px;
        font-family: 'Work Sans', sans-serif;
        font-size: 18px;
        color: white;
    }
}

/* Hide scroll indicator on map page */
.scroll-indicator {
    display: none !important;
}

/* Sidebar lists */
.sidebar-text ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: none;
}

.sidebar-text li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.sidebar-text li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000 !important;  /* Changed from #6E1626 to black */
    font-weight: bold;
}

.sidebar-text strong {
    font-weight: 700;
}
/* ============================================
   FORMATTED CITY CONTENT STYLES
   ============================================ */

/* City content container */
.city-content {
    margin-top: 20px;
}

.city-content h2 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #6E1626;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Main text content */
.city-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    line-height: 1.8;
    color: #000;
}

.city-text p {
    margin-bottom: 15px;
}

.city-text strong {
    font-weight: 600;
}

.city-text em {
    font-style: italic;
}

/* Superscript reference numbers */
.city-text sup,
.reference sup {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
    color: #6E1626;
    font-weight: 600;
}

/* Links to biographical info */
.city-text a {
    color: #6E1626;
    text-decoration: none;
    border-bottom: 1px solid rgba(110, 22, 38, 0.3);
    transition: all 0.3s ease;
}

.city-text a:hover {
    color: #8B1D32;
    border-bottom-color: #8B1D32;
}

/* References/footnotes section */
.references {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.reference {
    font-family: 'Libre Baskerville', serif;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
    text-indent: -1em;
    padding-left: 1em;
}

.reference em {
    font-style: italic;
}

/* Highlight functionality for time-filtered content */
.city-text p.highlight {
    background-color: #b1bffa;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
/* ============================================
   EXPANDABLE SECTIONS (Fototeka, Literatura)
   ============================================ */

.expandable-section {
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.expandable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    transition: background-color 0.3s ease;
}

.expandable-header:hover {
    /* No background */
}

.expandable-header h4 {
    color: #000;  /* was #6E1626 */
}

.expand-icon {
    font-size: 20px;
    color: #000;
    font-weight: 400;
    line-height: 1;
    margin-right: 8px;  /* Space between + and fototeka */
}

.expandable-content {
    padding: 0px 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* ============================================
   PHOTO GRID
   ============================================ */

.photo-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 15px -20px 0 -20px;  /* Extends left and right */
}

.photo-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

/*.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}*/

.photo-item img {
    width: 100%;
    height: auto;
    object-fit: cover;      /* Fills width, may crop top/bottom */
    display: block;
    max-height: 500px;      /* Increased from 400px */
}

.photo-caption {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #000;
    padding: 8px 0;
    margin: 0;
    text-align: left;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    font-family: 'Work Sans', sans-serif;  /* Changed from Libre Baskerville */
    font-size: 14px;
    font-weight: 400;  /* Added to ensure it's not bold */
    line-height: 1.6;
    color: #fff;
    padding: 0 20px 20px 20px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.lightbox-counter {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/* Lightbox buttons */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #6E1626;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(110, 22, 38, 0.8);
    border-color: #6E1626;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* ============================================
   LITERATURA SECTION
   ============================================ */

.literature-content {
    font-family: 'Libre Baskerville', serif;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.literature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.literature-list li {
    margin-bottom: 12px;
    padding-left: 1.5em;
    text-indent: -1.5em;
}

.literature-list li em {
    font-style: italic;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .photo-item img {
        height: 120px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

/* Scroll indicators for sidebar */
.sidebar-scroll-indicator {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 40px;
    z-index: 100;
    transition: opacity 0.3s ease;
    pointer-events: none;
    opacity: 0;
}

.sidebar-scroll-indicator-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
}

.sidebar-scroll-indicator-bottom {
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* Show indicators when active */
.sidebar-scroll-indicator.show {
    opacity: 1;
}

/* Make sure sidebar is positioned for absolute children */
.map-sidebar {
    position: relative;
}

/* Make all location text pure black */
.city-content,
.city-content p,
.city-content a,
.city-content strong,
.city-content em,
.city-content sup,
.city-text,
.city-text p,
.city-text a,
.city-text strong,
.city-text em,
.city-text sup {
    color: #000 !important;
}

/* Remove link underlines and hover effects */
.city-content a,
.city-text a {
    text-decoration: none !important;
    color: #000 !important;
}

.city-content a:hover,
.city-text a:hover {
    color: #000 !important;
    text-decoration: none !important;
}

/* Make references black too */
.references,
.references p,
.references a,
.references em,
.references sup {
    color: #000 !important;
}

.references a {
    text-decoration: none !important;
}

.references a:hover {
    color: #000 !important;
    text-decoration: none !important;
}

/* Make location heading black */
.location-section h3,
#dynamic-exhibitions-container h3 {
    color: #000 !important;
}

/* Black underlines for links - single line only */
.city-content a,
.city-text a,
.references a {
    color: #000 !important;
    text-decoration: underline !important;
    text-decoration-color: #000 !important;
    text-decoration-thickness: 1px !important;  /* Single thin line */
    text-underline-offset: 2px !important;  /* Space from text */
    border-bottom: none !important;  /* Remove any border underlines */
}

.city-content a:hover,
.city-text a:hover,
.references a:hover {
    color: #000 !important;
    text-decoration: underline !important;
    text-decoration-color: #000 !important;
    text-decoration-thickness: 1px !important;
    border-bottom: none !important;
}

/* Remove borders/lines between sections */
.city-content {
    border: none !important;
}

.references {
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 20px;
    padding-bottom: 0;
}

.expandable-section {
    border-top: none !important;
    margin-top: 20px;
}

/* Remove any hr styling that might create lines */
.city-text + * {
    border-top: none !important;
}

/* At 1560px and below, make adjustments */
@media (max-width: 1560px) {
    .slider-container {
        max-width: 650px !important;
    }
    
    .noUi-tooltip {
        bottom: 160% !important;  /* Move tooltips higher */
    }
}

@media (max-width: 1400px) {
    .slider-container {
        max-width: 550px !important;
    }
    
    .noUi-tooltip {
        bottom: 170% !important;  /* Even higher */
    }
}

@media (max-width: 1300px) {
    .slider-container {
        max-width: 400px !important;
    }
    
    .noUi-tooltip {
        bottom: 170% !important;
    }
}

@media (max-width: 1200px) {
    .slider-container {
        max-width: 350px !important;
    }

    .noUi-tooltip {
        bottom: 170% !important;
    }
}

/* Force Work Sans font on all location content */
#dynamic-exhibitions-container,
#dynamic-exhibitions-container *,
.city-content,
.city-content *,
.city-text,
.city-text *,
.location-section,
.location-section *,
.references,
.references * {
    font-family: 'Work Sans', sans-serif !important;
}

/* Keep italic titles in italic Work Sans */
.city-content em,
.city-text em,
.references em {
    font-family: 'Work Sans', sans-serif !important;
    font-style: italic !important;
}

/* Maintain proper sizing */
.city-content p,
.city-text p {
    font-size: 14px;
    line-height: 1.6;
}

.references p {
    font-size: 14px;
    line-height: 1.6;
}

/* City content paragraphs */
.city-content p,
.city-text p {
    margin-bottom: 15px !important;
}

.city-content p:last-child,
.city-text p:last-child {
    margin-bottom: 0 !important;  /* No margin after last paragraph */
}

/* Space before references section */
.references {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

.references p {
    margin-bottom: 10px !important;  /* Smaller gap between references */
}

.references p:last-child {
    margin-bottom: 0 !important;
}

/* Space before expandable sections (fototeka, literatura) */
.expandable-section {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.expandable-header {
    margin: 0 !important;
    padding: 0 !important;
}

.expandable-header h4 {
    margin: 0 !important;
    padding: 0 !important;
}

.expandable-content {
    margin-top: 15px !important;
}

/* Space between photo gallery and literatura */
.photo-gallery + .expandable-section {
    margin-top: 15px !important;
}

.expandable-section + .expandable-section {
    margin-top: 15px !important;
}

sup {
    font-weight: normal !important;
}

.city-content sup,
.city-text sup,
.references sup {
    font-weight: normal !important;
}

/* Also ensure references themselves aren't bold */
.references p {
    font-weight: normal !important;
}

/* Force literatura alignment */
.literatura-list,
.literature-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.literatura-list li,
.literature-list li {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 10px !important;
    padding: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
    list-style-position: outside !important;
}

/* Also reset the expandable content container */
.expandable-content {
    padding: 0 !important;
    margin-top: 15px !important;
}

.references,
.references p,
.reference {
    font-family: 'Work Sans', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    color: #000 !important;
}

/* Photo captions styled like sidebar note */
.photo-caption {
    font-family: 'Work Sans', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    color: #000 !important;
    padding: 8px 0 !important;
    margin: 0 !important;
}

/* Force italic text in lightbox captions */
.lightbox-content .photo-caption em,
.lightbox-caption em,
p.photo-caption em {
    font-style: italic !important;
    font-family: 'Work Sans', sans-serif !important;
}

.sidebar-section h2 a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s;
}
/* Map Title and Authors Section */
.map-header {
    padding-bottom: 0 !important;
}

.map-title {
    font-family: 'Work Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    color: #000 !important;
    margin: 0 0 10px 0 !important;
    text-align: left !important;
}

.map-authors {
    font-family: 'Work Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #000 !important;
    margin: 0 !important;
    text-align: left !important;
}

/* Fix bullet points and links in map sidebar instructions */

/* Make bullet points black instead of burgundy */
.sidebar-text ul li {
    color: #000 !important;
}

.sidebar-text ul li::marker {
    color: #000 !important;
}

/* Also target the list itself */
.sidebar-text ul {
    color: #000 !important;
}

/* Make links black with underline */
.sidebar-text a,
.sidebar-text a:link,
.sidebar-text a:visited {
    color: #000 !important;
    text-decoration: underline;
}

/* Exception: Keep expand-link blue */
.sidebar-text a.expand-link,
.sidebar-text a.expand-link:link,
.sidebar-text a.expand-link:visited {
    color: #b1bffa !important;
    text-decoration: none !important;
}

/* Links on hover - keep black, remove underline */
.sidebar-text a:hover {
    color: #000 !important;
    text-decoration: none;
}

/* Expand-link hover */
.sidebar-text a.expand-link:hover {
    color: #b1bffa !important;
    text-decoration: none !important;
}/* Add to map-style.css - Add consistent spacing after instruction heading */

/* Add space between h2 and first paragraph in sidebar instructions */
.sidebar-section h2 + .sidebar-text p:first-child {
    margin-top: 1em;
}

/* Or more specifically for the navodila section */
.sidebar-section .sidebar-text > p:first-of-type {
    margin-top: 1em;
}

/* Add consistent spacing for headings inside expandable content */
.expandable-content > p {
    margin-top: 1em !important;
}
/* Add numbering to instruction headings */
.sidebar-text {
    counter-reset: instruction-counter;
}

.sidebar-text > p:first-of-type strong::before,
.expandable-content > p strong::before {
    counter-increment: instruction-counter;
    content: counter(instruction-counter) ". ";
}
@media (max-height: 775px) {
    #sidebar {
        overflow-y: auto;
        min-height: 0;
    }

    .sidebar-section.instructions {
        flex: none;
        overflow-y: visible;
        min-height: auto;
    }

    .sidebar-section.instructions .sidebar-text {
        flex: none;
        overflow-y: visible;
        min-height: auto;
    }
}

/* Hide scrollbar on instructions when not needed */
.sidebar-section.instructions .sidebar-text {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.sidebar-section.instructions .sidebar-text::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.map-title {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}