/* Chainmail Finder - Medieval Parchment Design */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Appear Animations */
@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== LOADING SCREEN STYLES ========== */
/*
  Customization:
  - --loader-bg: Background color of loader
  - --loader-accent: Progress bar and accent color
  - --loader-text: Text color
  - Adjust animation timings in @keyframes
*/

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes progressPulse {
  0%, 100% {
    box-shadow: 0 0 5px var(--accent-red), 0 0 10px var(--accent-red);
  }
  50% {
    box-shadow: 0 0 10px var(--accent-red), 0 0 20px var(--accent-red), 0 0 30px var(--accent-red);
  }
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

/* Wordmark */
.loader-wordmark {
  width: 100%;
  max-width: 600px;
  animation: slideInFromTop 0.8s ease-out forwards;
}

.loader-wordmark img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

/* Helmet Container - Three.js Canvas */
.loader-helmet-container {
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#helmet-canvas {
  width: 250px !important;
  height: 250px !important;
  display: block;
}

/* Progress Container */
.loader-progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-gold);
  letter-spacing: 2px;
}

.loader-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-red), #ff6b6b, var(--accent-red));
  background-size: 200% 100%;
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: shimmer 2s linear infinite, progressPulse 1.5s ease-in-out infinite;
}

.loader-percentage {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-gold);
  opacity: 0.8;
}

/* Responsive Loader */
@media (max-width: 768px) {
  .loader-wordmark {
    max-width: 400px;
  }

  .loader-helmet-container {
    width: 200px;
    height: 200px;
  }

  .loader-text {
    font-size: 1.2rem;
  }

  .loader-progress-container {
    max-width: 250px;
  }
}

@media (max-width: 500px) {
  .loader-wordmark {
    max-width: 280px;
  }

  .loader-helmet-container {
    width: 160px;
    height: 160px;
  }

  .loader-text {
    font-size: 1rem;
  }

  .loader-progress-container {
    max-width: 200px;
  }
}

/* ========== END LOADING SCREEN STYLES ========== */

:root {
  --bg-dark: #2F1B12;
  --banner-box: #814D32;
  --accent-red: #FF4747;
  --btn-red: #8b2020;
  --btn-red-hover: #a02828;
  --cream: #e8dcc8;
  --cream-dark: #d4c4a8;
  --text-dark: #2c1810;
  --text-gold: #c4a35a;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.3);
  --museum-color: #8b0000;
  --shop-color: #228b22;
  --costume-color: #ff6b00;
  --fair-color: #4169e1;
  --historic-color: #6b4423;
  --battlefield-color: #dc143c;
  --font-heading: 'Jacquard 24', serif;
  --font-body: 'Roboto Mono', monospace;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header with Wordmark */
header {
  position: relative;
  text-align: center;
  background: transparent;
  z-index: 100;
  height: 300px;
  margin-bottom: -20px;
  opacity: 0;
}

/* Animations trigger after loader completes */
body.loaded header {
  animation: slideInFromTop 0.8s ease-out forwards;
}

.wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  max-width: 1200px;
  width: 90%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
  z-index: 100;
}

/* Main Content */
main {
  flex: 1;
  padding: 0 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Above Section - Distance & Controls */
.above-section {
  background: #2F1B12;
  border: 3px solid #5a4a3a;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 1300px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
}

body.loaded .above-section {
  animation: slideInFromTop 0.8s ease-out 0.2s forwards;
}

.above-top-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
}

/* Nearest Banner - Redesigned */
.above-section .nearest-banner {
  background: var(--banner-box);
  border-radius: 4px;
  padding: 1rem 2rem;
  color: var(--white);
  flex: 1;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.above-section .banner-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-gold);
  font-family: var(--font-body);
}

.above-section .banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.above-section .banner-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.above-section .banner-main h2 {
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--text-gold);
  margin-bottom: 0;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.above-section .banner-distance {
  font-size: 4rem;
  color: var(--accent-red);
  line-height: 1;
  font-family: var(--font-heading);
  -webkit-text-stroke: 2px #000;
  text-stroke: 2px #000;
  paint-order: stroke fill;
  white-space: nowrap;
}

.above-section .banner-name {
  font-size: 1.5rem;
  color: var(--text-gold);
  font-family: var(--font-heading);
  white-space: nowrap;
}

/* Stats Box */
.stats-box {
  background: #1a0f0a;
  border: 2px solid #5a4a3a;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stats-box .stat {
  text-align: center;
  min-width: 60px;
}

.stats-box .stat-value {
  display: block;
  font-size: 1.75rem;
  color: var(--text-gold);
  line-height: 1.1;
  font-family: var(--font-heading);
}

.stats-box .stat-label {
  display: block;
  font-size: 0.6rem;
  color: #a89080;
  text-transform: lowercase;
  font-family: var(--font-body);
}

.btn-view-details {
  background: #4a7c4a;
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: background 0.3s;
}

.btn-view-details:hover {
  background: #5a8c5a;
}

/* Above Bottom Row */
.above-bottom-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.btn-update-location {
  background: var(--cream);
  color: var(--text-dark);
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s;
  white-space: nowrap;
}

.btn-update-location:hover {
  background: var(--cream-dark);
}

.btn-update-location .icon {
  font-size: 1rem;
}

/* Filter Groups in Above Section */
.above-bottom-row .filter-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.above-bottom-row .filter-group label {
  font-size: 0.7rem;
  color: #a89080;
  font-family: var(--font-body);
}

.above-bottom-row .filter-group select {
  background: #1a0f0a;
  color: var(--text-gold);
  border: 1px solid #5a4a3a;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
}

.above-bottom-row .filter-group select:focus {
  outline: none;
  border-color: var(--text-gold);
}

/* Scroll Container */
.scroll-container {
  position: relative;
  display: flex;
  justify-content: center;
  background-image: url('scroll.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  width: 100%;
  max-width: 1400px;
  height: 850px;
  min-height: 850px;
  flex-shrink: 0;
  opacity: 0;
}

body.loaded .scroll-container {
  animation: slideInFromBottom 0.8s ease-out 0.4s forwards;
}

.scroll-content {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 92%;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: visible;
  box-sizing: border-box;
}

/* Nearest Banner */
.nearest-banner {
  background: var(--banner-red);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  color: var(--white);
}

.nearest-banner.hidden {
  display: none;
}

.banner-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--text-gold);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.banner-main {
  flex: 1;
  min-width: 200px;
}

.banner-main h2 {
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--text-gold);
  margin-bottom: 0.25rem;
}

.banner-distance {
  font-size: 2rem;
  color: var(--white);
}

.banner-name {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.banner-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Stats Row */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.stat-box {
  background: rgba(255, 255, 255, 0.7);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-align: center;
  min-width: 65px;
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.stat-label {
  display: block;
  font-size: 0.6rem;
  color: #666;
  text-transform: lowercase;
}

/* Buttons */
.btn {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-red {
  background: var(--btn-red);
  color: var(--white);
  border: 2px solid #6b1818;
}

.btn-red:hover {
  background: var(--btn-red-hover);
  transform: translateY(-1px);
}

/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.filter-group label {
  font-size: 0.65rem;
  color: var(--text-dark);
  opacity: 0.7;
  font-family: var(--font-body);
}

.filter-group select {
  padding: 0.35rem 0.5rem;
  border: 1px solid #c4b49a;
  border-radius: 4px;
  background: var(--cream);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  cursor: pointer;
  min-width: 120px;
  color: var(--text-dark);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--btn-red);
}

/* Content Wrapper */
.content-wrapper {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
  height: 510px;
  margin-top: 66px;
}

/* Map */
#map {
  width: 100%;
  height: 510px;
  border-radius: 8px;
  border: 3px solid #8b7355;
  filter: sepia(25%) saturate(85%) contrast(95%) brightness(105%);
  background: #f4e4bc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Sidebar Wrapper */
.sidebar-wrapper {
  position: relative;
  height: 510px;
  display: flex;
  flex-direction: column;
}

/* Sidebar */
.sidebar {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100% - 60px);
  border: 2px solid #8b7355;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sidebar h2 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--btn-red);
  font-family: var(--font-heading);
}

.sidebar p {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

/* Legend */
.legend {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f5f0e6;
  border-radius: 4px;
  border: 1px solid #d4c4a8;
}

.legend h3 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-family: var(--font-heading);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-family: var(--font-body);
}

.marker-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.marker-icon.museum { background: var(--museum-color); }
.marker-icon.shop { background: var(--shop-color); }
.marker-icon.costume { background: var(--costume-color); }
.marker-icon.fair { background: var(--fair-color); }
.marker-icon.historic { background: var(--historic-color); }
.marker-icon.battlefield { background: var(--battlefield-color); }

/* Results List */
#results-list {
  display: flex;
  flex-direction: column;
}

#results-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-card {
  background: #f8f5f0;
  border-radius: 4px;
  padding: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid #888;
}

.result-card:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  background: #fff;
}

.result-card.museum { border-left-color: var(--museum-color); }
.result-card.shop { border-left-color: var(--shop-color); }
.result-card.costume { border-left-color: var(--costume-color); }
.result-card.fair { border-left-color: var(--fair-color); }
.result-card.historic { border-left-color: var(--historic-color); }
.result-card.battlefield { border-left-color: var(--battlefield-color); }

.result-card h3 {
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
}

.result-card .meta {
  font-size: 0.65rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.25rem;
  font-family: var(--font-body);
}

.result-card .distance {
  color: var(--accent-red);
  font-weight: bold;
}

.stars {
  color: var(--text-gold);
}

/* Type & Difficulty Badges */
.type-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
}

.type-badge.museum { background: var(--museum-color); }
.type-badge.shop { background: var(--shop-color); }
.type-badge.costume { background: var(--costume-color); }
.type-badge.fair { background: var(--fair-color); }
.type-badge.historic { background: var(--historic-color); }
.type-badge.battlefield { background: var(--battlefield-color); }

.difficulty-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.55rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.difficulty-badge.Easy { background: #c8e6c9; color: #2e7d32; }
.difficulty-badge.Medium { background: #fff3cd; color: #856404; }
.difficulty-badge.Hard { background: #f8d7da; color: #721c24; }

/* Submit Button */
.submit-btn {
  background: var(--accent-red) !important;
  border-color: #cc3a3a !important;
  padding: 0.75rem 1.5rem;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  width: 100%;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.submit-btn:hover {
  background: #ff5c5c !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--cream);
  border-radius: 8px;
  max-width: 550px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 1.5rem;
  border: 3px solid #8b7355;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-right: 2rem;
  font-family: var(--font-heading);
}

.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--btn-red);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 4px;
  line-height: 1;
}

.close-btn:hover {
  background: var(--btn-red-hover);
}

/* Detail Modal Content */
.detail-header {
  margin-bottom: 1rem;
}

.detail-header h2 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.detail-header .badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.detail-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 2px solid #8b7355;
}

.detail-section {
  margin-bottom: 1rem;
}

.detail-section h3 {
  color: #666;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}

.detail-section p {
  line-height: 1.5;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.detail-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--btn-red);
  text-decoration: none;
  font-weight: bold;
}

.detail-link:hover {
  text-decoration: underline;
}

.detail-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #c4b49a;
}

/* Submit Form */
#submit-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-dark);
  font-family: var(--font-body);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.6rem;
  border: 2px solid #c4b49a;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--btn-red);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

/* Leaflet Customization */
.leaflet-control-attribution {
  background: rgba(232, 220, 200, 0.9) !important;
  font-family: 'Jacquard 24', serif !important;
  color: var(--text-dark) !important;
  font-size: 0.7rem !important;
}

.leaflet-control-zoom {
  border: 2px solid #8b7355 !important;
  border-radius: 4px !important;
}

.leaflet-control-zoom a {
  background: var(--cream) !important;
  color: var(--text-dark) !important;
  font-family: 'Jacquard 24', serif !important;
}

.leaflet-control-zoom a:hover {
  background: var(--cream-dark) !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 6px;
  background: var(--cream);
  border: 2px solid #8b7355;
}

.leaflet-popup-content {
  margin: 0.75rem;
  font-family: var(--font-body);
}

.leaflet-popup-tip {
  background: var(--cream);
  border: 1px solid #8b7355;
}

.popup-title {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.popup-meta {
  font-size: 0.75rem;
  color: #666;
  font-family: var(--font-body);
}

/* Custom Marker Styles */
.custom-marker {
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px var(--shadow);
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Loading State */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.loading::after {
  content: '';
  width: 30px;
  height: 30px;
  border: 3px solid var(--cream);
  border-top-color: var(--btn-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
  background: #c8e6c9;
  color: #2e7d32;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  margin-top: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .scroll-container {
    height: 765px;
    min-height: 765px;
  }

  .scroll-content {
    width: 83%;
  }

  .content-wrapper {
    grid-template-columns: 3fr 2fr;
    height: 460px;
  }

  #map {
    height: 460px;
  }

  .sidebar-wrapper {
    height: 460px;
  }

  .sidebar {
    height: calc(100% - 60px);
  }

  .wordmark {
    max-width: 1000px;
  }

  .above-section {
    max-width: 1100px;
  }

  .above-bottom-row .filter-group select {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }
}

@media (max-width: 1000px) {
  .scroll-container {
    height: auto;
    min-height: 600px;
  }

  .scroll-content {
    width: 87%;
    height: auto;
    overflow: visible;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
    height: auto;
  }

  #map {
    height: 325px;
  }

  .sidebar-wrapper {
    height: auto;
    min-height: 300px;
  }

  .sidebar {
    height: auto;
    max-height: 400px;
    overflow-y: auto;
  }

  .wordmark {
    max-width: 800px;
  }

  .above-top-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .above-bottom-row {
    flex-wrap: wrap;
  }

  .btn-update-location {
    width: 100%;
    justify-content: center;
  }

  .above-bottom-row .filter-group {
    min-width: calc(50% - 0.5rem);
  }
}

@media (max-width: 768px) {
  .wordmark {
    max-width: 640px;
  }

  header {
    height: 210px;
    margin-bottom: -15px;
  }

  .scroll-container {
    height: auto;
    min-height: auto;
    background-size: 100% 100%;
    padding-bottom: 2rem;
  }

  .scroll-content {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 90%;
    height: auto;
    margin: 0 auto;
    padding: 2rem 1rem;
    overflow: visible;
  }

  .content-wrapper {
    height: auto;
    margin-top: 1rem;
  }

  #map {
    height: 260px;
  }

  .sidebar-wrapper {
    height: auto;
  }

  .sidebar {
    height: auto;
    max-height: 280px;
    overflow-y: auto;
  }

  .above-section {
    padding: 0.5rem;
  }

  .above-section .banner-distance {
    font-size: 2.5rem;
    -webkit-text-stroke: 1.5px #000;
  }

  .above-section .banner-main h2,
  .above-section .banner-name {
    font-size: 1.1rem;
  }

  .above-section .banner-main {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .stats-box {
    gap: 0.75rem;
    padding: 0.4rem 0.5rem;
  }

  .stats-box .stat-value {
    font-size: 1.4rem;
  }

  .above-bottom-row .filter-group {
    min-width: 100%;
  }

  .btn-view-details {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 500px) {
  header {
    height: 150px;
    margin-bottom: -12px;
  }

  main {
    padding: 0 0.25rem 1rem;
  }

  .wordmark {
    max-width: 480px;
  }

  .scroll-container {
    height: auto;
    min-height: auto;
    background-size: 100% 100%;
    padding-bottom: 1.5rem;
  }

  .scroll-content {
    width: 92%;
    padding: 1.5rem 0.75rem;
    gap: 0.5rem;
  }

  .content-wrapper {
    height: auto;
    margin-top: 0.5rem;
  }

  #map {
    height: 220px;
    min-height: 220px;
  }

  .sidebar-wrapper {
    height: auto;
  }

  .sidebar {
    height: auto;
    max-height: 250px;
    overflow-y: auto;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  .above-section {
    padding: 0.4rem;
    gap: 0.5rem;
  }

  .above-section .nearest-banner {
    padding: 0.75rem 1rem;
    height: auto;
    min-height: 70px;
  }

  .above-section .banner-distance {
    font-size: 1.8rem;
    -webkit-text-stroke: 1px #000;
  }

  .above-section .banner-main h2,
  .above-section .banner-name {
    font-size: 0.9rem;
  }

  .stats-box {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .stats-box .stat {
    min-width: 50px;
  }

  .stats-box .stat-value {
    font-size: 1.2rem;
  }

  .btn-update-location {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .above-bottom-row .filter-group select {
    font-size: 0.75rem;
    padding: 0.35rem 0.4rem;
  }

  .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}
