* {
    font-family: 'Heebo', arial;
    box-sizing: border-box;
}


:root {
    --header: #4d7b2b;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.offset {
    position: fixed;
    top: -99px;
}

.map {
    height: 100%;
}

@media (min-width: 768px) {
    .map {
        margin-right: 300px;
        padding: 30px;
    }
}

#map {
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    #map {
        border-radius: 30px;
        border: 1px solid #ddd;
    }
}

.toggle-nav {
    display: none;

    position: fixed;
    top: 10px;
    right: 0;
    z-index: 9999;

    font-size: 30px;
    background: rgba(0, 0, 0, 1);
    border-radius: 2rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    color: #fff;
    padding: 10px 15px;
    border: 0;

    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.toggle-nav em {
    font-family: 'FontAwesome';
    font-style: normal;
}

.toggle-nav em:before {
    content: '\f0c9';
}

.toggle-nav.opened em:before {
    content: '\f00d';
}

.side {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    background: #fff;
    height: 100%;
    overflow: auto;
    z-index: 999;
}

@media (min-width: 768px) {
    .side {
        padding-right: 20px;
        padding-top: 30px;
    }
}

@media (max-width: 767px) {

    .toggle-nav {
        display: block;
    }

    .side {
        margin-right: -550px;
        -o-transition: .5s;
        -ms-transition: .5s;
        -moz-transition: .5s;
        -webkit-transition: .5s;
        transition: .5s;
    }

    .side.opened {
        margin-right: 0;
    }
}

.search {
    position: relative;
    margin-bottom: 20px;
}

.search input {
    width: 100%;
    padding: 10px;
    border: 0;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 30px;
}

.search button {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 0 10px;
    background: none;
    border: 0;
    font-size: 20px;
    width: 50px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul ul {
    margin-right: 39px;
    border-right: 1px solid #ddd;

    display: none;
}

nav ul > li {
    position: relative;
}

nav ul > li > label {
    display: flex;
    align-items: center;
    /* background-color: rgb(0 0 0 / 0.05); */
    position: relative;
}

nav ul > li > label:hover {
    background: #f1f1f1;
    cursor: pointer;
}

nav ul > li > label .checkbox {
    position: absolute;
    top: 50%;
    right: 54px;
    margin-top: -8px;
}

nav ul > li > label[for="cat0"]:hover {
    color: #fff;
    background-color: var(--header);
    background-color: #DDD;

    /* & .name {
        color: #fff;
    } */
}

nav ul > li > label[for="cat0"] .name {
    padding-right: 60px;
}

nav ul > li > label[for="cat0"] input {
    display: none;
}

nav ul > li > label .name {
    padding: 5px 0;
    padding-right: 8px;
    gap: 2.4rem;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

nav ul ul > li > label .name {
    font-size: 1rem;
}

nav ul > li > label .icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    float: right;
    text-align: center;
    min-width: 40px;
}

nav ul > li > label .icon img {
    filter: hue-rotate(154deg);
    width: 62%;

}

.inline-icon img {
    transform: translateY(1px) translateX(4px);
}


li {
    list-style: none;
    margin: 10px 0;
    font-family: system-ui, -apple-system, sans-serif;
}

/* 2. The Label Container (The Wrapper Card) */
li label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 2px 16px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    /* Soft gray border */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;

    /* Support for Hebrew/RTL text alignment */
    direction: rtl;
    min-height: 48px;
}

/* Hover effects for the whole row */
li label:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    transform: translateY(-1px);
}

/* 3. The Custom Checkbox */
.category-checkbox {
    /* Hides the default ugly browser checkbox */
    appearance: none;
    -webkit-appearance: none;

    /* Custom dimensions */
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}

/* Checkbox Hover */
.category-checkbox:hover {
    border-color: #94a3b8;
}

/* 4. Checkbox Checked State */
.category-checkbox:checked {
    background-color: #444
        /*var(--header)*/
    ;
    /* Modern vibrant blue */
    border-color: #444;
}

/* Draw the custom checkmark using a pseudo-element */
.category-checkbox:checked::before {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) translate(1px, -1px);
}

/* 5. Dynamic Row Styling (When Checked) */
/* This highlights the whole card beautifully when selected */
li label:has(.category-checkbox:checked) {
    /* border-color: var(--header); */
    border-color: #444;
    background-color: rgb(0 0 0 / 0.05);
    min-height: 48px;
    /* background-color: #477d3417; */
}

/* 6. Icon and Typography Adjustments */
.icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.name {
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    transition: color 0.2s ease;
    line-height: 0.9;
}

/* Change text color slightly when checked */
li label:has(.category-checkbox:checked) .name {
    color: var(--header);
    color: #222;
    font-weight: 500;
}


.submenu-arrow {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: 0;
    z-index: 9;
    height: 36px;
    width: 30px;
    font-size: 24px;
}

.submenu-arrow:before {
    content: '\f104';
    font-family: 'FontAwesome';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.submenu-arrow.opened:before {
    content: '\f107';
}

/**/

.comment {
    font-size: 80%;
    padding: 15px;
    color: #333;
}


@media (max-width: 767px) {
    .side {
        padding-top: 80px;
        background: rgba(255, 255, 255, 0.95)
    }
}


.marker-circle {
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    filter: grayscale(1);
}

.leaflet-popup-content-wrapper {
    border-radius: 30px;
}

.leaflet-popup-content h1,
.leaflet-popup-content h2 {
    text-align: right;
    font-size: 1.55rem !important;
    line-height: 1;
    margin-bottom: 0;
    color: #b90093;
    font-weight: 900;
}

.leaflet-popup-content p {
    margin: 0.6em 0 !important;
    text-align: right;
}

.leaflet-popup-content h2 {
    font-size: 1.25rem !important;
    font-weight: 400;
    color: #222;
    margin-top: 5px;
}