.nav_down{
    background-color: var(--beige);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0px -3px 10px 0px rgba(230, 215, 174, 0.5);

    display: flex;
    justify-content: space-around; 
    align-items: center;
    z-index: 2;
}

.nav_up{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 1.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: none; 
}

#open-custom-overlay{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: left;
    color: #203336;
    border: none;
}

#custom-overlay {
  position: fixed;
  top: 0;
  left: 20%;
  width: 80%;
  height: 100%;
  background-color: var(--beige);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: left;
  padding: 2rem;
  z-index: 2000;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  pointer-events: none;

}

/* Actieve state */
#custom-overlay.active {
  transform: translateX(0);
  pointer-events: auto;
  box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
}

nav button img {
  width: 45px;
  height: 45px;
  margin-bottom: 5px;
}

nav button p {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  color: var(--rood);
  font-weight: bold;
}

.overlay-header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.close-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: flex-end;
}

.close-btn img {
  width: 40px;
  height: 40px;
  display: block;
}

#custom-overlay.active {
  display: flex;
  pointer-events: auto;
  opacity: 1;
}
  
#custom-overlay h2 {
  margin-bottom: 2rem;
  color: var(--rood);
}
  
#custom-overlay button {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: var(--rood);
  text-decoration: none;
  font-weight: bold;
}

#open-custom-overlay p{
  font-family: 'poppins', sans-serif;
}

.link_arrow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  gap: 20px; 
}

.link_arrow img {
  height: 20px;
  width: auto;
}

.line{
  width:100%;
  border-width:0.01px; 
  text-align:left;
  margin-left:0;
  border-color: var(--rood);
}

.submenu {
  position: fixed;
  opacity: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--beige);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  pointer-events: none;
}

.submenu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}

.submenu-header {
  display: flex;
  align-items: center;
  position: relative; 
  margin-bottom: 20px;
}

.submenu-header h2 {
  margin: 16px 10px;
  font-size: 24px;
  font-weight: bold;
}

.back-btn img {
  width: auto;
  height: 40px;
}

.back-btn {
  background: none;
  border: none;
  font-size: 24px;
  margin-right: 10px;
  cursor: pointer;
}

.submenu-list {
  list-style: none;
  width: 90%;
  padding: 0;
}

.submenu-list li {
  margin-bottom: 12px;
  font-size: 18px;
  cursor: pointer;
  color: var(--rood);
}

/* Algemene stijling */
.overlay-menu {
  position: fixed;
  background-color: #fef1e7;
  border-radius: 15px;
  padding: 1em;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
  left: auto;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Wanneer zichtbaar */
.overlay-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Positionering per menu */
#horeca-menu {
  left: 25%;
  bottom: 110px;
}

#eventlocaties-menu {
  left: 25%;
  bottom: 110px;
}

#parkings-menu {
  left: 25%;
  bottom: 110px;
}
.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.3em;
  color: #631f1f;
  margin-bottom: 0.1em;
}

.overlay-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overlay-menu ul li {
  padding: 0.5em 0;
  border-bottom: 1px solid #d3bfbf;
  cursor: pointer;
  color: #4a2b2b;
}

.overlay-menu ul li:last-child {
  border-bottom: none;
}

.close-menu {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #631f1f;
}


/*responsive*/
@media screen and (min-width: 768px) {
#open-custom-overlay {
  display: none;
}
#custom-overlay {
  display: block !important;
  transform: translateX(0) !important;
  pointer-events: auto;
  justify-self: flex-end;
  position: fixed;
  top: 0;
  left: auto;
  right: 0;
  width: 30%;
  height: 100vh;
  background-color: var(--beige);
  
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start; 

  padding: 2rem;
  z-index: 2000;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
} 
#map {
  margin-right: 30%; 
  width: calc(100% - 30%);
}
.nav_down {
  width: 70%;
}
.nav_down_btn{
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.nav_down_btn img{
  width: 30px;
  height: 30px;
}
.nav_down_btn p{
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 20px;
}
.nav_up {
  width: 70%;
  display: flex;
}
#close-overlay{
  display: none;
}
.overlay-menu {
  position: fixed;
    right: 0;
transform: translateX(0);
  background-color: #fef1e7;
  width: 400px;
}
.submenu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.4s ease;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.submenu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.submenu-list{
  padding-left: 10px;
}
.back-btn img {
  width: auto;
  height: 40px;
}
.back-btn {
  background: none;
  border: none;
  font-size: 24px;
  margin-right: 10px;
  cursor: pointer;
}
}
