:root {
  --bg: #02060b;
  --ink: #f5f8fc;
  --muted: rgba(221, 231, 242, 0.76);
  --dim: rgba(183, 198, 214, 0.62);
  --line: rgba(163, 215, 255, 0.18);
  --panel: rgba(5, 13, 22, 0.76);
  --panel-strong: rgba(5, 14, 24, 0.94);
  --cyan: #4dd9ff;
  --blue: #4d82ff;
  --green: #86ef66;
  --gold: #ffc857;
  --coral: #ff765f;
  --violet: #a66dff;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
}

button,
input {
  font: inherit;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.map-home {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 6, 11, 0.02), rgba(2, 6, 11, 0.92) 78%, #02060b),
    #02060b;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 86px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(163, 215, 255, 0.14);
  background: rgba(2, 7, 13, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 0.85rem;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  background: transparent url("/assets/coresurfer-logo-website.png") center / contain no-repeat;
}

.brand-copy {
  display: grid;
  gap: 0.28rem;
}

.brand-name,
.brand-tagline,
.main-nav,
.header-actions,
.trending,
.map-tools,
.map-legend,
.map-mode,
.data-status,
.score-block span,
.score-block em,
.condition-row,
.top-spots h2,
.top-spots-view,
.stage-footer {
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-name {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-tagline {
  color: #2ed8ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.85rem);
  color: rgba(245, 248, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.main-nav a {
  position: relative;
  padding: 2rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.45rem;
  height: 2px;
  opacity: 0.94;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, rgba(46, 216, 255, 0), #2ed8ff 18%, var(--blue) 78%, rgba(77, 130, 255, 0));
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav .is-active {
  color: var(--ink);
  outline: none;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav .is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  font-weight: 800;
}

.header-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}

.header-icon span {
  position: absolute;
  inset: 11px;
  border: 2px solid #fff;
  border-radius: 999px;
}

.header-icon span::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  right: -7px;
  bottom: 0;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: center;
}

.login-link {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.signup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 24px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  color: #d8f5ff;
  box-shadow: 0 0 28px rgba(77, 217, 255, 0.18) inset;
}

.globe-hero {
  position: relative;
  min-height: 100svh;
  padding: 128px 48px 190px;
  display: grid;
  grid-template-columns: minmax(420px, 0.74fr) minmax(660px, 1.26fr);
  align-items: center;
  isolation: isolate;
}

.globe-hero::after {
  content: "";
  display: none;
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 34vh;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 11, 0), rgba(2, 6, 11, 0.6) 46%, #02060b 92%),
    linear-gradient(90deg, rgba(154, 226, 255, 0.12), rgba(6, 37, 58, 0.22) 42%, rgba(2, 6, 11, 0.02));
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 30%;
  opacity: 1;
  transform: scale(1.000);
}

.hero-backdrop::after {
  content: "";
  display: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 58% 24%, rgba(193, 232, 247, 0.08), rgba(72, 150, 186, 0.035) 18%, rgba(2, 6, 11, 0) 34%),
    radial-gradient(ellipse at 18% 48%, rgba(216, 239, 250, 0.1), rgba(2, 6, 11, 0) 34%),
    linear-gradient(90deg, rgba(2, 6, 11, 0.72) 0%, rgba(2, 6, 11, 0.58) 32%, rgba(2, 6, 11, 0.16) 70%, rgba(2, 6, 11, 0.52) 100%),
    linear-gradient(180deg, rgba(2, 6, 11, 0.08), rgba(2, 6, 11, 0.14) 46%, rgba(2, 6, 11, 0.82));
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 640px;
  transform: translateY(-100px);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 4.9rem;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 span {
  display: block;
}

.accent-line {
  margin-top: 8px;
  color: transparent;
  background: linear-gradient(90deg, #7ceaff, #4d82ff 72%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.45;
}

.hero-search {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 142px 156px;
  align-items: center;
  width: min(100%, 760px);
  min-height: 58px;
  margin-top: 36px;
  border: 1px solid rgba(192, 225, 255, 0.32);
  border-radius: 8px;
  background: rgba(5, 15, 25, 0.74);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.search-mark {
  position: relative;
  width: 20px;
  height: 20px;
  margin-left: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
}

.search-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  right: -6px;
  bottom: 1px;
  background: #fff;
  transform: rotate(45deg);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.95rem;
}

.hero-search input::placeholder {
  color: rgba(232, 241, 252, 0.72);
}

.hero-search button {
  align-self: stretch;
  min-height: 46px;
  margin: 5px 0 5px 5px;
  border: 1px solid rgba(108, 193, 255, 0.8);
  border-radius: 8px;
  color: #f5fbff;
  background: linear-gradient(135deg, #236be7, #2b91ff);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(77, 130, 255, 0.36) inset;
}

.hero-search button:last-child {
  margin-right: 5px;
}

.hero-search .report-action {
  border-color: rgba(140, 213, 255, 0.48);
  background: rgba(6, 23, 38, 0.7);
  box-shadow: inset 0 0 24px rgba(67, 190, 255, 0.18);
}

.hero-search .report-action:hover,
.hero-search .report-action:focus-visible {
  border-color: rgba(140, 213, 255, 0.82);
  background: rgba(11, 38, 60, 0.86);
}

.hero-search .explore-action:hover,
.hero-search .explore-action:focus-visible {
  border-color: rgba(166, 224, 255, 0.95);
  background: linear-gradient(135deg, #2b74f1, #37a1ff);
}

.trending {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.trend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.trend-list button {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(227, 240, 252, 0.38);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trend-list button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.globe-world {
  position: relative;
  min-height: 690px;
  height: min(76svh, 820px);
}

.globe-world::after {
  content: "";
  position: absolute;
  left: 13%;
  top: 0;
  z-index: 2;
  width: 36%;
  height: 39%;
  pointer-events: none;
  border: 1.5px solid transparent;
  border-top-color: rgba(224, 247, 255, 0.18);
  border-left-color: rgba(123, 213, 247, 0.08);
  border-radius: 50%;
  filter: blur(0.8px) drop-shadow(0 0 8px rgba(126, 217, 255, 0.1));
  opacity: 0.32;
  mix-blend-mode: screen;
  transform: rotate(-12deg);
  mask-image: linear-gradient(135deg, #000 0%, #000 28%, transparent 52%);
  -webkit-mask-image: linear-gradient(135deg, #000 0%, #000 28%, transparent 52%);
}

.globe-world::before {
  content: "";
  display: none;
  position: absolute;
  left: -72vw;
  right: -34vw;
  bottom: 2%;
  z-index: 7;
  height: 28%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 46% 82%, rgba(126, 220, 255, 0.16), rgba(2, 6, 11, 0) 58%),
    linear-gradient(180deg, rgba(2, 6, 11, 0), rgba(5, 22, 34, 0.28) 48%, rgba(2, 6, 11, 0.76));
  filter: blur(1px);
}

#globe-canvas {
  position: absolute;
  inset: -10% -18% -15% -3%;
  z-index: 1;
  width: 121%;
  height: 125%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#globe-canvas:active {
  cursor: grabbing;
}

.ocean-veil {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-image: url("/staging/home/textures/generated-hero-foreground-new.png");
  background-position: left 30%;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;
  transform: scale(1.000);
}

/* Foreground ocean test layer. Remove has-foreground-ocean-test from .globe-hero to roll this back. */
.globe-hero.has-foreground-ocean-test .ocean-veil {
  display: block;
}

.spot-card {
  position: absolute;
  z-index: 15;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  width: min(430px, calc(100% - 32px));
  min-height: 134px;
  border: 1px solid rgba(173, 219, 255, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(5, 14, 24, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
  transform: translate3d(0, 0, 0);
  cursor: pointer;
}

.spot-card.is-hidden {
  display: none;
}

.spot-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.spot-card-thumb {
  min-height: 134px;
  background:
    linear-gradient(135deg, rgba(0, 10, 18, 0.02), rgba(0, 10, 18, 0.7)),
    linear-gradient(150deg, rgba(255, 255, 255, 0.88) 0 9%, rgba(92, 214, 244, 0.86) 10% 31%, rgba(0, 78, 111, 0.94) 32% 52%, rgba(3, 22, 35, 0.96) 53% 100%);
  background-position: center;
  background-size: cover;
  position: relative;
}

.spot-card-thumb.has-media {
  background-position: center;
  background-size: cover;
}

.spot-card-thumb::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 12px;
  top: 34px;
  height: 46px;
  border-radius: 50% 50% 12px 12px;
  border-top: 9px solid rgba(255, 255, 255, 0.84);
  border-left: 4px solid rgba(255, 255, 255, 0.46);
  transform: rotate(-14deg);
}

.spot-card-thumb.has-media::after {
  display: none;
}

.spot-card-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.spot-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.spot-card h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.spot-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.score-block {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 72px;
  color: var(--blue);
}

.score-block span {
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 900;
}

.score-block strong {
  font-size: 1.5rem;
  line-height: 1;
}

.score-block em {
  width: max-content;
  padding: 2px 8px;
  border-radius: 999px;
  color: #04111c;
  background: var(--condition-color, var(--cyan));
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
}

.condition-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
  color: rgba(244, 249, 255, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: none;
  white-space: nowrap;
}

.condition-metric {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  min-height: 22px;
  letter-spacing: 0;
}

.condition-metric::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  opacity: 0.9;
}

.condition-wave::before {
  width: 15px;
  height: 12px;
  border: 1.7px solid var(--cyan);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50% 46% 0 0;
  transform: rotate(-13deg) translateY(1px);
}

.condition-period::before {
  border: 1.6px solid rgba(244, 249, 255, 0.72);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(244, 249, 255, 0.04);
}

.condition-period::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 4px;
  height: 4px;
  border-top: 1.4px solid rgba(244, 249, 255, 0.78);
  border-right: 1.4px solid rgba(244, 249, 255, 0.78);
}

.condition-swell::before {
  width: 13px;
  height: 13px;
  border-top: 1.6px solid rgba(244, 249, 255, 0.75);
  border-right: 1.6px solid rgba(244, 249, 255, 0.75);
  transform: rotate(45deg) scale(0.72);
  transform-origin: center;
}

.condition-wind::before {
  width: 15px;
  height: 9px;
  border-top: 1.5px solid rgba(244, 249, 255, 0.72);
  border-bottom: 1.5px solid rgba(244, 249, 255, 0.5);
  border-radius: 999px;
  transform: translateY(1px);
}

.map-tools {
  position: absolute;
  right: 0;
  top: 80px;
  z-index: 12;
  display: grid;
  gap: 12px;
}

.map-tools button {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 92px;
  min-height: 78px;
  padding: 12px 8px;
  border: 1px solid rgba(173, 219, 255, 0.22);
  border-radius: 8px;
  color: rgba(245, 250, 255, 0.9);
  background: rgba(5, 14, 24, 0.72);
  backdrop-filter: blur(16px);
  font-size: 0.62rem;
  font-weight: 900;
}

.map-tools button:hover {
  border-color: var(--cyan);
}

.tool-target,
.tool-layers,
.tool-filter {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.tool-target {
  border: 2px solid #fff;
  border-radius: 999px;
}

.tool-target::before,
.tool-target::after {
  content: "";
  position: absolute;
  background: #fff;
}

.tool-target::before {
  left: 10px;
  top: -7px;
  bottom: -7px;
  width: 2px;
}

.tool-target::after {
  top: 10px;
  left: -7px;
  right: -7px;
  height: 2px;
}

.tool-layers::before,
.tool-layers::after,
.tool-filter::before,
.tool-filter::after {
  content: "";
  position: absolute;
}

.tool-layers::before,
.tool-layers::after {
  left: 3px;
  right: 3px;
  height: 12px;
  border: 2px solid #fff;
  transform: rotate(45deg) skew(-10deg, -10deg);
}

.tool-layers::before {
  top: 3px;
}

.tool-layers::after {
  top: 10px;
  opacity: 0.7;
}

.tool-filter::before {
  inset: 2px 4px auto;
  height: 10px;
  border: 2px solid #fff;
  border-bottom: 0;
  transform: skew(-18deg);
}

.tool-filter::after {
  left: 11px;
  top: 11px;
  width: 2px;
  height: 11px;
  background: #fff;
}

.map-legend {
  position: absolute;
  right: 0;
  top: 354px;
  z-index: 12;
  display: grid;
  gap: 11px;
  width: 92px;
  padding: 14px 12px;
  border: 1px solid rgba(173, 219, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.74);
  backdrop-filter: blur(16px);
  color: rgba(245, 250, 255, 0.9);
  font-size: 0.58rem;
  font-weight: 900;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.poor {
  background: var(--coral);
}

.fair {
  background: var(--gold);
}

.good {
  background: var(--green);
}

.very-good {
  background: #2e9dff;
}

.epic {
  background: var(--violet);
}

.map-mode {
  position: absolute;
  right: 32px;
  bottom: 116px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(173, 219, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.72);
  backdrop-filter: blur(16px);
  color: rgba(245, 250, 255, 0.86);
  font-size: 0.68rem;
  font-weight: 900;
}

.map-mode span {
  transition: color 180ms ease, opacity 180ms ease;
}

.map-mode span:first-child,
.map-mode[data-mode="swell"] span:last-child {
  color: rgba(245, 250, 255, 0.58);
}

.map-mode[data-mode="satellite"] span:first-child,
.map-mode[data-mode="swell"] span:last-child {
  color: rgba(245, 250, 255, 0.92);
}

.map-mode[data-mode="satellite"] span:last-child {
  color: rgba(245, 250, 255, 0.58);
}

.toggle {
  position: relative;
  width: 48px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.toggle span {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  transition: transform 180ms ease;
}

.toggle.is-on {
  background: rgba(77, 130, 255, 0.7);
}

.toggle.is-on span {
  transform: translateX(23px);
}

.data-status {
  position: absolute;
  left: 24px;
  bottom: 104px;
  z-index: 12;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(173, 219, 255, 0.18);
  border-radius: 8px;
  color: rgba(245, 250, 255, 0.78);
  background: rgba(5, 14, 24, 0.64);
  backdrop-filter: blur(16px);
  font-size: 0.68rem;
  font-weight: 900;
}

.feature-strip {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: min(780px, calc(100% - 96px));
  margin: -420px auto 24px 48px;
}

.feature-strip div {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 120px;
  text-align: center;
}

.feature-strip span {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  color: var(--cyan);
}

.feature-strip strong {
  font-size: 0.82rem;
  text-transform: uppercase;
}

.feature-strip p {
  max-width: 170px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.feature-pin::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 2px;
  width: 22px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 18px 18px 18px 4px;
  transform: rotate(-45deg);
}

.feature-pin::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.feature-wave::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 8px;
  height: 22px;
  border: 3px solid currentColor;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  border-bottom: 0;
}

.feature-wave::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 3px;
  background: currentColor;
}

.feature-score::before {
  content: "";
  position: absolute;
  inset: auto 7px 5px;
  height: 30px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
  box-shadow: 11px 8px 0 -4px currentColor, -11px 16px 0 -4px currentColor;
}

.feature-people::before,
.feature-people::after {
  content: "";
  position: absolute;
  border: 3px solid currentColor;
}

.feature-people::before {
  left: 11px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
}

.feature-people::after {
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 16px;
  border-radius: 18px 18px 0 0;
  border-bottom: 0;
}

.top-spots {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(72px, 108px);
  align-items: center;
  gap: 24px;
  width: min(1400px, calc(100% - 96px));
  margin: 0 auto 28px;
  padding: 16px 24px;
  border: 1px solid rgba(173, 219, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.7);
  backdrop-filter: blur(18px);
}

.top-spots-heading {
  min-width: 0;
}

.top-spots h2 {
  margin: 0;
  font-size: 1rem;
}

.top-spots p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.top-spots-view {
  justify-self: end;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
}

.top-spots-view::after {
  content: "→";
  display: inline-block;
  margin-left: 12px;
  font-size: 1.2rem;
  font-weight: 500;
  transform: translateY(1px);
}

.top-spot-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 0;
}

.top-spot-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(173, 219, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease;
}

.top-spot-card:hover {
  transform: translateY(-3px);
  border-color: var(--condition-color, var(--cyan));
}

.top-spot-image {
  display: block;
  width: 100%;
  height: 66px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82) 0 13%, rgba(90, 219, 245, 0.9) 14% 34%, rgba(2, 88, 128, 0.95) 35% 56%, rgba(2, 11, 20, 0.98) 57% 100%);
  background-position: center;
  background-size: cover;
}

.top-spot-image.has-media {
  background-position: center;
  background-size: cover;
}

.top-spot-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 8px 9px;
}

.top-spot-body strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-spot-body span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--dim);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-spot-score {
  color: var(--condition-color, var(--cyan));
  font-size: 1.08rem;
  font-weight: 900;
}

.stage-footer {
  position: fixed;
  inset: auto 0 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: clamp(72px, 18vw, 260px);
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 0 clamp(48px, 5vw, 80px);
  border-top: 1px solid rgba(175, 212, 255, 0.12);
  background: #02060d;
  color: rgba(245, 250, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.footer-legal strong {
  color: var(--ink);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.footer-legal span {
  width: 1px;
  height: 14px;
  background: rgba(245, 250, 255, 0.24);
}

.footer-legal p {
  margin: 0;
  color: rgba(245, 250, 255, 0.55);
  font-weight: 700;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 28px;
}

.social-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: rgba(245, 250, 255, 0.58);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  transition: color 160ms ease, transform 160ms ease;
}

.social-link:hover {
  color: var(--cyan);
  transform: translateY(-1px);
}

.social-instagram span {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  border: 1.8px solid currentColor;
  border-radius: 5px;
}

.social-instagram span::before,
.social-instagram span::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.social-instagram span::before {
  inset: 3px;
  border: 1.5px solid currentColor;
}

.social-instagram span::after {
  top: 2px;
  right: 2px;
  width: 2px;
  height: 2px;
  background: currentColor;
}

.social-youtube span {
  position: relative;
  display: block;
  width: 17px;
  height: 12px;
  border-radius: 4px;
  background: currentColor;
}

.social-youtube span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  border-left: 5px solid #02060b;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.social-facebook {
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
}

.social-tiktok {
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: none;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 24px;
  }

  .main-nav {
    display: none;
  }

  .globe-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 112px 24px 40px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .globe-world {
    min-height: 540px;
    height: 58svh;
  }

  #globe-canvas {
    inset: -4%;
    width: 108%;
    height: 108%;
  }

  .feature-strip {
    width: calc(100% - 48px);
    margin: 0 auto 24px;
  }

  .top-spots {
    width: calc(100% - 48px);
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 74px;
  }

  .brand-mark {
    width: 2.65rem;
    height: 2.65rem;
  }

  .brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
  }

  .brand-tagline,
  .login-link {
    display: none;
  }

  .signup-link {
    min-height: 38px;
    padding: 0 14px;
  }

  .globe-hero {
    padding-top: 98px;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-search {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .hero-search button {
    grid-column: 1 / -1;
    margin: 0 5px 5px;
  }

  .feature-strip,
  .top-spot-list {
    grid-template-columns: 1fr;
  }

  .globe-world {
    min-height: 500px;
    height: 56svh;
  }

  .spot-card {
    left: 16px !important;
    right: 16px;
    top: auto !important;
    bottom: 74px;
    grid-template-columns: 92px minmax(0, 1fr);
    width: auto;
    min-height: 116px;
  }

  .spot-card-thumb {
    min-height: 116px;
  }

  .spot-card-copy {
    padding: 12px;
  }

  .condition-row {
    gap: 7px;
    font-size: 0.66rem;
  }

  .map-tools {
    top: 18px;
    right: 12px;
    grid-template-columns: repeat(3, 1fr);
  }

  .map-tools button {
    width: 74px;
    min-height: 58px;
    font-size: 0.54rem;
  }

  .map-tools span {
    transform: scale(0.76);
  }

  .map-legend {
    display: none;
  }

  .map-mode {
    left: 12px;
    right: auto;
    bottom: 20px;
  }

  .data-status {
    left: 12px;
    bottom: 72px;
  }

  .feature-strip div {
    min-height: auto;
  }

  .top-spots {
    grid-template-columns: 1fr;
  }

  .top-spots-view {
    justify-self: start;
  }

  .stage-footer {
    position: relative;
    inset: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-block: 18px;
  }

  .footer-social {
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 16px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-icon {
    display: none;
  }

  .globe-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy h1 {
    font-size: 2.58rem;
  }

  .trend-list {
    max-height: 76px;
    overflow: hidden;
  }

  .globe-world {
    min-height: 470px;
  }

  .map-tools button {
    width: 64px;
  }

  .top-spots {
    width: calc(100% - 32px);
  }

  .stage-footer {
    padding-inline: 16px;
  }
}
