/* XIONIA map + search polish (r1). Presentation only: no markup, text, link or data change, so headings, anchors,
   internal links and structured data stay exactly as crawled. Scope: the shared location map section rendered by
   greece.js / map-places.js (#forecast-location-map, #greece-map, .map-place-search, .greece-controls). */
html body :is(#forecast-location-map,:has(> #greece-map)){--xp-ink:#173b51;--xp-muted:#4d6676;--xp-line:#cfdde6;--xp-card:#f7fafc;--xp-field:#fff;--xp-accent:#1d6fa5;--xp-shadow:0 2px 14px rgba(13,36,51,.10)}
html body:is(.dark,.xionia-dark) :is(#forecast-location-map,:has(> #greece-map)){--xp-ink:#e6f0f6;--xp-muted:#a9bccb;--xp-line:#2e4252;--xp-card:#15222c;--xp-field:#0f1a22;--xp-accent:#4aa3dc;--xp-shadow:0 2px 14px rgba(0,0,0,.35)}
@media (prefers-color-scheme:dark){html body:not(.light):not(.xionia-light) :is(#forecast-location-map,:has(> #greece-map)){--xp-ink:#e6f0f6;--xp-muted:#a9bccb;--xp-line:#2e4252;--xp-card:#15222c;--xp-field:#0f1a22;--xp-accent:#4aa3dc;--xp-shadow:0 2px 14px rgba(0,0,0,.35)}}

/* Search: one rounded field with the button inside, left-aligned like every search box users know. */
html body :is(#forecast-location-map,:has(> #greece-map)) .map-place-search{margin:10px 0 12px;text-align:left}
html body :is(#forecast-location-map,:has(> #greece-map)) .map-place-search>label{display:block;margin:0 0 6px;font-weight:700;font-size:15px;color:var(--xp-ink);text-align:left!important}
html body :is(#forecast-location-map,:has(> #greece-map)) .map-search-controls{display:flex;flex-wrap:nowrap!important;align-items:stretch;gap:0;padding:4px;border:1px solid var(--xp-line);border-radius:999px;background:var(--xp-field);box-shadow:var(--xp-shadow);transition:box-shadow .15s,border-color .15s}
html body :is(#forecast-location-map,:has(> #greece-map)) .map-search-controls:focus-within{border-color:var(--xp-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--xp-accent) 25%,transparent),var(--xp-shadow)}
html body :is(#forecast-location-map,:has(> #greece-map)) #map-place-query{flex:1 1 auto;min-width:0;min-height:44px;margin:0;padding:0 14px 0 16px;border:0!important;border-radius:999px;background:transparent;color:var(--xp-ink);font-size:16px;text-align:left;box-shadow:none!important;outline:0}
html body :is(#forecast-location-map,:has(> #greece-map)) #map-place-query::placeholder{color:var(--xp-muted);opacity:.85}
html body :is(#forecast-location-map,:has(> #greece-map)) .map-search-controls button{flex:0 0 auto;min-height:44px;margin:0;padding:0 20px;border:0;border-radius:999px;background:var(--xp-accent);color:#fff;font-weight:700;cursor:pointer}
html body :is(#forecast-location-map,:has(> #greece-map)) .map-search-controls button:focus-visible{outline:3px solid var(--xp-ink);outline-offset:2px}
html body :is(#forecast-location-map,:has(> #greece-map)) .map-search-results:not(:empty){margin:6px 0 0;padding:6px;list-style:none;border:1px solid var(--xp-line);border-radius:14px;background:var(--xp-field);box-shadow:var(--xp-shadow);max-height:min(50vh,360px);overflow:auto}
html body :is(#forecast-location-map,:has(> #greece-map)) .map-search-results li a,:is(#forecast-location-map,:has(> #greece-map)) .map-search-results li button{display:block;width:100%;padding:9px 12px;border-radius:10px;text-align:left;text-decoration:none;color:var(--xp-ink)}
html body :is(#forecast-location-map,:has(> #greece-map)) .map-search-results li a:hover,:is(#forecast-location-map,:has(> #greece-map)) .map-search-results li button:hover,:is(#forecast-location-map,:has(> #greece-map)) .map-search-results li [aria-selected=true]{background:color-mix(in srgb,var(--xp-accent) 12%,transparent)}
html body :is(#forecast-location-map,:has(> #greece-map)) .map-search-credit{margin:6px 4px 0;font-size:12.5px;color:var(--xp-muted);text-align:left}
html body :is(#forecast-location-map,:has(> #greece-map)) #map-status{margin:8px 2px;font-size:14px;line-height:1.5;color:var(--xp-muted)}

/* Map: taller on every screen, rounded card; controls compact so weather cards stay readable. */
html body :is(#forecast-location-map,:has(> #greece-map)) .x17-map-legend{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:8px 0}
html body :is(#forecast-location-map,:has(> #greece-map)) #greece-map:not(.xn-map-full){height:clamp(380px,62vh,640px)!important}html body :is(#forecast-location-map,:has(> #greece-map)) #greece-map{min-height:0;border:1px solid var(--xp-line);border-radius:16px;box-shadow:var(--xp-shadow);overflow:hidden;isolation:isolate}
@media (max-width:640px){:is(#forecast-location-map,:has(> #greece-map)) #greece-map:not(.xn-map-full){height:clamp(360px,68vh,560px)!important}:is(#forecast-location-map,:has(> #greece-map)) #greece-map{border-radius:14px}}
html body :is(#forecast-location-map,:has(> #greece-map)) #greece-map .leaflet-bar,:is(#forecast-location-map,:has(> #greece-map)) #greece-map .x35-export-control,:is(#forecast-location-map,:has(> #greece-map)) #greece-map .xme-tools-r3{border:0!important;border-radius:12px!important;box-shadow:0 2px 10px rgba(13,36,51,.25)!important;overflow:hidden}
/* Touch targets stay at the existing 44 px (accessibility); only the look changes. */
html body :is(#forecast-location-map,:has(> #greece-map)) #greece-map .x35-export-control button{display:grid;place-items:center;padding:0;border:0;background:#fff;color:#173b51}
html body :is(#forecast-location-map,:has(> #greece-map)) #greece-map .x35-export-control svg{width:19px;height:19px}
html body :is(#forecast-location-map,:has(> #greece-map)) #greece-map .leaflet-control-attribution{border-radius:8px 0 0 0;font-size:10.5px}

/* Key chips under the map. */
html body :is(#forecast-location-map,:has(> #greece-map)) .x34-map-key{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
html body :is(#forecast-location-map,:has(> #greece-map)) .x34-map-key a{border-radius:999px}

/* Day / source / view: tidy labelled grid instead of centred loose controls. */
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 14px;align-items:end;margin:12px 0;padding:14px;border:1px solid var(--xp-line);border-radius:16px;background:var(--xp-card);text-align:left}
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>label{grid-row:1;margin:0;font-size:13px;font-weight:700;line-height:1.3;color:var(--xp-ink);text-align:left}
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>label:nth-of-type(1){grid-column:1}
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>label:nth-of-type(2){grid-column:2}
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>label:nth-of-type(3){grid-column:3}
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>select{grid-row:2;width:100%;min-width:0;max-width:none;min-height:44px;margin:0;border-radius:12px;text-align:left;text-align-last:left}
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls~.xionia-map-source-help{text-align:left}
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>select:nth-of-type(1){grid-column:1}
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>select:nth-of-type(2){grid-column:2}
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>select:nth-of-type(3){grid-column:3}
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>button{grid-row:3;grid-column:1;justify-self:start;min-height:40px;margin:4px 0 0;border-radius:999px}
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>[role=status]{grid-row:3;grid-column:2/-1;align-self:center;font-size:13px;color:var(--xp-muted)}
@media (max-width:640px){
 html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls{grid-template-columns:minmax(0,1fr) auto;padding:12px}
 html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>label:nth-of-type(1){grid-column:1/-1;grid-row:1}
 html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>select:nth-of-type(1){grid-column:1;grid-row:2}
 html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>button{grid-column:2;grid-row:2;margin:0;align-self:stretch}
 html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>label:nth-of-type(2){grid-column:1/-1;grid-row:3;margin-top:6px}
 html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>select:nth-of-type(2){grid-column:1/-1;grid-row:4}
 html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>label:nth-of-type(3){grid-column:1/-1;grid-row:5;margin-top:6px}
 html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>select:nth-of-type(3){grid-column:1/-1;grid-row:6}
 html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls>[role=status]{grid-column:1/-1;grid-row:7}
}
/* Source list: same text, calmer typography. */
html body :is(#forecast-location-map,:has(> #greece-map)) .greece-controls+p,:is(#forecast-location-map,:has(> #greece-map)) .xionia-map-source-help{font-size:12.5px;line-height:1.55;color:var(--xp-muted);overflow-wrap:anywhere}

@media (max-width:420px){html body :is(#forecast-location-map,:has(> #greece-map)) .map-search-controls button{padding:0 14px}html body :is(#forecast-location-map,:has(> #greece-map)) #map-place-query{padding-left:12px;font-size:16px}}
