/* Container Reset */
#map-accessibility-wrapper {
    all: initial;
    z-index: 2147483647;
    position: fixed;
    top: 0; left: 0; width: 0; height: 0;
}
#map-accessibility-wrapper * {
    box-sizing: border-box;
    font-family: Arial, sans-serif !important;
}

#map-toggle-btn {
    position: fixed;
    z-index: 2147483647;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: flex; justify-content: center; align-items: center;
}
#map-toggle-btn:hover { transform: scale(1.1); }
#map-toggle-btn svg { width: 65%; height: 65%; fill: #fff; }
#map-toggle-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

#map-toolbar {
    position: fixed;
    top: 0 !important; 
    bottom: 0 !important; 
    width: 320px; 
    background: #1e3a4c; 
    color: #fff;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    direction: rtl; 
    overflow-y: auto; 
}

.map-hidden { display: none !important; }

/* Header */
.map-header {
    padding: 15px;
    background: #162c3a; 
    text-align: left; 
}
/* צבע X לבן */
#map-close-btn {
    background: transparent; 
    border: none; 
    color: #ffffff; /* לבן */
    font-size: 24px; 
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
#map-close-btn:hover { opacity: 1; }

.map-menu-list { flex: 1; display: flex; flex-direction: column; }
.map-menu-list button {
    background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 15px 20px; font-size: 16px; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; text-align: right; width: 100%;
}
.map-menu-list button:hover { background: rgba(255,255,255,0.05); }
.map-menu-list button.active { background: #005fcc; color: #fff; border-left: 5px solid #fff; }

.map-icon { font-size: 18px; opacity: 0.7; width: 30px; text-align: center; }
.map-divider { height: 10px; background: rgba(0,0,0,0.1); }
.map-reset-btn { background: rgba(255,255,255,0.05) !important; }

.map-footer { padding: 20px; text-align: center; background: #162c3a; }
#map-statement-btn { background: transparent; border: none; color: #aaa; text-decoration: underline; cursor: pointer; font-size: 14px; }
#map-statement-btn:hover { color: #fff; }

#map-statement-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 2147483648;
    display: flex; justify-content: center; align-items: center;
}
.map-modal-content {
    background: #fff; width: 90%; max-width: 600px; max-height: 80vh;
    overflow-y: auto; padding: 40px; border-radius: 8px; position: relative; text-align: right; color: #333;
}
#map-close-statement {
    position: absolute; top: 15px; left: 15px; background: #eee; border: none; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; font-size: 16px;
}

/* Accessibility */
body.map-grayscale > *:not(#map-accessibility-wrapper) { filter: grayscale(100%) !important; }

body.map-high-contrast { background-color: #000 !important; }
body.map-high-contrast > *:not(#map-accessibility-wrapper) { filter: contrast(130%) invert(100%) !important; } 

body.map-black-yellow { background-color: #000 !important; }
body.map-black-yellow > *:not(#map-accessibility-wrapper) * { 
    background-color: #000 !important; color: #ffff00 !important; border-color: #ffff00 !important;
    text-shadow: none !important; box-shadow: none !important;
}

body.map-keyboard-nav *:focus { outline: 3px solid #ffff00 !important; outline-offset: 2px !important; }

/* עצירת אנימציות ב-CSS */
body.map-stop-animations *,
body.map-stop-animations *:before,
body.map-stop-animations *:after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
}

body.map-readable-font *:not(#map-accessibility-wrapper):not(#map-accessibility-wrapper *):not(i):not([class*="icon"]) { 
    font-family: Arial, Tahoma, sans-serif !important; 
    letter-spacing: 0.5px !important; line-height: 1.6 !important; word-spacing: 2px !important;
}

body.map-links-highlight a { text-decoration: underline !important; background: #ffff00 !important; color: #000 !important; }

body.map-zoom-110 > *:not(#map-accessibility-wrapper) { zoom: 1.1; }
body.map-zoom-120 > *:not(#map-accessibility-wrapper) { zoom: 1.2; }
body.map-zoom-130 > *:not(#map-accessibility-wrapper) { zoom: 1.3; }
body.map-zoom-140 > *:not(#map-accessibility-wrapper) { zoom: 1.4; }
body.map-zoom-150 > *:not(#map-accessibility-wrapper) { zoom: 1.5; }