* {
  box-sizing: border-box;
}


html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #444444;
}
#header {height: auto; background-color: white; z-index: 1; border-radius: 15px; margin: 5px; padding: 10px; flex: 0 0 auto; }
#header img {height: 80px; float: left;}
#title {padding-top: 20px; font-size: 30px; font-family: Calibri, Arial; color: #202020; vertical-align: center; text-align: right;}
#content {
    flex: 1 1 auto;     /* Fill remaining height */
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin: 5px;
}
#sidePanel {
    width: 250px;     /* Adjustable */
    background: #ffffff;
    border-radius: 15px;
    padding: 10px;
    overflow-y: auto; /* Scroll if overflow */
    flex: 0 0 auto;   /* Fixed width */
}
#sideContent {
    font-family: Arial;
    color: #202020;
}
#map {
    flex: 1;
    /*margin: 5px;*/
    border-radius: 15px;
    min-width: 0;
}

@media (max-width: 768px) {
    #content {
      display: flex;
      flex-direction: column;  /* STACK vertically on mobile */
      gap: 8px;
      margin: 5px;
      height: calc(100vh - 85px - 20px - 2 * 10px);
    }

    #sidePanel {
        width: 100%;
    max-height: 40vh;      /* limit vertical size so map stays visible; adjust as needed */
    overflow-y: auto;      /* scroll the list if it grows */
    flex: 0 0 auto;
    min-width: 0;
    }

    #map {
          /* Map gets taller on mobile */
        width: 100%;
    flex: 1 1 auto;
    min-height: 40vh;      /* ensures map remains visible on small screens */
    border-radius: 10px;
    min-width: 0; 
    }
}
.calendar_item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 5px 0;
    border-bottom: 1px solid #AAAAAA;
}

/* The icon box */
.calendar_item .day {
    width: 50px;
    height: 50px;
    background: url("../images/calendar_icon.jpeg") no-repeat center center;
    background-size: contain;
    position: relative;     /* needed for absolute positioning */
}

/* The number inside the icon */
.calendar_item .dayNumber {
    position: absolute;
    top: 22px;              /* move downward 10px */
    left: 0;
    width: 100%;
    text-align: center;     /* center horizontally */
    font-size: 20px;
    font-weight: bold;
    line-height: 20px;
    color: darkred;
}
.calendar_item .housenumber {
    font-size: 25px;
    height: 50px;
    display: flex;
    align-items: center;        /* vertical centering */
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
      background-color: #2EADD7;
      border: 1px #000;
      color: #FFFFFF;
      font-weight: bold;
    }
#footer {height: 20px; background-color: #202020; color: #707070; font-family: Arial; font-size: 14px; padding: 10px; border-radius: 15px;margin: 5px; flex: 0 0 auto;}


.popup {
  position: absolute;
  width:250px;
  height:40px;
  background-color: #2EADD7;
  border: 1px solid black;
}
.popup .icon {
  float: left;
  height: 40px;
}
.popup .title {
  float: left;
  height: 40px;
  margin-top: 10px;
  margin-left: 10px;
  font-size: 14px;
  font-family: Arial;
}

/*.custom .leaflet-popup-tip,*/
.custom .leaflet-popup-content-wrapper {
    background: #2EADD7;
    color: #ffffff;
    border-radius: 2px;
    padding: 0px;
    border: 1px solid white;
}
.leaflet-popup-content-wrapper .leaflet-popup-content {
    margin: 5px;,
}
.custom .popupContainer {
  width: 250px;
}
.custom .popupContainer .icon {
  width: 40px;
  align: center;
}
.custom .popupContainer .title {
  font-size: 18px;
  font-family: Arial;
  color: white;
}
