   body, html { margin: 0; padding: 0; height: 100%; font-family: "Segoe UI", sans-serif; }
    #map { position: absolute; top: 0; bottom: 0; width: 100%; }

 /* ============================= */
/* MENU BUTTON */
/* ============================= */
/* OPEN BUTTON (☰) */
.menu-open-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1102;

  background: #3997d3;
  color: #fff;
  border: none;
  padding: 10px 12px;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
}

/* CLOSE BUTTON (✕ inside panel) */
.panel-header {
  position: relative;
}

.menu-close-btn {
  position: absolute;
  top: 6px;
  right: 8px;

  background: transparent;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* 🔥 HIDE OPEN BUTTON WHEN PANEL IS ACTIVE */
#dashboard:not(.dashboard-hidden) ~ .menu-open-btn {
  display: none;
}


/* BUTTON INSIDE PANEL */
.menu-btn {
  position: absolute;
  top: 6px;
  right: 8px;

  background: transparent;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;

  padding: 4px 6px;
  border-radius: 4px;
}

.menu-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* ============================= */
/* DASHBOARD CONTAINER */
/* ============================= */
#dashboard {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 300px;
  z-index: 1101; /* above overlay */
  background: #fff;

  display: flex;
  flex-direction: column;

  box-shadow: 2px 0 12px rgba(0,0,0,0.3);

  transition: transform 0.3s ease;
}

/* Hidden state */
#dashboard.dashboard-hidden {
  transform: translateX(-110%);
}


/* ============================= */
/* OVERLAY */
/* ============================= */
#panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.3);

  z-index: 1100; /* BELOW dashboard */
  
  display: none;
}

#panel-overlay.active {
  display: block;
}


/* ============================= */
/* PANEL STYLING */
/* ============================= */
.panel {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

/* Headers */
.panel-header {
  background: #3997d3;
  color: #fff;
  padding: 10px 12px;
  font-weight: bold;
  font-size: 15px;
}

.divider-panel-header {
  background: #5c5d59;
  color: #fff;
  padding: 10px 12px;
  font-weight: bold;
  font-size: 15px;
}

/* Body */
.panel-body {
  padding: 8px;
  overflow-y: auto;
  flex-grow: 1;
}


/* ============================= */
/* LAYER ITEMS */
/* ============================= */
.layer-item {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 6px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;

  transition: background 0.2s;
  font-size: 14px;
}

.layer-item:hover {
  background: #e9ecef;
}

/* Controls */
.layer-controls button {
  border: none;
  background: none;
  cursor: pointer;
  margin-left: 4px;
  font-size: 14px;
}

.layer-controls button:hover {
  background: #e9ecef;
}

.layer-controls .icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}


/* ============================= */
/* MOBILE ADJUSTMENT */
/* ============================= */
@media (max-width: 768px) {
  #dashboard {
    width: 260px;
  }
}


    #notice {
    position: fixed;
    bottom: 0;
    right: 0;
  }
  
.Btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 60%;
  cursor: pointer;
  position: absolute;
  top: 10px;        /* distance from top edge */
  right: 10px;      /* distance from right edge */
  overflow: hidden;
  transition-duration: .3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
  background-color: rgb(255, 65, 65);
}

.sign {
  width: 100%;
  transition-duration: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign svg {
  width: 17px;
}

.sign svg path {
  fill: white;
}

.text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 1.2em;
  font-weight: 600;
  transition-duration: .3s;
}

.Btn:hover {
  width: 125px;
  border-radius: 40px;
  transition-duration: .3s;
}

.Btn:hover .sign {
  width: 30%;
  transition-duration: .3s;
  padding-left: 20px;
}

.Btn:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: .3s;
  padding-right: 10px;
}

.Btn:active {
  transform: translate(2px ,2px);
}

.windowheader{

width:332px;
height:40px;
background-color:#48b5e9;
border-radius: 5px 5px 0px 0px;
margin-top: -20px;
margin-left: -20px;
margin-right: -21px;
}



.header_infowindow{
padding-top:5px;
padding-left:20px;
color:white;
font-size:18px;
font-family: calibri;

}


.maincontent{
color:black;
width: 332px;
height: 160px;
background-color: white;
margin-left:-20px;
position: absolute;
overflow-y: auto;
overflow-x: hidden;

}    




.traversed{


font-family: century gothic;
font-size: 13px;
padding-left: 15px;
position:absolute;
}

.trav_content{

font-family: century gothic;
font-size: 13px;

}

.trav_content_1{

font-family: century gothic;
font-size: 13px;
position:absolute;
padding-top: 35px;
padding-left: 155px;
}


.lenght{


font-family: century gothic;
font-size: 13px;

padding-top: 20px;
padding-left: 15px;

position:absolute;



}

.lenght_2{


font-family: century gothic;
font-size: 13px;

padding-top: 15px;
padding-left: 15px;

position:absolute;



}

.len_content{

font-family: century gothic;
font-size: 13px;
}

.town{


font-family: century gothic;
font-size: 13px;

padding-top: 40px;
padding-left: 15px;


}
.town_2{


font-family: century gothic;
font-size: 13px;

padding-top: 50px;
padding-left: 15px;
}

ul.town_content{
font-family: century gothic;
font-size: 13px;
position:absolute;
margin-top: -35px;
padding-left: 165px;
list-style-type: none;
}


ul.town_content_2{
font-family: century gothic;
font-size: 13px;
position:absolute;
margin-top: -35px;
padding-left: 165px;
list-style-type: none;
}

.custom .leaflet-popup-close-button{

color:white !important;

}

.visitor-mini-widget {
    position: fixed; /* float above page */
    bottom: 0px;
    left: 0px;
    background: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.14);
    width: 300px;   /* medium width */
    text-align: center;
    font-family: "Segoe UI", Arial, sans-serif;
    z-index: 9999; /* appear above everything */
    font-size: 0.95rem; /* medium text */
}

.visitor-mini-widget h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.visitor-mini-widget h4 {
    margin: 4px 0 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}

.visitor-numbers {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.visitor-numbers i {
    font-size: 22px;  /* medium icons */
    margin-bottom: 3px;
}

.icon-total { color: #0d6efd; }
.icon-foreign { color: #e67e22; }
.icon-local { color: #2ecc71; }

.visitor-numbers h2 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.visitor-numbers span {
    display: block;
    margin-top: 3px;
    font-size: 0.75rem;
    color: #666;
}

@media (max-width: 600px) {
    .visitor-mini-widget {
        width: 180px;
        right: 10px;
        top: 10px;
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .visitor-numbers i {
        font-size: 18px;
    }

    .visitor-numbers h2 {
        font-size: 0.8rem;
    }

    .visitor-numbers span {
        font-size: 0.7rem;
    }
}

.manila-mini-widget {
    position: fixed;
    bottom: 300px;
    left: 15px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 300px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 0.85rem;
    z-index: 9999;
    color: #333;
}

.widget-date {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
    margin: 0 0 4px 0;
}

.manila-mini-widget h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0d6efd;
    text-align: center;
}

.manila-mini-widget h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #023020;
    text-align: center;
}
.widget-section {
    margin-bottom: 10px;
}

.weather-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-icon {
    font-size: 30px;
    color: #f39c12;
}

.weather-info p {
    margin: 2px 0;
    font-size: 0.75rem;
}

.sunrise-icon { color: #f1c40f; margin-right: 3px; }
.sunset-icon { color: #e67e22; margin-right: 3px; }

.tide-section {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.tide-high, .tide-low {
    text-align: center;
    flex: 1;
}

.tide-high .icon-high, .tide-low .icon-low {
    font-size: 20px;
}

.tide-high h2, .tide-low h2 {
    margin: 2px 0;
    font-size: 0.8rem;
}

.tide-high span, .tide-low span {
    font-size: 0.65rem;
    color: #555;
}

.icon-high { color: #0d6efd; }
.icon-low { color: #e67e22; }
.tide-arrow { font-size: 0.7rem; margin-left: 3px; }

@media (max-width: 600px) {
    .manila-mini-widget {
        width: 200px;
        padding: 12px 14px;
        font-size: 0.75rem;
    }

    .widget-date { font-size: 0.65rem; }
    .weather-icon { font-size: 24px; }
    .sunrise-icon, .sunset-icon { font-size: 14px; }
    .tide-high .icon-high, .tide-low .icon-low { font-size: 16px; }
    .tide-high h2, .tide-low h2 { font-size: 0.7rem; }
    .tide-high span, .tide-low span { font-size: 0.6rem; }
}
.mapboxgl-ctrl-scale {
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.minimize-btn {
    background: #333;
    color: #fff;
    border: none;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
}

.widget-content {
    margin-top: 10px;
    transition: all 0.3s ease;
}

.widget-content.minimized {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
}

.legend {
    position: absolute;
    top: 20px;              /* distance from top */
    left: 50%;              /* move to center horizontally */
    transform: translateX(-50%);  /* perfect centering */

    background: white;
    padding: 12px;
    font-size: 12px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);

    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.legend h4 {
    margin: 0;
    font-size: 13px;
}

.legend div {
    display: flex;
    align-items: center;
}

.legend span {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    display: inline-block;
    border-radius: 3px;
}