
html, body {
  background-color: #000000;
  margin: 0;
  padding: 0;
}

#map {
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #000000;
}

#resource-form {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.marker-popup {
    padding: 10px;
}

.marker-popup h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.marker-popup p {
    margin: 5px 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid #f0c030;
  outline-offset: 2px;
}

button:focus-visible {
  outline: 3px solid #f0c030;
  outline-offset: 2px;
}

#coordinates {
  display: flex;
  gap: 10px;
}

#coordinates input {
  width: 50%;
}

button[type="submit"] {
  width: 100%;
  padding: 10px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #45a049;
}

.custom-marker {
    font-size: 24px;
    line-height: 1;
    text-align: center;
}
/* ===== WELCOME MODAL ===== */
#welcome-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#welcome-modal-content {
  background: #1a2a1a;
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #4a7a4a;
  max-width: 90%;
}

#welcome-modal-content h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

#welcome-modal-content p {
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Desktop: horizontal row */
#resource-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.resource-btn {
  padding: 12px 20px;
  font-size: 1rem;
  border: 1px solid #f0c030;
  border-radius: 8px;
  background: #1a1a1a;
  color: #f0c030;
  cursor: pointer;
  font-weight: bold;
}

.resource-btn:hover {
  background: #f0c030;
  color: #000000;
}

.resource-btn:focus-visible {
  outline: 3px solid #f0c030;
  outline-offset: 2px;
}

.explore-all {
  background: #7a5a2a;
}

.explore-all:hover {
  background: #9a7a3a;
}

/* ===== MOBILE: 2-column grid ===== */
@media (max-width: 768px) {
  #welcome-modal-content {
    padding: 24px 16px;
    width: 95%;
  }

  #welcome-modal-content h2 {
    font-size: 1.4rem;
  }

  #resource-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .resource-btn {
    padding: 22px 10px;   /* tall buttons = easy to tap */
    font-size: 1.3rem;    /* bigger text for no-glasses users */
    border-radius: 10px;
  }

  /* "Explore All" spans both columns on mobile */
  .explore-all {
    grid-column: 1 / -1;
    font-size: 1.3rem;
    padding: 18px;
  }
}
/* ===== REPORT RESOURCE BUTTON ===== */
.report-resource {
  background: #7a2a2a;
  font-size: 1rem;
  padding: 12px 20px;
}
.report-resource:hover {
  background: #9a3a3a;
}

@media (max-width: 768px) {
  .report-resource {
    grid-column: 1 / -1;
    font-size: 1.3rem;
    padding: 18px;
  }
}
/* ===== MILITARY HEADER ===== */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  background: #000000;
  border-bottom: 4px solid #f0c030;
  overflow: hidden;
}

.rrw-gold-bar {
  height: 4px;
  background: #f0c030;
}

.rrw-flag-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.13;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.rrw-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 16px;
  position: relative;
  z-index: 1;
}

.rrw-crest {
  width: 144px;
  height: 144px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  position: absolute;
  left:16px;
}

.rrw-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.rrw-title {
  font-family: 'Special Elite', cursive;
  font-size: 22px;
  font-weight: 700;
  color: #f0c030;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
}

.rrw-motto {
  font-family: 'Special Elite', cursive;
  font-size: 20px;
  font-weight: 700;
  color: #f0c030;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.rrw-sub {
  font-family: 'Special Elite', cursive;
  font-size: 12px;
  font-weight: 600;
  color: #f0c030;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Push map down so header doesn't cover it */
#map {
  top: 0px !important;
  height: 100vh !important;
}

@media (max-width: 768px) {
  .rrw-title { font-size: 17px; letter-spacing: 1px; }
  .rrw-motto { font-size: 18px; letter-spacing: 2px; }
  .rrw-sub { display: none; }
  .rrw-crest { width: 52px; height: 52px; }
  #map {
    top: 0px !important;
    height: 100vh !important;
  }
}
/* ===== MEMORIAL FOOTER ===== */
#grandma-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  background: #000000;
  text-align: center;
  padding: 6px 16px;
  pointer-events: none;
}

.grandma-quote {
  font-family: 'Special Elite', cursive;
  font-size: 20px;
  color: #f0c030;
  letter-spacing: 1.5px;
  font-style: italic;
  display: block;
  text-align: left;
  width: 100%;
}
@media (max-width: 768px) {
  .grandma-quote {
    font-size: 20px;
    letter-spacing: 1px;
  }
 } /* closes the @media (max-width: 768px) for grandma-quote */

/* ===== SWITCH / REPORT BUTTON ===== */
#switch-resource-btn {
  position: fixed;
  bottom: 52px;       /* sits just above the footer */
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;       /* above header/footer z-index of 500 */
  background: #000000;
  color: #f0c030;
  border: 2px solid #f0c030;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'Special Elite', cursive;
  font-size: 15px;
  letter-spacing: 1.5px;
  cursor: pointer;
  white-space: nowrap;
}

#switch-resource-btn:hover {
  background: #f0c030;
  color: #000000;
}

#switch-resource-btn:focus-visible {
  outline: 3px solid #f0c030;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  #switch-resource-btn {
    font-size: 13px;
    padding: 10px 16px;
    bottom: 64px;
  }
}
/* ===== KEYBOARD FOCUS STYLES ===== */
a:focus-visible {
  outline: 3px solid #f0c030;
  outline-offset: 2px;
}

.leaflet-marker-icon:focus-visible {
  outline: 3px solid #f0c030;
  outline-offset: 4px;
  border-radius: 4px;
}
/* Provider type selection buttons */
.provider-type-btn {
    background: #000000;
    color: #f0c030;
    border: 2px solid #f0c030;
    border-radius: 10px;
    font-family: 'Special Elite', cursive;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 8px;
    cursor: pointer;
    width: 100%;
}

.provider-type-btn:hover,
.provider-type-btn:focus-visible {
    background: #f0c030;
    color: #000000;
    outline: none;
}
/* ===== LARGE TEXT / ACCESSIBILITY MODE ===== */
body.large-text {
  font-size: 1.25rem;
}
body.large-text button {
  font-size: 1.3rem !important;
  padding: 20px !important;
  min-height: 64px;
}
/* ===== LARGE TEXT / ACCESSIBILITY MODE ===== */
body.large-text {
  font-size: 1.25rem;
}
body.large-text button {
  font-size: 1.3rem !important;
  padding: 20px !important;
  min-height: 64px;
}
body.large-text input,
body.large-text textarea,
body.large-text select {
  font-size: 1.2rem !important;
  padding: 16px !important;
}
body.large-text h1,
body.large-text h2 {
  font-size: 1.8rem !important;
}
body.large-text .resource-btn {
  font-size: 1.2rem !important;
  padding: 18px !important;
}
body.large-text #chat-panel {
  width: 95vw !important;
  height: 70vh !important;
  font-size: 1.1rem !important;
}
body.large-text .grandma-quote {
  font-size: 1.1rem !important;
}
/* ===== DARK MAP POPUPS ===== */
.leaflet-popup-content-wrapper {
  background: #1a1a1a !important;
  color: #f0c030 !important;
  border: 1px solid #f0c030 !important;
  border-radius: 8px !important;
}
.leaflet-popup-tip {
  background: #1a1a1a !important;
}
.leaflet-popup-content {
  color: #f0c030 !important;
}
.leaflet-popup-close-button {
  color: #f0c030 !important;
}
/* ── Provider multi-select toggle state ── */
.provider-type-btn.ptype-selected {
  background: #f0c030;
  color: #000;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(240, 192, 48, 0.8);
}
/* ═══ Layout fixes: zoom controls, locate button, switch button ═══ */

/* 1. Push Leaflet zoom buttons below the weather banner */
.leaflet-top.leaflet-left {
  top: 70px;
}

/* 2. Locate button: beside the zoom controls, perfect circle */
#locate-me-btn {
  display: none;
  position: fixed;
  top: 87px;
  left: 60px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  padding: 0;
  background: #1a1a1a;
  color: #f0c030;
  border: 2px solid #f0c030;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1500;
  box-sizing: border-box;
}

/* 3. Keep the locate button a circle even in Large Text Mode */
body.large-text #locate-me-btn {
  padding: 0;
  font-size: 1.3rem;
  width: 48px;
  height: 48px;
}

/* 4. Raise Switch button off the footer (desktop) */
#switch-resource-btn {
  bottom: 64px;
}

/* 5. Large Text Mode: footer is taller and chat bubble is bigger,
      so lift the Switch button higher and keep it left of the chat */
body.large-text #switch-resource-btn {
  bottom: 48px;
  left: 45%;
  padding: 8px 16px;
}

@media (max-width: 768px) {
  body.large-text #switch-resource-btn {
    bottom: 58px;
    left: 42%;
    max-width: 60vw;
    white-space: normal;
    padding: 8px 14px;
  }
}


/* Provider grid: never exceed screen width on narrow phones */
.provider-type-grid {
  max-width: 100%;
}
