html, body {
  margin: 0;
  height: 100%;
  overscroll-behavior: none;
  font-family: 'Manrope', sans-serif;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #2f3b2a;
}

#trip-map {
  position: absolute;
  inset: 0;
}

/* Give the OSM tiles a warmer, less clinical tone to match the kraft/outdoor palette */
.leaflet-tile-pane {
  filter: saturate(1.15) hue-rotate(-6deg) brightness(0.97);
}

/* ---------- Header ---------- */

#header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(22, 28, 18, .94) 10%, rgba(22, 28, 18, 0));
  z-index: 400;
}

#title {
  color: #f4efe0;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
}

#subtitle {
  color: #cdd6bd;
  font-size: 11.5px;
  margin-top: 2px;
}

.chip-row {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  user-select: none;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.chip .label {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Bottom sheet ---------- */

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 66px;
  background: #f4efe0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 46px rgba(0, 0, 0, .4);
  transform: translateY(100%);
  transition: transform .34s cubic-bezier(.32, .72, 0, 1);
  overflow-y: auto;
  z-index: 500;
  -webkit-overflow-scrolling: touch;
}

.sheet.open {
  transform: translateY(0);
}

.sheet-inner {
  padding: 10px 18px 44px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f3b2a;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 6px 6px;
  margin-left: -6px;
  background: none;
  border: none;
  font-family: inherit;
}

.back-arrow {
  font-size: 17px;
}

/* ---------- Lightbox (full-size photo viewer) ---------- */

.lightbox {
  position: absolute;
  inset: 0;
  background: #0f120c;
  transform: translateY(100%);
  transition: transform .34s cubic-bezier(.32, .72, 0, 1);
  z-index: 600;
  display: flex;
  flex-direction: column;
}

.lightbox.open {
  transform: translateY(0);
}

.lightbox-close {
  align-self: flex-start;
  flex: none;
  color: #f4efe0;
  padding: 16px 18px 6px;
}

.lightbox-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px 28px;
}

.lightbox-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* ---------- POI detail ---------- */

.gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 18px;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.photo-slot {
  flex: none;
  width: 146px;
  height: 150px;
  border-radius: 14px;
  background: repeating-linear-gradient(45deg, #e6ddc0, #e6ddc0 8px, #d9cca0 8px, #d9cca0 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  color: #5c5230;
}

.photo-slot svg {
  opacity: .5;
}

.photo-slot .cap {
  font: 10px/1.3 'IBM Plex Mono', monospace;
}

.photo-img {
  flex: none;
  width: 146px;
  height: 150px;
  border-radius: 14px;
  object-fit: cover;
  cursor: pointer;
}

.poi-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.poi-meta .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.poi-meta .label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7a5c;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.poi-name {
  font-size: 22px;
  font-weight: 800;
  color: #2f3b2a;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.poi-coord {
  font-size: 12px;
  color: #7c8a6c;
  margin-top: 5px;
  font-family: 'IBM Plex Mono', monospace;
}

.nav-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.nav-buttons a {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 12px 0;
  border-radius: 12px;
  text-decoration: none;
}

.nav-buttons a.primary {
  background: #2f3b2a;
  color: #f4efe0;
}

.nav-buttons a.secondary {
  background: #e6e0cd;
  color: #2f3b2a;
}

.approx-note {
  margin-top: 12px;
  background: #eee6c8;
  border: 1px solid #cbb96a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #5c5230;
}

.section {
  margin-top: 18px;
}

.section-heading {
  font-size: 11.5px;
  font-weight: 700;
  color: #2f3b2a;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.section-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: #3a4530;
}

.costs-box {
  margin-top: 16px;
  background: #e9e2cc;
  border-radius: 14px;
  padding: 14px 16px;
}

.costs-box .section-heading {
  margin-bottom: 6px;
}

.costs-box .section-body {
  font-size: 13.5px;
  line-height: 1.5;
  color: #4a5540;
}
