body {
  margin: 0;
  font-family: Arial, sans-serif;
}

header {
  background: #003087; /* NHS blue */
  color: white;
  padding: 0.5rem 1rem;

}
header h1,
header p {
  margin: 0;
}
header h1 {
  font-size: 1.25rem;
}
.header-menu {
  margin-top: 0.5rem;
  position: relative;
  width: fit-content;
}

.header-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.95rem;
}

.header-menu summary::-webkit-details-marker {
  display: none;
}

.header-menu[open] summary {
  background: #005eb8;
}

.header-menu ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.4rem;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.header-menu a {
  display: block;
  padding: 0.4rem 0.6rem;
  text-decoration: none;
  color: #003087;
}

.header-menu a:hover {
  background: #e8f0fe;
}


/* layout styles are to define the main content area 
Desktop: side panel + map
Mobile (QR scan use-case): destinations above, map below
No JS needed — CSS does the work */
.layout {
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 120px);
}
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  nav {
    width: 100%;
    border-bottom: 1px solid #ccc;
  }
}

nav {
  width: 250px;
  padding: 1rem;
  background: #f4f4f4;
}

main {
  flex: 1;
  padding: 1rem;
  background: #ffffff;
  border-left: 1px solid #ddd;
}

#map-area {
  min-height: 300px;
}


footer {
  padding: 0.5rem 1rem;
  background: #eaeaea;
  font-size: 0.9rem;
}
nav button {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

nav button:hover {
  background: #003087;
  color: white;
}

nav button.selected {
  background: #005eb8; /* NHS blue */
  color: white;
  font-weight: bold;
}
fieldset {
  margin-top: 1rem;
  padding: 0.5rem;
}

fieldset.active {
  border: 2px solid #005eb8;
  background: #e8f0fe;
}

#status-message {
  padding: 0.5rem;
  margin-bottom: 1rem;
  background: #fff7cc;
  border-left: 4px solid #ffbf00;
  font-size: 0.9rem;
}
#map-svg {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  background: #fafafa;
}
#map-area {
  display: flex;
  flex-direction: column;
}

