
:root {
    --orange-main: #F57C00; /* Header, footer, main buttons */
    --orange-dark: #E65100; /* Hover states */
    --orange-soft: #FFE0B2; /* Light panels / cards */
    --text-dark: #2E2E2E; /* Main readable text */
    --text-light: #FFFFFF; /* Text on dark orange */
    --border-warm: #FFB74D; /* Subtle borders */
    --blue-main: #008CBA; /* תכלת עמוק (Sky Blue / Cerulean) - כפתורים ודגש ראשי */
    --blue-dark: #005A78; /* כחול כהה - מצב ריחוף (Hover) ורקעים כהים */
    --blue-soft: #B3E5FC; /* תכלת שמיים בהיר - רקעים של כרטיסים ופנלים בהירים */
    --text-dark: #2E2E2E; /* טקסט ראשי קריא (שחור/אפור כהה) */
    --text-light: #FFFFFF; /* טקסט על רקע כחול (לבן) */
    --border-cool: #4FC3F7; /* גבולות עדינים וקווים מפרידים */
    --sky-main: #4FC3F7; /* תכלת שמיים בהיר ומואר - כפתורים ודגש ראשי */
    --sky-dark: #039BE5; /* כחול בהיר מעט יותר עמוק - מצב ריחוף (Hover) וטקסט כהה */
    --sky-soft: #E1F5FE; /* כמעט לבן, תכלת רך מאוד - רקעים של כרטיסים ופנלים בהירים */
    --text-dark: #2E2E2E; /* טקסט ראשי קריא (שחור/אפור כהה) */
    
    --border-cool: #81D4FA; /* גבולות עדינים וקווים מפרידים */
}


html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    /* Clean, light background for readability */
    background: linear-gradient(to bottom, #4FC3F7, #B3E5FC);
    /* Dark font for maximum contrast and professionalism */
    color: #2E2E2E;
    font-family: Arial, sans-serif; /* Add a standard font-family for clarity */
    
}

.no-scroll,
html.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}


/* Wrapper takes full height */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 94vh; /* Full viewport height */
    
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    left: 0;
    z-index: 1000; /* Ensure it stays above other elements */
    background-color: var(--blue-soft); /* Adjust the color as needed */
    height: 65px; /* Adjust the height as needed */
}
.content {
    flex: 1;
    margin-top: 65px; /* prevent header overlap */
    overflow-y: auto; /* make content scrollable if long */
    padding-bottom: 1rem;
}

footer {
    background-color: var(--sky-main);
    height: 65px;
    width: 100%;
    color: var(--text-light);
    flex-shrink: 0;
    z-index: 1000;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/*:root {
    --vh: 1vh;
}*/
/* Prevents extra background from appearing during Safari bounce effect */
html {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* Fix Safari's viewport resizing issue when scrolling */
.fullscreen-fix {
    height: 100vh;
    overflow: hidden;
}
/*
.fullscreen {
    height: calc(var(--vh, 1vh) * 100);
}
*/


.clock-area {
    background: transparent !important;
    color: inherit; /* or set a specific color if text isn't visible */
}
main {
    flex: 1; /* Allows the main content to take up remaining space */
    margin-top: 60px; /* Offset to avoid content being hidden under fixed header */
    margin-bottom: 0px; /* Offset for fixed footer was 60 */
    /*padding-bottom: 60px;*/
    overflow-y: auto; /* Allows the content to scroll vertically */
    box-sizing: border-box; /* Ensures padding doesn’t affect the overall height calculation */
}

main.main-content {
    flex: 1; /* Ensures the main content grows to fill the available space */
    padding: 20px;
    /*background-color: #fff;*/
    box-sizing: border-box;
    margin-bottom: 0px; /* Add space before the footer (space equivalent to a row height) was 50 */
}

@media (min-width: 768px) {
    html {
    font-size: 16px;
    }
   
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.leaflet-control-custom button {
    font-size: 12px;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    
}
/* Additional adjustment if needed for map controls */
.leaflet-container {
    z-index: 1; /* Make sure the map container stays below the menu */
}
/* Ensuring the map container adjusts dynamically */
#map {
    height: calc(95vh - 250px);  
    margin-top: 10px; /* Optional: If you need some space at the top */    
}

/*Serves the index page with map*/
#searchInput {
    width: 70vw !important; /* Default for mobile */
    padding: 5px;
    font-size: medium;
}

@media (min-width: 768px) {
    /*Serves the index page with map*/
    #searchInput {
        width: 300px !important; /* Fixed width for desktop */
    }
}

/* Limit popup width on mobile */
@media (max-width: 768px) {
    footer {
        /*display: none !important;*/
        display: flow !important;
    }
   
    .leaflet-popup-content-wrapper {
        max-width: 80vw !important; /* Limit width to 80% of the viewport width */
        word-wrap: break-word; /* Ensure long text breaks to avoid overflow */
        
    }

    .leaflet-popup-content {
        max-width: 100%; /* Ensure the content stays within the wrapper */
        overflow: auto; /* Add scrolling if needed */
    }
}

/* Adjust popup padding */
.leaflet-popup-content-wrapper {
    padding: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Optional: Add shadow for aesthetics */
}

.leaflet-control-custom button:hover {
    background-color: #f9f9f9;
}

.filter-button {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    padding: 6px 6px;
    cursor: pointer;
    margin-right: 2px;
    border-radius: 10px;
}

.filter-button.selected {
    background-color: #007bff;
    color: white;
    font-style:oblique;
    border-color: #007bff;
}

.filter-button:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-style: italic;
}

.custom-logout-button {
    /* Customize the button style here */
    background-color: #f00; /* Red background */
    color: #fff; /* White text */
    border: none;
    padding: 5px 5px 5px 5px;
    cursor: pointer;
}

.vertical-align {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin-left:10px;
    margin-bottom:10px;
}
.login-form table {
    border-collapse: collapse;
    /*width: 50%;*/
    border-radius: 5px;
}

.login-form td {
    padding: 5px;
    /*border: 1px solid #ccc;*/
    /*width:50%;*/
    text-align:left;
}

.login-form {
    text-align: center;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #3A405A;
}

.login-form div {
    margin-bottom: 10px; /* Adjust the margin as needed */
}

.photo-gallery {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.photo-gallery img {
    max-width: 100%;
    margin-bottom: 10px;
}
.carousel-inner img {
    max-height: 400px; /* Limit the height */
    object-fit: cover; /* Ensure the image doesn't get distorted */
}
/* Custom nested dropdowns */

/* For dark dropdown and submenu */
.dropdown-menu {
    background-color: #F57C00 !important;
}

.dropdown-submenu {
    position: relative;
    }

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    margin-right: 0.1rem;
    
}


.dropdown-menu .dropdown-item {
    color: white;
}

    .dropdown-menu .dropdown-item:hover {
        background-color: white;
        color: black !important;
    }

.badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: white;
}

.badge-success {
    background-color: green;
}

.badge-warning {
    background-color: orange;
}

.scrollable-container {
    max-height: 80vh; /* Limits the height of the container to 80% of the viewport height */
    overflow-y: auto; /* Enables vertical scrolling */
    overflow-x: hidden;
}

.emoji-marker {
    font-size: 38px;
    line-height: 42px;
    text-align: center;
    width: 42px;
    height: 42px;
}

/* Force Leaflet popups to be RTL */
.leaflet-popup-content-wrapper,
.leaflet-popup-content {
    direction: rtl !important;
    text-align: right !important;
}

/* Optional: Make the title bold and RTL friendly */
.popup-title {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
/* מסיר את העיצוב ברירת המחדל של Leaflet ל-divIcon */
.emoji-marker {
    background: none !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

    /* אם אתה רוצה שהאייקון יגדל קצת כשעוברים עליו עם העכבר */
    .emoji-marker:hover {
        transform: scale(1.5);
        transition: transform 0.2s;
    }