/* 1. Global Reset & Full Height */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Fira Sans", sans-serif;
}

html,
body {
  height: 100%;
}

/* 2. Vertical Flexbox Layout */
body {
  display: flex;
  flex-direction: column;
}

/* 3. Header */
.header {
  display: flex;
  background-color: #ffff;
  padding: 10px;
  color: rgb(85, 85, 85);
  font-weight: 100;
  flex-shrink: 0; /* Prevents header from shrinking */
  border-bottom: 2px solid rgb(196, 57, 6);
}

.title-nav {
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.logo {
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 50px;
}


/*Nav*/

nav {
    padding-top: 5px;
}

nav a {
    text-decoration: none;
    font-weight: 400;
    color: rgb(85, 85, 85);
}

nav a:hover {
    color: rgb(34, 34, 34);
    transition: 0.2s;
}

/* 4. Main Content Area (Horizontal Flex) */
.content-container {
  display: flex;
  flex: 1; /* Takes all remaining vertical space */
  overflow: hidden; /* Essential for internal scrolling */
}

/* 5. The Map Section (The "Magic" part) */
.main {
  flex: 1; /* Grows to fill middle space */
  display: flex;
  flex-direction: column; /* Stacks H2, P, and Map vertically */
  padding: 0px;
}

#map {
  flex: 1; /* This makes the map take over all remaining space in .main */
  width: 100%;
  background-color: #ddd;
  margin-top: 0px;
  border-radius: 8px;
}

.right {
  flex: 0 0 20%;
  background-color: #e41e2fc0;
  padding: 15px;
  overflow-y: auto; /* Scrollable if text is long */
  color: #ddd;
}

/* 6. Footer */
.footer {
  background-color: #f1f1f1;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  flex-shrink: 0;
}

/* Responsive Design */
@media only screen and (max-width: 800px) {
  .content-container {
    flex-direction: column;
    overflow: visible;
  }
  .menu,
  .right {
    flex: 1 0 auto;
    width: 100%;
    display: none;
  }
  .main {
    flex: 1 0 auto;
    width: 100%;
  }
  #map {
    min-height: 400px;
  } /* Give map a minimum height on mobile */
}
