.travel-map { margin-top: 24px; }
.travel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.travel-country-switch { display: flex; padding: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; gap: 4px; }
.travel-map button { font: inherit; cursor: pointer; color: var(--body); }
.travel-country-switch button { border: 0; background: transparent; padding: 7px 14px; border-radius: 5px; font-size: 0.88rem; font-weight: 500; }
.travel-country-switch button[aria-pressed="true"] { background: var(--page); color: var(--link-dark); box-shadow: 0 1px 4px rgba(17, 24, 39, 0.1); }
.travel-count { font-size: 0.82rem; color: var(--muted); }
.travel-progress { height: 5px; margin-bottom: 16px; overflow: hidden; border-radius: 8px; background: #e0e6ee; }
.travel-progress span { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #38a3df); border-radius: inherit; transition: width 0.35s ease; }
.travel-canvas { position: relative; border: 1px solid var(--line); border-radius: 12px; background-color: #f7faff; background-image: radial-gradient(#dce5f0 0.8px, transparent 0.8px); background-size: 18px 18px; overflow: hidden; }
.travel-canvas svg { display: block; width: 100%; height: auto; aspect-ratio: 1015 / 650; touch-action: none; user-select: none; cursor: grab; }
.travel-canvas svg.is-dragging, .travel-canvas svg.is-dragging .travel-region { cursor: grabbing; }
.travel-region { fill: #e0e6ee; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 0.15s; }
.travel-region.is-visited { fill: #3576dc; }
.travel-region:hover, .travel-region:focus { fill: #b8c9df; outline: none; }
.travel-region.is-visited:hover, .travel-region.is-visited:focus { fill: #1d4ed8; }
.travel-region.is-selected { stroke: #111827; stroke-width: 2; }
.travel-region:focus-visible { stroke: #111827; stroke-width: 2; }
.travel-label { fill: #374151; font-family: var(--font); font-weight: 600; text-anchor: middle; dominant-baseline: central; pointer-events: none; paint-order: stroke; stroke: #f7faff; stroke-width: 3px; stroke-linejoin: round; }
.travel-label.is-visited { fill: #fff; stroke: #3576dc; }
.travel-tooltip { position: absolute; z-index: 2; max-width: min(240px, calc(100% - 24px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 6px 24px rgba(17, 24, 39, 0.12); pointer-events: none; font-size: 0.8rem; line-height: 1.5; }
.travel-tooltip strong, .travel-tooltip span { display: block; }
.travel-tooltip strong { font-size: 0.95rem; }
#travel-tooltip-country { color: var(--muted); }
#travel-tooltip-status { margin-top: 6px; color: var(--link-dark); font-weight: 500; }
.travel-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06); }
.travel-zoom button { width: 36px; height: 36px; font-size: 1.2rem; background: #fff; border: 0; border-right: 1px solid var(--line); }
.travel-zoom button:last-child { border-right: 0; }
.travel-zoom button:hover { background: var(--link-soft); }
.travel-zoom button:disabled { opacity: 0.4; cursor: default; }
.travel-map button:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.travel-map-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; font-size: 0.85rem; }
.travel-map-footer p { color: var(--ink); }
.travel-legend { display: flex; gap: 16px; color: var(--muted); font-size: 0.78rem; }
.travel-legend span { display: flex; align-items: center; gap: 6px; }
.travel-dot { width: 9px; height: 9px; border-radius: 50%; background: #e0e6ee; border: 1px solid #c6d0dd; }
.travel-dot.visited { background: #3576dc; border-color: #3576dc; }
.outside-page .travel-gesture-hint { margin-top: 8px; font-size: 0.75rem; color: var(--muted); }
.travel-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.travel-share button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--page); font-size: 0.8rem; }
.travel-share button:hover { color: var(--link-dark); border-color: var(--link); }
.travel-share button:disabled { opacity: 0.45; cursor: default; border-color: var(--line); color: var(--muted); }
#travel-share-status { font-size: 0.8rem; color: var(--muted); }
#travel-share-url { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: 0.8rem; }
.travel-share-preview { margin-top: 14px; max-width: 400px; }
.travel-share-preview img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.travel-share-preview figcaption { margin-top: 6px; font-size: 0.8rem; }
.travel-memories { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.travel-memories h3 { margin-bottom: 12px; color: var(--ink); font-size: 1rem; }
#travel-memory-entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.travel-memory { min-width: 0; }
.travel-memory img { width: 100%; max-height: 320px; object-fit: contain; background: var(--surface); border-radius: 8px; margin-bottom: 10px; }
.travel-memory h4 { font-size: 0.95rem; color: var(--ink); }
.travel-memory-date, .travel-memory-empty { color: var(--muted); font-size: 0.82rem; }
.travel-memory p { font-size: 0.88rem; white-space: pre-line; }
.outside-page .travel-memory p + p { margin-top: 6px; }
.outside-page .travel-attribution { margin-top: 8px; font-size: 0.7rem; color: var(--muted); }
@media (max-width: 520px) {
  .travel-toolbar { gap: 8px; }
  .travel-country-switch button { padding: 7px 10px; }
  .travel-canvas svg { min-height: 280px; }
  .travel-canvas svg[data-country="bd"] { aspect-ratio: 565 / 650; }
  .travel-zoom { right: 8px; bottom: 8px; }
  .travel-zoom button { width: 32px; height: 32px; }
  .travel-legend { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .travel-region, .travel-progress span { transition: none; } }
