:root {
    --brown-color: #6F4930;
    --dark-green-color: #213A1B;
    --light-blue-color: #BAE5F9;
    --light-green-color: #56903A;
    --orange-color: #C56C39;
}

body {
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 1;
}

#map {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    /*border-width: 1px;*/
    /*border-color: var(--dark-green-color);*/
    /*border-style: solid;*/
}

/*****************************************************************************/

.leaflet-popup-content {
    max-height: 600px;  /* Adjust the height to your preference */
    max-width: 600px;
    overflow-y: auto;   /* Adds a vertical scroll bar only if content overflows */
    padding-right: 20px; /* Optional: prevents text from getting cut off by the scrollbar */
    scrollbar-color: var(--dark-green-color) var(--light-blue-color);
    scrollbar-width: auto;
    /*position: absolute;*/
    /*z-index: 2;*/
}

.leaflet-popup-content::-webkit-scrollbar-thumb:hover {
    color: var(--brown-color) !important;
}

.leaflet-popup-content::-webkit-scrollbar-track {
    background: var(--light-blue-color);
}

.leaflet-popup-content-wrapper {
    background-color: var(--light-blue-color);
    color: var(--brown-color);
}

.leaflet-popup-tip {
    background-color: var(--light-blue-color);
}

.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before,
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before {
    border-color: transparent !important;
}

/*****************************************************************************/

.leaflet-tooltip.tooltip {
    background-color: var(--dark-green-color);
    color: var(--light-blue-color);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: normal;
    border: 1px solid var(--orange-color);
    border-radius: 10px;
    padding: 6px 10px;
    /*box-shadow: 0 3px 6px rgba(0,0,0,0.25);*/

    /* Allow text to wrap if the content is long */
    white-space: normal;
    max-width: 300px;
    min-width: 300px;
    width: 300px;

    /*position: absolute; !* Crucial! z-index will be ignored without this *!*/
    /*z-index: 3;*/
}

.leaflet-tooltip {
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.leaflet-tooltip.leaflet-zoom-animated {
    opacity: 1;
}

/* 2. Format the triangle for Tooltips appearing ABOVE the marker */
.leaflet-tooltip-top::before {
    border-top-color: var(--brown-color) !important; /* Outer triangle / Border color */
    /* If you don't have a border, set this to your background color (#333) instead */
}

/* 3. Format the triangle for Tooltips appearing BELOW the marker */
.leaflet-tooltip-bottom::before {
    border-bottom-color: var(--brown-color) !important;
}

/* 4. Format the triangle for Tooltips appearing to the LEFT of the marker */
.leaflet-tooltip-left::before {
    border-left-color: var(--brown-color) !important;
}

/* 5. Format the triangle for Tooltips appearing to the RIGHT of the marker */
.leaflet-tooltip-right::before {
    border-right-color: var(--brown-color) !important;
}



/*****************************************************************************/



/*.infoWindow {*/
/*    padding: 0px;*/
/*    max-width: 550px;*/
/*}*/

.leaflet-popup-content h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    padding: 5px;
    font-family: 'Roboto', sans-serif;
    border-radius: 10px;
    background-color: var(--dark-green-color);
    color: var(--light-blue-color);
    width: 100%;
}

.leaflet-popup-content h2 {
    font-size: 17px;
    font-weight: bold;
    margin: 0 -5px;
    padding: 3px 5px;
    font-family: 'Roboto', sans-serif;
    -moz-border-radius-topleft: 7px;
    -moz-border-radius-topright: 7px;
    background-color: var(--dark-green-color);
    color: var(--light-blue-color);
    width: 100%;
}

.leaflet-popup-content p {
    color: var(--brown-color);
    font-size: 14px;
    margin: 8px 0;
    padding: 0;
}

.leaflet-popup-content ul {
    margin: 0 0 0 20px;
    padding: 0;
    list-style-type: disc;
}

.leaflet-popup-content li {
    color: var(--brown-color);
    font-size: 14px;
    margin: 0;
    padding: 0;
    vertical-align: text-top;
}

.leaflet-popup-content a {
    color: var(--brown-color);
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.leaflet-popup-content a:hover {
    color: var(--light-blue-color);
    background-color: var(--orange-color);
}

.leaflet-popup-content table {
    padding: 0;
    margin: 0;
}

.leaflet-popup-content tr {
    padding: 0;
    margin: 0;
}

.leaflet-popup-content td {
    padding: 0;
    margin: 0;
}


.leaflet-popup-content img {
    max-width: 540px;    /* Prevents the image from ever overflowing its container */
    max-height: 400px;  /* Limits the height strictly to 400 pixels */
    width: auto;        /* Keeps aspect ratio intact */
    height: auto;       /* Keeps aspect ratio intact */}




.infoWindow-slideshow {
    /*max-width: 100%;*/
    width: 100%;
    text-align: center;
    align-content: center;
    margin: auto;
}

/* Hide the images by default */
.infoWindow-slide {
    width: 100%;
    text-align: center;
    align-content: center;
    display: none;
}

.infoWindow-previous-button {
    cursor: pointer;
    /*position: absolute;*/
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}


/* Next & previous buttons */
.infoWindow-next-button {
    cursor: pointer;
    /*position: absolute;*/
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}


/* Caption text */
.infoWindow-caption {
    color: var(--brown-color);
    font-size: 15px;
    font-weight: bold;
    padding-left: 20px;
    padding-right: 20px;
    /*position: absolute;*/
    /*width: 100%;*/
    text-align: center;
    display: none;
}

.infoWindow-dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: var(--dark-green-color);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.infoWindow-dot:hover {
    background-color: var(--orange-color);
}

.infoWindow-active {
    background-color: var(--light-green-color);
}




.infoWindow-tab0 {
    color: var(--brown-color);
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.infoWindow-tab1 {
    color: var(--brown-color);
    font-size: 14px;
    margin: 0 0 0 20px;
    padding: 0;
}

.infoWindow-tab2 {
    color: var(--brown-color);
    font-size: 14px;
    margin: 0 0 0 40px;
    padding: 0;
}

.infoWindow-tab3 {
    color: var(--brown-color);
    font-size: 14px;
    margin: 0 0 0 60px;
    padding: 0;
}

/* Overall Layout Container */
.category-container {
    /*max-width: 500px;*/
    margin: 0;
    padding: 0 5px;
    font-family: 'Roboto', sans-serif;
    background: var(--light-blue-color);
    border: 3px solid var(--dark-green-color);
    border-radius: 10px;
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);*/
    /*overflow: hidden;*/
}

/* Tab Header Navigation Bar */
.activities-tabs {
    /*display: flex;*/
    background-color: var(--light-blue-color);
    border-radius: 10px;
    margin: 0;
    padding: 5px 0 0 0;
    text-align: justify;
    list-style: none;
    width: 100%;
    display: flex;
    flex-wrap: wrap;            /* Allows buttons to drop to a new line */
    justify-content: stretch; /* Spreads buttons evenly across the line */
    gap: 5px;                  /* Adds space between the buttons and rows */
}

/* Individual Tab Buttons */
.activity-button {
    /*flex: 1;*/
    padding: 4px 8px;
    margin: 2px;
    background: var(--dark-green-color);
    /*border: 3px solid var(--brown-color);*/
    border-radius: 10px;
    /*outline: none;*/
    font-size: 15px;
    font-weight: bold;
    color: var(--light-blue-color);
    cursor: pointer;
    /*transition: all 0.2s ease-in-out;*/
    box-shadow: none;
    border: none;
}

.activity-button:hover {
    background-color: var(--orange-color);
    color: var(--light-blue-color);
}

/* Active Tab Visual Styling */
.activity-button.active {
    background-color: var(--light-green-color);
    color: var(--light-blue-color);
    /*border-bottom: 3px solid var(--dark-green-color);*/
    /*margin-bottom: -2px; !* Overlaps border container smoothly *!*/
}

/* Tab Content Area Panels */
.activity-pane {
    display: none;
    /*padding: 2rem;*/
    /*animation: fadeIn 0.4s ease;*/
}

/* Display Active Tab Pane */
.activity-pane.active {
    display: block;
}

/* Smooth Fade Animation */
/*@keyframes fadeIn {*/
/*    from { opacity: 0; transform: translateY(4px); }*/
/*    to { opacity: 1; transform: translateY(0); }*/
/*}*/



/* The container controls the positioning context */
.infoWindow-tooltip-container {
    /*position: relative;*/
    /*display: inline-block;*/
    /*cursor: pointer;*/
    /*border-bottom: 1px dashed #333; !* Visual cue for users *!*/
}

/* Hide the tooltip by default and apply basic styling */
.infoWindow-tooltip-container .infoWindow-tooltip-text {
    display: none;
    /*white-space: normal;*/
    /*max-width: 300px;*/
    /*min-width: 300px;*/
    /*width: 300px;*/
    /*background-color: var(--dark-green-color);*/
    /*color: var(--light-blue-color);*/
    /*text-align: center;*/
    /*border-radius: 10px;*/
    /*!*padding: 8px;*!*/
    /*padding: 6px 10px;*/
    /*font-family: 'Roboto', sans-serif;*/
    /*font-size: 14px;*/

    /*!* Position the tooltip above the text *!*/
    /*position: absolute;*/
    /*z-index: 1;*/
    /*bottom: 100%; !* Places it directly above the container *!*/
    /*left: 50%;*/
    /*!*transform: translateX(-50%); !* Centers the tooltip horizontally *!*!*/
    /*transform: translate(10px, -20px);*/

    /*!* Optional: Add a smooth fade-in effect *!*/
    /*opacity: 0;*/
    /*transition: opacity 0.3s;*/
}

/* Reveal the tooltip when hovering over the container */
/*.infoWindow-tooltip-container:hover .infoWindow-tooltip-text {*/
/*    visibility: visible;*/
/*    opacity: 1;*/
/*}*/
