* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f2e8;
  color: #102a43;
}

.app {
  display: grid;
  grid-template-columns: 390px 1fr;
  height: 100vh;
}

.sidebar {
  background: #fffaf0;
  padding: 22px;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

.kicker {
  color: #d39b2a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 6px;
  color: #073763;
  font-size: 34px;
}

.subtitle {
  margin: 0 0 18px;
  color: #52616b;
  font-style: italic;
  line-height: 1.45;
}

.route-box,
.place-card {
  background: white;
  border: 1px solid #eadfcb;
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
}

.route-box {
  padding: 14px 16px;
  line-height: 1.5;
}

.route-box strong {
  color: #073763;
}

.route-box ol {
  margin: 8px 0 0 20px;
  padding: 0;
}

.place-card {
  cursor: pointer;
  transition: 0.25s ease;
}

.place-card:hover,
.place-card.active {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(7, 55, 99, 0.18);
  border: 2px solid #d39b2a;
}

.place-card img {
  width: 100%;
  height: 135px;
  object-fit: contain;
  background: #fffaf0;
  display: block;
  padding: 10px;
}

.place-content {
  padding: 14px;
}

.place-title {
  color: #073763;
  font-size: 18px;
  font-weight: 800;
}

.place-number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 50%;
  background: #073763;
  color: white;
  font-weight: 800;
}

.tag {
  margin: 8px 0;
  color: #607080;
  font-size: 14px;
  font-style: italic;
}

.meta {
  font-size: 14px;
  line-height: 1.5;
}

.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn {
  padding: 8px 10px;
  border-radius: 10px;
  background: #073763;
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.btn.secondary {
  background: #eef4f8;
  color: #073763;
}

#map {
  width: 100%;
  height: 100vh;
}

/* Leaflet custom landmark markers */
.landmark-marker {
  background: transparent;
  border: none;
}

.landmark-icon {
  position: relative;
  width: 190px;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.landmark-art {
  width: 180px;
  height: 115px;
  object-fit: contain;
  border: none;
  background: transparent;
  filter: drop-shadow(0 7px 6px rgba(0, 0, 0, 0.22));
  transition: transform 0.25s ease;
}

.landmark-icon:hover .landmark-art {
  transform: scale(1.12);
}

.landmark-badge {
  position: absolute;
  top: -12px;
  left: 18px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #073763;
  color: white;
  border: 3px solid #fffaf0;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.landmark-label {
  margin-top: -2px;
  color: #073763;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow:
    1px 1px 2px #fffaf0,
    -1px -1px 2px #fffaf0,
    1px -1px 2px #fffaf0,
    -1px 1px 2px #fffaf0;
}

.popup {
  width: 260px;
}

.popup img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #fffaf0;
  border-radius: 14px;
  margin-bottom: 8px;
}

.popup-title {
  color: #073763;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 5px;
}

.popup-text {
  font-size: 13px;
  line-height: 1.45;
}

.leaflet-popup-content-wrapper {
  border-radius: 18px;
}

@media (max-width: 850px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh 55vh;
  }

  #map {
    height: 45vh;
  }

  .sidebar {
    order: 2;
  }
}
