/* ===== BASE STYLES ===== */
body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    position: relative;
}

#map {
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}


/* ===== REPLACE your existing zoom controls CSS with this ===== */

#custom-zoom-controls {
    position: absolute;
    bottom: 26px;
    left: 6px;
    z-index: 999;
    padding: 0; /* Remove padding from container */
    background: white; /* Add white background */
    border: 1px solid #ccc; /* Add border like other containers */
    border-radius: 5px; /* Add rounded corners */
    box-shadow: 0 2px 6px rgba(0,0,0,.3); /* Add shadow like other containers */
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    overflow: hidden; /* Ensure clean rounded corners */
}

#custom-zoom-controls button {
    display: block;
    margin: 0; /* Remove margin */
    padding: 8px 12px; /* Adjust padding */
    width: 35px; /* Set consistent width */
    height: 35px; /* Set consistent height */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none; /* Remove individual button borders */
    background: transparent; /* Transparent background for buttons */
    border-radius: 0; /* Remove individual button border-radius */
    transition: background-color 0.2s ease; /* Smooth hover transition */
    color: #333; /* Set text color */
}

/* Add border between buttons */
#custom-zoom-controls button:not(:last-child) {
    border-bottom: 1px solid #eee;
}

#custom-zoom-controls button:hover {
    background: #e3f2fd; /* Match hover color of other controls */
    color: #2196f3; /* Match hover text color */
}

/* Optional: Add focus styles for accessibility */
#custom-zoom-controls button:focus {
    outline: 2px solid #2196f3;
    outline-offset: -2px;
    background: #e3f2fd;
}

/* Mobile adjustments to match other controls */
@media (max-width: 768px) {
    #custom-zoom-controls {
        bottom: 25px;
        left: 8px;
    }
    
    #custom-zoom-controls button {
        width: 36px;
        height: 32px;
        font-size: 14px;
        padding: 6px 10px;
    }
}

#map-title-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    z-index: 1001;
    pointer-events: none;
}

#map-title-container h1 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    color: #34495e;
}


/* ===== REPLACE the existing #language-links, #layer-controls, and #search-button-container styles with this consolidated version ===== */

/* Remove the old individual containers and replace with consolidated controls */
#consolidated-controls {
    position: fixed;
    top: 4px;
    left: 4px;
    width: 71px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1002;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    font-family: Arial, sans-serif;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

/* Language links section */
.language-section {
    padding: 8px 4px;
    text-align: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.language-section a {
    text-decoration: none;
    color: #007bff;
    font-size: 12px;
    padding: 0 3px;
    cursor: pointer;
}

.language-section a.active {
    color: #333;
    font-weight: bold;
    pointer-events: none;
}

.language-section span {
    color: #666;
    font-size: 12px;
}

/* Layer controls section */
.layer-controls-section {
    padding: 8px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.layer-controls-section label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
    cursor: pointer;
    padding: 3px 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.layer-controls-section label:hover {
    background-color: #e3f2fd !important;
    border-color: #2196f3;
    transform: translateX(1px);
}

.layer-controls-section input[type="checkbox"] {
    margin-right: 0;
    flex-shrink: 0;
    order: 1;
}

.layer-controls-section .control-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 2;
}

.layer-controls-section .control-icon img {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
    filter: none;
}

/* Tooltip styling */
.layer-controls-section label::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1003;
    margin-left: 8px;
}

.layer-controls-section label:hover::after {
    opacity: 1;
}

/* Search section */
.search-section {
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-section .search-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border-radius: 3px;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.search-section .search-toggle-btn:hover {
    background-color: #e3f2fd;
    transform: scale(1.05);
}

.search-section .search-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: #333;
    transition: fill 0.2s ease;
}

.search-section .search-toggle-btn:hover svg {
    fill: #2196f3;
}

.share-btn {
    background: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.share-btn:hover {
    background: #45a049;
}

.share-btn svg {
    fill: white;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #consolidated-controls {
        width: 65px;
        left: 3px;
        top: 28px;
    }
    
    .language-section {
        padding: 6px;
    }
    
    .language-section a,
    .language-section span {
        font-size: 11px;
    }
    
    .layer-controls-section {
        padding: 6px;
    }
    
    .layer-controls-section .control-icon img {
        width: 20px;
        height: 20px;
    }
    
    .search-section {
        padding: 6px;
    }
    
    .search-section .search-toggle-btn {
        width: 32px;
        height: 28px;
    }
    
    .search-section .search-toggle-btn svg {
        width: 18px;
        height: 18px;
    }
    
    #combined-list-container {
        left: 70px;
        width: 220px;
    }
    
    /* Make tooltips appear above on mobile */
    .layer-controls-section label::after {
        left: 50%;
        top: -100%;
        transform: translateX(-50%);
        margin-left: 0;
        margin-top: -8px;
    }
}

@media (max-width: 480px) {
    #consolidated-controls {
        width: 270px;
        left: 5px;
    }
    
    #combined-list-container {
        top: 200px; /* Below the consolidated container */
        left: 5px;
        width: 270px;
    }
    
    #combined-list-container.open {
        max-height: calc(100vh - 220px);
    }
}



/* REPLACE the existing .control-icon rules with these: */
.control-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 2;
}

/* Style for PNG images instead of SVG */
.control-icon img {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
    filter: none; /* Default state */
}

#layer-controls label:hover .control-icon svg {
    fill: #2196f3;
}

/* Tooltip styling */
#layer-controls label::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1003;
    margin-left: 8px;
}

#layer-controls label:hover::after {
    opacity: 1;
}


/* ===== UPDATED COMBINED LIST POSITIONING ===== */
#combined-list-container {
    position: fixed;
    top: 3px;
    left: 80px; /* To the right of the controls column */
    width: 350px;
    max-height: 38px;
    background: white;
    z-index: 1003;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    pointer-events: auto;
}

/* When visible, show as flex */
#combined-list-container.visible {
    display: flex !important;
}

/* Expanded state */
#combined-list-container.open {
    max-height: calc(100vh - 25px);
}

/* ===== DROPDOWN HEADERS ===== */
.expandable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    /* Remove cursor: pointer since we don't want the header to be clickable */
}

.expandable-header:hover {
    background-color: #f9f9f9;
}

.expandable-header h4 {
    margin: 0;
    font-size: 15px;
}

/* ===== ADD these new close button styles ===== */
.close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(255, 0, 0, 0.1);
    transform: scale(1.1);
}

.close-btn svg {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: fill 0.2s ease;
}

.close-btn:hover svg {
    fill: #ff4444;
}

/* ===== TAB NAVIGATION ===== */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-family: Arial, sans-serif;
}

.tab-btn.active {
    background: white;
    border-bottom-color: #007bff;
    color: #007bff;
    font-weight: 500;
}

.tab-btn:hover:not(.active) {
    background: #e9e9e9;
}

.tab-btn span {
    pointer-events: none;
}

/* ===== TAB CONTENT ===== */
.tab-content {
    display: none;
    flex-grow: 1;
    overflow-y: auto;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* ===== LIST CONTAINERS ===== */
.list-container {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.list-container li {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.list-container li:hover {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.list-container li.hidden {
    display: none !important;
}

/* ===== SEARCH CONTAINERS ===== */
.search-container {
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    background: white;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.search-input::placeholder {
    color: #999;
    font-style: italic;
}

/* ===== LIST FILTERS ===== */
.list-filters {
    display: flex;
    gap: 5px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    flex-shrink: 0;
}

.filter-btn {
    padding: 5px 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #e9e9e9;
}

.filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* ===== RIGHT-HAND INFO PANE STYLES ===== */
#info-pane {
    position: fixed;
    top: 5px;
    right: 5px;
    width: 390px;
    max-width: 30%;
    height: 100vh;
    background: white;
    z-index: 1002;
    box-shadow: 0 -2px 8px rgba(0,0,0,.3);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s ease-in-out;
    pointer-events: auto;
}

#info-pane.hidden {
    transform: translateX(calc(100% + 5px));
}

#info-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    background: #f8f9fa;
    margin-bottom: 0px;
}

#info-pane-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

#info-pane-toggle {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

#info-pane-toggle:hover {
    background-color: rgba(0,0,0,0.1);
}

#info-pane-header:hover {
    background-color: #f9f9f9;
}

#info-pane-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

#info-pane-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    font-size: 14px;
}

#info-pane-content p {
    margin-top: 0;
    line-height: 1.5;
    font-size: 16px;
}

#info-pane-content b.popup-subtitle {
    font-size: 1.1em;
}

/* ===== CUSTOM POPUPS ===== */
.custom-popup {
    position: absolute; 
    background: #ffffff; 
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 6px 8px; 
    z-index: 1003;
    transform: translate(-50%, -100%); 
    max-width: 220px;
    opacity: 0; 
    transition: opacity 0.2s ease-in-out;
    pointer-events: none; 
    border: 1px solid #e0e0e0;
}

.custom-popup.visible { 
    opacity: 1; 
}

.custom-popup::after {
    content: ''; 
    position: absolute; 
    bottom: -10px; 
    left: 50%;
    transform: translateX(-50%); 
    border-width: 10px 10px 0;
    border-style: solid; 
    border-color: #ffffff transparent transparent;
}

.custom-popup .title {
    font-size: 1.3em; 
    margin: 0; 
    font-weight: 500;
}

.custom-popup .click-for-more {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

.map-location-label {
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.7), 0px 0px 4px rgba(255, 255, 255, 0.5);
}

/* ===== STYLES FOR THE TWO-COLUMN THUMBNAIL GALLERY ===== */
.thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.thumbnail-grid-item {
    flex: 1 1 calc(50% - 4px);
    box-sizing: border-box;
}

.thumbnail-grid-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.thumbnail-grid-item img:hover {
    opacity: 0.8;
}

/* ===== LOADING INDICATOR ===== */
#loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    font-size: 16px;
    display: block;
}

/* ===== SEARCH HIGHLIGHTING ===== */
.search-highlight {
    background-color: #fff3cd;
    padding: 1px 2px;
    border-radius: 2px;
}

/* ===== HAMBURGER MENU ===== */
#hamburger-btn {
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    transition: all 0.2s ease;
}

#hamburger-btn:hover {
    background-color: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-1px);
}

/* Hamburger icon (3 lines) */
.hamburger-icon {
    width: 20px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

#hamburger-btn:hover .hamburger-line {
    background-color: #2196f3;
}

/* ===== DROPDOWN MENU ===== */
#hamburger-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 3px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    min-width: 180px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1005;
}

#hamburger-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu items */
.hamburger-menu-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-family: Arial, sans-serif;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    font-weight: 500;
}

.hamburger-menu-item:last-child {
    border-bottom: none;
}

.hamburger-menu-item:hover {
    background-color: #e3f2fd;
    color: #2196f3;
}

/* Separator styling */
.menu-separator-line {
    height: 1px;
    background: #e0e0e0;
    margin: 0;
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    #hamburger-menu-container {
        right: 55px; /* Adjust for mobile */
    }
    
    #hamburger-btn {
        width: 36px;
        height: 28px;
        padding: 5px 6px;
    }
    
    .hamburger-icon {
        width: 16px;
        height: 12px;
    }
    
    .hamburger-line {
        width: 14px;
        height: 1.5px;
    }
    
    #hamburger-dropdown {
        min-width: 160px;
    }
    
    .hamburger-menu-item {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ===== HIDE GOOGLE MAPS ATTRIBUTION ===== */
.gm-style-cc {
    display: none !important;
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    #search-button-container {
        width: 100px;
    }
    
    #search-toggle-btn {
        width: 32px;
        height: 28px;
    }
    
    #search-toggle-btn svg {
        width: 18px;
        height: 18px;
    }
    
    #layer-controls {
        width: 100px;
        top: 48px; /* Adjusted for mobile */
        font-size: 12px;
        padding: 6px;
    }
    
    .control-icon {
        width: 16px;
        height: 16px;
    }
    
    .control-icon svg {
        width: 14px;
        height: 14px;
    }
    
    #layer-controls h4 {
        font-size: 11px;
    }
    
    #combined-list-container {
        left: 110px;
        width: 220px;
    }
        
    #info-pane {
        width: 350px;
        max-width: 90%;
    }
    
    /* Make tooltips appear above on mobile */
    #layer-controls label::after {
        left: 50%;
        top: -100%;
        transform: translateX(-50%);
        margin-left: 0;
        margin-top: -8px;
    }
}
/* Stack vertically on very small screens */
@media (max-width: 480px) {
    #search-button-container {
        width: 270px;
        left: 5px;
    }
    
    #layer-controls {
        top: 53px;
        left: 5px;
        width: 270px;
    }
    
    #combined-list-container {
        top: 200px; /* Below both search and layer controls */
        left: 5px;
        width: 270px;
    }
    
    #combined-list-container.open {
        max-height: calc(100vh - 220px);
    }
}

/* Add this to your existing styles.css file */

/* Contribute Photos Section */

/* Add this to your existing styles.css file */

/* Contribute Photos Section - Simple Style */
.contribute-section {
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-top: 1px solid #eee;
}

.contribute-section .contribute-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border-radius: 3px;
    transition: all 0.2s ease;
    pointer-events: auto;
    text-decoration: none;
}

.contribute-section .contribute-btn:hover {
    background-color: #e3f2fd;
    transform: scale(1.05);
}

.contribute-section .contribute-btn svg {
    width: 20px;
    height: 20px;
    fill: #333;
    transition: fill 0.2s ease;
}

.contribute-section .contribute-btn:hover svg {
    fill: #2196f3;
}

/* Remove all the complex styling and animations */

/* Update consolidated controls to accommodate contribute button */
#consolidated-controls {
    position: fixed;
    top: 4px;
    left: 4px;
    width: 71px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 1002;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    font-family: Arial, sans-serif;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

/* Update menu translations for contribute option */
.hamburger-menu-item[data-i18n-key="menuContribute"] {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
    border-left: 3px solid #22c55e;
}

.hamburger-menu-item[data-i18n-key="menuContribute"]:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
    color: #16a34a !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contribute-section {
        padding: 6px;
    }
    
    .contribute-section .contribute-btn {
        width: 32px;
        height: 28px;
    }
    
    .contribute-section .contribute-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    #consolidated-controls {
        width: 270px;
        left: 5px;
    }
    
    .contribute-section {
        padding: 8px;
    }
    
    .contribute-section .contribute-btn {
        width: 40px;
        height: 32px;
        font-size: 12px;
    }
    
    .contribute-section .contribute-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Update info pane default text styling */
#info-pane-content p strong {
    color: #22c55e;
    font-weight: 600;
}




/* ===== CONTRIBUTE MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 10px;
    max-width: 1000px;
    width: 90vw;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Contribute Form Styles */
.contribute-guidelines {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.contribute-guidelines h3 {
    color: #8e6a00;
    margin-top: 0;
    margin-bottom: 15px;
}

.contribute-guidelines ul {
    color: #8e6a00;
    margin: 0;
    padding-left: 20px;
}

.contribute-guidelines li {
    margin-bottom: 8px;
}

.contribute-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contribute-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contribute-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.contribute-form-section {
    margin-bottom: 25px;
}

.contribute-form-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contribute-form-section-icon {
    width: 24px;
    height: 24px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.contribute-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contribute-form-group {
    flex: 1;
}

.contribute-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.contribute-form-group input,
.contribute-form-group select,
.contribute-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.contribute-form-group input:focus,
.contribute-form-group select:focus,
.contribute-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contribute-form-group textarea {
    height: 100px;
    resize: vertical;
}

.contribute-file-upload-area {
    border: 3px dashed #3498db;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.contribute-file-upload-area:hover {
    background: #f8f9fa;
    border-color: #2980b9;
}

.contribute-file-upload-area.dragover {
    background: #e3f2fd;
    border-color: #1976d2;
    transform: scale(1.02);
}

.contribute-upload-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.contribute-upload-text {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contribute-upload-hint {
    color: #7f8c8d;
    font-size: 14px;
}

.contribute-file-input {
    display: none;
}

.contribute-preview-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.contribute-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 2px solid #eee;
    transition: transform 0.2s;
}

.contribute-preview-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contribute-preview-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.contribute-preview-info {
    padding: 10px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #eee;
}

.contribute-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.2s;
}

.contribute-remove-btn:hover {
    background: rgba(192, 57, 43, 1);
}

.contribute-submit-section {
    text-align: center;
    margin-top: 30px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.contribute-submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.contribute-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.contribute-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px auto;
        min-height: calc(100vh - 20px);
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .contribute-form {
        padding: 20px;
    }
    
    .contribute-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contribute-file-upload-area {
        padding: 30px 20px;
    }
    
    .contribute-upload-icon {
        font-size: 36px;
    }
    
    .contribute-upload-text {
        font-size: 16px;
    }
    
    .contribute-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .contribute-submit-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}


/* ===== MISSING PERSONS STYLES ===== */

/* Missing persons list styling */
.missing-persons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.missing-person-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.missing-person-item:hover {
    background: #f0f8ff;
    border-color: #2196f3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.missing-person-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.missing-person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.missing-person-details {
    flex: 1;
    min-width: 0;
}

.missing-person-name {
    font-weight: bold;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.3;
}

.missing-person-info {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.missing-person-info div {
    margin-bottom: 3px;
}

.missing-person-info strong {
    color: #333;
    font-weight: 600;
}

/* Missing persons marker tooltip styling */
.missing-persons-tooltip {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #8e6a00;
}

.missing-persons-tooltip .title {
    color: #8e6a00;
    font-weight: bold;
}

/* Info pane styling for missing persons */
.info-pane-missing-persons h4 {
    margin: 15px 0 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
}

.info-pane-missing-persons h4:first-child {
    margin-top: 0;
}

/* Arrest place styling */
.info-pane-missing-persons h4[style*="color: #d32f2f"] {
    color: #d32f2f !important;
    border-bottom-color: #d32f2f;
}

/* Last seen place styling */
.info-pane-missing-persons h4[style*="color: #f57c00"] {
    color: #f57c00 !important;
    border-bottom-color: #f57c00;
}

/* Missing persons list in sidebar */
#missing-persons-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

#missing-persons-list li {
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

#missing-persons-list li:hover {
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    transform: translateX(2px);
}

#missing-persons-list li.hidden {
    display: none !important;
}

/* Missing persons search placeholder */
#missing-persons-search::placeholder {
    color: #999;
    font-style: italic;
}

/* Missing persons icon styling */
.control-icon img[alt="Missing Persons"] {
    filter: sepia(1) saturate(2) hue-rotate(25deg) brightness(0.9);
    transition: all 0.2s ease;
}

.layer-controls-section label:hover .control-icon img[alt="Missing Persons"] {
    filter: sepia(1) saturate(2) hue-rotate(25deg) brightness(1.1);
    transform: scale(1.1);
}

/* Mobile adjustments for missing persons */
@media (max-width: 768px) {
    .missing-person-item {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .missing-person-image {
        width: 50px;
        height: 50px;
        align-self: flex-start;
    }
    
    .missing-person-name {
        font-size: 15px;
    }
    
    .missing-person-info {
        font-size: 12px;
    }
    
    .missing-persons-list {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .missing-person-item {
        padding: 8px;
        gap: 6px;
    }
    
    .missing-person-image {
        width: 45px;
        height: 45px;
    }
    
    .missing-person-name {
        font-size: 14px;
    }
    
    .missing-person-info {
        font-size: 11px;
    }
    
    .missing-person-info div {
        margin-bottom: 2px;
    }
}

/* Missing persons count badge styling */
.missing-persons-count {
    background: #ffc107;
    color: #8e6a00;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 8px;
}

/* Special styling for missing persons markers */
.missing-persons-marker {
    position: relative;
}

.missing-persons-marker::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    border: 1px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

/* Info pane updates for missing persons section */
.info-pane-missing-persons {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.info-pane-missing-persons:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Ensure proper spacing in info pane */
#info-pane-content .missing-persons-list {
    margin-bottom: 15px;
}

#info-pane-content .missing-persons-list:last-child {
    margin-bottom: 0;
}

/* Updated consolidated controls height to accommodate missing persons */
@media (min-width: 769px) {
    #consolidated-controls {
        /* Adjust height as needed to fit all controls */
        min-height: auto;
    }
}


/* Missing persons list styling in info pane */
.missing-persons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.missing-person-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.missing-person-item:hover {
    background: #f0f8ff;
    border-color: #2196f3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.missing-person-image {
    flex-shrink: 0;
    width: 80px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.missing-person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.missing-person-details {
    flex: 1;
    min-width: 0;
}

.missing-person-name {
    font-weight: bold;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.missing-person-info {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.missing-person-info div {
    margin-bottom: 4px;
}

.missing-person-info strong {
    color: #333;
    font-weight: 600;
}

/* Info pane styling for missing persons */
.info-pane-missing-persons h4 {
    margin: 15px 0 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
    color: #d32f2f !important;
}

.info-pane-missing-persons h4:first-child {
    margin-top: 0;
}

/* Ensure tooltip positioning for missing persons */
.layer-controls-section label[data-tooltip*="Αγνοούμενοι"]::after {
    white-space: nowrap;
    max-width: 200px;
}

/* Special styling for missing persons in different contexts */
.missing-person-arrest {
    border-left: 4px solid #d32f2f;
}

.missing-person-last-seen {
    border-left: 4px solid #f57c00;
}

.missing-person-mixed {
    border-left: 4px solid #9c27b0;
}

/* Loading state for missing persons images */
.missing-person-image img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.missing-person-image img[src*="missing_person_placeholder"] {
    opacity: 0.6;
    filter: grayscale(1);
}

.missing-person-image img:not([src*="missing_person_placeholder"]) {
    opacity: 1;
}

/* Error state for missing images */
.missing-person-image img[src*="missing_person_placeholder.png"] {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    text-align: center;
}

.missing-person-image img[src*="missing_person_placeholder.png"]::after {
    content: 'No Photo Available';
}


.missing-persons-list-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.missing-person-item-compact {
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.missing-person-item-compact:hover {
    background: #fff3cd;
    border-color: #ffc107;
}

.missing-person-name-compact {
    font-weight: bold;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.missing-person-status-compact,
.missing-person-age-compact {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.view-toggle-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 0px;
    margin-top: 0px;

}

.view-toggle-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    background: #f0f0f0;
}

.view-toggle-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

@media (max-width: 768px) {
    .missing-persons-list-compact {
        grid-template-columns: 1fr;
    }
}

.missing-persons-list-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.missing-person-item-compact {
    display: flex;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
    transition: all 0.2s ease;
    align-items: flex-start;
}

.missing-person-item-compact:hover {
    background: #fff3cd;
    border-color: #ffc107;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.missing-person-image-compact {
    flex-shrink: 0;
    width: 50px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.missing-person-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.missing-person-details-compact {
    flex: 1;
    min-width: 0;
}

.missing-person-name-compact {
    font-weight: bold;
    font-size: 13px;
    color: #2c3e50;
    margin-bottom: 3px;
    line-height: 1.2;
    word-wrap: break-word;
}

.missing-person-status-compact {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
    line-height: 1.3;
}

.missing-person-age-compact {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .missing-persons-list-compact {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .missing-person-item-compact {
        padding: 8px;
        gap: 6px;
    }
    
    .missing-person-image-compact {
        width: 45px;
        height: 55px;
    }
    
    .missing-person-name-compact {
        font-size: 12px;
    }
    
    .missing-person-status-compact,
    .missing-person-age-compact {
        font-size: 10px;
    }
}

/* Killed persons list styling */
.killed-persons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.killed-person-item {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.killed-person-item:hover {
    background: #ffe8e8;
    border-color: #ff6b6b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.killed-person-details {
    width: 100%;
}

.killed-person-name {
    font-weight: bold;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.killed-person-info {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.killed-person-info div {
    margin-bottom: 4px;
}

.killed-person-info strong {
    color: #333;
    font-weight: 600;
}

/* Compact view for killed persons */
.killed-persons-list-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.killed-person-item-compact {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.killed-person-item-compact:hover {
    background: #ffe8e8;
    border-color: #ff6b6b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.killed-person-details-compact {
    width: 100%;
}

.killed-person-name-compact {
    font-weight: bold;
    font-size: 13px;
    color: #2c3e50;
    margin-bottom: 3px;
    line-height: 1.2;
    word-wrap: break-word;
}

.killed-person-status-compact {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
    line-height: 1.3;
}

.killed-person-date-compact {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .killed-persons-list-compact {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Compact view for killed persons WITHOUT images */
.killed-person-item-compact-no-image {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.killed-person-item-compact-no-image:hover {
    background: #ffe8e8;
    border-color: #ff6b6b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.killed-person-details-compact-no-image {
    width: 100%;
}

/* Keep the same grid layout for killed persons */
.killed-persons-list-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .killed-persons-list-compact {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


/* ===== MOBILE STYLES - ADD THIS ENTIRE SECTION TO YOUR STYLES.CSS ===== */

/* Extra small screens (phones in portrait) */
@media only screen and (max-width: 480px) {
    #map-title-container {
        padding: 6px 5px 4px !important;
    }
    
    #map-title-container h1 {
        font-size: 1.0em !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
    }
    
    /* Reduce map top padding for smaller screens */
    #map {
        padding-top: 50px !important;
    }
}

/* Mobile detection - applies styles only on touch devices with small screens */
@media only screen and (max-width: 768px) {  
    /* Hide desktop-only elements */
    .desktop-only,
    #hamburger-menu-container,
    #hamburger-btn,
    #hamburger-dropdown,
    .hamburger-menu-item,
    #custom-zoom-controls {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Mobile bottom navigation bar */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: white;
        border-top: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1010;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-nav-item {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        transition: background 0.2s;
        position: relative;
    }
    
    .mobile-nav-item:active {
        background: #f0f0f0;
    }
    
    .mobile-nav-item.active {
        color: #2196f3;
    }
    
    .mobile-nav-item.active svg {
        fill: #2196f3 !important;
    }
    
    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }
    
    .mobile-nav-item span {
        font-size: 11px;
        color: #666;
        font-family: Arial, sans-serif;
    }
    
    .mobile-nav-item.active span {
        color: #2196f3;
    }
    
    /* Layer controls redesign for mobile */
    #consolidated-controls {
        position: fixed !important;
        bottom: 56px !important; /* Above mobile nav */
        top: auto !important;
        left: -1px !important;
        right: -1px !important;
        width: auto !important;
        max-height: 50vh !important;
        background: white !important;
        border: 1px solid #ccc !important;
    	border-radius: 20px 20px 0 0 !important; /* Top rounded, bottom square */
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
        padding: 0 !important;
        flex-direction: column !important;
        z-index: 1003 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease-in-out !important;
	    display: flex !important; /* Add this */
    }

    .close-btn {
        display: none !important;
    }


    /* When layers are toggled on, show controls */
    #consolidated-controls.mobile-visible {
        display: flex !important;
    }
    
    /* Hide language section on mobile */
    .language-section {
        display: none !important;
    }
    
    /* Add header to layer controls (similar to lists) */
    .layer-controls-section::before {
	    display: none !important;
    }
    
    /* Vertical layout for layer controls */
    .layer-controls-section {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px 0 !important;
        border: none !important;
        gap: 0 !important;
        width: 100% !important;
        background: white !important;
        border-radius: 0 0 20px 20px !important;
		overflow-y: auto !important; /* Add scrolling */
		flex: 1 !important; /* Take remaining space */
		-webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
    }
    
    /* Make each control item like a list item */
    .layer-controls-section label {
        min-height: 50px !important;
        width: 100% !important;
        padding: 2px 20px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background: white !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        cursor: pointer !important;
        transition: background-color 0.2s ease !important;
        gap: 15px !important;
    }
    
    .layer-controls-section label:last-child {
        border-bottom: none !important;
    }
    
	/* Default hidden state */
	#consolidated-controls:not(.mobile-visible) {
		display: none !important;
	}


    
    /* Show the checkbox */
    .layer-controls-section input[type="checkbox"] {
        display: block !important;
        margin: 0 !important;
        order: 1 !important;
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
    }
    
    /* Position icon next to checkbox */
    .layer-controls-section .control-icon {
        width: 24px !important;
        height: 24px !important;
        order: 2 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .layer-controls-section .control-icon img {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Add visible text labels */
    .layer-controls-section label::after {
        content: attr(data-tooltip) !important;
        display: block !important;
        order: 3 !important;
        flex: 1 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        background: transparent !important;
        color: #333 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        font-size: 14px !important;
        white-space: normal !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transition: none !important;
        z-index: auto !important;
        position: static !important;
        transform: none !important;
        font-weight: 500 !important;
        text-align: left !important;
    }
        
    /* Hide search and contribute sections in layer controls */
    .search-section,
    .contribute-section {
        display: none !important;
    }
    /* Mobile info pane - bottom sheet style */
    #info-pane {
        position: fixed !important;
        bottom: 56px !important; /* Above mobile nav */
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 50vh !important; /* Half screen by default */
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(100%) !important; /* Hidden by default */
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        z-index: 1010 !important;
    }
    
    /* When visible */
    #info-pane:not(.hidden) {
        transform: translateY(0) !important;
    }
    
    /* Hidden state */
    #info-pane.hidden {
        transform: translateY(100%) !important;
    }
    
    /* Swipe handle indicator */
	#info-pane::before {
		content: '' !important;
		position: absolute !important;
		top: 8px !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		width: 40px !important;
		height: 4px !important;
		background: #ccc !important;
		border-radius: 2px !important;
		z-index: 1 !important;
	}

    .pane-state-controls {
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }


    /* Info pane header adjustments */
    #info-pane-header {
        padding: 12px 20px !important;
        cursor: grab !important;
        flex-shrink: 0 !important;
        border-bottom: 1px solid #eee !important;
        background: #f8f9fa !important;
        border-radius: 20px 20px 0 0 !important;
        position: relative !important;
        min-height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
 
	 #info-pane-title {
		margin: 0;
		font-size: 16px;
		line-height: 1.2 !important;
		font-weight: 600;
	}
	
    #info-pane-header h2 {
        font-size: 18px !important;
        margin: 0 !important;
        padding-right: 40px !important;
        line-height: 1.2 !important;
        max-width: calc(100% - 50px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    /* Content area - scrollable */
    #info-pane-content {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 20px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Close button positioning */
	/* Mobile info pane close button styling */
    #info-pane-toggle {
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 4px !important;
        border-radius: 3px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 0 !important; /* Hide the ✕ character */
    }
    
    #info-pane-toggle:hover {
        transform: scale(1.1) !important;
    }
    
    /* Always black X icon */
    #info-pane-toggle::before {
        content: '' !important;
        width: 20px !important;
        height: 20px !important;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' fill='%23666'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
    }
    
    /* Mobile menu overlay */
	.mobile-menu-overlay {
		position: fixed !important;
		bottom: 56px !important; /* Above mobile nav, like other windows */
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		max-height: 50vh !important; /* Limit height instead of full screen */
		background: transparent !important;
		z-index: 1004 !important;
		opacity: 1 !important;
		transition: none !important;
		display: block !important; /* Change from flex */
		overflow: hidden !important;
	}

    
    .mobile-menu-overlay.active {
        opacity: 1 !important;
    }
    
	.mobile-menu-close {
		display: none !important;
	}

	.mobile-menu-content {
		background: white !important;
		width: 100% !important;
		height: 100% !important; /* Fill the overlay container */
		border-radius: 20px 20px 0 0 !important;
		padding: 0px !important;
		transform: translateY(0) !important;
		transition: none !important;
		box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
		border: 1px solid #ccc !important;
		overflow-y: auto !important; /* Add scrolling if needed */
	}
    
    .mobile-menu-overlay.active .mobile-menu-content {
        transform: translateY(0) !important;
    }
    
    .mobile-menu-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px !important;
        border-bottom: 1px solid #eee !important;
        flex-shrink: 0;
    	background: #f8f9fa !important;              /* Same background as lists header */
    	border-radius: 20px 20px 0 0 !important;    /* Same rounded top corners */
    }

	.mobile-menu-header:hover {
		background-color: #f9f9f9 !important;       /* Same hover effect as lists */
	}

    .mobile-menu-header h3 {
        margin: 0 !important;
        font-size: 15px !important;
    	font-weight: 600 !important;                /* Match the weight */
    }
    
    .mobile-menu-close {
        background: none !important;
        border: none !important;
        font-size: 24px !important;
        cursor: pointer !important;
        padding: 5px !important;
    }
        
    .mobile-menu-link {
        display: block !important;
        padding: 15px !important;
        text-decoration: none !important;
        color: #333 !important;
        font-size: 16px !important;
        border-radius: 10px !important;
        transition: background 0.2s !important;
    }
    
    .mobile-menu-link:active {
        background: #f0f0f0 !important;
    }
    
	.mobile-menu-separator {
		height: 1px !important;
		background: #f0f0f0 !important;              /* Same as layer controls */
		margin: 0 !important;                        /* No margin like layer controls */
		border: none !important;
	}

	.mobile-menu-items {
		display: flex !important;
		flex-direction: column !important;
		gap: 0 !important;                           /* Remove gap since we have separators */
	}

	.mobile-menu-link {
		display: block !important;
		padding: 18px 16px !important;               /* Same as hamburger menu items */
		text-decoration: none !important;
		color: #333 !important;
		font-size: 14px !important;                  /* Match hamburger menu */
		font-family: Arial, sans-serif !important;
		font-weight: 500 !important;
		transition: background-color 0.2s !important;
		border-radius: 0 !important;                 /* Remove border radius like layer controls */
	}

	.mobile-menu-link:active {
		background: #e3f2fd !important;              /* Same hover color as layer controls */
	}

	.mobile-menu-link:last-child {
		border-bottom: none !important;              /* No border on last item */
	}
    .map-location-label {
        pointer-events: none !important;
        touch-action: none !important;
        user-select: none !important;
    }

	.mobile-menu-items .menu-separator-line {
		height: 1px !important;
		background: #f0f0f0 !important;
		margin: 0 !important;
		display: block !important;
		width: 100% !important;
		border: none !important;
		padding: 0 !important;
	}

	/* Make sure mobile menu items don't have gaps */
	.mobile-menu-items {
		display: flex !important;
		flex-direction: column !important;
		gap: 0 !important;
	}



    /* Force the container to be hidden by default on mobile */
    #combined-list-container {
        display: none !important;
        position: fixed !important;
        bottom: 56px !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-height: 50vh !important;
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
        border: 1px solid #ccc !important;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
        background: white !important;
        z-index: 1005 !important;
        overflow: hidden !important;
    }
    
    /* When visible, show as flex and slide up */
    #combined-list-container.visible {
        display: flex !important;
        flex-direction: column !important;
    }
    
    #combined-list-container.visible.open {
        transform: translateY(0) !important;
    }
    
    /* Ensure the content inside is visible */
    #combined-list-container .tab-content {
        display: none;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1;
    }
    
    #combined-list-container .tab-content.active {
        display: flex !important;
        flex-direction: column !important;
    }

	/* Contribute bottom sheet (like other windows) */
	#contribute-bottom-sheet {
		position: fixed !important;
		bottom: 56px !important; /* Above mobile nav */
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		max-height: 85vh !important; /* Start with 70vh, can change to 100vh */
		background: white !important;
		border: 1px solid #ccc !important;
		border-radius: 20px 20px 0 0 !important;
		border-bottom: none !important;
		box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
		z-index: 1003 !important;
		display: none !important;
		flex-direction: column !important;
		overflow: hidden !important;
	}

	/* Header for contribute sheet */
	.contribute-sheet-header {
		padding: 15px 20px 10px !important;
		font-weight: 600 !important;
		font-size: 16px !important;
		color: #2c3e50 !important;
		border-bottom: 1px solid #eee !important;
		background: #f8f9fa !important;
		border-radius: 20px 20px 0 0 !important;
		flex-shrink: 0 !important;
	}

	/* Scrollable content area */
	.contribute-sheet-content {
		flex: 1 !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
		padding: 20px !important;
	}

	/* CRITICAL: Default hidden state for contribute bottom sheet */
	#contribute-bottom-sheet:not(.mobile-visible) {
		display: none !important;
	}

	#contribute-bottom-sheet.mobile-visible {
		display: flex !important;
		background: white !important; /* Remove the red, use white */
		z-index: 1003 !important; /* Use the proper z-index */
		bottom: 56px !important; /* Above mobile nav, not at bottom */
	}
	/* CRITICAL: Default hidden state for contribute bottom sheet */
	#contribute-bottom-sheet:not(.mobile-visible) {
		display: none !important;
	}

}

/* Remove hover effects on touch devices */
@media (pointer: coarse) {
    .layer-controls-section label:hover,
    .list-container li:hover,
    .search-toggle-btn:hover,
    .contribute-btn:hover {
        background: transparent !important;
        transform: none !important;
    }
    
    .layer-controls-section label:active,
    .list-container li:active,
    .search-toggle-btn:active,
    .contribute-btn:active {
        background-color: #e3f2fd !important;
    }
}

/* NUCLEAR OPTION - put this at the very end of styles.css */
#contribute-bottom-sheet {
    display: none !important;
}

#contribute-bottom-sheet.mobile-visible {
    display: flex !important;
}

/* ===== CONSISTENT MOBILE POPUP HEADERS ===== */
.mobile-popup-header {
    display: none; /* Hidden on desktop by default */
}

/* Hide mobile menu by default */
#mobile-menu-container {
    display: none;
}

#mobile-menu-container.active {
    display: block;
}

@media only screen and (max-width: 768px) {
    .mobile-popup-header {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 15px 20px 10px !important;
        border-bottom: 1px solid #eee !important;
        background: #f8f9fa !important;
        border-radius: 20px 20px 0 0 !important;
        flex-shrink: 0 !important;
    }

    .mobile-popup-title {
        margin: 0 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
        text-align: center !important;
    }

    /* Hide desktop-only elements */
    .desktop-only {
        display: none !important;
    }
    
    /* Hide language section on layers popup */
    #consolidated-controls .language-section {
        display: none !important;
    }
}

/* Make sure mobile menu is hidden by default */
#mobile-menu-container {
    display: none !important;
}

#mobile-menu-container.active {
    display: block !important;
}

/* Add this CSS to your styles.css file for better swipe experience */

/* Mobile popup swipe enhancements */
@media only screen and (max-width: 768px) {
    
    /* Make mobile popups more touch-friendly */
    #info-pane,
    #combined-list-container,
    #consolidated-controls,
    #contribute-bottom-sheet,
    #mobile-menu-container {
        /* Smoother transitions */
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), 
                    opacity 0.3s ease !important;
        
        /* Prevent text selection during swipe */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        
        /* Better touch handling */
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-y; /* Allow vertical panning */
    }
    
    /* Headers should be draggable */
    #info-pane-header,
    .mobile-popup-header,
    .contribute-sheet-header,
    .mobile-menu-header {
        cursor: grab;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        
        /* Visual feedback that it's draggable */
        position: relative;
        
        /* Better touch target */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Active drag state */
    #info-pane-header:active,
    .mobile-popup-header:active,
    .contribute-sheet-header:active,
    .mobile-menu-header:active {
        cursor: grabbing;
        background-color: rgba(0, 0, 0, 0.05) !important;
    }
    
    /* Swipe indicator styling */
    .swipe-indicator {
        position: absolute !important;
        top: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 40px !important;
        height: 4px !important;
        background: #ccc !important;
        border-radius: 2px !important;
        z-index: 10 !important;
        opacity: 0.6 !important;
        transition: opacity 0.2s ease !important;
    }
    
    /* Make swipe indicator more visible on drag */
    .mobile-popup-header:active .swipe-indicator,
    #info-pane-header:active .swipe-indicator {
        opacity: 1 !important;
        background: #999 !important;
    }
    
    /* Info pane specific swipe styling */
    #info-pane {
        /* Ensure proper transform origin for swipe */
        transform-origin: center bottom !important;
    }
    
    #info-pane-header {
        /* Add padding for swipe indicator */
        padding-top: 20px !important;
    }
    
    /* Mobile popup headers with swipe indicators */
    .mobile-popup-header {
        padding-top: 20px !important;
        position: relative !important;
    }
    
    /* Prevent scroll during swipe on popup content */
    .mobile-popup-content-no-scroll {
        overflow: hidden !important;
    }
    
    /* Visual feedback during swipe */
    .swiping-down {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        transform-origin: center bottom !important;
    }
    
    /* Better touch targets for mobile */
    .mobile-nav-item,
    .tab-btn,
    .filter-btn,
    .close-btn {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Improve list item touch targets */
    .list-container li {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        padding: 12px !important;
    }
    
    /* Better button spacing for touch */
    .contribute-form-section button,
    .view-toggle-btn {
        min-height: 44px !important;
        margin: 8px 0 !important;
    }
    
    /* Smooth scrolling for mobile lists */
    .tab-content,
    #info-pane-content,
    .contribute-sheet-content {
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
    }

    /* Mobile title adjustments */
    #map-title-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 8px 10px 6px !important;
        text-align: center !important;
        z-index: 1001 !important;
        pointer-events: none !important;
        /* Ensure it's above any remaining desktop elements */
        z-index: 2000 !important;
    }
    
    #map-title-container h1 {
        font-size: 1.0em !important;
        font-weight: 600 !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        color: #2c3e50 !important;
        padding: 0 5px !important;
    }
    
    /* Adjust map padding to account for title */
    #map {
        padding-top: 60px !important;
    }
}

/* Accessibility improvements for swipe gestures */
@media (prefers-reduced-motion: reduce) {
    #info-pane,
    #combined-list-container,
    #consolidated-controls,
    #contribute-bottom-sheet,
    #mobile-menu-container {
        transition: none !important;
    }
}

/* Dark mode support for swipe indicators */
@media (prefers-color-scheme: dark) {
    .swipe-indicator {
        background: #666 !important;
    }
    
    .mobile-popup-header:active .swipe-indicator,
    #info-pane-header:active .swipe-indicator {
        background: #999 !important;
    }
}

/* ===== SHARE BUTTON STYLES ===== */

.share-btn {
    background: #4CAF50;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 8px 10px;
    margin-left: 12px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    vertical-align: middle;
    min-width: 36px;
    height: 32px;
}

.share-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(76, 175, 80, 0.3);
}

.share-btn svg {
    fill: white;
    flex-shrink: 0;
}

/* Info pane title adjustments to accommodate share button */
#info-pane-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    line-height: 1.3 !important;
}

/* Ensure title text doesn't interfere with share button */
#info-pane-title .title-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

/* Mobile adjustments for share button */
@media (max-width: 768px) {
    .share-btn {
        padding: 6px 8px;
        margin-left: 8px;
        font-size: 11px;
        height: 28px;
        min-width: 32px;
    }
    
    .share-btn svg {
        width: 14px;
        height: 14px;
    }
    
    #info-pane-title {
        font-size: 16px !important;
        padding-right: 0 !important;
    }
    
    /* Ensure share button doesn't overlap with close button */
    #info-pane-header {
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    #info-pane-toggle {
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 480px) {
    .share-btn {
        padding: 5px 6px;
        margin-left: 6px;
        font-size: 10px;
        height: 26px;
        min-width: 28px;
    }
    
    .share-btn svg {
        width: 12px;
        height: 12px;
    }
    
    #info-pane-title {
        font-size: 14px !important;
    }
}

/* Ensure share button works with long titles */
@media (max-width: 320px) {
    #info-pane-title {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .share-btn {
        align-self: flex-end;
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Share notification styles */
.share-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    z-index: 10000;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .share-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 10px 15px;
        font-size: 13px;
        text-align: center;
    }
}

/* Alternative share button colors for different contexts */
.share-btn.community {
    background: #2196F3;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.share-btn.community:hover {
    background: #1976D2;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

.share-btn.missing {
    background: #FF9800;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.share-btn.missing:hover {
    background: #F57C00;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}

.share-btn.church {
    background: #9C27B0;
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.3);
}

.share-btn.church:hover {
    background: #7B1FA2;
    box-shadow: 0 4px 8px rgba(156, 39, 176, 0.4);
}

.share-btn.school {
    background: #4CAF50;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.share-btn.school:hover {
    background: #388E3C;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.4);
}

/* Ensure share button doesn't break layout in title */
#info-pane-header h2 {
    padding-right: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
}

/* Fix for very long titles */
#info-pane-title {
    word-break: break-word;
    hyphens: auto;
}

/* Accessibility improvements */
.share-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.share-btn:focus:not(:focus-visible) {
    outline: none;
}

.share-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}