.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; }
