/* Lazy country overview; all rules stay inside its planner section. */
.trip-world-map { min-width:0; max-width:100%; margin-bottom:24px; }
.trip-world-map [hidden] { display:none !important; }
.trip-world-map :is(div,p,ul,li,label,select,input,output,svg) { min-width:0; }
.trip-map-intro { margin:0 0 8px; color:#526d5a; font-size:.9rem; line-height:1.7; }
.trip-map-scope { margin:0 0 19px; color:#6c7969; font-size:.77rem; line-height:1.7; }
.trip-map-panel { margin-top:23px; }
.trip-map-filters { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto; gap:13px; align-items:end; }
.trip-map-field { display:flex; flex-direction:column; gap:8px; }
.trip-map-field label { color:#486452; font-size:.76rem; font-weight:650; line-height:1.5; }
.trip-world-map .trip-map-field :is(input,select) { box-sizing:border-box; display:block; width:100%; max-width:100%; height:48px; min-height:48px; margin:0; padding:11px 13px; border:1px solid #d6dfd0; border-radius:12px; color:#234635; background:#fffefa; font:inherit; font-size:.86rem; line-height:1.3; }
.trip-map-country-field { position:relative; }
.trip-world-map .trip-map-field select { -webkit-appearance:none; appearance:none; padding-right:38px; text-overflow:ellipsis; }
.trip-map-country-field::after { content:''; position:absolute; right:17px; bottom:20px; width:7px; height:7px; border-right:2px solid #526d53; border-bottom:2px solid #526d53; transform:rotate(45deg); pointer-events:none; }
.trip-world-map :is(button,select,input,a):focus-visible { outline:3px solid #b76042; outline-offset:3px; }
.trip-map-status { margin:15px 0; color:#526b53; font-size:.79rem; line-height:1.7; overflow-wrap:anywhere; }
.trip-map-status:empty { display:none; }
.trip-map-retry { margin-bottom:16px; }
.trip-map-graphic { margin-top:18px; }
.trip-map-controls { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-bottom:12px; }
.trip-map-controls button { min-width:44px; max-width:100%; overflow-wrap:anywhere; }
.trip-map-viewport { position:relative; width:100%; max-width:100%; overflow:hidden; border:1px solid #d5e1d4; border-radius:19px; background:linear-gradient(150deg,#edf5f0,#eef3eb); }
.trip-map-viewport svg { display:block; width:100%; max-width:100%; height:clamp(190px,42vw,460px); }
.trip-map-land { fill:#dde5d7; stroke:#f6f8f1; stroke-width:.55; }
.trip-map-country { fill:#ceddc3; stroke:#f8faef; stroke-width:.65; cursor:pointer; transition:fill .15s; }
.trip-map-country:hover { fill:#a9c8a2; stroke:#355f49; stroke-width:1.1; }
.trip-map-country.has-trip { fill:#c1d9ac; stroke:#436c49; stroke-width:1.2; }
.trip-map-country.is-selected { fill:#edb28b; stroke:#8d5437; stroke-width:1.8; }
.trip-map-country.is-selected.has-trip { fill:#e5ad80; stroke:#31573f; stroke-width:2; }
.trip-map-legend { display:flex; flex-wrap:wrap; gap:12px 19px; margin:11px 0 0; color:#67795e; font-size:.71rem; line-height:1.6; }
.trip-map-legend span { display:inline-flex; align-items:center; gap:7px; }
.trip-map-legend span::before { content:''; width:12px; height:12px; flex:0 0 12px; border:1px solid #8d5437; border-radius:3px; background:#edb28b; }
.trip-map-legend .trip-map-key-trip::before { border-color:#436c49; background:#c1d9ac; }
.trip-map-no-shape { margin:18px 0; padding:13px 15px; border:1px solid #ded6b8; border-radius:12px; background:#fff7e7; color:#746344; font-size:.78rem; line-height:1.7; }
.trip-map-results-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 18px; margin:24px 0 14px; color:#496747; font-size:.79rem; line-height:1.6; }
.trip-map-results-header p { margin:0; }
.trip-map-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; padding:0; list-style:none; }
.trip-map-place { display:flex; align-items:flex-start; gap:11px; padding:15px; border:1px solid #dfe7d7; border-radius:16px; background:#fffefa; }
.trip-map-place > img { display:block; width:54px; height:64px; flex:0 0 54px; object-fit:cover; border-radius:10px; }
.trip-map-place-body { flex:1; min-width:0; }
.trip-map-place-country { margin:0 0 5px; color:#75826b; font-size:.66rem; line-height:1.5; overflow-wrap:anywhere; }
.trip-world-map .trip-map-place h3 { margin:0 0 10px; color:#2b4f3b; font:600 1.05rem/1.3 Georgia,serif; overflow-wrap:anywhere; }
.trip-map-place-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.trip-map-place-actions a { color:#3c6851; font-size:.7rem; font-weight:650; line-height:1.5; text-underline-offset:3px; overflow-wrap:anywhere; }
.trip-world-map .trip-map-place-actions button { min-height:38px; padding:8px 10px; font-size:.69rem; line-height:1.4; max-width:100%; overflow-wrap:anywhere; }
.trip-map-empty { margin:18px 0; color:#6a7762; font-size:.83rem; line-height:1.7; }
.trip-map-more { margin-top:16px; }
.trip-map-shown { margin:12px 0 0; color:#7b8873; font-size:.7rem; line-height:1.6; }
.trip-map-attribution { margin:21px 0 0; padding-top:15px; border-top:1px solid #e1e7da; color:#7b8873; font-size:.67rem; line-height:1.7; }
.trip-map-attribution a { color:#526d53; text-underline-offset:2px; }
@media (max-width:1000px) { .trip-map-results { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) {
  .trip-map-filters { grid-template-columns:minmax(0,1fr); }
  .trip-map-filters > button { justify-self:start; }
  .trip-world-map .trip-map-field :is(input,select) { font-size:16px; }
  .trip-map-results { grid-template-columns:minmax(0,1fr); }
  .trip-map-controls { gap:6px; }
  .trip-world-map .trip-map-controls button { padding:9px; font-size:.73rem; }
  .trip-map-place > img { width:62px; height:64px; flex-basis:62px; }
}
@media (prefers-reduced-motion:reduce) { .trip-map-country { transition:none; } }
@media (forced-colors:active) {
  .trip-world-map .trip-map-field select { -webkit-appearance:auto; appearance:auto; padding-right:13px; }
  .trip-map-country-field::after { display:none; }
}
@media print { .trip-world-map { display:none !important; } }
