
.trip-map-section {
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.75rem;
}
.trip-map-shell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d5dee6;
  background: #e8eef3;
  min-height: 340px;
  height: min(58vh, 520px);
}
#trip-map { width: 100%; height: 100%; min-height: 340px; }
.trip-map-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #5a6a75;
}
.leaflet-container { font: inherit; }
.trip-map-pin {
  background: #0f2a3a;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.trip-map-pin.is-active { background: #0d7a5f; transform: scale(1.12); }
.trip-map-drawer {
  position: absolute;
  right: 12px;
  top: 12px;
  bottom: 12px;
  width: min(340px, calc(100% - 24px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,42,58,.28);
  z-index: 500;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.trip-map-drawer.is-open { display: flex; }
.trip-map-drawer img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #d7e3ea;
}
.trip-map-drawer-body {
  padding: 0.9rem 1rem 1rem;
  overflow: auto;
  display: grid;
  gap: 0.55rem;
}
.trip-map-drawer-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #0f2a3a;
}
.trip-map-drawer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
}
.trip-map-drawer-meta span {
  background: #eef3f6;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: #334;
}
.trip-map-drawer-meta .score { background: #0d7a5f; color: #fff; font-weight: 700; }
.trip-map-drawer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334;
}
.trip-map-drawer-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.trip-map-drawer-actions a,
.trip-map-drawer-actions button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.trip-map-drawer-actions .primary {
  background: #0d7a5f;
  color: #fff;
}
.trip-map-drawer-actions .ghost {
  background: #eef3f6;
  color: #0f2a3a;
}
.trip-map-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
@media (max-width: 720px) {
  .trip-map-shell { height: 420px; }
  .trip-map-drawer {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    width: auto;
    max-height: 55%;
  }
}
