/* Welcome */
.welcome-page {
  display: grid;
  place-items: center;
  isolation: isolate;
}

.welcome-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .7;
  z-index: -1;
  animation: drift 8s ease-in-out infinite alternate;
}

.welcome-orb--one {
  width: min(44vw, 520px);
  aspect-ratio: 1;
  left: -10%;
  bottom: -20%;
  background: radial-gradient(circle at 60% 35%, rgba(121, 213, 223, .8), rgba(13, 148, 168, .08) 68%);
}

.welcome-orb--two {
  width: min(32vw, 360px);
  aspect-ratio: 1;
  right: -7%;
  top: -8%;
  background: radial-gradient(circle at 38% 38%, rgba(247, 162, 27, .35), rgba(247, 162, 27, 0) 70%);
  animation-delay: -2s;
}

@keyframes drift {
  to { transform: translate3d(18px, -12px, 0) scale(1.05); }
}

.welcome-card {
  position: relative;
  width: min(92vw, 980px);
  min-height: min(78dvh, 690px);
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 40px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.welcome-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 78px);
}

.welcome-eyebrow {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  color: var(--ocean-700);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: var(--ocean-100);
}

.welcome-title {
  margin: 24px 0 18px;
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.welcome-title span {
  color: var(--ocean-600);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

.welcome-text {
  max-width: 50ch;
  margin: 0 0 28px;
  color: var(--ink-700);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

.welcome-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.welcome-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.45)),
    linear-gradient(160deg, var(--ocean-100), #d4f0ee 45%, #f7e8c9 46%, #f3dfba 63%, #fff 64%);
}

.welcome-sun {
  position: absolute;
  width: 84px;
  aspect-ratio: 1;
  top: 12%;
  right: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd16a 0 50%, rgba(247,162,27,.12) 52% 100%);
  box-shadow: 0 0 60px rgba(247,162,27,.35);
}

.wave {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 110px;
  border-radius: 50%;
  background: rgba(44, 159, 231, .72);
  transform: rotate(-4deg);
}

.wave--one { bottom: 20%; }
.wave--two { bottom: 11%; background: rgba(13, 148, 168, .78); transform: rotate(3deg); }
.wave--three { bottom: 2%; background: rgba(7, 92, 130, .9); transform: rotate(-2deg); }

.welcome-stat {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.welcome-stat strong {
  font-size: 1.55rem;
}

.welcome-stat--one { left: 8%; top: 18%; }
.welcome-stat--two { right: 8%; bottom: 14%; }

/* Map */
.map-page {
  display: grid;
  grid-template-rows: var(--header-height) auto minmax(0, 1fr) var(--nav-height);
  padding: 14px 18px 12px;
  gap: 12px;
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.map-header-actions {
  display: flex;
  gap: 10px;
}

.map-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-box svg {
  position: absolute;
  left: 18px;
  width: 22px;
  pointer-events: none;
  color: var(--ink-500);
}

.search-input {
  width: 100%;
  min-height: 54px;
  padding: 0 54px 0 52px;
  color: var(--ink-900);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}

.search-clear {
  position: absolute;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  flex: 0 0 auto;
  color: var(--ink-700);
  font-weight: 750;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.82);
}

.chip.is-active {
  color: white;
  border-color: transparent;
  background: var(--ocean-500);
  box-shadow: 0 10px 22px rgba(13,148,168,.2);
}

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.map-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-lg);
  background: #075d86;
  box-shadow: var(--shadow-md);
  touch-action: none;
  user-select: none;
}

.map-stage.is-globe-view {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(105, 216, 228, .2), transparent 38%),
    linear-gradient(160deg, #eafafb 0%, #f7fbf7 48%, #f8f0df 100%);
}

.map-view-switch {
  position: absolute;
  z-index: 14;
  top: 12px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(230px, calc(100% - 32px));
  padding: 4px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.map-view-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink-500);
  font-weight: 850;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
}

.map-view-switch button.is-active {
  color: white;
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-700));
  box-shadow: 0 8px 18px rgba(13,148,168,.22);
}

.mexico-globe {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.mexico-globe.is-dragging {
  cursor: grabbing;
}

.mexico-globe__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mexico-globe__sphere {
  stroke: rgba(255,255,255,.82);
  stroke-width: 2;
}

.mexico-globe__atmosphere {
  fill: none;
  stroke: rgba(54,185,203,.34);
  stroke-width: 10;
}

.mexico-globe__grid {
  fill: none;
  stroke: rgba(255,255,255,.28);
  stroke-width: .75;
  pointer-events: none;
}

.mexico-globe__land-shadow {
  fill: rgba(3,56,45,.28);
  stroke: none;
  pointer-events: none;
}

.mexico-globe__land {
  fill: rgba(229, 241, 220, .88);
  stroke: rgba(12, 103, 119, .42);
  stroke-width: .55;
  stroke-linejoin: round;
  pointer-events: none;
}

.mexico-globe__mexico {
  stroke: rgba(255,255,255,.94);
  stroke-width: 1.35;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 5px rgba(4,51,74,.24));
  pointer-events: none;
}

.mexico-signal {
  --signal-color: var(--sky-500);
  color: var(--signal-color);
  cursor: pointer;
  outline: none;
}

.mexico-signal.is-hidden {
  display: none;
}

.mexico-signal--urgent { --signal-color: var(--coral-500); }
.mexico-signal--report { --signal-color: var(--sun-500); }
.mexico-signal--mission { --signal-color: var(--leaf-500); }
.mexico-signal--volunteer { --signal-color: var(--sky-500); }
.mexico-signal--beach { --signal-color: #d9f7fb; }

.mexico-signal__hit {
  fill: transparent;
}

.mexico-signal__wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.mexico-signal__halo {
  fill: rgba(255,255,255,.96);
  stroke: currentColor;
  stroke-width: 3;
  filter: drop-shadow(0 4px 8px rgba(4,51,74,.3));
}

.mexico-signal__core {
  fill: currentColor;
}

.mexico-signal:hover .mexico-signal__wave,
.mexico-signal:focus .mexico-signal__wave,
.mexico-signal.is-selected .mexico-signal__wave,
.mexico-signal--urgent .mexico-signal__wave,
.mexico-signal--mission .mexico-signal__wave {
  animation: globe-signal-wave 1.8s ease-out infinite;
}

.mexico-signal.is-selected .mexico-signal__halo {
  stroke-width: 4;
  filter: drop-shadow(0 7px 12px rgba(4,51,74,.5));
}

@keyframes globe-signal-wave {
  from { opacity: .95; transform: scale(.55); }
  to { opacity: 0; transform: scale(2.25); }
}

.globe-live-card,
.globe-activity,
.globe-legend,
.globe-hint {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.globe-live-card {
  top: 68px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: var(--ocean-900);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 16px;
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.globe-live-card strong,
.globe-live-card small {
  display: block;
}

.globe-live-card strong {
  font-size: .8rem;
}

.globe-live-card small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: .62rem;
}

.globe-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--leaf-500);
  box-shadow: 0 0 0 5px rgba(106,188,72,.16);
  animation: live-dot 1.8s ease-in-out infinite;
}

@keyframes live-dot {
  50% { opacity: .45; transform: scale(.82); }
}

.globe-activity {
  top: 70px;
  right: 16px;
  display: flex;
  gap: 7px;
}

.globe-activity span {
  display: grid;
  min-width: 62px;
  padding: 7px 9px;
  color: var(--ink-500);
  font-size: .58rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
}

.globe-activity b {
  color: var(--ocean-800);
  font-size: .88rem;
}

.globe-legend {
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 12px;
  padding: 9px 12px;
  color: var(--ink-700);
  font-size: .66rem;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
}

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

.globe-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun-500);
}

.globe-legend i.is-mission { background: var(--leaf-500); }
.globe-legend i.is-volunteer { background: var(--sky-500); }

.globe-hint {
  left: 50%;
  bottom: 60px;
  margin: 0;
  color: var(--ocean-800);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.map-stage:has(.beach-detail) .globe-legend,
.map-stage:has(.beach-detail) .globe-hint {
  opacity: 0;
}

.webgl-map {
  position: absolute;
  inset: 0;
}

.webgl-map .maplibregl-canvas {
  outline: none;
}

.webgl-map .maplibregl-ctrl-attrib {
  max-width: calc(100% - 70px);
  color: var(--ink-700);
  font-size: 10px;
}

.webgl-map .leaflet-control-attribution {
  max-width: calc(100vw - 90px);
  overflow: hidden;
  color: var(--ink-700);
  font-size: 9px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 8px 0 0 0;
}

.beach-marker-shell {
  border: 0;
  background: transparent;
}

.beach-map-marker {
  --marker-color: var(--ocean-500);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: white;
  border: 4px solid rgba(255,255,255,.96);
  border-radius: 50%;
  background: var(--marker-color);
  box-shadow: 0 10px 24px rgba(7,51,79,.34);
  cursor: pointer;
  transition: width var(--speed-fast), height var(--speed-fast), box-shadow var(--speed-fast);
}

.beach-map-marker:hover,
.beach-map-marker.is-active {
  width: 46px;
  height: 46px;
  box-shadow: 0 14px 30px rgba(7,51,79,.45);
}

.beach-map-marker svg {
  pointer-events: none;
}

.map-atlas {
  position: absolute;
  inset: auto 0;
  top: 50%;
  aspect-ratio: 99 / 64;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(3,40,68,.06)),
    url("/assets/mexico-satellite-map.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(var(--map-x, 0px), var(--map-y, 0px), 0) translateY(-50%) scale(var(--map-scale, 1));
  transform-origin: center;
  will-change: transform;
  cursor: grab;
}

.map-atlas.is-dragging {
  cursor: grabbing;
}

.map-water-lines {
  position: absolute;
  inset: 0;
  display: none;
  background-image:
    radial-gradient(ellipse at center, transparent 0 58%, rgba(255,255,255,.7) 59% 60%, transparent 61%);
  background-size: 96px 38px;
  background-position: -20px 10px;
}

.mexico-svg {
  display: none;
  position: absolute;
  inset: 7% 8% 7% 6%;
  width: 86%;
  height: 86%;
  filter: drop-shadow(0 18px 32px rgba(7,51,79,.18));
}

.map-label {
  position: absolute;
  color: rgba(255,255,255,.84);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 2.2rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: .18em;
  text-shadow: 0 2px 12px rgba(0,34,65,.55);
  pointer-events: none;
}

.map-label--pacific { left: 8%; bottom: 17%; transform: rotate(-9deg); }
.map-label--gulf { right: 19%; top: 30%; transform: rotate(6deg); }

.marker {
  --marker-color: var(--ocean-500);
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: white;
  border: 4px solid rgba(255,255,255,.94);
  border-radius: 50%;
  background: var(--marker-color);
  box-shadow: 0 10px 24px rgba(7,51,79,.22);
  transform: translate(-50%, -50%);
}

.marker svg {
  width: 18px;
  height: 18px;
}

.marker:hover,
.marker.is-active {
  z-index: 6;
  transform: translate(-50%, -56%) scale(1.15);
  box-shadow: 0 14px 30px rgba(7,51,79,.32);
}

.marker.pulse::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 2px solid var(--marker-color);
  border-radius: inherit;
  animation: marker-pulse 1.4s ease-out 1;
}

@keyframes marker-pulse {
  from { opacity: .8; transform: scale(.6); }
  to { opacity: 0; transform: scale(1.45); }
}

.beach-detail {
  position: absolute;
  z-index: 8;
  right: 22px;
  top: 22px;
  width: min(390px, calc(100% - 44px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.93);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  animation: card-pop 280ms var(--ease-out);
}

@keyframes card-pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.beach-cover {
  position: relative;
  height: 138px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), transparent),
    linear-gradient(160deg, #73d3df 0 48%, #f6e4b9 49% 60%, #4a8e64 61% 100%);
}

.beach-cover::before,
.beach-cover::after {
  content: "";
  position: absolute;
  left: -8%;
  width: 116%;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
}

.beach-cover::before { bottom: 38px; transform: rotate(-3deg); }
.beach-cover::after { bottom: 25px; background: rgba(44,159,231,.5); transform: rotate(4deg); }

.beach-detail-body {
  padding: 18px;
}

.beach-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.beach-detail h2 {
  margin: 0;
  font-size: 1.35rem;
}

.beach-detail p {
  margin: 6px 0 0;
  color: var(--ink-700);
  line-height: 1.45;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 12px;
  padding: 7px 10px;
  color: var(--leaf-600);
  font-size: .82rem;
  font-weight: 850;
  border-radius: var(--radius-pill);
  background: var(--leaf-100);
}

.rating {
  margin-top: 12px;
  color: var(--sun-500);
  letter-spacing: .08em;
}

.beach-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.card-action {
  min-height: 42px;
  flex: 1;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.card-action--primary {
  color: white;
  background: var(--ocean-500);
}

.card-action--muted {
  color: var(--ink-700);
  background: var(--surface-muted);
}

.map-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 7;
  display: grid;
  gap: 8px;
}

.map-control {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  touch-action: manipulation;
}

.map-control svg {
  color: #1e73e8;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  padding: 4px;
  color: var(--ink-500);
  border: 0;
  border-radius: 20px;
  background: transparent;
  font-size: .76rem;
}

.nav-item svg {
  width: 23px;
  height: 23px;
}

.nav-item.is-active {
  color: var(--ocean-600);
  font-weight: 800;
  background: var(--ocean-100);
}

.nav-item--add {
  position: relative;
  width: 58px;
  height: 58px;
  justify-self: center;
  color: white;
  border-radius: 50%;
  background: var(--ocean-500);
  box-shadow: 0 14px 28px rgba(13,148,168,.28);
}

.nav-item--add span {
  position: absolute;
  top: calc(100% + 2px);
  width: 96px;
  color: var(--ink-500);
  font-size: .72rem;
  font-weight: 500;
  text-align: center;
}

.report-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  padding: 12px;
  background: rgba(5, 31, 48, .42);
  backdrop-filter: blur(5px);
}

.report-sheet {
  width: min(100%, 560px);
  max-height: calc(100dvh - 24px);
  margin-inline: auto;
  padding: 10px 18px 18px;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-lg);
  animation: report-sheet-in 240ms var(--ease-out);
}

@keyframes report-sheet-in {
  from { opacity: 0; transform: translateY(24px); }
}

.report-sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #d6e1e5;
}

.report-sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.report-sheet-heading h2,
.report-sheet-kicker {
  margin: 0;
}

.report-sheet-kicker {
  color: var(--ocean-600);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.report-type-grid {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.report-type {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  color: var(--ink-900);
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface-muted);
}

.report-type.is-selected {
  color: var(--ocean-800);
  border-color: rgba(13,148,168,.45);
  background: var(--ocean-100);
}

.report-type-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: white;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--ocean-400), var(--ocean-600));
}

.report-type strong,
.report-type small {
  display: block;
}

.report-type small {
  margin-top: 3px;
  color: var(--ink-500);
}

.report-sheet-note {
  margin: 12px 2px 0;
  color: var(--ink-500);
  font-size: .78rem;
}

.report-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.report-form[hidden] {
  display: none;
}

.report-form > label {
  display: grid;
  gap: 5px;
  color: var(--ink-700);
  font-size: .74rem;
  font-weight: 800;
}

.report-form select,
.report-form textarea {
  width: 100%;
  color: var(--ink-900);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
}

.report-form select {
  min-height: 42px;
  padding: 0 11px;
}

.report-form textarea {
  min-height: 76px;
  padding: 10px;
  resize: vertical;
}

.report-evidence-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.report-file,
.report-location {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px !important;
  min-height: 42px;
  color: var(--ocean-700) !important;
  font-size: .72rem;
  font-weight: 850;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
}

.report-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.report-location-status {
  margin: 0;
  color: var(--ink-500);
  font-size: .68rem;
}

.report-submit {
  min-height: 44px;
}

.report-popup p {
  margin: 5px 0;
}

.report-popup span {
  color: var(--ink-500);
  font-size: .7rem;
}

/* Community, missions and rewards */
.community-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) var(--nav-height);
  gap: 10px;
  padding: 16px 18px 12px;
}

.community-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.community-header h1 {
  margin: 1px 0 3px;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  letter-spacing: -.035em;
}

.community-header p {
  margin: 0;
  color: var(--ink-500);
}

.community-eyebrow {
  color: var(--ocean-600) !important;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 0 12px;
  color: #8a5700;
  border-radius: var(--radius-pill);
  background: #fff4d6;
  box-shadow: var(--shadow-sm);
}

.points-badge span {
  font-size: .7rem;
  font-weight: 800;
}

.community-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 16px;
  scrollbar-width: none;
}

.community-scroll::-webkit-scrollbar {
  display: none;
}

.quick-alert {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: white;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--ocean-600), var(--ocean-800));
  box-shadow: var(--shadow-md);
}

.quick-alert div,
.quick-alert span {
  min-width: 0;
}

.quick-alert strong,
.quick-alert span {
  display: block;
}

.quick-alert span {
  margin-top: 2px;
  color: rgba(255,255,255,.76);
  font-size: .72rem;
}

.quick-alert button {
  padding: 8px 10px;
  color: var(--ocean-800);
  font-weight: 850;
  border: 0;
  border-radius: 999px;
  background: white;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 2px 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.05rem;
}

.section-title span {
  color: var(--ink-500);
  font-size: .74rem;
}

.section-action {
  min-height: 32px;
  padding: 0 10px;
  color: var(--ocean-700);
  font-size: .7rem;
  font-weight: 850;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
}

.mission-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 12px;
}

.validation-list {
  display: grid;
  gap: 8px;
}

.validation-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
}

.validation-card p,
.validation-card small {
  display: block;
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: .68rem;
}

.validation-severity {
  padding: 6px 8px;
  font-size: .65rem;
  font-weight: 900;
  border-radius: 999px;
  background: #fff4d6;
}

.validation-severity--alta {
  color: #b7432b;
  background: #ffebe5;
}

.validation-card button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  color: white;
  font-size: .68rem;
  font-weight: 850;
  border: 0;
  border-radius: 999px;
  background: var(--ocean-600);
}

.mission-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.mission-cover {
  position: relative;
  height: 110px;
  background:
    linear-gradient(180deg, transparent, rgba(6,58,76,.25)),
    linear-gradient(145deg, #55c7d4, #0d94a8 48%, #efe1b7 49%, #a5d58d);
}

.mission-card.is-urgent .mission-cover {
  background:
    linear-gradient(180deg, transparent, rgba(70,39,13,.25)),
    linear-gradient(145deg, #48b8d2, #1f8fb1 47%, #f0d49b 48%, #d59b56);
}

.mission-status,
.mission-distance {
  position: absolute;
  top: 10px;
  padding: 6px 9px;
  font-size: .68rem;
  font-weight: 850;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
}

.mission-status { left: 10px; color: var(--coral-500); }
.mission-distance { right: 10px; color: var(--ink-700); }
.mission-body { padding: 13px; }
.mission-body h2 { margin: 3px 0 6px; font-size: 1rem; }
.mission-beach { margin: 0; color: var(--ocean-600); font-size: .75rem; font-weight: 850; }
.mission-meta { margin: 0; color: var(--ink-500); font-size: .72rem; }

.mission-progress {
  height: 5px;
  margin: 11px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef0;
}

.mission-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--leaf-500);
}

.mission-footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
}

.mission-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.mission-points { color: #a46400; font-weight: 900; }
.mission-join {
  min-height: 36px;
  color: white;
  font-weight: 850;
  border: 0;
  border-radius: 999px;
  background: var(--ocean-600);
}
.mission-join.is-joined { color: var(--leaf-600); background: var(--leaf-100); }
.mission-sponsor { margin: 9px 0 0; color: var(--ink-500); font-size: .66rem; }

.impact-hero,
.profile-card,
.wallet-card,
.streak-card,
.kit-card,
.collective-impact {
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.impact-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: white;
  background: linear-gradient(135deg, var(--ocean-700), var(--ocean-900));
}

.impact-ring {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  border: 7px solid rgba(255,255,255,.25);
  border-top-color: #ffca57;
  border-radius: 50%;
}
.impact-ring strong { font-size: 1.6rem; line-height: 1; }
.impact-ring span { font-size: .62rem; }
.impact-hero p, .impact-hero h2 { margin: 0 0 3px; }
.impact-hero p { color: #9ee9ef; font-size: .75rem; }
.impact-hero span { color: rgba(255,255,255,.7); font-size: .7rem; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.impact-grid article { padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: white; }
.impact-grid strong, .impact-grid span { display: block; }
.impact-grid strong { color: var(--ocean-700); font-size: 1.25rem; }
.impact-grid span { margin-top: 3px; color: var(--ink-500); font-size: .7rem; }

.streak-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  background: #fff7e8;
}
.streak-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #f28522; border-radius: 14px; background: white; }
.streak-card p { margin: 2px 0 0; color: var(--ink-500); font-size: .7rem; }
.streak-card > span:last-child { color: #a46400; font-size: .75rem; font-weight: 900; }

.achievement-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.achievement-row article { display: grid; place-items: center; gap: 7px; padding: 13px 6px; color: var(--leaf-600); text-align: center; border-radius: 18px; background: var(--leaf-100); }
.achievement-row strong { color: var(--ink-700); font-size: .68rem; }

.collective-impact { margin-top: 12px; padding: 17px; color: white; background: linear-gradient(135deg, #57a93f, #277947); }
.collective-impact p, .collective-impact h2 { margin: 0 0 4px; }
.collective-impact p { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.collective-impact span { color: rgba(255,255,255,.78); font-size: .72rem; }

.profile-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: white;
}
.profile-avatar { display: grid; place-items: center; width: 58px; height: 58px; color: white; border-radius: 19px; background: linear-gradient(145deg, var(--sky-500), var(--ocean-600)); }
.profile-card h2, .profile-card p { margin: 0; }
.profile-card h2 { font-size: 1rem; }
.profile-card p { margin-top: 3px; color: var(--ink-500); font-size: .7rem; }
.profile-card small { display: block; margin-top: 3px; color: var(--ink-500); font-size: .66rem; }
.verified-badge { display: inline-flex; gap: 3px; align-items: center; color: var(--leaf-600); font-size: .65rem; font-weight: 850; }

.wallet-card { margin-top: 10px; padding: 17px; color: white; background: linear-gradient(135deg, #f5a719, #ed7d20); }
.wallet-card p, .wallet-card h2 { margin: 0; }
.wallet-card h2 { margin-top: 3px; font-size: 2rem; }
.wallet-card h2 span { font-size: .8rem; }
.wallet-card div { display: flex; justify-content: space-between; color: rgba(255,255,255,.78); font-size: .7rem; }
.wallet-card a { color: white; font-weight: 850; }

.reward-list, .sponsor-list { display: grid; gap: 8px; }
.reward-card { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 18px; background: white; }
.reward-icon { display: grid; place-items: center; width: 46px; height: 46px; color: white; border-radius: 15px; background: var(--ocean-500); }
.reward-card--green .reward-icon { background: var(--leaf-500); }
.reward-card--orange .reward-icon { background: var(--sun-500); }
.reward-card--coral .reward-icon { background: var(--coral-500); }
.reward-card strong, .reward-card span { display: block; }
.reward-card span { color: var(--ink-500); font-size: .68rem; }
.reward-card button, .kit-card button { min-height: 34px; padding: 0 10px; color: white; font-size: .7rem; font-weight: 850; border: 0; border-radius: 999px; background: var(--ocean-600); }
.reward-card button:disabled, .kit-card button:disabled { color: var(--ink-500); background: #e7eef0; }

.coupon-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.coupon-list article {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px dashed rgba(13,148,168,.45);
  border-radius: 16px;
  background: var(--ocean-100);
}

.coupon-list span,
.coupon-list small {
  color: var(--ink-500);
  font-size: .68rem;
}

.coupon-list strong {
  color: var(--ocean-800);
  font-size: 1.05rem;
  letter-spacing: .08em;
}

.kit-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; padding: 12px; color: var(--leaf-600); background: var(--leaf-100); }
.kit-card p { margin: 3px 0 0; color: var(--ink-500); font-size: .68rem; }

.sponsor-list article { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: white; }
.sponsor-list article > span { display: grid; place-items: center; width: 42px; height: 42px; color: white; font-weight: 900; border-radius: 14px; background: var(--ocean-700); }
.sponsor-list p { margin: 2px 0 0; color: var(--ink-500); font-size: .68rem; }

.demo-profile-list {
  display: grid;
  gap: 8px;
}

.demo-profile {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
}

.demo-profile.is-active {
  border-color: rgba(13,148,168,.42);
  background: var(--ocean-100);
}

.demo-profile-main {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink-900);
  text-align: left;
  border: 0;
  background: transparent;
}

.demo-profile-main > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  font-size: .72rem;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--sky-500), var(--ocean-700));
}

.demo-profile-main strong,
.demo-profile-main small {
  display: block;
}

.demo-profile-main small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: .68rem;
}

.demo-profile-delete {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--coral-500);
  border: 0;
  border-radius: 13px;
  background: #fff1ea;
}

.empty-demo-profiles {
  margin: 0;
  padding: 16px;
  color: var(--ink-500);
  text-align: center;
  border-radius: 16px;
  background: var(--surface-muted);
}

.demo-register-form {
  display: grid;
  gap: 11px;
}

.demo-register-form > label {
  display: grid;
  gap: 5px;
  color: var(--ink-700);
  font-size: .74rem;
  font-weight: 800;
}

.demo-register-form input,
.demo-register-form select {
  min-height: 44px;
  padding: 0 11px;
  color: var(--ink-900);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
}

.community-nav {
  align-self: end;
}

.mission-evidence-form {
  display: grid;
  gap: 11px;
}

.mission-evidence-form > label {
  display: grid;
  gap: 5px;
  color: var(--ink-700);
  font-size: .74rem;
  font-weight: 800;
}

.mission-evidence-form input,
.mission-evidence-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
}

.admin-actions {
  display: flex;
  gap: 5px;
}

.admin-actions button {
  min-height: 30px;
  padding: 0 8px;
  color: white;
  font-size: .68rem;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  background: var(--ocean-600);
}

.admin-actions button:last-child {
  background: var(--coral-500);
}

.evidence-admin-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.evidence-admin-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #fff7e8;
}

.evidence-admin-list strong,
.evidence-admin-list small {
  display: block;
}

.evidence-admin-list small {
  margin-top: 2px;
  color: var(--ink-500);
}

.evidence-admin-list button {
  min-height: 32px;
  padding: 0 10px;
  color: white;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  background: var(--leaf-600);
}

/* Dashboard */
.dashboard-page {
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 18px 18px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--leaf-600);
  font-size: .82rem;
  font-weight: 850;
  border-radius: var(--radius-pill);
  background: var(--leaf-100);
}

.live-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf-500);
  box-shadow: 0 0 0 5px rgba(106,188,72,.12);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.dashboard-sidebar,
.dashboard-panel {
  min-height: 0;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.dashboard-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
}

.dashboard-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink-700);
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 750;
}

.dashboard-tab svg {
  width: 20px;
  height: 20px;
}

.dashboard-tab.is-active {
  color: white;
  background: var(--ocean-500);
}

.dashboard-panel {
  padding: 18px;
  overflow: hidden;
}

.panel-view {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading p {
  margin: 5px 0 0;
  color: var(--ink-500);
}

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

.metric-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
}

.metric-card-label {
  color: var(--ink-500);
  font-size: .8rem;
  font-weight: 750;
}

.metric-card-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.metric-card-value strong {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -.05em;
}

.metric-card-value span {
  color: var(--leaf-600);
  font-size: .78rem;
  font-weight: 800;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: 1.45fr .9fr;
  gap: 12px;
  min-height: 0;
}

.data-card {
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  overflow: hidden;
}

.data-card h3 {
  margin: 0 0 12px;
}

.bar-chart {
  height: calc(100% - 36px);
  min-height: 120px;
  display: flex;
  align-items: end;
  gap: clamp(8px, 2vw, 18px);
  padding: 10px 4px 0;
}

.bar-column {
  flex: 1;
  display: grid;
  align-items: end;
  gap: 8px;
  height: 100%;
  color: var(--ink-500);
  font-size: .72rem;
  text-align: center;
}

.bar {
  min-height: 8px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--ocean-400), var(--ocean-600));
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface-muted);
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ocean-600);
  border-radius: 12px;
  background: var(--ocean-100);
}

.activity-item strong,
.activity-item small {
  display: block;
}

.activity-item small {
  margin-top: 3px;
  color: var(--ink-500);
}

.table-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.table-wrap {
  min-height: 0;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  height: 48px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: .86rem;
}

.data-table th {
  color: var(--ink-500);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.inline-select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
}

.page-button {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.page-button.is-active {
  color: white;
  background: var(--ocean-500);
}

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

.setting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: white;
}

.setting-card h3 {
  margin: 0;
  font-size: 1rem;
}

.setting-card p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: .82rem;
}

.switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-pill);
  background: #d8e0e5;
  cursor: pointer;
}

.switch::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
  transition: transform var(--speed-normal) var(--ease-out);
}

.switch[aria-checked="true"] {
  background: var(--ocean-500);
}

.switch[aria-checked="true"]::after {
  transform: translateX(22px);
}

/* Consent */
.consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 20px;
  background: rgba(7, 51, 79, .2);
  backdrop-filter: blur(5px);
}

.consent-card {
  width: min(760px, 100%);
  padding: 22px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 28px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-lg);
}

.consent-card h2 {
  margin: 0;
}

.consent-card p {
  margin: 8px 0 16px;
  color: var(--ink-700);
  line-height: 1.5;
}

.consent-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.consent-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--surface-muted);
}

.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Ad placeholder */
.ad-slot {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 12px;
  color: var(--ink-500);
  font-size: .76rem;
  border: 1px dashed rgba(7,92,130,.24);
  border-radius: 18px;
  background: rgba(234,249,250,.62);
}

/* Mexico coast 3D map */
.map-stage.is-orbit-view {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(91, 215, 226, .42), transparent 48%),
    #087da5;
}

.webgl-map {
  cursor: grab;
}

.leaflet-map-surface.leaflet-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #aad3df;
}

.leaflet-map-surface .leaflet-control-attribution {
  max-width: min(460px, calc(100vw - 118px));
  overflow: hidden;
  color: #31515f;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 9px 0 0;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
}

.coast-marker-wrap {
  width: 42px !important;
  height: 42px !important;
  border: 0;
  background: transparent;
}

.coast-state-hitarea {
  cursor: pointer;
  transition: fill-opacity 180ms ease-out;
}

.coast-report-marker {
  filter: drop-shadow(0 4px 5px rgba(74, 42, 13, .28));
}

.webgl-map:active {
  cursor: grabbing;
}

.webgl-map .maplibregl-canvas {
  outline: none;
}

.webgl-map .maplibregl-ctrl-bottom-right {
  right: 84px;
  bottom: 2px;
}

.webgl-map .maplibregl-ctrl-attrib {
  max-width: min(460px, calc(100vw - 118px));
  color: #31515f;
  font-size: 9px;
  line-height: 1.2;
  border-radius: 9px 0 0;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: white;
  text-align: center;
  background:
    radial-gradient(circle at 48% 44%, rgba(92, 220, 226, .58), transparent 26%),
    linear-gradient(145deg, #075a80, #0a8eae 58%, #57c6c8);
}

.map-loading span {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border: 3px solid rgba(255, 255, 255, .3);
  border-top-color: white;
  border-radius: 50%;
  animation: map-loading-spin .8s linear infinite;
}

.map-loading strong {
  font-size: .96rem;
}

.map-loading small {
  color: rgba(255, 255, 255, .78);
  font-size: .7rem;
}

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

.coast-map-summary,
.coast-tour-panel,
.orbit-hint {
  position: absolute;
  z-index: 12;
}

.coast-map-summary {
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  padding: 10px 13px;
  color: var(--ocean-900);
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 17px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 12px 28px rgba(4, 51, 74, .16);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.coast-map-summary strong,
.coast-map-summary small {
  display: block;
}

.coast-map-summary strong {
  font-size: .8rem;
}

.coast-map-summary small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: .62rem;
}

.coast-tour-panel {
  left: 12px;
  bottom: 12px;
  display: grid;
  gap: 7px;
  width: min(330px, calc(100% - 116px));
}

.coast-tour-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 47px;
  padding: 7px 14px 7px 11px;
  color: var(--ocean-900);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 17px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 26px rgba(4, 51, 74, .18);
  backdrop-filter: blur(16px);
}

.coast-tour-button > svg {
  width: 22px;
  color: var(--ocean-600);
}

.coast-tour-button span,
.coast-tour-button strong,
.coast-tour-button small {
  display: block;
  text-align: left;
}

.coast-tour-button strong {
  font-size: .76rem;
}

.coast-tour-button small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: .6rem;
}

.coast-tour-button.is-running {
  color: white;
  border-color: rgba(255, 255, 255, .38);
  background: linear-gradient(135deg, var(--ocean-500), var(--ocean-700));
}

.coast-tour-button.is-running > svg,
.coast-tour-button.is-running small {
  color: rgba(255, 255, 255, .82);
}

.coast-tour-button.is-running > svg {
  animation: tour-compass 2.4s ease-in-out infinite;
}

@keyframes tour-compass {
  50% { transform: rotate(24deg); }
}

.coast-shortcuts {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.coast-shortcuts::-webkit-scrollbar {
  display: none;
}

.coast-shortcuts button {
  min-height: 31px;
  padding: 0 10px;
  flex: 0 0 auto;
  color: white;
  font-size: .64rem;
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(3, 53, 75, .58);
  box-shadow: 0 7px 17px rgba(3, 35, 54, .15);
  backdrop-filter: blur(10px);
}

.orbit-hint {
  left: 50%;
  bottom: 14px;
  margin: 0;
  padding: 7px 11px;
  color: white;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .025em;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(3, 53, 75, .45);
  text-shadow: 0 1px 7px rgba(3, 35, 54, .6);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}

.coast-map-marker {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center;
  transition: transform 180ms ease;
}

.coast-map-marker:hover,
.coast-map-marker:focus-visible,
.coast-map-marker.is-active {
  z-index: 3;
  transform: scale(1.08);
}

.coast-map-marker__core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  border: 3px solid rgba(255, 255, 255, .96);
  border-radius: 50%;
  background: linear-gradient(145deg, #36bdd2, #087ea9);
  box-shadow: 0 9px 20px rgba(3, 43, 64, .38);
  transform: translate(-50%, -50%);
}

.coast-map-marker__core svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: none;
}

.coast-map-marker__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(13, 148, 168, .24);
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

.coast-map-marker.is-active .coast-map-marker__core {
  background: linear-gradient(145deg, #ffb535, #f2762e);
  box-shadow: 0 9px 24px rgba(230, 101, 33, .45);
}

.coast-map-marker.is-live::after {
  content: "";
  position: absolute;
  inset: 1px -4px -1px;
  border: 3px solid #ffb52e;
  border-radius: 50%;
  pointer-events: none;
  animation: marker-pulse 1.4s ease-out 1;
}

.map-stage.is-orbit-view .map-controls {
  right: 12px;
  bottom: 12px;
  z-index: 14;
  grid-template-columns: repeat(2, 42px);
  gap: 6px;
}

.map-stage.is-orbit-view .map-control {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
}

.map-control--orbit {
  color: var(--ocean-700);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.map-stage:has(.beach-detail) .coast-tour-panel,
.map-stage:has(.beach-detail) .orbit-hint,
.map-stage:has(.beach-detail) .map-controls {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .map-loading span,
  .coast-tour-button.is-running > svg {
    animation: none;
  }
}
