.travel-header { margin-bottom: 1.5rem; }
.travel-header .desc { max-width: 38rem; font-size: 1.0625rem; }
.map-frame { border-radius: 5px; overflow: hidden; }
#travel-map { height: 460px; background: #e9eef2; z-index: 0; }
#travel-map:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.map-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.2rem; padding: .75rem 0; font-size: .875rem; color: var(--muted); }
.map-caption p { margin: 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.map-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.legend-dot.wishlist { background: transparent; border: 2px solid var(--accent); border-radius: 1px; transform: rotate(45deg); }
.travel-marker { background: transparent; border: 0; display: grid; place-items: center; }
.travel-marker > span { width: 14px; height: 14px; border-radius: 50%; background: #7042a6; border: 2px solid white; box-shadow: 0 1px 5px #34254680; }
.travel-marker.wishlist > span { background: white; border: 3px solid #7042a6; border-radius: 2px; transform: rotate(45deg); }
.travel-marker:focus { outline: 3px solid #7042a6; outline-offset: 2px; border-radius: 50%; }
#travel-map .leaflet-popup-content-wrapper, #travel-map .leaflet-popup-tip { background: var(--bg); color: var(--ink); }
#travel-map .leaflet-popup-content { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.5; }
#travel-map .leaflet-popup-content h3 { font-size: 1.125rem; margin: .35rem 0; }
#travel-map .leaflet-popup-content p { margin: .3rem 0; }
#travel-map .leaflet-control-attribution { font-size: .75rem; }
#travel-map .leaflet-control-attribution a { color: #7042a6; }
#travel-map .leaflet-popup-close-button { color: var(--muted); }
.map-message { color: var(--muted); background: var(--soft); padding: .75rem 0; margin: 1rem 0 0; border-radius: 5px; }
.place-status { font-size: .875rem; color: var(--accent); }
.place-status.wishlist { color: var(--muted); }
.place-button { padding: 0; border: 0; font: inherit; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.place-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.travel-empty { padding: 1.5rem; border: 1px dashed var(--line); border-radius: 5px; color: var(--muted); text-align: center; }
.travel-footer-note { padding-top: 2rem; margin-bottom: 0; color: var(--muted); font-size: .875rem; }
@media (max-width: 650px) {
  #travel-map { height: 370px; }
  .map-caption { padding-inline: .8rem; }
}

.legend-dot.planned { background: transparent; border: 2px solid var(--accent); }
.travel-marker.planned > span { background: white; border: 3px solid #7042a6; }
.place-status.planned { color: var(--accent); }


.map-reset { border: 0; padding: .25rem 0; background: transparent; color: var(--muted); font-size: .875rem; cursor: pointer; }
.map-reset:hover { color: var(--accent); text-decoration: underline; }
.travel-section { margin-top: 2rem; }
.travel-section h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.place-group { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.place-group h3 { font-size: .9375rem; font-weight: 500; line-height: 1.8; }
.place-names { display: flex; flex-wrap: wrap; gap: .2rem 1rem; list-style: none; margin: 0; padding: 0; }
.place-names li { font-size: .9375rem; }
.place-button { line-height: 1.8; }
.place-detail { color: var(--muted); font-size: .875rem; }
.upcoming-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
.upcoming-list p { margin: .15rem 0 0; }
@media (max-width: 650px) {
  .place-group { grid-template-columns: 1fr; gap: .25rem; }
  .upcoming-list { grid-template-columns: 1fr; gap: 1rem; }
}
