/* General Styles */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

body {
  margin-top: 60px;
  font-family: Arial, sans-serif;
  display: flex;
  height: 100vh;
}

#map {
  flex: 2;
  height: 100%;
  /* margin-top: 60px; */
}

/* Header Styles */
header {
  color: #fff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #f8f8f8;
  padding: 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-family: "Lora", serif;
}

header h1 a {
  text-decoration: none;
  color: #333;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

header nav ul li {
  margin-left: 20px;
}

header nav ul li a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #e9a50d;
}

/* Sidebar Styles */
#sidebar {
  flex: 0.8;
  padding: 10px;
  overflow-y: auto;
  width: 400px;
  background-color: #f4f4f4;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.book {
  cursor: pointer;
  margin: 5px 0;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
}
.book:hover {
  background-color: #e0e0e0;
}


/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Initially hidden on larger screens */
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  margin: 0;
  color: #333;
  font-size: 2rem;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  #sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #f4f4f4;
    transition: right 0.4s ease-in-out;
    z-index: 1100; 
  }

  #sidebar.active {
    right: 0;
  }

  .container h1{
    font-size: 2rem;
  }

  header .container {
    position: relative;
  }

  header nav {
    display: none;
  }

  #close-sidebar {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    padding: 0.5rem;
  }

  .hamburger-menu {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    font-size: 2rem;
    position: relative;
    z-index: 1500;
  }

  .hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease-in-out;
  }

  .hamburger-menu span:nth-child(1) {
    transform: translateY(-8px);
  }
  .hamburger-menu span:nth-child(3) {
    transform: translateY(8px);
  }

  #map {
    height: 50vh;
  }
}
