.xionia-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 20px;
  background: #102b3c;
  color: #fff;
  font-size: 14px;
}
.atlas-weather {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid #cbd7df;
  border-radius: 16px;
  background: #f2f6fa;
  color: #122c40;
}
.atlas-weather h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
}
.atlas-weather p {
  line-height: 1.7;
  margin: 12px 0;
}
.atlas-weather form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.atlas-weather select {
  max-width: 100%;
  padding: 12px;
  background: white;
  border: 1px solid #8ba7b6;
  border-radius: 8px;
}
.atlas-weather input {
  width: 105px;
  padding: 12px;
  border: 1px solid #8ba7b6;
  border-radius: 8px;
}
.atlas-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(125px, 1fr));
  gap: 10px;
  overflow: auto;
  padding: 12px 0;
}
.atlas-week > div {
  display: grid;
  gap: 9px;
  background: white;
  padding: 16px;
  border-radius: 10px;
}
.atlas-week span {
  font-size: 14px;
}
.atlas-table {
  overflow: auto;
  margin: 20px 0;
}
.atlas-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  white-space: nowrap;
}
.atlas-table td,
.atlas-table th {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #cbd7df;
}
.atlas-table caption {
  text-align: left;
  padding: 10px 0;
}
.weather-note,
.photo-subject {
  font-size: 14px;
  line-height: 1.6;
}
.photo-subject a,
.weather-note a {
  text-decoration: underline;
}
#atlas-map {
  height: 520px;
  border-radius: 16px;
  max-height: 65vh;
  margin: 0 0 24px;
}
.atlas-weather summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
}
@media (max-width: 650px) {
  .atlas-weather {
    padding: 16px;
  }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .header .nav {
    flex-wrap: wrap;
  }
  .atlas-weather form {
    align-items: stretch;
    flex-direction: column;
  }
  .atlas-weather input {
    width: 100%;
  }
}
body.xionia-dark {
  background: #0b1723;
  color: #edf4fa;
  --ink: #edf4fa;
  --muted: #a6bdcc;
  --line: #2a4051;
  --paper: #0b1723;
  --accent: #71d4ed;
}
body.xionia-dark .header,
body.xionia-dark .footer,
body.xionia-dark .country-section,
body.xionia-dark .country-card,
body.xionia-dark .resort-card,
body.xionia-dark .detail-aside {
  background: #132433;
  color: #edf4fa;
}
body.xionia-dark .atlas-weather {
  background: #132433;
  color: #edf4fa;
  border-color: #2a4051;
}
body.xionia-dark .atlas-week > div {
  background: #0b1723;
}
body.xionia-dark input,
body.xionia-dark select,
body.xionia-dark .search-box {
  background: #0b1723;
  color: #edf4fa;
}
body.xionia-dark .card-description,
body.xionia-dark .location,
body.xionia-dark .source-note {
  color: #a6bdcc;
}
body {
  min-height: 100vh;
}
.wrap {
  width: min(1320px, calc(100% - 48px));
}
.header {
  height: auto;
  min-height: 80px;
}
.header-inner {
  flex-wrap: wrap;
  padding-block: 18px;
  gap: 18px;
}
.header .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  overflow: visible;
}
.header-right {
  margin-left: auto;
}
.grid {
  gap: 24px;
}
.resort-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.resort-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px #102b3c18;
}
.card-image {
  height: auto;
  aspect-ratio: 16/10;
}
.card-title h3 {
  overflow-wrap: anywhere;
}
.detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 36px;
}
.detail-main,
.detail-aside,
.atlas-weather {
  min-width: 0;
}
.atlas-weather form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 110px auto;
  gap: 12px;
}
.atlas-weather select {
  width: 100%;
  min-width: 0;
}
.atlas-weather input {
  width: 100%;
}
.atlas-table {
  max-width: 100%;
  overscroll-behavior-inline: contain;
}
.atlas-table thead th {
  background: #e2edf3;
}
.atlas-table tbody tr:nth-child(even) {
  background: #ffffff66;
}
.photo-subject {
  margin: 12px 0 24px;
  color: var(--muted);
}
.leaflet-container img.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}
.leaflet-popup-content a {
  color: #145d84 !important;
  text-decoration: underline;
}
.xionia-dark {
  --white: #132433;
  --blue: #1b3448;
}
.xionia-dark .atlas-table thead th {
  background: #1b3448;
}
.xionia-dark .atlas-table tbody tr:nth-child(even) {
  background: #0b172366;
}
.xionia-dark .detail-hero.no-image {
  background: #1b3448;
}
.xionia-dark .tag {
  background: #1b3448;
  color: #edf4fa;
}
.xionia-dark .region,
.xionia-dark .button.light {
  background: #132433;
  color: #edf4fa;
  border-color: #537180;
}
@media (max-width: 1000px) {
  .atlas-weather form {
    grid-template-columns: 1fr 2fr;
  }
  .atlas-weather form button {
    grid-column: 1/-1;
  }
  .header .edition {
    display: none;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .header-inner {
    gap: 12px;
  }
  .header .nav {
    gap: 16px;
    padding-bottom: 6px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
  }
  .detail-hero {
    height: 300px;
  }
  .detail-title {
    padding: 22px;
  }
  .atlas-weather {
    padding: 16px;
    margin: 24px 0;
  }
  .atlas-weather form {
    grid-template-columns: 1fr;
  }
  .atlas-weather form button {
    grid-column: auto;
  }
  .atlas-week {
    grid-template-columns: repeat(7, 140px);
  }
  .page-intro {
    padding-block: 30px;
  }
  .hero-content {
    padding-top: 42px;
  }
  .hero p {
    max-width: 32ch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .resort-card {
    transition: none;
  }
  .resort-card:hover {
    transform: none;
  }
}

body.xionia-dark {
  color-scheme: dark;
}
body.xionia-dark .button,
body.xionia-dark .region[aria-pressed="true"] {
  background: #71d4ed;
  color: #0b1723;
  border-color: #71d4ed;
}
body.xionia-dark .button:hover,
body.xionia-dark .region[aria-pressed="true"]:hover {
  background: #dcf4ff;
  color: #0b1723;
}
body.xionia-dark .button.light,
body.xionia-dark .lang,
body.xionia-dark .empty,
body.xionia-dark .skip {
  background: #132433;
  color: #edf4fa;
  border-color: #668694;
}
body.xionia-dark .image-chip {
  background: #0b1723;
  color: #f2f8fc;
  border: 1px solid #668694;
}
body.xionia-dark input::placeholder {
  color: #a6bdcc;
  opacity: 1;
}
body.xionia-dark select option {
  background: #0b1723;
  color: #edf4fa;
}
body.xionia-dark .atlas-table th,
body.xionia-dark .atlas-table td {
  border-color: #668694;
}
body.xionia-dark .leaflet-popup-content-wrapper,
body.xionia-dark .leaflet-popup-tip,
body.xionia-dark .leaflet-tooltip {
  background: #132433;
  color: #edf4fa;
}
body.xionia-dark .leaflet-popup-content a,
body.xionia-dark .leaflet-container a.leaflet-popup-close-button {
  color: #a9e5ff !important;
}
body.xionia-dark .leaflet-control-zoom a {
  background: #132433;
  color: #edf4fa;
}
body.xionia-dark .leaflet-control-attribution {
  background: #0b1723;
  color: #edf4fa;
}
body.xionia-dark .leaflet-control-attribution a {
  color: #a9e5ff;
}
body.xionia-dark :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid #f0c36a;
  outline-offset: 3px;
}

body:not(.xionia-dark) {
  color-scheme: light;
  background: #f2f6fa;
  color: #122c40;
}
body:not(.xionia-dark) .button:not(.light),
body:not(.xionia-dark) .region[aria-pressed="true"] {
  background: #096783;
  border-color: #096783;
  color: #fff;
}
body:not(.xionia-dark) .atlas-weather {
  background: #fff;
}
body:not(.xionia-dark) .atlas-week > div,
body:not(.xionia-dark) .country-section {
  background: #f2f6fa;
}
body:not(.xionia-dark) .atlas-table thead th {
  background: #e8f1f6;
  color: #122c40;
}

.nearby-resorts {
  margin-block: 32px;
  padding-bottom: 24px;
}
.nearby-resorts > p {
  margin-block: 12px 20px;
  color: var(--muted);
}
.nearby-resorts .country-card {
  flex-direction: column;
  gap: 8px;
}
.nearby-resorts .country-card span {
  font-size: 14px;
  color: var(--muted);
}
#atlas-city-widget {
  margin-block: 18px;
}
#resort-forecast {
  scroll-margin-top: 20px;
}

.atlas-home .hero {
  height: 240px;
  min-height: 0;
}
.atlas-home .hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 8px 0;
}
.atlas-home .hero-content {
  padding-top: 30px;
  padding-bottom: 35px;
}
.atlas-home .hero-content p {
  font-size: 16px;
  max-width: 650px;
}
.atlas-home .hero .eyebrow {
  font-size: 13px;
}
.atlas-home-map-panel {
  padding: 22px 0 28px;
}
.atlas-home-map-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 9px;
}
#atlas-home-map {
  height: clamp(360px, 48vw, 540px);
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #152d40;
  z-index: 0;
}
#atlas-home-map img {
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
}
#atlas-home-map .leaflet-control a {
  color: #164466;
}
#atlas-home-map .leaflet-control-attribution {
  font-size: 12px;
}
.atlas-home-map-panel .greece-controls {
  justify-content: flex-start;
}
.atlas-home-map-panel [hidden] {
  display: none !important;
}
#map-temperature-status,
.ski-data-credit {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 12px;
}
.mapped-facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.mapped-facts .fact {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}
.mapped-facts dt {
  font-size: 14px;
  color: var(--muted);
}
.mapped-facts dd {
  font-weight: 700;
  margin: 6px 0 0;
}
.atlas-history {
  margin: 28px 0;
  padding: 26px;
  background: var(--surface, #132433);
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: 1.7;
}
body:not(.xionia-dark) .atlas-history {
  background: #fff;
}
.atlas-history h2 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}
.atlas-history p {
  margin-block: 12px;
}
.atlas-history .history-mountain-note {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.atlas-history [hidden] {
  display: none !important;
}
.atlas-history button {
  min-height: 44px;
  font: inherit;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.atlas-history .history-summary strong {
  color: #0877a9;
}
body.xionia-dark .atlas-history .history-summary strong {
  color: #8cd4f4;
}
.photo-subject {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.photo-subject a {
  text-decoration: underline;
}
.resort-card .photo-context {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  padding: 7px 14px;
  color: var(--muted);
}
body .footer.xionia-footer {
  max-width: none;
  padding-inline: 0;
}
.footer .xionia-branding {
  width: 100%;
  text-align: center;
}
.atlas-home .regional-tabs {
  margin-top: 0;
}
@media (max-width: 600px) {
  .atlas-home .hero {
    height: 260px;
  }
  .atlas-home .hero-caption {
    display: none;
  }
  .atlas-home-map-panel {
    padding-top: 12px;
  }
  .atlas-history {
    padding: 16px;
  }
}

/* Shared Xionia typography, surfaces and maps. */
:root { --bg:#f2f6fa; --panel:#fff; --text:#122c40; --ink:var(--text); --paper:var(--bg); --muted:#496476; --line:#cbd7df; --accent:#096783; font-family:system-ui,sans-serif; }
body { font:16px/1.6 system-ui,sans-serif; background:var(--bg); color:var(--text); }
body.xionia-dark { --bg:#0b1723; --panel:#132433; --text:#edf4fa; --ink:var(--text); --paper:var(--bg); --muted:#a6bdcc; --line:#2a4051; --accent:#71d4ed; }
h1,h2,h3,.brand { font-family:system-ui,sans-serif; letter-spacing:normal; }
.wrap { width:min(1200px,calc(100% - 48px)); }
.header,.footer,.resort-card,.detail-aside,.country-card,.search-box,.empty,.atlas-weather,.atlas-history { background:var(--panel); color:var(--text); border-color:var(--line); }
.search-box input,.filters select,.lang,.button.light { background:var(--panel); color:var(--text); }
.country-section,.tag,.detail-hero.no-image { background:var(--bg); color:var(--text); }

.leaflet-container { font:14px/1.5 system-ui,sans-serif; background:#e8eef3; }
#atlas-home-map,#atlas-map { height:540px; max-height:70vh; border:1px solid var(--line); border-radius:12px; }
.leaflet-popup-content-wrapper,.leaflet-popup-tip { background:var(--panel); color:var(--text); }
.filters select,.region,.location,.eyebrow,.tag,.source-note,.breadcrumb,.edition,.fact dt { font-size:14px; }
@media(max-width:600px) { .wrap {width:calc(100% - 28px)} #atlas-home-map,#atlas-map {height:420px} .atlas-weather {padding:16px} }

.atlas-home-map-panel {border:1px solid var(--line);border-radius:12px;padding:24px;background:var(--panel);color:var(--text);margin:20px 0}
.atlas-home-map-panel .greece-controls{gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}
.atlas-home-map-panel .greece-controls :is(button,select),.atlas-weather form :is(button,select,input){font:inherit;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;min-height:44px;padding:9px 12px}
.atlas-home-map-panel .greece-controls button:hover,.atlas-weather form button:hover{border-color:var(--accent)}
.atlas-home-map-panel .map-place-search{max-width:800px;margin:18px auto}
.atlas-home-map-panel .map-search-credit,.atlas-home-map-panel .map-place-search [role=status]{font-size:14px}
.atlas-home-map-panel .map-place-search input,.atlas-home-map-panel .map-search-results{background:var(--panel);color:var(--text);border-color:var(--line)}
.atlas-home-map-panel .map-place-search button{background:#096783;color:#fff;border-color:#096783}
body.xionia-dark .atlas-home-map-panel .map-place-search button{background:#71d4ed;color:#122c40;border-color:#71d4ed}
body.xionia-dark #atlas-home-map .leaflet-control-zoom a{background:var(--panel);color:var(--text);border-color:var(--line)}
body.xionia-dark #atlas-home-map .leaflet-control-attribution{background:var(--panel);color:var(--text)}
body.xionia-dark #atlas-home-map .leaflet-control-attribution a{color:var(--accent)}
.search-box{border-radius:9px;box-shadow:none;font:16px/1.6 system-ui,sans-serif}
@media(max-width:600px){.atlas-home-map-panel{padding:14px}.atlas-home-map-panel .greece-controls{align-items:stretch}.atlas-home-map-panel .greece-controls button{flex:1}}
