:root {
  --lp-black: #000000;
  --lp-blue:  #1179BF;
  --lp-white: #FFFFFF;

  --header-h: 70px;
  --sidebar-w: 320px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--lp-black);
  color: var(--lp-white);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
}

.display {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Screen-reader-only (SEO/a11y h1 without altering the visual layout) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- Header ---------- */
#header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--lp-black);
  border-bottom: 1px solid var(--lp-blue);
  z-index: 1200;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

#logo {
  height: 53px;
  width: auto;
  display: block;
}

.count {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-style: italic;
  color: var(--lp-white);
  font-size: 20px;
  white-space: nowrap;
}

/* ---------- Hamburger (mobile only) ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: var(--lp-black);
  border: 1px solid var(--lp-blue);
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--lp-blue);
}
.hamburger:focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 2px; }

/* ---------- Layout ---------- */
#layout {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  display: flex;
}

#sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--lp-black);
  border-right: 1px solid var(--lp-blue);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- Header link (proposal / map nav) ---------- */
.header-link {
  color: var(--lp-white);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border: 1px solid transparent;
}
.header-link:hover { color: var(--lp-blue); }
.header-link:focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 2px; }

/* ---------- Outline button ---------- */
.btn-outline {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--lp-blue);
  background: var(--lp-black);
  border: 1px solid var(--lp-blue);
  font-size: 15px;
  letter-spacing: 0.02em;
}
.btn-outline:hover { background: var(--lp-blue); color: var(--lp-white); }
.btn-outline:focus-visible { outline: 2px solid var(--lp-white); outline-offset: 2px; }

/* Sidebar variants of nav buttons */
#proposal-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--lp-blue);
  background: var(--lp-black);
  border: 1px solid var(--lp-blue);
  font-size: 15px;
  letter-spacing: 0.02em;
  margin: 0 14px 14px;
  padding: 12px 14px;
}
#proposal-btn:hover { background: var(--lp-blue); color: var(--lp-white); }
#proposal-btn:focus-visible { outline: 2px solid var(--lp-white); outline-offset: 2px; }

/* ---------- Apply button ---------- */
.apply-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--lp-white);
  background: var(--lp-blue);
  border: 1px solid var(--lp-blue);
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Sidebar variant */
#apply-btn {
  margin: 14px;
  padding: 12px 14px;
}
#apply-btn:hover {
  background: var(--lp-black);
  color: var(--lp-blue);
}
#apply-btn:focus-visible {
  outline: 2px solid var(--lp-white);
  outline-offset: 2px;
}

/* Mobile floating group (hidden on desktop) */
#fab-group {
  display: none;
  position: fixed;
  z-index: 1300;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  gap: 10px;
}
#fab-group .fab-item {
  padding: 11px 20px;
  font-size: 13px;
}

.search-wrap {
  padding: 14px;
  border-bottom: 1px solid var(--lp-blue);
}

#search {
  width: 100%;
  padding: 10px 12px;
  background: var(--lp-black);
  color: var(--lp-white);
  border: 1px solid var(--lp-blue);
  font-family: inherit;
  font-size: 14px;
}
#search::placeholder { color: var(--lp-white); opacity: 0.5; }
#search:focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 1px; }

/* ---------- Facility list ---------- */
#facility-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

#facility-list li {
  padding: 12px 16px;
  border-bottom: 1px solid var(--lp-blue);
  border-left: 3px solid transparent;
  cursor: pointer;
}
#facility-list li:hover,
#facility-list li:focus-visible {
  border-left-color: var(--lp-blue);
  outline: none;
}
#facility-list li:focus-visible {
  outline: 2px solid var(--lp-blue);
  outline-offset: -2px;
}
#facility-list li.active {
  border-left-color: var(--lp-blue);
}

.li-name {
  display: block;
  font-family: "Archivo Black", system-ui, sans-serif;
  font-style: italic;
  font-size: 14px;
  color: var(--lp-white);
}
.li-city {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--lp-white);
  opacity: 0.8;
}
.empty {
  padding: 16px;
  color: var(--lp-white);
  opacity: 0.6;
  font-size: 13px;
}

/* ---------- Map ---------- */
#map {
  flex: 1;
  height: 100%;
  background: var(--lp-black);
}

/* ---------- Markers ---------- */
.lp-pin {
  width: 16px;
  height: 16px;
  background: var(--lp-blue);
  border: 2px solid var(--lp-white);
  border-radius: 50%;
  box-sizing: border-box;
}

/* ---------- Cluster bubbles ---------- */
.lp-cluster {
  background: var(--lp-black);
  border: 2px solid var(--lp-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-cluster span {
  color: var(--lp-white);
  font-family: "Archivo Black", system-ui, sans-serif;
  font-style: italic;
  font-size: 13px;
}

/* ---------- Popup ---------- */
.leaflet-popup-content-wrapper {
  background: var(--lp-black);
  color: var(--lp-white);
  border-top: 3px solid var(--lp-blue);
  border-radius: 0;
}
.leaflet-popup-tip {
  background: var(--lp-black);
}
.leaflet-popup-content { margin: 12px 16px; }
.leaflet-popup-close-button { color: var(--lp-white) !important; }
.leaflet-container a.leaflet-popup-close-button:hover { color: var(--lp-blue) !important; }

.popup-name {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-style: italic;
  font-size: 15px;
  color: var(--lp-white);
}
.popup-city {
  margin-top: 4px;
  font-size: 13px;
  color: var(--lp-white);
  opacity: 0.8;
}

/* ---------- Attribution (kept legible, blue links) ---------- */
.leaflet-control-attribution {
  background: rgba(0,0,0,0.55) !important;
  color: var(--lp-white) !important;
  opacity: 0.55;
  font-size: 9px !important;
  padding: 0 5px !important;
  line-height: 1.4;
}
.leaflet-control-attribution:hover { opacity: 1; }
.leaflet-control-attribution a { color: var(--lp-blue) !important; }

/* Zoom controls in brand colors */
.leaflet-bar a {
  background: var(--lp-black);
  color: var(--lp-white);
  border-bottom: 1px solid var(--lp-blue);
}
.leaflet-bar a:hover { background: var(--lp-blue); color: var(--lp-white); }

/* ---------- Proposal document page ---------- */
.doc-body {
  overflow-y: auto;
  overflow-x: hidden;
}
.doc-body #header {
  position: fixed;
}
.header-link { white-space: nowrap; }

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 32px) 24px 80px;
}

.doc-title {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 20px;
}

.doc-note {
  border-left: 3px solid var(--lp-blue);
  padding: 12px 16px;
  margin: 0 0 28px;
  font-style: italic;
  color: var(--lp-white);
  opacity: 0.85;
  font-size: 15px;
  line-height: 1.5;
}

.doc .lead {
  font-size: 17px;
  margin: 0 0 28px;
}

.doc section { margin: 0 0 28px; }

.doc h2 {
  font-family: "Archivo Black", system-ui, sans-serif;
  font-style: italic;
  font-size: 19px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lp-blue);
}

.doc ul {
  margin: 0;
  padding-left: 20px;
}
.doc li {
  margin: 0 0 9px;
  line-height: 1.5;
  font-size: 15px;
}
.doc p {
  line-height: 1.55;
  font-size: 15px;
  margin: 0 0 10px;
}
.doc strong { color: var(--lp-white); }
.doc a { color: var(--lp-blue); }

.doc .callout {
  border: 1px solid var(--lp-blue);
  padding: 16px 18px;
}
.doc .intro-callout { margin-bottom: 24px; }
.doc .intro-callout p { font-size: 16px; margin: 0 0 10px; }
.doc .intro-callout p:last-child { margin-bottom: 0; }
.doc .callout h2 { border-bottom: none; padding-bottom: 4px; margin-bottom: 6px; }

.doc .meeting h2 { color: var(--lp-blue); }

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--lp-blue);
}
.doc-actions a {
  flex: 1 1 200px;
  padding: 14px 18px;
}
/* Override .doc a (blue) so the solid Apply button keeps white text */
.doc-actions .apply-btn { color: var(--lp-white); }
.doc-actions .apply-btn:hover { background: var(--lp-black); color: var(--lp-blue); }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .hamburger { display: flex; }

  /* Sidebar buttons hide behind hamburger; use the floating group instead */
  #fab-group { display: flex; }

  #sidebar {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: 82%;
    max-width: 320px;
    flex-basis: auto;
  }
  #sidebar.open { transform: translateX(0); }
}
