/* ===== Styling for the "Where to Stay" page =====
   Works together with style.css (shared colours and layout). */

:root {
  --green-dark: #1f7a4a;
  --green-light: #6fb98f;
  --green-tint: #e8f5ee;
}

/* ---------- Lists inside text boxes ---------- */
.textbox ul { margin: 8px 0 0; padding-left: 22px; }
.textbox li { margin-bottom: 10px; }
.textbox li:last-child { margin-bottom: 0; }

/* ---------- Top picks callout ---------- */
.toppicks {
  position: relative;
  background: linear-gradient(135deg, #f1faf5, #ffffff);
  border: 2px solid var(--green-dark);
  border-radius: 18px;
  padding: 28px 28px 22px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(31,122,74,0.12);
}

.toppicks-star {
  display: inline-block;
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 1.3rem;
}

.toppicks h3 { margin: 10px 0 8px; font-size: 1.5rem; color: #1f5c3a; }
.toppicks p { margin: 0 0 14px; color: var(--ink); }

.pick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 4px 0 14px;
}

.pick {
  background: var(--green-dark);
  color: #fff;
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
}

.pick::before { content: "\2605  "; }

.toppicks .toppicks-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Map ---------- */
.map-intro {
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--muted);
}

#map {
  position: relative;
  z-index: 0;
  height: 560px;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  background: #e9e4de;
}

.map-error {
  text-align: center;
  color: var(--red);
  font-weight: 600;
}

.map-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.map-buttons button {
  background: #fff;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 30px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.map-buttons button:hover { background: var(--red); color: #fff; }

/* Legend dots */
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -1px;
}

.dot-venue { background: #b5172a; }
.dot-zone { background: #4fae78; border: 2px solid #b5172a; }
.dot-best { background: var(--green-dark); }
.dot-good { background: var(--green-light); }
.dot-attraction { background: #2f6f8f; }
.dot-airport { background: #333333; }

/* Map labels: venue names from zoom 12, area names from zoom 14 */
.leaflet-tooltip.map-label {
  display: none;
  font-weight: 700;
  color: #3a2d26;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.labels-on .leaflet-tooltip.map-label { display: block; }
.labels-on .leaflet-tooltip.map-label.area-label { display: none; }
.area-labels-on .leaflet-tooltip.map-label.area-label { display: block; }

.leaflet-tooltip.area-label { font-size: 0.85rem; color: #2d6a47; }
.leaflet-tooltip.area-label.best { color: var(--green-dark); font-size: 0.9rem; }

/* Pop-ups */
.map-popup { font-family: 'Segoe UI', Arial, sans-serif; }
.map-popup p { margin: 6px 0; line-height: 1.4; }
.map-popup .map-small { margin-bottom: 2px; font-size: 0.8rem; color: var(--muted); }
.map-popup ul.map-distances { margin: 0 0 8px; padding-left: 18px; font-size: 0.85rem; }

.map-popup .map-tag {
  display: inline-block;
  margin: 4px 0;
  padding: 2px 10px;
  background: var(--green-tint);
  color: #1f5c3a;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.map-popup .map-tag.best { background: var(--green-dark); color: #fff; }

/* ---------- Area guide ---------- */
.area-group { margin-bottom: 44px; }

.area-group h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: #3a2d26;
}

.area-group.group-best h3 { color: #1f5c3a; }
.area-group.group-best h3::before { content: "\2605  "; color: var(--green-dark); }

.group-intro { margin: 0 0 18px; color: var(--muted); }

.area-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.area-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-top: 5px solid var(--green-light);
  display: flex;
  flex-direction: column;
}

.area-card.tier-best {
  border: 2px solid var(--green-dark);
  border-top-width: 6px;
  background: linear-gradient(180deg, #f4fbf7, #ffffff 45%);
  box-shadow: 0 8px 26px rgba(31,122,74,0.16);
}

.area-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.area-head h4 { margin: 0; font-size: 1.25rem; color: #3a2d26; }

.tier-badge {
  background: var(--green-tint);
  color: #1f5c3a;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.tier-best .tier-badge { background: var(--green-dark); color: #fff; }

.area-tagline {
  margin: 6px 0 10px;
  font-style: italic;
  color: #2d6a47;
  font-weight: 600;
}

.area-desc { margin: 0 0 12px; color: var(--ink); }

.area-facts { margin: 0 0 12px; }

.area-facts dt {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.area-facts dd { margin: 2px 0 0; font-size: 0.95rem; }

.area-dist {
  margin: auto 0 12px;
  padding: 12px 14px;
  background: #faf6f2;
  border-radius: 10px;
  font-size: 0.88rem;
}

.area-dist strong { display: block; margin-bottom: 4px; color: #3a2d26; }
.area-dist ul { margin: 0; padding-left: 18px; }
.area-dist-note { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--muted); }

/* ---------- Places list (venues, attractions, airport) ---------- */
.all-places {
  background: #fff;
  border-radius: 16px;
  padding: 6px 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.all-places summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  color: #3a2d26;
}

.all-places[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 18px; }

.place-group { margin-bottom: 28px; }
.place-group h3 { margin: 0 0 14px; color: #3a2d26; font-size: 1.15rem; }

.place-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.place-card {
  background: #faf6f2;
  border-radius: 12px;
  padding: 14px 16px;
}

.place-card p { margin: 4px 0 10px; color: var(--muted); font-size: 0.92rem; }

.place-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.9rem;
  margin-top: 4px;
}

.place-links button {
  background: none;
  border: none;
  padding: 0;
  color: var(--red);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* Hide "Show on map" buttons if the map could not load */
.no-map .show-on-map { display: none; }

/* ---------- Drawing helper (only visible with ?draw) ---------- */
.draw-panel {
  max-width: 820px;
  margin: 24px auto 0;
  background: #fff;
  border-left: 5px solid var(--green-dark);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.draw-panel h3 { margin: 0 0 8px; }
.draw-panel p { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; }

.draw-output {
  width: 100%;
  font-family: Consolas, monospace;
  font-size: 0.85rem;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
}

.draw-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.draw-buttons button {
  background: #fff;
  color: #1f5c3a;
  border: 2px solid var(--green-dark);
  border-radius: 30px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
}

.draw-buttons button:hover { background: var(--green-dark); color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  #map { height: 440px; }
  .area-cards { grid-template-columns: 1fr; }
  .toppicks { padding: 22px 18px 18px; }
}
