#greece-main {
  max-width: 1180px;
  margin: auto;
  padding: 0 14px 32px;
}
.greece-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px auto;
}
.greece-controls select,
.greece-controls button {
  min-height: 44px;
  font: inherit;
  padding: 10px 16px;
}
#greece-map {
  height: clamp(350px, 48vw, 510px);
  border-radius: 14px;
  border: 1px solid #6b8ca5;
  z-index: 0;
  color: #152d40;
}
#greece-map img {
  margin: 0;
  max-width: none;
  border-radius: 0;
}
#greece-map .leaflet-control a {
  color: #164466;
}
#greece-map .leaflet-control-attribution {
  text-align: left;
  font-size: 12px;
}
#greece-map.leaflet-container:focus-visible {
  outline: 3px solid #1672ab;
  outline-offset: 3px;
}
#greece-map .xionia-location-icon {
  background: none;
  border: 0;
  pointer-events: none;
}
#greece-map .xionia-location-icon svg {
  display: block;
  width: 36px;
  height: 48px;
  filter: drop-shadow(0 2px 3px #102b4470);
}
.greece-city-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 16px auto;
}
.greece-city-links a {
  display: block;
  padding: 9px 8px;
  border: 1px solid #698ba34d;
  border-radius: 8px;
  text-decoration: none;
}
.greece-city-links a:hover,
.greece-city-links a:focus-visible {
  text-decoration: underline;
  border-color: #1672ab;
}
.greece-map-tools {
  margin-bottom: 8px;
}
.greece-map-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.greece-map-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1672ab;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #698ba3;
}
.greece-map-selected {
  background: #e99123;
}
.greece-map-help {
  max-width: 850px;
  margin: 8px auto 20px;
  font-size: 14px;
  line-height: 1.6;
}
#city-meta {
  min-height: 1.5em;
  overflow-wrap: anywhere;
}
#greece-status {
  min-height: 3em;
}
.greece-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.greece-table-scroll table {
  width: 100%;
  min-width: 870px;
  border-collapse: collapse;
}
.greece-table-scroll th,
.greece-table-scroll td {
  padding: 12px 8px;
  border-bottom: 1px solid #698ba34d;
  text-align: center;
  font-size: 15px;
}
.greece-table-scroll th {
  font-weight: 650;
}
#forecast-output[hidden] {
  display: none;
}
#temperature-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 580px;
}
.greece-chart-scroll {
  overflow-x: auto;
}
.greece-chart-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.greece-high {
  color: #e67e22;
}
.greece-low {
  color: #399edd;
}
.greece-method {
  max-width: 950px;
  margin: 24px auto;
}
.greece-method p {
  font-size: 16px;
  line-height: 1.65;
}
@media (max-width: 600px) {
  #greece-main {
    padding: 0 8px 24px;
  }
  .greece-controls {
    flex-direction: column;
  }
  .greece-controls select {
    width: 100%;
  }
}

#greece-map,
#city-select {
  scroll-margin-top: 16px;
}
.greece-city-search {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 18px auto 8px;
  max-width: 700px;
}
.greece-city-search input,
.greece-city-search button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #7b9db6;
  border-radius: 8px;
  font: inherit;
}
.greece-city-search input {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
}
#city-search-status {
  min-height: 1.6em;
  font-size: 14px;
}
.greece-city-links a[hidden] {
  display: none;
}
.greece-city-links a[aria-current="true"] {
  border-color: #1672ab;
  box-shadow: inset 0 0 0 1px #1672ab;
  font-weight: 700;
}
@media (max-width: 600px) {
  .greece-city-search label {
    flex-basis: 100%;
  }
}
.regional-intro {
  max-width: 900px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.regional-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px auto;
}
.regional-tabs a {
  padding: 10px 18px;
  border: 1px solid #718da4;
  border-radius: 999px;
  text-decoration: none;
}
.regional-tabs a[aria-current="page"] {
  background: #185f83;
  color: #fff;
}
#greece-map {
  height: clamp(390px, 55vw, 590px);
}
#greece-map .map-temperature-marker {
  border: 0;
  background: transparent;
}
.map-temperature-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 96px;
  min-height: 42px;
  padding: 4px;
  box-sizing: border-box;
  border: 1px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 5px #17334e45;
  background: var(--temperature-colour, #536878);
  color: #ffffff !important;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
}
.map-weather-name {
  display: block;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font:
    12px/1.15 Arial,
    sans-serif;
}
.map-weather-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}
.map-weather-values strong {
  font:
    700 14px/1.15 Arial,
    sans-serif;
  letter-spacing: -0.2px;
}
.map-weather-icon {
  font:
    15px/1.15 Arial,
    sans-serif;
}
.map-temperature-chip:focus-visible {
  outline: 3px solid #182c46;
  outline-offset: 3px;
  z-index: 1500 !important;
}
#map-temperature-status {
  min-height: 2.5em;
  font-size: 14px;
  line-height: 1.5;
  max-width: 950px;
  margin: 8px auto 18px;
}
.regional-keyboard {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
button.regional-keyboard:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 12px;
  margin: 10px auto;
  clip-path: none;
  white-space: normal;
}
.regional-breadcrumb {
  font-size: 14px;
  padding: 15px;
}
#city-permalink {
  display: inline-block;
  margin: 6px auto 16px;
}
#city-permalink[hidden] {
  display: none;
}
.regional-overview-note {
  font-size: 14px;
  line-height: 1.5;
}
.city-context {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid #718da44d;
  border-radius: 14px;
  margin: 20px auto;
  max-width: 850px;
}
.city-context dt {
  font-size: 13px;
  opacity: 0.85;
}
.city-context dd {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 600;
}
.greece-city-links small {
  display: block;
  margin-top: 4px;
  opacity: 0.8;
  font-size: 12px;
}
.greece-city-links [data-map-temperature] {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.map-temperature-chip[aria-current="location"] {
  outline: 3px solid #f4b24b;
  outline-offset: 1px;
}
#greece-map .xionia-map-selection {
  width: 190px;
  max-width: calc(100vw - 110px);
  padding: 10px 12px;
  border: 1px solid #9eb9cc;
  border-radius: 12px;
  background: #ffffff;
  color: #15344b;
  box-shadow: 0 3px 12px #102b4433;
  text-align: center;
  line-height: 1.35;
}
#greece-map .xionia-map-selection[hidden] {
  display: none;
}
#greece-map .map-selection-name {
  display: block;
  color: #165c87;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#greece-map a.map-selection-name:hover {
  text-decoration: underline;
}
#greece-map .map-selection-date,
#greece-map .map-selection-status,
#greece-map .xionia-map-selection small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
#greece-map .map-selection-weather {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 7px;
}
#greece-map .map-selection-icon {
  font-size: 27px;
  line-height: 1.2;
}
#greece-map .map-selection-weather strong {
  font-size: 20px;
  white-space: nowrap;
}
#greece-map .map-selection-name:focus-visible {
  outline: 3px solid #f4b24b;
  outline-offset: 3px;
}

.xionia-city-widget {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 18px;
  border: 1px solid #adcadc;
  border-radius: 12px;
  padding: 12px;
  background: #edf6fb;
  color: #16384e;
  text-align: center;
  font:
    14px/1.4 system-ui,
    sans-serif;
}
.xw-link {
  display: block;
  color: inherit !important;
  text-decoration: none;
}
.xw-link:focus-visible {
  outline: 3px solid #d89016;
  outline-offset: 3px;
}
.xw-heading {
  display: block;
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 650;
}
.xw-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
}
.xw-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 8px;
  background: #ffffff;
  color: #16384e;
}
.xw-date,
.xw-rain {
  font-size: 12px;
  white-space: nowrap;
}
.xw-icon {
  font-size: 22px;
  line-height: 1.15;
}
.xw-temperatures {
  font-size: 15px;
  white-space: nowrap;
}
.xw-note,
.xw-brand,
.xw-updated {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.xw-brand {
  font-weight: 700;
}
.xionia-dark .xionia-city-widget,
body[data-widget-theme="dark"] .xionia-city-widget {
  background: #102b42;
  border-color: #486780;
  color: #edf6fb;
}
.xionia-dark .xw-day,
body[data-widget-theme="dark"] .xw-day {
  background: #1d3a52;
  color: #f2f8fc;
}
@media (max-width: 600px) {
  .xionia-city-widget {
    padding: 10px 6px;
  }
}
body[data-widget="true"] {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: transparent;
}
body[data-widget="true"] .xionia-city-widget {
  margin: 0;
  border-radius: 14px;
}
body[data-widget="true"][data-widget-theme="dark"] {
  color: #edf5ff;
}
.history-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.history-summary > div {
  border: 1px solid #b9cede;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-summary strong {
  font-size: 24px;
  color: #0877a9;
}
.xionia-dark .history-summary strong {
  color: #8cd4f4;
}
.widget-builder-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: end;
  margin: 20px 0;
}
.widget-builder-controls label {
  display: grid;
  gap: 6px;
}
.widget-builder-controls select {
  max-width: 100%;
  padding: 10px;
  font: inherit;
}
.widget-preview-frame {
  display: block;
  width: 100%;
  height: 285px;
  border: 0;
  margin: 20px auto;
  max-width: 1180px;
}
.widget-code {
  width: 100%;
  box-sizing: border-box;
  min-height: 145px;
  display: block;
  margin: 16px 0;
  font: 14px/1.6 monospace;
  padding: 12px;
}
@media (max-width: 600px) {
  .history-summary {
    grid-template-columns: 1fr;
  }
}

.weather-flags,
.xw-flags {
  font-size: 15px;
  line-height: 1.3;
  min-height: 20px;
}

.xw-wind {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.xw-day{min-width:0}.xw-wind{white-space:normal;overflow-wrap:anywhere}.xw-note{overflow-wrap:anywhere}
@media(max-width:760px){.xw-days{grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}}
@media(max-width:480px){.xw-days{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.xw-day{padding:10px 6px}}

/* v27: one readable seven-day row, matching the compact station widget. */
.xionia-city-widget{max-width:800px;padding:8px;margin:8px auto 14px;font-size:13px;border-radius:10px;}
.xw-heading{font-size:14px;margin-bottom:6px;}
.xw-days{grid-template-columns:repeat(7,minmax(96px,1fr));gap:4px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:5px;}
.xw-day{padding:5px 3px;gap:2px;scroll-snap-align:start;}
.xw-icon{font-size:18px;line-height:1.2;}
.xw-temperatures{font-size:14px;}
.xw-wind{font-size:12px;line-height:1.4;}
.xw-note,.xw-brand,.xw-updated{font-size:12px;margin-top:3px;}
.xw-scroll-hint{display:none;font-size:12px;margin-top:2px;}
.widget-preview-frame{max-width:800px;height:235px;}
@media(max-width:760px){.xw-scroll-hint{display:block;}}
@media(max-width:450px){.xionia-city-widget{padding:7px 5px;}}
@media(prefers-reduced-motion:reduce){.xw-days{scroll-snap-type:none;scroll-behavior:auto;}}

/* v30: the seven-day row fills its desktop container, including embedded previews. */
@media(min-width:801px){
 .xionia-city-widget,.widget-preview-frame{max-width:100%;}
}

/* v30.1: place widgets are direct children of body. Match the inner content
   width of #greece-main: 1180px border box minus its 14px side padding,
   reduced to 8px on screens up to 600px, as in greece.css. */
body[data-place-page="true"] > #place-widget.xionia-city-widget{
  width:calc(100% - 28px);
  max-width:1152px;
  min-width:0;
  margin-inline:auto;
}
@media(max-width:600px){
  body[data-place-page="true"] > #place-widget.xionia-city-widget{
    width:calc(100% - 16px);
  }
}

