:root {
  --nav-h: 60px;
  --weather-ink: #26323a;
  --weather-muted: #5d6b75;
  --weather-line: rgba(17, 68, 102, 0.18);
  --weather-surface: #ffffff;
  --weather-canvas: #ffffff;
  --weather-teal: #1e88e5;
  --weather-teal-dark: #0f5f8f;
  --weather-sky: #eaf7ff;
  --weather-coral: #ef6b5b;
  --weather-amber: #f2aa3b;
  --weather-green: #299267;
  --weather-blue: #1e88e5;
  --weather-shadow: 0 10px 30px rgba(17, 68, 102, 0.09);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  background: var(--weather-canvas);
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: var(--nav-h);
  background: var(--weather-canvas);
  color: var(--weather-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

body.no-scroll {
  overflow: hidden;
}

.material-symbols-outlined {
  font-size: 1.25rem;
  line-height: 1;
  vertical-align: middle;
}

/* Shared visual language with the main site navigation. */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 1rem;
  padding: 0 12px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.site-nav .logo {
  color: #1e88e5;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 0.48rem 0.78rem;
  overflow: hidden;
  border: 1px solid rgba(66, 165, 245, 0.16);
  border-radius: 999px;
  background: rgba(66, 165, 245, 0.055);
  color: #0f3f5c;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-menu a::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 2px solid #42a5f5;
  border-radius: inherit;
  opacity: 0;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  content: "";
  pointer-events: none;
  transition: clip-path 0.45s ease, opacity 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(66, 165, 245, 0.1);
  color: #0b3550;
}

.nav-menu a:hover::before,
.nav-menu a:focus-visible::before {
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  margin-left: auto;
  border: 1px solid rgba(66, 165, 245, 0.45);
  border-radius: 8px;
  background: rgba(66, 165, 245, 0.06);
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  height: 2px;
  margin: 6px 7px;
  background: #42a5f5;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-booking-link {
  display: none;
}

.nav-menu > .language-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.nav-menu > .language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: auto;
  padding: 0.25rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.78;
}

.nav-menu > .language-switcher img {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.language-switcher a[aria-current="page"] {
  display: none !important;
}

.weather-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 28px;
}

.weather-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 249, 255, 0.92), rgba(207, 233, 255, 0.68) 62%, rgba(232, 255, 246, 0.72));
  box-shadow: var(--weather-shadow);
}

.weather-eyebrow,
.section-kicker {
  margin: 0 0 5px;
  color: var(--weather-teal);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.weather-intro h1 {
  margin: 0;
  color: var(--weather-ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
}

.weather-lead {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--weather-muted);
  font-size: 1rem;
}

.weather-updated {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: var(--weather-surface);
  color: var(--weather-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.weather-loading,
.weather-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: var(--weather-surface);
  text-align: left;
}

.weather-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #d8e7e9;
  border-top-color: var(--weather-teal);
  border-radius: 50%;
  animation: weather-spin 0.8s linear infinite;
}

@keyframes weather-spin {
  to { transform: rotate(360deg); }
}

.weather-error {
  justify-content: flex-start;
  border-color: #efc2bc;
  background: #fff7f5;
}

.weather-error > .material-symbols-outlined {
  color: var(--weather-coral);
  font-size: 2rem;
}

.weather-error p {
  margin: 3px 0 0;
  color: var(--weather-muted);
}

.weather-error button {
  min-height: 40px;
  margin-left: auto;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--weather-ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.current-weather {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.45fr);
  min-height: 340px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f5f8f 0%, #1e88e5 58%, #42a5f5 100%);
  box-shadow: var(--weather-shadow);
  color: #fff;
}

.current-primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.current-location-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 700;
}

.current-condition {
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-condition img {
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.12));
}

.current-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.current-temperature {
  display: block;
  margin-top: -2px;
  font-size: clamp(3.5rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 1;
}

.current-description {
  margin: 7px 0 0;
  font-weight: 700;
  text-transform: capitalize;
}

.current-observed {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
}

.current-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: stretch;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.current-metric {
  min-width: 0;
  padding: 22px 18px;
  background: rgba(15, 63, 92, 0.9);
}

.current-metric-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.current-metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
  line-height: 1.3;
}

.current-metric small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
}

.weather-section {
  margin-top: 50px;
}

.section-heading,
.forecast-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2,
.forecast-detail-head h3 {
  margin: 0;
  line-height: 1.15;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.section-heading > p,
.forecast-detail-head > p {
  max-width: 520px;
  margin: 0;
  color: var(--weather-muted);
  font-size: 0.82rem;
  text-align: right;
}

.forecast-calendar {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-color: #b7c6c9 transparent;
}

.forecast-day {
  position: relative;
  min-width: 150px;
  min-height: 196px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: var(--weather-surface);
  color: var(--weather-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.forecast-day:hover {
  transform: translateY(-2px);
  border-color: #9fc9ce;
  box-shadow: 0 12px 24px rgba(23, 77, 85, 0.1);
}

.forecast-day.is-active {
  border-color: var(--weather-teal);
  box-shadow: inset 0 0 0 1px var(--weather-teal);
}

.forecast-day.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--weather-teal);
}

.forecast-day-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--weather-line);
  background: #f8faf9;
}

.forecast-day-date strong {
  font-size: 0.78rem;
}

.forecast-day-date span {
  color: var(--weather-muted);
  font-size: 0.7rem;
}

.forecast-day-body {
  padding: 11px 12px 14px;
  text-align: center;
}

.forecast-day-body img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.forecast-day-temp {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
}

.forecast-day-temp strong {
  font-size: 1.16rem;
}

.forecast-day-body > p {
  min-height: 34px;
  margin: 6px 0 8px;
  color: var(--weather-muted);
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: capitalize;
}

.forecast-day-rain {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--weather-blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.forecast-detail-head {
  align-items: center;
  margin-top: 0;
}

.forecast-detail-head h3 {
  font-size: 1.2rem;
}

.hourly-forecast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 10px;
}

.forecast-calendar-block {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--weather-line);
}

.forecast-calendar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.forecast-calendar-heading h3,
.forecast-calendar-heading p {
  margin: 0;
}

.forecast-calendar-heading h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.forecast-calendar-heading > p {
  color: var(--weather-muted);
  font-size: 0.78rem;
  text-align: right;
}

.hourly-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: var(--weather-surface);
}

.hourly-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8eded;
}

.hourly-time {
  font-size: 1rem;
  font-weight: 800;
}

.hourly-condition {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hourly-condition img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.hourly-condition span {
  overflow: hidden;
  color: var(--weather-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.hourly-temp {
  margin: 10px 0;
  font-size: 1.55rem;
  font-weight: 800;
}

.hourly-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  color: var(--weather-muted);
  font-size: 0.7rem;
}

.hourly-facts span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.hourly-facts .material-symbols-outlined {
  color: var(--weather-teal);
  font-size: 1rem;
}

.weather-map-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-color: #b7c6c9 transparent;
}

.weather-map-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: var(--weather-surface);
  color: var(--weather-muted);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.weather-map-tab:hover {
  border-color: #9fc9ce;
  color: var(--weather-ink);
}

.weather-map-tab[aria-selected="true"] {
  border-color: var(--weather-teal);
  background: var(--weather-teal);
  color: #fff;
}

.weather-map-tab .material-symbols-outlined {
  font-size: 1.08rem;
}

.weather-map-shell {
  overflow: hidden;
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: var(--weather-surface);
  box-shadow: var(--weather-shadow);
}

.weather-map-frame {
  --map-columns: 3;
  --map-rows: 2;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #dce8e5;
  isolation: isolate;
}

.weather-map-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--map-columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--map-rows), minmax(0, 1fr));
}

.weather-map-grid img {
  display: block;
  width: calc(100% + 1px);
  height: calc(100% + 1px);
  object-fit: fill;
}

.weather-map-base {
  z-index: 1;
}

.weather-map-overlay {
  z-index: 2;
  opacity: 0.66;
  pointer-events: none;
}

.weather-map-frame[data-layer="clouds"] .weather-map-overlay {
  opacity: 0.72;
}

.weather-map-frame[data-layer="temperature"] .weather-map-overlay {
  opacity: 0.58;
  mix-blend-mode: multiply;
}

.weather-map-frame[data-layer="pressure"] .weather-map-overlay {
  opacity: 0.7;
}

.weather-map-marker {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translate(-10px, -10px);
  color: #fff;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.weather-map-marker > span {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--weather-coral);
  transform: rotate(-45deg);
}

.weather-map-marker > span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.weather-map-marker strong {
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(24, 52, 59, 0.82);
  font-size: 0.68rem;
  white-space: nowrap;
}

.weather-map-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 17px;
  border-top: 1px solid var(--weather-line);
}

.weather-map-details > div:first-child strong,
.weather-map-details > div:first-child span {
  display: block;
}

.weather-map-details > div:first-child strong {
  font-size: 0.92rem;
}

.weather-map-details > div:first-child span {
  margin-top: 2px;
  color: var(--weather-muted);
  font-size: 0.7rem;
}

.weather-map-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(42px, auto));
  width: min(100%, 360px);
  overflow: hidden;
  border: 1px solid var(--weather-line);
  border-radius: 6px;
}

.weather-map-legend span {
  position: relative;
  min-width: 0;
  padding: 16px 5px 4px;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.weather-map-legend[data-layer="precipitation"] span:nth-child(1) { background: #9fa1bd; }
.weather-map-legend[data-layer="precipitation"] span:nth-child(2) { background: #7379bc; }
.weather-map-legend[data-layer="precipitation"] span:nth-child(3) { background: #5050d8; }
.weather-map-legend[data-layer="precipitation"] span:nth-child(4) { background: #1717f2; }
.weather-map-legend[data-layer="clouds"] span:nth-child(1) { background: #b9c6cc; }
.weather-map-legend[data-layer="clouds"] span:nth-child(2) { background: #8f9da3; }
.weather-map-legend[data-layer="clouds"] span:nth-child(3) { background: #68767d; }
.weather-map-legend[data-layer="clouds"] span:nth-child(4) { background: #3f4d53; }
.weather-map-legend[data-layer="temperature"] span:nth-child(1) { background: #8068c4; }
.weather-map-legend[data-layer="temperature"] span:nth-child(2) { background: #41a9c5; }
.weather-map-legend[data-layer="temperature"] span:nth-child(3) { background: #e2b436; }
.weather-map-legend[data-layer="temperature"] span:nth-child(4) { background: #d8493f; }
.weather-map-legend[data-layer="wind"] span:nth-child(1) { background: #98d7ca; }
.weather-map-legend[data-layer="wind"] span:nth-child(2) { background: #4eb5a4; }
.weather-map-legend[data-layer="wind"] span:nth-child(3) { background: #2b8a99; }
.weather-map-legend[data-layer="wind"] span:nth-child(4) { background: #6651a3; }
.weather-map-legend[data-layer="pressure"] span:nth-child(1) { background: #6759b2; }
.weather-map-legend[data-layer="pressure"] span:nth-child(2) { background: #4e9bc4; }
.weather-map-legend[data-layer="pressure"] span:nth-child(3) { background: #7dbb76; }
.weather-map-legend[data-layer="pressure"] span:nth-child(4) { background: #d39143; }

.weather-map-attribution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 10px;
  border-top: 1px solid var(--weather-line);
  background: #f7f9f9;
  color: var(--weather-muted);
  font-size: 0.58rem;
}

.weather-map-attribution a {
  color: var(--weather-teal);
  font-weight: 800;
}

.weather-map-unavailable {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 100px;
  padding: 20px;
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: var(--weather-surface);
  color: var(--weather-muted);
}

.weather-map-unavailable .material-symbols-outlined {
  color: var(--weather-teal);
}

.air-overview {
  display: grid;
  grid-template-columns: minmax(250px, 0.6fr) minmax(0, 1.4fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: var(--weather-line);
}

.air-score,
.pollutant-grid {
  background: var(--weather-surface);
}

.air-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 26px;
}

.air-score .air-score-number {
  display: grid;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  place-items: center;
  border-radius: 50%;
  background: #e9efef;
  color: var(--weather-ink);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.air-score[data-aqi="1"] .air-score-number { background: #dff3e9; color: #19754f; }
.air-score[data-aqi="2"] .air-score-number { background: #edf2d5; color: #647526; }
.air-score[data-aqi="3"] .air-score-number { background: #fff0ce; color: #986712; }
.air-score[data-aqi="4"] .air-score-number { background: #ffe0d8; color: #b04839; }
.air-score[data-aqi="5"] .air-score-number { background: #f2dce7; color: #913d66; }

.air-score > div strong,
.air-score > div span {
  display: block;
}

.air-score strong {
  font-size: 1.1rem;
}

.air-score div > span {
  margin-top: 4px;
  color: var(--weather-muted);
  font-size: 0.75rem;
}

.pollutant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--weather-line);
}

.pollutant-item {
  min-width: 0;
  padding: 17px 14px;
  background: var(--weather-surface);
}

.pollutant-item span,
.pollutant-item small {
  display: block;
  color: var(--weather-muted);
}

.pollutant-item span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pollutant-item strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.pollutant-item small {
  margin-top: 2px;
  font-size: 0.61rem;
}

.air-forecast-wrap {
  margin-top: 18px;
}

.air-forecast-wrap h3 {
  margin: 0 0 10px;
  font-size: 0.94rem;
}

.air-forecast {
  display: grid;
  grid-template-columns: repeat(9, minmax(82px, 1fr));
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.air-forecast > p {
  margin: 0;
  color: var(--weather-muted);
}

.air-forecast.is-empty {
  display: block;
  overflow-x: visible;
}

.air-hour {
  min-width: 82px;
  padding: 9px;
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: var(--weather-surface);
  text-align: center;
}

.air-hour time,
.air-hour strong,
.air-hour span {
  display: block;
}

.air-hour time {
  color: var(--weather-muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.air-hour strong {
  margin-top: 5px;
  font-size: 1.05rem;
}

.air-hour span {
  margin-top: 2px;
  font-size: 0.62rem;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: start;
}

.history-calendar-panel,
.history-day-panel {
  min-width: 0;
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: var(--weather-surface);
}

.history-calendar-panel {
  padding: 18px;
}

.history-calendar-nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.history-calendar-nav strong {
  text-align: center;
}

.history-calendar-nav button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background: #f8faf9;
  color: var(--weather-ink);
  cursor: pointer;
}

.history-calendar-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.history-weekdays,
.history-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.history-weekdays {
  margin-bottom: 5px;
}

.history-weekdays span {
  padding: 5px 0;
  color: var(--weather-muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.history-day,
.history-day-empty {
  min-width: 0;
  min-height: 52px;
  border-radius: 6px;
}

.history-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 5px 2px;
  border: 1px solid transparent;
  background: #f7f9f9;
  color: #809095;
}

button.history-day {
  border-color: #bfddcf;
  background: #eef8f3;
  color: var(--weather-ink);
  cursor: pointer;
}

button.history-day:hover {
  border-color: var(--weather-green);
}

button.history-day.is-selected {
  border-color: var(--weather-teal);
  background: var(--weather-sky);
  box-shadow: inset 0 0 0 1px var(--weather-teal);
}

.history-day-number {
  font-size: 0.74rem;
  font-weight: 800;
}

.history-day-temp {
  font-size: 0.58rem;
  font-weight: 700;
}

.history-day-dot {
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--weather-green);
}

.history-legend {
  display: flex;
  gap: 16px;
  margin-top: 13px;
  color: var(--weather-muted);
  font-size: 0.66rem;
}

.history-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.history-legend i {
  width: 11px;
  height: 11px;
  border: 1px solid #bfddcf;
  border-radius: 3px;
  background: #eef8f3;
}

.history-legend i.is-selected {
  border-color: var(--weather-teal);
  background: var(--weather-sky);
}

.history-day-panel {
  min-height: 390px;
  padding: 20px;
}

.history-empty,
.history-day-loading {
  display: flex;
  min-height: 348px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--weather-muted);
  text-align: center;
}

.history-empty .material-symbols-outlined {
  margin-bottom: 9px;
  color: var(--weather-teal);
  font-size: 2.4rem;
}

.history-empty strong {
  color: var(--weather-ink);
}

.history-empty p {
  max-width: 420px;
  margin: 7px 0 0;
  font-size: 0.78rem;
}

.history-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--weather-line);
}

.history-summary-head h3,
.history-summary-head p {
  margin: 0;
}

.history-summary-head h3 {
  font-size: 1.1rem;
}

.history-summary-head p {
  color: var(--weather-muted);
  font-size: 0.7rem;
}

.history-source-label {
  display: block;
  margin-top: 4px;
  color: var(--weather-teal);
  font-size: 0.62rem;
  font-weight: 800;
}

.history-summary-condition {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  text-transform: capitalize;
}

.history-summary-condition img {
  width: 46px;
  height: 46px;
}

.history-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.history-summary-metric {
  padding: 10px;
  border-radius: 6px;
  background: #f5f8f8;
}

.history-summary-metric span,
.history-summary-metric strong {
  display: block;
}

.history-summary-metric span {
  color: var(--weather-muted);
  font-size: 0.62rem;
}

.history-summary-metric strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 0.83rem;
}

.history-timeline {
  display: grid;
  max-height: 230px;
  gap: 1px;
  overflow-y: auto;
  border: 1px solid var(--weather-line);
  border-radius: 6px;
  background: var(--weather-line);
}

.history-observation {
  display: grid;
  grid-template-columns: 58px 1fr repeat(3, minmax(66px, auto));
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 11px;
  background: var(--weather-surface);
  font-size: 0.7rem;
}

.history-observation time {
  font-weight: 800;
}

.history-observation-time {
  display: grid;
  gap: 3px;
}

.history-observation-time small {
  width: max-content;
  padding: 2px 4px;
  border-radius: 3px;
  background: #eaf3f2;
  color: var(--weather-teal);
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.history-observation-time small.is-historical {
  background: #eef1f4;
  color: #5e6c75;
}

.history-observation-condition {
  display: flex;
  align-items: center;
  min-width: 0;
}

.history-observation-condition img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.history-observation-condition span {
  overflow: hidden;
  color: var(--weather-muted);
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.weather-source {
  margin: 28px auto 0;
  color: var(--weather-muted);
  font-size: 0.7rem;
  text-align: center;
}

.weather-source a {
  color: var(--weather-teal);
  font-weight: 800;
}

.weather-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--weather-line);
  color: var(--weather-muted);
  font-size: 0.75rem;
}

.weather-footer a {
  color: var(--weather-teal);
  font-weight: 800;
  text-decoration: none;
}

.foot.weather-site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 12px 36px;
  border-top: 1px solid var(--weather-line);
  color: #4a6372;
  font-size: 0.95rem;
  text-align: center;
}

.foot-contact {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.foot-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(66, 165, 245, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1e88e5;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.foot-contact-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.foot-contact-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(30, 136, 229, 0.14);
}

.foot-contact-link.whatsapp {
  color: #128c7e;
}

.foot-booking-cta {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}

.booking-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.78rem 1.35rem;
  border: 2px solid rgba(255, 90, 95, 0.45);
  border-radius: 999px;
  background: rgba(255, 90, 95, 0.07);
  color: #ff5a5f;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.booking-inline-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 90, 95, 0.12);
  box-shadow: 0 8px 22px rgba(255, 90, 95, 0.14);
}

.booking-inline-link svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: currentColor;
}

.foot-nav {
  line-height: 1.7;
}

.foot-nav a {
  color: #1e88e5;
  text-decoration: none;
}

.foot-nav a:hover {
  text-decoration: underline;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(66, 165, 245, 0.3);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-nav {
    background: rgba(238, 249, 255, 0.97);
  }

  .nav-toggle {
    display: inline-block;
  }

  .mobile-booking-link {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.55rem;
    margin-left: auto;
    padding: 0.42rem 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(66, 165, 245, 0.28);
    border-radius: 8px;
    background: rgba(66, 165, 245, 0.08);
    color: #1e88e5;
    font-weight: 800;
    text-decoration: none;
  }

  .nav-menu {
    position: fixed;
    z-index: 2001;
    inset: var(--nav-h) 0 auto 0;
    display: none;
    max-height: calc(100vh - var(--nav-h));
    padding: 0.65rem 0.75rem 0.85rem;
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    border-bottom: 1px solid rgba(66, 165, 245, 0.12);
    background: rgba(238, 249, 255, 0.97);
    box-shadow: 0 14px 30px rgba(15, 63, 92, 0.1);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border: 1px solid rgba(66, 165, 245, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
    color: #0f3f5c;
  }

  .nav-menu a::before {
    display: none;
  }

  .nav-menu a[data-link="booking"] {
    display: none;
  }

  .nav-menu > .language-switcher {
    width: 100%;
    margin-top: 0.4rem;
    margin-left: 0;
    padding: 0.6rem 1rem 0.9rem;
    justify-content: flex-start;
    flex-flow: row wrap;
    gap: 0.55rem;
    border-top: 1px solid #eee;
  }

  .nav-menu > .language-switcher a {
    width: auto;
    padding: 0.35rem 0.5rem;
  }

  .nav-menu > .language-switcher img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 1040px) {
  .current-weather {
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  }

  .current-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-calendar {
    grid-template-columns: repeat(6, minmax(160px, 1fr));
  }

  .pollutant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-layout {
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  }

  .history-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .weather-page {
    width: min(100% - 28px, 680px);
    padding-top: 30px;
  }

  .weather-intro,
  .section-heading,
  .forecast-detail-head,
  .forecast-calendar-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-heading > p,
  .forecast-detail-head > p,
  .forecast-calendar-heading > p {
    text-align: left;
  }

  .current-weather,
  .air-overview,
  .history-layout {
    grid-template-columns: 1fr;
  }

  .current-primary {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hourly-forecast {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 10px;
  }

  .hourly-card {
    flex: 0 0 min(78vw, 245px);
    scroll-snap-align: start;
  }

  .history-layout {
    gap: 12px;
  }

  .weather-map-details {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .weather-map-legend {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .weather-page {
    width: calc(100% - 24px);
  }

  .foot.weather-site-footer {
    width: calc(100% - 24px);
    padding: 20px 0 30px;
  }

  .foot-contact {
    gap: 8px;
  }

  .foot-contact-link {
    flex: 1 1 42%;
    min-width: 130px;
  }

  .weather-intro h1 {
    font-size: 2rem;
  }

  .weather-updated {
    width: 100%;
  }

  .weather-error {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .weather-error button {
    width: 100%;
    margin-left: 0;
  }

  .current-primary {
    padding: 22px 18px;
  }

  .current-condition {
    gap: 0;
  }

  .current-condition img {
    width: 108px;
    height: 108px;
    flex-basis: 108px;
  }

  .current-temperature {
    font-size: 3.6rem;
  }

  .current-metric {
    padding: 16px 13px;
  }

  .current-metric strong {
    font-size: 0.94rem;
  }

  .current-metric:last-child {
    grid-column: 1 / -1;
  }

  .weather-section {
    margin-top: 38px;
  }

  .forecast-calendar {
    display: flex;
    gap: 9px;
    margin-right: -12px;
    overflow-x: auto;
    scroll-padding: 0 12px;
    scroll-snap-type: x mandatory;
  }

  .forecast-day {
    flex: 0 0 154px;
    scroll-snap-align: start;
  }

  .weather-map-tabs {
    margin-right: -12px;
    scroll-padding: 0 12px;
    scroll-snap-type: x proximity;
  }

  .weather-map-tab {
    scroll-snap-align: start;
  }

  .weather-map-frame {
    aspect-ratio: 3 / 2;
  }

  .weather-map-marker strong {
    font-size: 0.6rem;
  }

  .weather-map-attribution {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .air-score {
    justify-content: flex-start;
    padding: 20px;
  }

  .pollutant-item {
    padding: 14px 11px;
  }

  .history-calendar-panel,
  .history-day-panel {
    padding: 13px;
  }

  .history-day,
  .history-day-empty {
    min-height: 45px;
  }

  .history-day-temp {
    font-size: 0.52rem;
  }

  .history-summary-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .history-observation {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .history-observation > :nth-child(4),
  .history-observation > :nth-child(5) {
    display: none;
  }

  .weather-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
