html, body {
  height: 100%;
  margin: 0;
  font-family: sans-serif;
}

/* Page layout */
body {
  display: flex;
  flex-direction: column;
}

/* Main content area (below banner) */
.app-body {
  flex: 1;
  display: flex;
  min-height: 0; /* critical for Leaflet */
}

/* Left nav (structure only) */
.app-nav {
  width: 300px;
  background: #f7f7f7;
  border-right: 1px solid #ccc;
  padding: 1em;
}


/* Map container */
#map {
  flex: 1;
}
.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid #ccc;
}

.app-logo {
  height: 40px;
  width: auto;
}

.app-title {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}
/* ===============================
   Address search UI (nav panel)
   =============================== */

.search-section {
    margin-bottom: 16px;
}

.search-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.search-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

#address-input {
    flex: 1;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.search-hint {
    margin-top: 6px;
    font-size: 11px;
    color: #666;
}
/* Enabled search button behavior */
.search-button {
    cursor: pointer;
}

.search-button:hover {
    background-color: #dcdcdc;
}
/* Mobile adjustments */
@media (max-width: 600px) {

  .app-logo {
    height: 32px;
  }

  .app-title {
    font-size: 16px;
    white-space: normal; /* allow wrapping on small screens */
  }

  .app-body {
    flex-direction: column;
  }

  .app-nav {
    width: auto;
    border-right: none;
    border-bottom: 1px solid #ccc;
    max-height: 45vh;
    overflow-y: auto;
  }

  .search-input-row {
    width: 100%;
    overflow: hidden;
  }

  #address-input {
    font-size: 16px;   /* prevents mobile zoom */
    padding: 10px;
    min-width: 0;      /* critical for flex shrink */
  }

  .search-button {
    padding: 10px 12px;
    flex-shrink: 0;    /* prevents button from being pushed off-screen */
  }
}

/* Instructions panel text */
.instructions {
    font-size: 13px;
    line-height: 1.4;
}

.instructions p {
    margin: 0 0 10px 0;
}

.instructions-or {
    font-weight: 600;
    text-align: center;
    margin: 6px 0;
    font-size: 12px;
    color: #444;
}

.results-divider {
  margin: 12px 0;
  border: none;
  border-top: 1px solid #ccc;
}

.search-results {
  margin-top: 12px;
  padding: 10px 8px;
  background-color: #ffffff;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
}


.results-heading {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px 0;
}
.school-marker {
  pointer-events: auto;
}

