/* =========================
   BASE RESET + TYPOGRAPHY
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: #f4f7f5;
  color: #2b2b2b;
  line-height: 1.5;
}

/* =========================
   HEADER
========================= */

.header {
  padding: 28px 20px;
  background: linear-gradient(135deg, #2f5d50, #23473d);
  color: white;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header h1 {
  font-size: 2.2rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.header p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* =========================
   MAIN LAYOUT CONTAINER
   (this creates your 10% margins)
========================= */

main {
  padding: 30px 0;
}

/* shared width wrapper */
.map-container,
.about {
  width: 80%;              /* 100% - 10% margins each side */
  margin: 0 auto;
}

/* =========================
   MAP STYLING
========================= */

.map-container {
  margin-top: 10px;
}

#map {
  height: 70vh;            /* better than full screen calc */
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d9e2dc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* =========================
   ABOUT SECTION
========================= */

.about {
  margin-top: 35px;
  background: white;
  padding: 25px 28px;
  border-radius: 12px;
  border: 1px solid #e5ece8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.about h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #2f5d50;
}

.about p {
  font-size: 0.95rem;
  color: #333;
}

/* optional: nicer bullet spacing if you use lists */
.about ul {
  margin-top: 10px;
  padding-left: 20px;
}

.about li {
  margin-bottom: 6px;
}

/* =========================
   POPUP STYLING (Leaflet)
========================= */

.leaflet-popup-content-wrapper {
  max-width: min(90%, 420px);
  width: auto;
  max-height: calc(100% - 16px);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.leaflet-popup-close-button {
  display: block !important;
  color: #23473d;
  font-weight: bold;
  opacity: 0.9;
}

.leaflet-popup-close-button:hover {
  opacity: 1;
}

.leaflet-popup-content {
  max-height: calc(100% - 38px);
  overflow-y: auto;
  padding: 14px 16px;
  line-height: 1.6;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  white-space: normal;
  word-break: break-word;
}

.leaflet-popup-content::-webkit-scrollbar {
  width: 9px;
}

.leaflet-popup-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9px;
}

.leaflet-popup-content::-webkit-scrollbar-thumb {
  background: rgba(35, 71, 61, 0.35);
  border-radius: 9px;
}

.leaflet-popup-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(35, 71, 61, 0.35) rgba(255, 255, 255, 0.15);
}

.leaflet-popup-content h3 {
  margin-bottom: 0.75rem;
  color: #23473d;
  font-size: 1.15rem;
}

.leaflet-popup-content p,
.leaflet-popup-content div {
  margin-bottom: 0.8rem;
}

.popup-img {
  display: block;
  width: 40%;
  max-width: 160px;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  margin: 10px auto 0;
  border-radius: 10px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {
  .map-container,
  .about {
    width: 92%;   /* slightly tighter margins on mobile */
  }

  .header h1 {
    font-size: 1.7rem;
  }

  #map {
    height: 60vh;
  }

  .leaflet-popup-content-wrapper {
    max-width: min(90%, 280px);
    max-height: 40vh;
  }

  .leaflet-popup-content {
    padding: 12px 14px;
  }

  .popup-img {
    width: 20%;
    max-width: 80px;
    max-height: 90px;
  }
}

