﻿.cemetery-container {
    width: 100%;
    margin: auto;
    overflow-x: auto; /* Enable horizontal scrolling */
    position: relative; /* important for absolute popups */
    white-space: nowrap; /* Prevent the map from wrapping to the next line */
}

.plot {
    position: relative;
    z-index: 0; /* ensures popup can rise above */
    text-align: center;
    font-size: 10px;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: background-color 0.3s;
    background-color: #fff;
}

    .plot.available {
        background-color: #80c97e; /* Light green for available plots */
    }

    .plot.male {
        background-color: #23a3cd; /* Light blue for male plots */
    }

    .plot.female {
        background-color: #f3a7ad; /* Light pink for female plots */
    }

    .plot.reserved {
        background-color: #ffca96; /* Light yellow for reserved plots */
    }
    .plot.unavailable {
        background-color: grey;
    }
    .plot:hover {
        filter: brightness(0.9);
    }

    .plot:hover {
        filter: brightness(0.9);
    }

    .plot.active::after {
        content: '';
        position: absolute;
        top: -21px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 25px solid #ff0000;
    }

    .plot.active {
        border: 2px solid #ff0000; /* Add a border to highlight the plot */
    }



.info-box {
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.popup {
    position: absolute;
    z-index: 9999; /* ensure it's above all plots */
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: auto;
    display: inline-block;
}

.popup-content {
    position: relative;
}

.close-btn {
    position: absolute;
    top: 2px;
    right: 4px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #666;
}

/* Ensure all containers allow overflow */
#cemetery, .row, .container, .col-md-12 {
    overflow: visible !important;
}

.sidebar-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    max-width: 90vw;
    height: 100%;
    background: #141e3c;
    border-left: 1px solid #ccc;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 2000;
    pointer-events: none;
}

    .sidebar-panel.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

.sidebar-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    position: relative;
    text-transform: capitalize;
}

#sidebarDetails {
    font-size: 14px;
    color: #fff;
}



.synagog-label {
    font-size: 28px;
    font-weight: bold;
    text-align: right;
    color: #333;
}

.plot.spacer {
    padding: 0;
}

.plot.active {
    background-color: #f57c00;
    border: #f57c00;
    box-shadow: 0px 0px 10px #f57c00;
}

.key-section {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 14px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    flex-wrap: wrap; /* Allows the key section to wrap when necessary */
}

.key-item {
    display: flex;
    align-items: center;
}

.key-color {
    width: 20px;
    height: 20px;
    margin-right: 8px; /* Space between color and label */
    border-radius: 50%; /* Make the color circle */
}

    /* Colors for the key items */
    .key-color.male {
        background-color: #23a3cd; /* Light blue */
    }

    .key-color.female {
        background-color: #f3a7ad; /* Light pink */
    }

    .key-color.available {
        background-color: #80c97e; /* Light green */
    }

    .key-color.reserved {
        background-color: #ffca96; /* Light yellow */
    }

    .key-color.unknown {
        background-color: #ffffff; /* White for Unknown Gender */
        border: 1px solid #ccc; /* Optional border for visibility */
    }
    .key-color.unavailable {
        background-color: grey; /* Light yellow */
    }
.key-label {
    font-size: 14px;
    color: #333;
}

.MapHolder {
    background: #fff;
    padding: 20px;
}

.SectionName {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

@keyframes blink {
    0% {
        background-color: #FFFF00; /* Yellow */
        box-shadow: 0 0 10px rgba(255, 255, 0 0.8); /* Soft Yellow Glow */
    }

    50% {
        background-color: #f57c00; /* Soft Yellow */
        box-shadow: 0 0 10px rgba(186, 173, 123, 0.8); /* Soft Yellow Glow */
    }

    100% {
        background-color: #FFFF00; /* Yellow */
        box-shadow: 0 0 10px rgba(255, 255, 0 0.8); /* Soft Yellow Glow */
    }
}

@media (max-width: 768px) {
    /* Optionally adjust the layout on smaller screens */
    .key-section {
        flex-direction: column; /* Stack the key items vertically */
        align-items: center; /* Center the items */
    }
}

.plot.active {
    animation: blink 1s infinite ease-in-out; /* Blink every 2 seconds with smooth transition */
    transition: all 0.3s ease;
}

img.gravepic {
    width: 100%;
    margin-bottom: 20px;
}

.MapToggler {
    background: #fff;
    margin: 30px 0;
    padding: 25px 0;
}
.SectionTitle {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}
.ToggleItem.Active .SectionTitle {
    color: #baad7b;
}


.MakeResponsiveCemetery {
    overflow-x: scroll;
    padding-top: 25px;
}
div#cemetery {
    width: 1110px;
}
.MapSubText {
    text-align: center;
    margin-top: -15px;
    margin-bottom: 20px;
    font-size: 13px;
}
.CloseButton {
    color: #FFF;
    text-align: right;
    display: block;
    padding-right: 20px;
    padding-top: 10px;
    font-size: 17px;
    cursor:pointer;
}


#table th {
    border-left: solid 1px white !important;
}

    #table th:first-child {
        border-left: 0 !important;
    }

th.hiddenSort::before {
    display: none !important;
}

th.hiddenSort::after {
    display: none !important;
}

table.dataTable thead .sorting:before, table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_asc_disabled:before, table.dataTable thead .sorting_desc_disabled:before {
    top: 5px !important
}

table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after, table.dataTable thead .sorting_asc_disabled:after, table.dataTable thead .sorting_desc_disabled:after {
    top: 5px !important;
}

.dropdown_holder select:focus, .dropdown_holder select:active, #datatable-buttons_filter input:active, #datatable-buttons_filter input:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: #ff6503;
}


div.dataTables_wrapper div.dataTables_filter input {
    border: 1px solid rgb(169,169,169);
    height: 31.42px;
    font-weight: normal;
}

div#datatable-buttons_filter {
    margin-top: -6px;
}

    div#datatable-buttons_filter label {
        display: inline-block;
        max-width: 100%;
        margin-bottom: 5px;
        font-weight: 700;
        color: #5d6d7a;
    }

.mediator-filters {
    margin-bottom: -25px;
    margin-top: 10px;
    position: relative;
    z-index: 1000;
    display: block;
    max-width: 50%;
}

.dropdown_holder select {
    height: 31px;
    width: 150px;
}

.dropdown_holder {
    display: inline-block;
    margin-right: 20px
}

.indstryName, .typeName {
    display: inline;
}

    .indstryName:last-child span {
        display: none;
    }

    .typeName:last-child span {
        display: none;
    }

#table table {
    margin: 0 auto;
}


#table th {
    white-space: nowrap;
    padding-right: 25px !important;
    text-align: left;
    color: #fff;
    text-transform: uppercase;
    padding: 10px 8px;
    vertical-align: text-bottom;
    border: 1px solid;
    vertical-align: middle;
    background: #141e3c;
    font-weight: normal;
}

#table td {
    text-align: left;
    border: 1px solid;
}

#table table {
    padding-left: 0;
}


#table table {
    border: solid 1px #141e3c;
    border-width: 0 1px 1px 0;
    border-spacing: 0;
    border-collapse: inherit
}

#table th, #table td {
    border: solid 1px #141e3c;
    border-width: 1px 0 0 1px;
    padding: 7px 5px;
    vertical-align: top;
    text-transform: capitalize
}

#table table {
    margin-bottom: 20px;
}

div#datatable-buttons_filter {
    display: none;
}
#searchArea {
    /* width: 250px; */
    padding: 20px;
    background-color: #FFF;
    /* border: 1px solid #ccc; */
    transform: translateX(100%);
    transition: transform 0.5s ease-out;
    visibility: hidden;
    margin-bottom: 32px;
    display: none;
    margin-top: 20px;
}

    #searchArea.active {
        display: block;
        transform: translateX(0); /* Slide to its normal position */
        visibility: visible; /* Ensure it's visible when active */
    }
#searchBtn {
    /* background-color: #4CAF50; */
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 20px auto;
}

    #searchBtn:hover {
        background-color: #141e3c;
    }
.deceasedDonate.Unavailable_button {
    display: none;
}
img.gravepic.unavailable {
    display: none;
}
input#searchbox {
    border: 1px #141e3c solid;
}