:root {
  color-scheme: light;
  --ink: #17201f;
  --muted: #68736f;
  --paper: #fbfaf7;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(23, 32, 31, 0.14);
  --shadow: 0 24px 70px rgba(43, 48, 43, 0.12);
  --radius: 8px;
  --focus: #2f7466;
  --warm: #f1b76a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 250, 247, 0.98)),
    radial-gradient(circle at 76% 2%, rgba(241, 183, 106, 0.22), transparent 28rem),
    radial-gradient(circle at 14% 42%, rgba(47, 116, 102, 0.12), transparent 24rem),
    var(--paper);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.page-header {
  max-width: 720px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4d7b70;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 0.98;
  font-weight: 400;
}

h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.08;
  font-weight: 400;
}

.intro,
.map-copy p:last-child,
.selected-copy p,
.card-meta {
  color: var(--muted);
  line-height: 1.6;
}

.intro {
  max-width: 600px;
  font-size: 1.05rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344540;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 24px rgba(43, 48, 43, 0.06);
}

.category-tab.active,
.category-tab:focus-visible {
  border-color: rgba(47, 116, 102, 0.72);
  outline: 3px solid rgba(47, 116, 102, 0.14);
  background: #ffffff;
}

.map-stage {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 0.66fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 54px;
}

.map-copy {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.map-wrap {
  position: relative;
  aspect-ratio: 20 / 6;
  min-height: 200px;
  max-height: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #dfe9e4;
  box-shadow: var(--shadow);
}

.world-map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.zone-overlay {
  position: absolute;
  inset: 0;
}

.zone-pin {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.zone-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #2f7466;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  opacity: 0.74;
}

.zone-pin.active::before,
.zone-pin:focus-visible::before {
  width: 18px;
  height: 18px;
  background: var(--warm);
  opacity: 1;
}

.zone-pin.unavailable::before {
  background: #8e9894;
}

.timezone-ribbon {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}

.ribbon-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(43, 48, 43, 0.08);
  cursor: pointer;
}

.timezone-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(154px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  scroll-padding: 4px;
  scrollbar-width: thin;
}

.timezone-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.timezone-card.active,
.timezone-card:focus-visible {
  border-color: rgba(47, 116, 102, 0.74);
  outline: 3px solid rgba(47, 116, 102, 0.16);
  background: #ffffff;
}

.timezone-card.unavailable {
  color: #747f7b;
}

.thumb,
.skeleton-thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.skeleton-thumb,
.loading .card-image-wrap,
.hero-photo-wrap.loading {
  background: linear-gradient(110deg, #e5e1d8 8%, #f5f1e8 18%, #e5e1d8 33%);
  background-size: 200% 100%;
  animation: loadingPulse 1.4s linear infinite;
}

.timezone-card strong,
.timezone-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timezone-card strong {
  font-size: 0.86rem;
}

.timezone-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.selected-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-photo-wrap {
  aspect-ratio: 3 / 2;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #d5ded7;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.selected-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #28403b;
  background: #f7f3ec;
  font-size: 0.82rem;
  white-space: nowrap;
}

.attribution {
  margin: 18px 0 0;
  font-size: 0.86rem;
}

.attribution a {
  color: #2f7466;
  text-decoration-color: rgba(47, 116, 102, 0.32);
  text-underline-offset: 3px;
}

.section-heading {
  margin-bottom: 16px;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.world-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 40px rgba(43, 48, 43, 0.08);
}

.world-card.active {
  border-color: rgba(47, 116, 102, 0.74);
  box-shadow: 0 18px 50px rgba(47, 116, 102, 0.18);
}

.world-card.unavailable {
  color: #747f7b;
}

.world-card button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e7e1d6;
}

.world-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 13px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4d7b70;
}

.card-title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 750;
}

.card-meta {
  margin: 0;
  font-size: 0.82rem;
}

@keyframes loadingPulse {
  to {
    background-position-x: -200%;
  }
}

@media (max-width: 860px) {
  .map-stage,
  .selected-panel {
    grid-template-columns: 1fr;
  }

  .selected-copy {
    padding: 24px;
  }

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

@media (max-width: 540px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 28px;
  }

  .page-header {
    margin-bottom: 18px;
  }

  .intro {
    font-size: 1rem;
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 14px;
    padding: 0 10px 4px;
    scroll-padding: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    margin-left: -10px;
    margin-right: -10px;
  }

  .category-tabs::-webkit-scrollbar,
  .timezone-track::-webkit-scrollbar,
  .world-grid::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .timezone-ribbon {
    grid-template-columns: 1fr;
    margin-bottom: 14px;
  }

  .ribbon-arrow {
    display: none;
  }

  .timezone-track {
    grid-auto-columns: minmax(144px, 46vw);
    padding: 4px 10px;
    scroll-padding: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    margin-left: -10px;
    margin-right: -10px;
  }

  .timezone-card {
    scroll-snap-align: start;
  }

  .selected-panel {
    gap: 10px;
    margin-bottom: 34px;
  }

  .hero-photo-wrap {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .selected-copy {
    padding: 20px;
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    justify-content: flex-start;
  }

  .meta-row {
    margin-top: 14px;
  }

  .map-stage {
    gap: 12px;
    margin-bottom: 34px;
  }

  .map-copy {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .map-copy p:last-child {
    margin-bottom: 0;
    font-size: 0.95rem;
  }

  .map-wrap {
    width: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 7;
  }

  .hero-photo-wrap {
    aspect-ratio: 3 / 2;
  }

  .world-board {
    margin-left: -10px;
    margin-right: -10px;
    overflow: hidden;
  }

  .world-board .section-heading {
    margin-left: 10px;
    margin-right: 10px;
  }

  .world-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(252px, 78vw);
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    padding: 0 10px 12px;
    scroll-padding: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }

  .world-card {
    scroll-snap-align: start;
  }

  .card-body {
    padding: 12px;
  }
}
