:root {
  --bg: #05070d;
  --ink: #f4f6fb;
  --ink-dim: #aab2c5;
  --accent: #ffb347;
  --accent-2: #4fd1c5;
  --visited: #ffcb6b;
  --planned: #4fd1c5;
  --live: #ff3b30;
  --community: #1e3a6e;
  --community-2: #2c4f8f;
  --panel: rgba(10, 14, 24, 0.72);
  --radius: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--ink); overflow-x: hidden; }
img { max-width: 100%; }
button { font: inherit; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(5,7,13,0.85), transparent);
  animation: headerIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes headerIn {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.1rem; }
.brand-globe { font-size: 1.4rem; }
.brand-text em { color: var(--accent); font-style: normal; font-size: 1.1rem; font-weight: 600; opacity: .85; margin-left: 4px; }
.site-nav { display: flex; gap: 10px; }
.nav-link {
  background: transparent; border: 1px solid rgba(255,255,255,0.18); color: var(--ink);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .2s ease;
}
.nav-link:hover { background: rgba(255,255,255,0.1); }
.nav-cta { background: var(--accent); color: #201200; border-color: var(--accent); font-weight: 600; }
.nav-cta:hover { filter: brightness(1.08); }

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* "Travel Together" CTA: a neon chase light sweeps around the border like a
   race circuit, in the site's accent orange/teal pairing, to draw the eye.
   Two layers share the same rotating conic-gradient: a masked ring clipped
   to just the border (::before) and a blurred halo behind it (::after). The
   gradient's angle is swept via @property rather than rotating the whole
   pseudo-element, so the ring stays perfectly aligned with the pill shape
   instead of skewing off it mid-spin. Only shown on the globe page (via
   :has(), since the header sits before the view sections in the DOM) — on
   every other view the button reverts to a plain .nav-link. */
.nav-link[data-nav="travel"] {
  position: relative;
  z-index: 0;
}
body:not(:has(#view-globe.active)) .nav-link[data-nav="travel"]::before,
body:not(:has(#view-globe.active)) .nav-link[data-nav="travel"]::after {
  content: none;
}
.nav-link[data-nav="travel"]::before,
.nav-link[data-nav="travel"]::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: conic-gradient(
    from var(--border-angle),
    var(--accent) 0deg, transparent 35deg, transparent 145deg,
    var(--accent-2) 180deg, transparent 215deg, transparent 325deg,
    var(--accent) 360deg
  );
  animation: nav-cta-chase 2.8s linear infinite;
  pointer-events: none;
}
.nav-link[data-nav="travel"]::before {
  padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.nav-link[data-nav="travel"]::after {
  filter: blur(8px);
  opacity: 0.65;
  z-index: -1;
  transition: opacity .2s ease, filter .2s ease;
}
.nav-link[data-nav="travel"]:hover::after { opacity: 0.9; filter: blur(10px); }
@keyframes nav-cta-chase {
  to { --border-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-link[data-nav="travel"]::before,
  .nav-link[data-nav="travel"]::after {
    animation: none;
  }
}

.header-auth { position: relative; display: flex; align-items: center; }
.header-login-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.18); color: var(--ink);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all .2s ease; font: inherit; font-weight: 600;
}
.header-login-btn:hover { background: rgba(255,255,255,0.1); }

.header-avatar-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; padding: 0; overflow: hidden;
  background: var(--community); color: #fff; font-weight: 700; font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.2); cursor: pointer; transition: border-color .2s ease;
}
.header-avatar-btn:hover { border-color: var(--accent); }
.header-avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

.header-auth-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 180px; background: var(--panel); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 8px;
  display: flex; flex-direction: column; gap: 2px; box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.header-auth-menu[hidden] { display: none; }
.header-auth-menu-name {
  padding: 6px 10px 8px; margin-bottom: 4px; font-weight: 600; font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-auth-menu button {
  background: none; border: none; color: var(--ink-dim); text-align: left; font: inherit; font-size: 0.88rem;
  padding: 9px 10px; border-radius: 8px; cursor: pointer; transition: all .15s ease;
}
.header-auth-menu button:hover { background: rgba(255,255,255,0.08); color: var(--ink); }

.view { display: none; min-height: 100vh; min-height: 100dvh; }
.view.active { display: block; }

.view-globe { position: relative; }

.globe-stage { position: relative; height: 100vh; height: 100dvh; }
/* z-index scopes the globe canvas + pins (which use very high !important
   z-indices among themselves for focus/hover layering) into their own
   stacking context, so they can never escape above later overlays like
   the boarding pass. */
#globe-container { position: absolute; inset: 0; z-index: 1; touch-action: none; }
#globe-container canvas { touch-action: none; }
.globe-unavailable {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  max-width: 320px; text-align: center; color: var(--ink-dim); font-size: 0.9rem;
}

.globe-stage::after {
  content: "";
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,0.4) 100%);
}

.globe-intro-wrap {
  position: absolute; left: 6%; top: 50%; transform: translate(0, -50%);
  max-width: 380px; z-index: 5; pointer-events: none;
  animation: introIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.globe-intro {
  position: relative;
  background: var(--panel); backdrop-filter: blur(6px);
  padding: 26px 28px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.globe-intro-wrap.dismissed { display: none; }
.globe-intro-close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: var(--ink-dim); font-size: 1.2rem; line-height: 1; cursor: pointer;
  pointer-events: auto;
  transition: background .2s ease, color .2s ease;
}
.globe-intro-close:hover { background: rgba(255,255,255,0.16); color: var(--ink); }
.globe-intro-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 12px; font-size: 1.3rem;
  background: rgba(255,179,71,0.16); border-radius: 50%;
}
.globe-intro h1 { margin: 0 0 10px; font-size: 2rem; display: flex; align-items: center; gap: 10px; }
.globe-intro p { margin: 0; color: var(--ink-dim); line-height: 1.5; }

.wave {
  display: inline-block; transform-origin: 70% 70%;
  animation: wave 0.6s ease-in-out 0.9s 2;
}
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(18deg); }
}
@keyframes introIn {
  from { opacity: 0; transform: translate(-28px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

.legend {
  position: absolute; bottom: 22px; left: 50%; transform: translate(-50%, 0);
  display: flex; gap: 18px; align-items: center; z-index: 5;
  background: var(--panel); padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem; color: var(--ink-dim); flex-wrap: wrap; justify-content: center;
  animation: legendIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
@keyframes legendIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-visited { background: var(--visited); box-shadow: 0 0 8px var(--visited); }
.dot-planned { background: var(--planned); box-shadow: 0 0 8px var(--planned); }
.dot-live { background: var(--live); box-shadow: 0 0 8px var(--live); animation: liveBlink 1.4s ease-in-out infinite; }
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.legend-hint { opacity: .7; }
.legend-toggle {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: var(--ink);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 0.85rem; transition: all .2s ease;
}
.legend-toggle:hover { background: rgba(255,255,255,0.16); }
.legend-toggle.active { background: var(--accent-2); color: #04211d; border-color: var(--accent-2); font-weight: 600; }

.countries-panel {
  position: fixed; top: 90px; right: 20px; z-index: 21;
  width: 260px; max-width: calc(100vw - 24px);
  font-size: 0.85rem;
  animation: legendIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
.countries-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: var(--panel); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 999px;
  color: var(--ink); padding: 10px 16px; cursor: pointer;
  font-size: 0.85rem; box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transition: background .2s ease;
}
.countries-toggle:hover { background: rgba(255,255,255,0.16); }
.countries-chevron { margin-left: auto; transition: transform .25s ease; }
.countries-panel.expanded .countries-chevron { transform: rotate(180deg); }

.countries-body {
  margin-top: 8px;
  background: var(--panel); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  overflow: hidden;
  display: none;
}
.countries-panel.expanded .countries-body { display: flex; flex-direction: column; }

.countries-body-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
}
.countries-close {
  background: none; border: none; color: var(--ink-dim); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0 4px;
}
.countries-close:hover { color: var(--ink); }

.countries-list { overflow-y: auto; max-height: 50vh; padding: 6px 0; }
.country-row { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 0.82rem; }
.country-flag { font-size: 1rem; }
.country-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-status {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap;
  width: 92px; text-align: center; flex-shrink: 0;
}
.country-status.status-visited { background: var(--visited); color: #3a2900; }
.country-status.status-planned { background: var(--planned); color: #04211d; }
.country-status.status-explore { background: rgba(255,255,255,0.1); color: var(--ink-dim); }
.country-status.status-live { background: var(--live); color: #fff; animation: liveBlink 1.4s ease-in-out infinite; }
.country-row.is-live { background: rgba(255,59,48,0.1); }

.countries-toggle.has-live { box-shadow: 0 0 0 1px rgba(255,59,48,0.5), 0 0 14px rgba(255,59,48,0.45); animation: liveBlink 1.4s ease-in-out infinite; }

.pin {
  position: relative; width: 34px; height: 34px; cursor: pointer;
  pointer-events: auto;
}
.pin-anchor {
  position: absolute; inset: 0;
  transform: translate(-50%, -100%);
  animation: pinBob 2.6s ease-in-out infinite;
}
.pin-badge {

  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) rotate(-45deg);
  width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform-origin: center;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2.5px solid #05070d; box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-icon { transform: rotate(45deg); font-size: 15px; line-height: 1; }
.pin-visited .pin-badge { background: var(--visited); }
.pin-planned .pin-badge { background: var(--planned); }

.pin.pin-focused { z-index: 999 !important; }

.pin.pin-hover-top { z-index: 2147483647 !important; }
.pin.pin-focused .pin-badge { transform: translateX(-50%) rotate(-45deg) scale(1.4); }

.pin-hub .pin-badge::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.7); transform: rotate(45deg);
}
.pin-hub.pin-hub-expanded .pin-badge::after { border-color: var(--accent-2); }

.pin-has-posts .pin-badge::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--accent); transform: rotate(45deg);
}
.pin-preview {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%) scale(0.35);
  width: 92px; height: 62px; border-radius: 8px; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 8px 20px rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none; transform-origin: bottom center;
  transition: opacity .35s ease, transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pin-preview::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 40%);
}
.pin-preview-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.pin.pin-focused.pin-has-preview .pin-preview { opacity: 1; transform: translateX(-50%) scale(1); }
.pin-pulse {
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  animation: pulse 2.2s ease-out infinite;
}
.pin-visited .pin-pulse { background: var(--visited); }
.pin-planned .pin-pulse { background: var(--planned); }
@keyframes pulse { 0% { opacity: .5; transform: translateX(-50%) scale(0.3); } 100% { opacity: 0; transform: translateX(-50%) scale(1.5); } }
@keyframes pinBob { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, -112%); } }

.pin.pin-live .pin-pulse { display: none; }
.pin-beacon {
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; pointer-events: none;
}
.pin.pin-live .pin-beacon::before,
.pin.pin-live .pin-beacon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--live);
  animation: liveBeacon 1.8s ease-out infinite;
}
.pin.pin-live .pin-beacon::after { animation-delay: 0.6s; }
@keyframes liveBeacon {
  0% { opacity: .9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(2.8); }
}
.pin.pin-live .pin-badge {
  background: var(--live);
  animation: liveBadgeGlow 1.6s ease-in-out infinite;
}
@keyframes liveBadgeGlow {
  0%, 100% { box-shadow: 0 3px 8px rgba(0,0,0,0.4), 0 0 0 0 rgba(255,59,48,0.65); }
  50% { box-shadow: 0 3px 8px rgba(0,0,0,0.4), 0 0 0 9px rgba(255,59,48,0); }
}
.pin-live-tag {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  background: var(--live); color: #fff; font-size: 0.58rem; font-weight: 700;
  letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  opacity: 0; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: opacity .25s ease;
}
.pin.pin-live .pin-live-tag { opacity: 1; animation: liveBlink 1.6s ease-in-out infinite; }


#transition-overlay {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 1.05s cubic-bezier(0.22, 0.61, 0.36, 1);
}
#transition-overlay.covering { opacity: 1; transition-duration: 1.05s; }
#transition-overlay.landing { opacity: 0; transition-duration: 1s; transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1); }
.scene-sky, .scene-far, .scene-near { position: absolute; inset: 0; transform-origin: 50% 60%; }

#transition-overlay.flying .scene-sky {
  animation: flySky 1.45s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}
#transition-overlay.flying .scene-far {
  animation: flyFar 1.45s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}
#transition-overlay.flying .scene-near {
  animation: flyNear 1.45s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}
@keyframes flySky { from { transform: scale(1.35); } to { transform: scale(1); } }
@keyframes flyFar { from { transform: scale(1.6) translateY(4%); } to { transform: scale(1.05) translateY(0); } }
@keyframes flyNear { from { transform: scale(2.1) translateY(8%); } to { transform: scale(1.15) translateY(0); } }
.scene-label {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.85); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.scene-particles { position: absolute; inset: 0; overflow: hidden; }
.particle { position: absolute; top: -5%; }

[data-category="generic"] .scene-sky { background: linear-gradient(180deg,#1b1140,#5b3a9e 45%,#2a1b5e); }
[data-category="generic"] .scene-far,
[data-category="generic"] .scene-near { background: transparent; }

[data-category="atmosphere"] .scene-sky { background: linear-gradient(180deg,#050a1f,#123a6b 55%,#4f9bdc); }
[data-category="atmosphere"] .scene-far {
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.5), transparent 62%);
}
[data-category="atmosphere"] .scene-near {
  background: linear-gradient(180deg, transparent 55%, rgba(127,196,255,0.5) 100%);
  animation: waveShift 7s ease-in-out infinite alternate;
}

[data-category="mountain"] .scene-sky { background: linear-gradient(180deg,#0d2b4e,#4c7fa8 55%,#cfe6f5); }
[data-category="mountain"] .scene-far {
  background: linear-gradient(135deg,#7b93ab,#a9bfd4);
  clip-path: polygon(0 100%, 0 60%, 15% 40%, 30% 58%, 45% 30%, 60% 55%, 75% 35%, 90% 58%, 100% 45%, 100% 100%);
}
[data-category="mountain"] .scene-near {
  background: linear-gradient(135deg,#3c5570,#5c7793);
  clip-path: polygon(0 100%, 0 75%, 12% 50%, 26% 72%, 40% 42%, 55% 68%, 68% 38%, 82% 66%, 100% 55%, 100% 100%);
}

[data-category="beach"] .scene-sky { background: linear-gradient(180deg,#ff9a6c,#ffd6a5 40%,#bfeaf0); }
[data-category="beach"] .scene-far { background: linear-gradient(180deg, transparent 55%, #f4e2b8 55%); }
[data-category="beach"] .scene-near {
  background: linear-gradient(180deg, transparent 68%, #2fa8c0 68%, #1c7f95 100%);
  animation: waveShift 6s ease-in-out infinite alternate;
}
@keyframes waveShift { from { transform: translateX(-2%); } to { transform: translateX(2%); } }

[data-category="countryside"] .scene-sky { background: linear-gradient(180deg,#a9d6ff,#eaf6ff 55%,#dff2d8); }
[data-category="countryside"] .scene-far {
  background: linear-gradient(135deg,#8fc46b,#b6da8c);
  clip-path: polygon(0 100%, 0 70%, 25% 58%, 50% 68%, 75% 55%, 100% 66%, 100% 100%);
}
[data-category="countryside"] .scene-near {
  background: linear-gradient(135deg,#5f9e46,#7fbb5e);
  clip-path: polygon(0 100%, 0 85%, 20% 72%, 45% 84%, 70% 68%, 100% 80%, 100% 100%);
}

[data-category="forest"] .scene-sky { background: linear-gradient(180deg,#12321f,#2f6b45 60%,#a9d4a1); }
[data-category="forest"] .scene-far {
  background: linear-gradient(135deg,#1f4b2c,#2d6238);
  clip-path: polygon(0 100%,0 60%,5% 45%,10% 60%,15% 40%,20% 60%,25% 42%,30% 60%,35% 40%,40% 60%,45% 45%,50% 60%,55% 42%,60% 60%,65% 40%,70% 60%,75% 45%,80% 60%,85% 40%,90% 60%,95% 45%,100% 60%,100% 100%);
}
[data-category="forest"] .scene-near {
  background: linear-gradient(135deg,#0f2b18,#1c4526);
  clip-path: polygon(0 100%,0 78%,8% 60%,16% 78%,24% 55%,32% 78%,40% 58%,48% 78%,56% 55%,64% 78%,72% 60%,80% 78%,88% 55%,96% 78%,100% 65%,100% 100%);
}

[data-category="city"] .scene-sky { background: linear-gradient(180deg,#2a1750,#7c3f8f 50%,#ff9d6c 90%); }
[data-category="city"] .scene-far {
  background: #1c1240;
  clip-path: polygon(0 100%,0 70%,6% 70%,6% 55%,12% 55%,12% 68%,20% 68%,20% 48%,26% 48%,26% 65%,34% 65%,34% 40%,40% 40%,40% 63%,48% 63%,48% 52%,54% 52%,54% 66%,62% 66%,62% 45%,68% 45%,68% 62%,76% 62%,76% 50%,82% 50%,82% 64%,90% 64%,90% 55%,96% 55%,96% 68%,100% 68%,100% 100%);
}
[data-category="city"] .scene-near {
  background: #0d0826;
  clip-path: polygon(0 100%,0 80%,8% 80%,8% 60%,16% 60%,16% 78%,24% 78%,24% 65%,32% 65%,32% 82%,40% 82%,40% 58%,48% 58%,48% 80%,56% 80%,56% 68%,64% 68%,64% 84%,72% 84%,72% 62%,80% 62%,80% 80%,88% 80%,88% 70%,96% 70%,96% 84%,100% 84%,100% 100%);
}

[data-category="lake"] .scene-sky { background: linear-gradient(180deg,#6ea8d8,#cfe8f0 60%,#e8f3e0); }
[data-category="lake"] .scene-far {
  background: linear-gradient(135deg,#7b93ab,#a9bfd4);
  clip-path: polygon(0 65%, 20% 45%, 40% 60%, 60% 40%, 80% 58%, 100% 48%, 100% 65%, 0 65%);
}
[data-category="lake"] .scene-near {
  background: linear-gradient(180deg,#3a6f8f,#20455c);
  clip-path: polygon(0 65%,100% 65%,100% 100%,0 100%);
  animation: waveShift 8s ease-in-out infinite alternate;
}

[data-category="desert"] .scene-sky { background: linear-gradient(180deg,#ffb85c,#ffdca0 60%,#f8efd0); }
[data-category="desert"] .scene-far {
  background: linear-gradient(135deg,#d99a4e,#e8b878);
  clip-path: polygon(0 100%,0 70%,30% 55%,55% 68%,80% 50%,100% 62%,100% 100%);
}
[data-category="desert"] .scene-near {
  background: linear-gradient(135deg,#b97632,#cf8f4a);
  clip-path: polygon(0 100%,0 85%,25% 72%,50% 86%,75% 68%,100% 82%,100% 100%);
}

[data-category="island"] .scene-sky { background: linear-gradient(180deg,#3ec6d6,#a6ecdc 55%,#f4f0c8); }
[data-category="island"] .scene-far {
  background: linear-gradient(180deg, transparent 60%, #e8dca0 60%);
}
[data-category="island"] .scene-near {
  background: linear-gradient(180deg, transparent 70%, #1fa9a0 70%, #0d7268 100%);
  animation: waveShift 5s ease-in-out infinite alternate;
}

[data-category="arctic"] .scene-sky { background: linear-gradient(180deg,#9fd2ea,#e8f6fb 60%,#ffffff); }
[data-category="arctic"] .scene-far {
  background: linear-gradient(135deg,#cfe8f2,#ffffff);
  clip-path: polygon(0 100%,0 65%,20% 50%,35% 66%,55% 45%,70% 64%,90% 52%,100% 62%,100% 100%);
}
[data-category="arctic"] .scene-near {
  background: linear-gradient(135deg,#aed6e8,#e2f4fa);
  clip-path: polygon(0 100%,0 80%,15% 65%,30% 80%,50% 60%,65% 80%,85% 66%,100% 78%,100% 100%);
}

.particle-snow, .particle-sand {
  width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .85;
  animation-name: fall; animation-timing-function: linear; animation-iteration-count: infinite;
}
.particle-sand { background: #e8c27a; width: 3px; height: 3px; }
.particle-leaf {
  width: 8px; height: 8px; background: #d98f3c; border-radius: 0 60% 0 60%;
  animation-name: fallSway; animation-timing-function: linear; animation-iteration-count: infinite;
}
.particle-star {
  width: 3px; height: 3px; background: #fff; border-radius: 50%; top: 8%;
  animation-name: twinkle; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
.particle-sparkle {
  width: 4px; height: 4px; background: #fff; border-radius: 50%; top: 30%; box-shadow: 0 0 6px #fff;
  animation-name: twinkle; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
.particle-mist {
  width: 140px; height: 40px; background: rgba(255,255,255,0.25); border-radius: 50%; top: 55%; filter: blur(6px);
  animation-name: drift; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
.particle-cloud {
  width: 90px; height: 26px; background: rgba(255,255,255,0.75); border-radius: 50px;
  animation-name: drift; animation-timing-function: linear; animation-iteration-count: infinite;
}

@keyframes fall { from { transform: translateY(-10%); } to { transform: translateY(115vh); } }
@keyframes fallSway { from { transform: translateY(-10%) translateX(0) rotate(0deg); } to { transform: translateY(115vh) translateX(var(--drift)) rotate(180deg); } }
@keyframes twinkle { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes drift { from { transform: translateX(-10vw); } to { transform: translateX(110vw); } }

.view-post { background: var(--bg); }
.back-btn {
  position: fixed; top: 90px; left: 24px; z-index: 20;
  background: var(--panel); color: var(--ink); border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
}
.post { width: 100%; margin: 0 0 80px; }
.post-hero { position: relative; width: 100%; height: 68vh; min-height: 380px; overflow: hidden; }
.post-hero-scene { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; }
.post-hero.settled .post-hero-scene { opacity: 1; }
.post-hero.settled .post-hero-scene .scene-far,
.post-hero.settled .post-hero-scene .scene-near {
  animation: kenBurns 16s ease-in-out infinite alternate;
}
.post-hero.settled .post-hero-scene .scene-near { animation-duration: 13s; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.08); } }
.post-hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.post-hero.settled .post-hero-photo { animation: kenBurns 18s ease-in-out infinite alternate; }
.post-hero-content {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 6vw;
  background: linear-gradient(to top, rgba(5,7,13,0.92), transparent);
}
.post-hero-content-inner { max-width: 900px; margin: 0 auto; }
.post-kicker { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; color: var(--accent); margin: 0 0 8px; }
.post-hero-content h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.post-meta { margin: 0; color: var(--ink-dim); }
.post-body { padding: 50px 6vw 0; line-height: 1.7; font-size: 1.08rem; color: #dfe3ee; }
.post-body-inner { max-width: 900px; margin: 0 auto; }
.post-body p { margin: 0 0 20px; }
.post-footer { padding: 0 6vw 50px; text-align: center; }

.boarding-pass-overlay {
  position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.boarding-pass-overlay.open { opacity: 1; pointer-events: auto; }
.boarding-pass-overlay-backdrop { position: absolute; inset: 0; background: rgba(5,7,13,0.78); backdrop-filter: blur(6px); }
.boarding-pass-overlay-panel {
  position: relative; max-width: 640px; width: 100%;
  transform: translateY(14px) scale(0.97); transition: transform 0.28s cubic-bezier(0.22,0.61,0.36,1);
}
.boarding-pass-overlay.open .boarding-pass-overlay-panel { transform: translateY(0) scale(1); }
.boarding-pass-overlay-close {
  position: absolute; top: -46px; right: 0; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); color: var(--ink);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.boarding-pass-overlay-close:hover { background: rgba(255,255,255,0.18); }
.boarding-pass-overlay .boarding-pass { padding: 0; }
@media (max-width: 640px) {
  .boarding-pass-overlay-close { top: -42px; }
}

.post-list-overlay {
  position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.post-list-overlay.open { opacity: 1; pointer-events: auto; }
.post-list-overlay-backdrop { position: absolute; inset: 0; background: rgba(5,7,13,0.78); backdrop-filter: blur(6px); }
.post-list-overlay-panel {
  position: relative; max-width: 520px; width: 100%; max-height: 80vh; overflow-y: auto;
  background: var(--panel); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; padding: 28px 26px;
  transform: translateY(14px) scale(0.97); transition: transform 0.28s cubic-bezier(0.22,0.61,0.36,1);
}
.post-list-overlay.open .post-list-overlay-panel { transform: translateY(0) scale(1); }
.post-list-overlay-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: var(--ink);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.post-list-overlay-close:hover { background: rgba(255,255,255,0.16); }
.post-list-kicker { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--accent); margin: 0 0 6px; }
.post-list-overlay-panel h2 { margin: 0 0 18px; font-size: 1.5rem; padding-right: 30px; }
.post-list { display: flex; flex-direction: column; gap: 10px; }
.post-list-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; color: var(--ink); font: inherit; transition: background 0.15s ease, border-color 0.15s ease;
}
.post-list-item:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); }
.post-list-icon { font-size: 1.5rem; flex-shrink: 0; }
.post-list-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.post-list-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.post-list-title { font-weight: 600; }
.post-list-excerpt { font-size: 0.85rem; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-list-empty { margin: 0; color: var(--ink-dim); font-size: 0.95rem; }

.boarding-pass { display: flex; justify-content: center; padding: 10px 0 30px; }
.bp-card {
  display: flex; width: 100%; max-width: 620px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45); font-family: inherit;
  background: var(--bp-bg); color: var(--bp-text);
}
.bp-main { flex: 1; padding: 26px 28px; min-width: 0; }
.bp-header { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.bp-plane { font-size: 1.3rem; }
.bp-airline-name { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
.bp-boarding-label {
  margin-left: auto; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem;
  color: var(--bp-accent); border: 1px solid var(--bp-accent); border-radius: 999px; padding: 4px 10px;
}
.bp-route { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.bp-place { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bp-place:last-child { text-align: right; margin-left: auto; }
.bp-code { font-size: 2rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1; }
.bp-place-label { font-size: 0.75rem; color: var(--bp-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.bp-place:last-child .bp-place-label { margin-left: auto; }
.bp-route-line { color: var(--bp-accent); font-size: 1.2rem; flex: 1; text-align: center; }
.bp-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; border-top: 1px dashed rgba(255,255,255,0.28); padding-top: 18px; }
.bp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bp-field:first-child { grid-column: 1 / -1; }
.bp-field-label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.65rem; color: var(--bp-sub); }
.bp-field-value { font-size: 0.95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-stub {
  width: 140px; flex-shrink: 0; padding: 26px 16px; display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center; background: rgba(0,0,0,0.16);
  border-left: 2px dashed rgba(255,255,255,0.32);
}
.bp-stub-row { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.05rem; }
.bp-stub .bp-code { font-size: 1.05rem; }
.bp-stub .bp-route-line { font-size: 0.9rem; flex: none; }
.bp-stub-flight, .bp-stub-seat { font-size: 0.75rem; color: var(--bp-sub); }
.bp-barcode {
  margin-top: auto; width: 100%; height: 34px;
  background-image: repeating-linear-gradient(90deg, var(--bp-text) 0 2px, transparent 2px 5px);
  opacity: 0.85;
}
@media (max-width: 640px) {
  .bp-card { flex-direction: column; }
  .bp-stub { width: auto; flex-direction: row; justify-content: space-between; border-left: none; border-top: 2px dashed rgba(255,255,255,0.32); padding: 16px 20px; }
  .bp-barcode { display: none; }
  .bp-fields { grid-template-columns: repeat(2, 1fr); }
}

.pill-btn {
  display: inline-block; background: var(--accent); color: #201200; text-decoration: none;
  padding: 10px 22px; border-radius: 999px; font-weight: 600; border: none; cursor: pointer;
}
.pill-btn:disabled {
  background: rgba(255,255,255,0.12); color: var(--ink-dim); cursor: not-allowed;
}
.pill-btn[hidden] { display: none; }

.view-about { display: none; padding: 140px 20px 60px; }
.view-about.active { display: flex; justify-content: center; }
.about-card {
  max-width: 620px; background: var(--panel); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 40px; text-align: left;
}
.about-photo { font-size: 3.5rem; margin-bottom: 10px; }
.about-card p { color: var(--ink-dim); line-height: 1.7; }
.about-card h2 { margin: 24px 0 8px; font-size: 1.05rem; color: var(--accent-2); }
.about-card h2:first-of-type { margin-top: 20px; }
.about-card ul { color: var(--ink-dim); line-height: 1.7; margin: 0 0 16px; padding-left: 20px; }
.about-card li { margin-bottom: 6px; }
.about-card .pill-btn { margin-top: 10px; }

.view-travel { display: none; padding: 140px 20px 60px; }
.view-travel.active { display: flex; justify-content: center; }
.travel-wrap { max-width: 640px; width: 100%; }
.travel-intro { color: var(--ink-dim); line-height: 1.6; margin: 0 0 14px; }
.travel-cost-note {
  background: rgba(79, 209, 197, 0.1); border: 1px solid rgba(79, 209, 197, 0.3);
  border-radius: 10px; padding: 12px 16px; color: var(--ink-dim); font-size: 0.9rem;
  line-height: 1.6; margin: 0 0 26px;
}
.travel-tabs { display: flex; gap: 10px; margin-bottom: 26px; }
.travel-tab {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: var(--ink-dim);
  padding: 10px 20px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600;
  transition: all .2s ease;
}
.travel-tab:hover { background: rgba(255,255,255,0.12); }
.travel-tab.active { background: var(--accent); color: #201200; border-color: var(--accent); }
.travel-tab.community-tab.active { background: var(--community); color: #fff; border-color: var(--community); }
.travel-panel { display: none; }
.travel-panel.active { display: block; }

.hike-list { display: flex; flex-direction: column; gap: 18px; }
.hike-card {
  background: var(--panel); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 26px;
}
.hike-details-row { display: flex; gap: 24px; align-items: center; }
.hike-details-row > .hike-meta,
.hike-details-row > .hike-ended-info { flex: 1 1 auto; min-width: 0; }
.hike-card-route { flex: 0 0 auto; width: 200px; }
.hike-route-svg { display: block; width: 100%; height: auto; color: var(--accent); }
@media (max-width: 560px) {
  .hike-details-row { flex-direction: column; align-items: stretch; }
  .hike-card-route { width: 100%; max-width: 260px; align-self: center; }
}
.hike-card h3 { margin: 0; font-size: 1.2rem; }
.hike-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.hike-card-title { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hike-share-btn {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; margin-top: 2px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  color: var(--ink-dim); cursor: pointer; transition: all .2s ease;
}
.hike-share-btn:hover { background: rgba(255,255,255,0.12); color: var(--ink); }
.hike-share-btn.copied { background: var(--accent); color: #201200; border-color: var(--accent); }
.hike-card.hike-highlight { animation: hike-highlight-pulse 2s ease; }
@keyframes hike-highlight-pulse {
  0% { box-shadow: 0 0 0 2px var(--accent); }
  100% { box-shadow: 0 0 0 2px transparent; }
}
.hike-desc { color: var(--ink-dim); line-height: 1.6; margin: 0 0 18px; }
.hike-meta { display: flex; flex-wrap: wrap; flex-direction: column; gap: 8px 24px; margin: 0 0 20px; font-size: 0.88rem; color: var(--ink-dim); list-style: none; padding: 0; }
.hike-meta li { display: flex; align-items: center; gap: 6px; }
.hike-meta strong { color: var(--ink); font-weight: 600; }
.hike-rescheduled-badge {
  font-size: 0.68rem; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; font-weight: 700;
  background: var(--accent); color: #3a2900;
}
.hike-date-old { color: var(--ink-dim); opacity: 0.8; }

.hike-card-ended { background: rgba(255,255,255,0.03); }

.hike-finished-section { margin-top: 4px; }
.hike-finished-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 16px 22px; font: inherit; font-weight: 600;
  color: var(--ink-dim); cursor: pointer; text-align: left; transition: background .2s ease, color .2s ease;
}
.hike-finished-toggle:hover { background: rgba(255,255,255,0.08); color: var(--ink); }
.hike-finished-label { flex: 1 1 auto; }
.hike-toggle-chevron { flex: 0 0 auto; font-size: 0.8em; transition: transform .2s ease; }
.hike-finished-toggle[aria-expanded="true"] .hike-toggle-chevron { transform: rotate(90deg); }
.hike-ended-badge {
  flex: 0 0 auto; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-dim); background: rgba(255,255,255,0.08); border-radius: 999px; padding: 3px 10px;
}
.hike-finished-body { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.hike-finished-body[hidden] { display: none; }
.hike-ended-note { font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.hike-attendees { color: var(--ink-dim); font-size: 0.9rem; margin: 0 0 16px; }
.hike-photo-toggle { margin-top: 4px; }
.hike-group-photo { margin-top: 16px; border-radius: var(--radius); overflow: hidden; }
.hike-group-photo[hidden] { display: none; }
.hike-group-photo img { width: 100%; height: auto; display: block; border-radius: var(--radius); }

.travel-form, .hike-rsvp-form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.travel-form[hidden] { display: none; }
.travel-form h2 { margin: 10px 0 0; font-size: 1.05rem; color: var(--accent-2); }
.travel-form h2:first-child { margin-top: 0; }
.travel-form label, .hike-rsvp-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--ink-dim); }
.travel-form input, .travel-form select, .travel-form textarea,
.hike-rsvp-form input {
  background: #171b2b; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  color: var(--ink); padding: 10px 12px; font: inherit;
}
.travel-form-note { color: var(--ink-dim); font-size: 0.82rem; margin-top: 12px; max-width: 480px; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.hike-rsvp-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); }
.hike-rsvp-form[hidden] { display: none; }
.hike-card .form-row { display: flex; gap: 12px; }
.hike-card .form-row label { flex: 1; }
.hike-rsvp-closed-note { color: var(--ink-dim); font-size: 0.85rem; margin: 8px 0 0; }

.travel-status { font-size: 0.88rem; margin: 4px 0 0; }
.travel-status.success { color: var(--planned); }
.travel-status.error { color: #ff8a7c; }

.community-host-hike-banned { color: #ff8a7c; font-size: 0.88rem; margin: 8px 0 0; }

.community-region-group { margin-bottom: 34px; }
.community-region-group h2 { font-size: 1.1rem; color: var(--accent-2); margin: 0 0 14px; }

.community-subregion-group { margin-bottom: 22px; }
.community-subregion-group:last-child { margin-bottom: 0; }
.community-subregion-group h3 { font-size: 0.88rem; color: var(--ink-dim); margin: 0 0 10px; padding-left: 2px; }

.community-hike-host { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.community-hike-host-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.community-hike-host-info { display: flex; flex-direction: column; gap: 2px; }
.community-hike-host-name { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.community-hike-host-social {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; color: var(--accent-2); text-decoration: none;
}
.community-hike-host-social:hover { text-decoration: underline; }
.community-hike-host-social svg { flex: 0 0 auto; }

.community-hike-cancelled { opacity: 0.7; border-color: rgba(255,59,48,0.3); }
.community-hike-cancel-reason { color: var(--ink-dim); font-style: italic; margin: 0; }
.community-hike-modified-badge {
  font-size: 0.68rem; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; font-weight: 700;
  background: var(--accent); color: #3a2900; margin-left: 10px; vertical-align: middle;
}

.community-auth-panel { background: var(--panel); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 26px; margin-bottom: 34px; }
.community-cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--community), var(--community-2));
  border-radius: var(--radius); padding: 20px 26px; margin-bottom: 34px;
}
.community-cta-panel p { margin: 0; color: #fff; font-weight: 600; }
.community-cta-panel .pill-btn { background: #fff; color: var(--community); flex: 0 0 auto; }
.community-auth-tab {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: var(--ink-dim);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600;
  transition: all .2s ease;
}
.community-auth-tab:hover { background: rgba(255,255,255,0.12); }
.community-auth-tab.active { background: var(--accent); color: #201200; border-color: var(--accent); }
.community-auth-panel > .travel-tabs { margin-bottom: 18px; }
.community-auth-panel .travel-form { margin: 0 auto; }

.community-hike-status-pill { font-size: 0.7rem; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.community-hike-status-pill.pending { background: rgba(255,255,255,0.12); color: var(--ink-dim); }
.community-hike-status-pill.approved { background: var(--planned); color: #04211d; }
.community-hike-status-pill.rejected { background: var(--live); color: #fff; }
.community-hike-status-pill.cancelled { background: rgba(255,255,255,0.12); color: var(--ink-dim); }

.community-profile-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.community-profile-summary-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.community-profile-summary-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--community); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.community-profile-summary-info { display: flex; flex-direction: column; gap: 2px; }
.community-profile-summary-info .field-hint { margin: 0; }
.community-profile-summary-actions { display: flex; gap: 12px; margin-left: auto; }

.community-my-hike-row {
  background: var(--panel); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 12px;
}
.community-my-hike-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.community-my-hike-name { font-weight: 600; }
.community-my-hike-actions { margin-top: 10px; }
.community-my-hike-row .travel-form { margin: 10px 0 0; max-width: none; }

.travel-form input:disabled { opacity: 0.6; cursor: not-allowed; }
.travel-form .field-hint { color: var(--ink-dim); font-size: 0.82rem; margin: -6px 0 0; }
.travel-wrap > .field-hint { color: var(--ink-dim); font-size: 0.82rem; margin: 0 0 16px; }
.inline-link { background: none; border: none; padding: 0; margin: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.travel-form fieldset { border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.travel-form legend { font-size: 0.8rem; color: var(--ink-dim); padding: 0 4px; }
.travel-form label.community-checkbox-label { flex-direction: row; align-items: center; gap: 8px; }
.community-photo-preview img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 4px; }

.community-danger-zone { max-width: 480px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.community-danger-zone h2 { margin: 0 0 8px; font-size: 1rem; color: var(--live); }
.community-danger-zone .field-hint { color: var(--ink-dim); font-size: 0.82rem; margin: 0 0 10px; }
.community-danger-zone input {
  width: 100%; background: #171b2b; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  color: var(--ink); padding: 10px 12px; font: inherit;
}
#community-delete-account-confirm { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
#community-delete-account-confirm[hidden] { display: none; }
.text-btn-danger { color: #ff8a7c; }
.pill-btn-danger { background: var(--live); color: #fff; }
.pill-btn-danger:disabled { background: rgba(255,255,255,0.12); color: var(--ink-dim); cursor: not-allowed; }
.text-btn {
  background: none; border: none; color: var(--ink-dim); text-decoration: underline;
  cursor: pointer; font: inherit; padding: 10px 4px;
}
.text-btn:hover { color: var(--ink); }

.form-row { display: flex; gap: 12px; }
.form-row label { flex: 1; }

@media (max-width: 720px) {
  .view-globe.active {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
  }
  .globe-stage { flex: 1 1 auto; min-height: 0; height: auto; }

  .globe-footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
  }

  .legend {
    position: static;
    width: 100%;
    transform: none;
    border-radius: 0;
    border-left: none; border-right: none; border-bottom: none;
    animation: none;
    padding: 10px 14px;
    gap: 12px;
    font-size: 0.8rem;
  }

  .globe-intro-wrap {
    position: static;
    max-width: none;
    max-height: 34vh;
    overflow-y: auto;
    margin: 0;
    transform: none;
    pointer-events: auto;
    animation: none;
  }
  .globe-intro {
    background: var(--panel);
    border: none; border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 16px 20px;
  }
  .globe-intro-icon { width: 28px; height: 28px; font-size: 1rem; margin-bottom: 8px; }
  .globe-intro h1 { font-size: 1.3rem; margin-bottom: 6px; }
  .globe-intro p { font-size: 0.85rem; }

  .countries-panel {
    top: 90px; left: 50%; right: auto; transform: translateX(-50%);
    width: calc(100vw - 20px); max-width: calc(100vw - 20px);
  }
  .countries-list { max-height: 38vh; }

  .site-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }
  .brand { font-size: 1rem; }
  .brand-text { font-size: 0.88rem; }
  .site-nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px; }
  .nav-link { padding: 7px 13px; font-size: 0.82rem; }
  .header-login-btn { padding: 7px 15px; font-size: 0.82rem; }
  .header-avatar-btn { width: 34px; height: 34px; }

  .back-btn { top: 96px; left: 14px; padding: 8px 14px; font-size: 0.85rem; }
  .post-hero-content, .post-body, .post-footer { padding: 24px; }
  .post-hero { height: 56vh; }

  .view-about, .view-travel { padding: 118px 16px 48px; }
  .about-card { padding: 26px; }

  .form-row { flex-direction: column; gap: 14px; }
  .hike-card { padding: 20px; }
}
