/* ═══════════════════════════════════════════════════════════════════════════
   NOYA GLASSMORPHISM DESIGN SYSTEM v2.0
   Background layer + glass panels + new card system
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Questrial&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --fog-grey:     #f2eeea;
  --deep-moss:    #006c35;
  --soft-sage:    #aab9a2;
  --living-moss:  #4a694a;
  --bio-mass:     #d9ff3d;
  --bg-dark:      #0d1a0e;
  --text-primary: #0d1a0e;
  --text-muted:   #8a9a8a;

  /* Glass panel */
  --glass-bg:        rgba(170, 185, 162, 0.72);
  --glass-bg-strong: rgba(170, 185, 162, 0.88);
  --glass-border:    rgba(74, 105, 74, 0.15);
  --glass-shadow:    0 8px 32px rgba(13, 26, 14, 0.12);
  --glass-blur:      blur(20px);
  --glass-blur-sm:   blur(12px);

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-pill: 100px;

  --bottom-nav-h: 72px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* WHY overscroll-behavior-y: auto restores soft iOS elastic bounce so the
   page feels springy when scrolling to edges. The -200px margin on .list-section
   and .place-content-rounded clips any overflow without suppressing bounce. */
html { scroll-behavior: smooth; overscroll-behavior-y: auto; }
::selection { background: var(--bio-mass); color: var(--bg-dark); }

/* ── Base body ────────────────────────────────────────────────────────────── */
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: var(--bottom-nav-h);
  position: relative;
}

h1, h2, h3, h4, h5, h6,
.section-title, .section-label,
.spot-name, .drc-name, .dsc-name,
.search-logo, .nav-logo, .place-title,
.form-title, .hero-headline,
.card-title, .lc-name, .header-title {
  font-family: 'Questrial', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3-LAYER PARALLAX BACKGROUND SYSTEM
   Base: soft sage #aab9a2 solid color behind everything
   Layer 1 (furthest): blurred far PNG — slowest parallax
   Layer 2 (middle):   blurred mid PNG — medium parallax
   Layer 3 (front):     frosted glass — static, no parallax
   ═══════════════════════════════════════════════════════════════════════════ */

/* Base sage color behind everything */
body {
  background-color: #f2eeea;
}

/* Wrapper that holds the fixed BG layers */
.noya-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  /* Base sage color */
  background: #f2eeea;
}

/* Layer 1 — far image, 40% blur, slow parallax (speed 0.3) */
.noya-bg-image {
  position: absolute;
  inset: 20% 0 -40% 0; /* pushes image down so ~60% of viewport above fold is cream background */
  background-image: url('https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/company_109071/images/6aab42cc-d297-436f-9628-4b7e501c5e08.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  filter: blur(9px);
  /* Smooth transition on layer reset */
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Layer 2 — mid image, 20% blur, medium parallax (speed 0.6) */
.noya-bg-mid {
  position: absolute;
  inset: 45% 0 -20% 0; /* positioned lower than far layer, more recessive */
  background-image: url('https://pub-629428d185ca4960a0a73c850d32294b.r2.dev/company_109071/images/b6ae2cde-9bdd-44a5-ba9c-94d501a58f99.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  filter: blur(4px);
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Glass layers between parallax layers — backdrop-filter frosted glass effect */
/* Glass Layer 2: between far back (noya-bg-image) and mid back (noya-bg-mid) */
.glass-layer-2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(170,185,162,0.20);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  z-index: 1;
  pointer-events: none;
}

/* Glass Layer 1: between mid back (noya-bg-mid) and NOYA spacer */
.glass-layer-1 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(170,185,162,0.10);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  z-index: 2;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APPLE-STYLE GLASS WARP EFFECT
   Subtle perspective transform on glass panels so content behind the glass
   appears to bend/warp — not a blur artifact, an optical distortion.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Warp wrapper — apply to any glassmorphism element.
   transform-origin: center top keeps the perspective feeling natural
   (glass bends from the top down like a real pane). */
.glass-warp {
  transform: perspective(900px) rotateX(0.4deg);
  transform-origin: center top;
}

/* Reduce the warp intensity on small elements */
.glass-panel-glass.glass-warp {
  transform: perspective(600px) rotateX(0.3deg);
}

/* Small glassmorphism elements (cards, pills) — lighter warp */
.glass-panel.glass-warp,
.glass-panel-strong.glass-warp,
.noya-content-glass.glass-warp {
  transform: perspective(800px) rotateX(0.35deg);
}

/* Bottom nav and header — same warp as card panels */
.sticky-header.glass-warp,
.bnp-pill.glass-warp {
  transform: perspective(800px) rotateX(0.35deg);
}

/* Category placeholders — very subtle */
.cat-placeholder.glass-warp {
  transform: perspective(500px) rotateX(0.25deg);
}

/* Apple-style global glass warp — subtle optical distortion on all panels */
.glass-panel,
.glass-panel-strong,
.glass-panel-glass,
.noya-content-glass {
  transform: perspective(800px) rotateX(0.4deg);
  transform-origin: center top;
}

/* Larger page-level elements get a stronger perspective */
.explore-header,
.place-top-nav,
.cta-bar {
  transform: perspective(1000px) rotateX(0.35deg);
  transform-origin: center top;
}

/* Nested / smaller glass elements — very light warp */
.glass-layer-1,
.glass-layer-2,
.stat-chip,
.place-detail-block {
  transform: perspective(400px) rotateX(0.25deg);
  transform-origin: center top;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYER 3 — DECORATIVE NOYA PNG (bottom-right, one random per page load)
   ═══════════════════════════════════════════════════════════════════════════ */

/* 2x size, bottom-anchored, positioned at ~60% from left edge (not far-right)
   z-index 0 ensures it is ALWAYS behind all text and interactive elements.
   Article content / body are z-index 2+, so deco at 0 is reliably below them. */
.noya-deco {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  left: 60%;
  margin-left: clamp(-260px, -28vw, -140px);
  z-index: 0;
  width: clamp(280px, 56vw, 520px);
  height: auto;
  pointer-events: none;
  user-select: none;
  /* Lazy load: opacity fade in */
  opacity: 0;
  transition: opacity 0.5s ease;
  /* GPU-composited layer for gyro performance */
  will-change: transform;
  transform: translate(0, 0);
  /* Subtle depth cue — very light blur so the deco sits slightly behind content */
  filter: blur(0.5px);
}

/* PNG alpha channel handles transparency — no CSS opacity reduction needed */
.noya-deco.loaded { opacity: 1; }

/* On mobile, gyro JS drives translateX/Y; on desktop mouse parallax drives it */
/* Keep transform snappy with a short transition that JS can override */
.noya-deco.gyro-active {
  transition: opacity 0.5s ease, transform 0.15s linear;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTENT LAYER — sits ON TOP of decorative Noya (z-index 2 > deco z-index 1)
   Each page's main wrapper gets .noya-content to stack above the deco PNG.
   Individual content panels get glassmorphism for the frosted fog-grey look.
   ═══════════════════════════════════════════════════════════════════════════ */

.noya-content {
  position: relative;
  z-index: 2;
}

/* Glassmorphism applied to content panels — frosted fog-grey */
.noya-content-glass {
  background: rgba(242, 238, 234, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(74, 105, 74, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(13, 26, 14, 0.06);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLASS CARD SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */

/* Base glass panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
}

/* Stronger glass for headers/nav */
.glass-panel-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEW SPOT CARD — glassmorphism treatment
   Structure:
   - Card wrapper: glass panel
   - Top-right: category pill
   - Image fills card (with placeholder icon per category)
   - Bottom-left: vibe text in glass overlay
   - Bottom-right: chevron action button
   ═══════════════════════════════════════════════════════════════════════════ */

/* Cards — light cream grey #f2eeea glassmorphism per spec */
.ng-card {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  display: block;
  background: rgba(242, 238, 234, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(13, 26, 14, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
              box-shadow 0.28s ease;
  scroll-snap-align: start;
  height: 240px;
}

.ng-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 16px 40px rgba(13, 26, 14, 0.16);
}

/* The background image fills the whole card — top-aligned so treetops/sky always visible */
.ng-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease, opacity 0.4s ease;
  z-index: 0;
}

.ng-card:hover .ng-card-bg {
  transform: scale(1.06);
}

/* Category icon placeholder (shown before real photo loads) — top-aligned */
.ng-card-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* REMOVED: .ng-card-grad gradient overlay — was adding rogue dark wash over card images.
   Text panel now has its own glassmorphism instead. */

/* Category pill — top-right (used on retreat cards; hidden on .ng-card which uses ng-card-name-overlay) */
.ng-cat-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(242, 238, 234, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 105, 74, 0.22);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-family: 'Nunito', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--living-moss);
}

/* On nearby spot cards, category pill is superseded by the name overlay label */
.ng-card .ng-cat-pill { display: none; }
.ng-retreat-card .ng-cat-pill { display: none; }

/* ── NEW CARD LAYOUT — editorial corners, no bottom text panel ──────────────
   Name + category label: top-LEFT
   Signal pill: bottom-left
   Arrow button: bottom-right
   No opaque bottom panel — image IS the card.
   ───────────────────────────────────────────────────────────────────────── */

/* Spot name — top-left, large editorial light-grey text, no shadow */
.ng-card-name-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  text-align: left;
  max-width: 72%;
  pointer-events: none;
}

.ng-name {
  font-family: 'Questrial', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: rgba(230, 230, 230, 0.95);
  line-height: 1.15;
  text-shadow: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}

/* Category label sits just below the name, top-left */
.ng-card-cat-label {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-shadow: none;
  background: rgba(13, 26, 14, 0.28);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
}

/* Signal + distance — bottom-left compact frosted pill, vertically centered */
.ng-card-sig-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(242, 238, 234, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  height: 24px;
}

.ng-card-sig-pill .ng-sig {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  line-height: 1;
}

.ng-card-dist {
  font-family: 'Questrial', sans-serif;
  font-size: 9px;
  color: rgba(13,26,14,0.6);
  white-space: nowrap;
  line-height: 1;
}

/* Vibe text — hidden on cards (no vibe line per spec) */
.ng-vibe-box { display: none; }

/* Legacy .ng-card-bottom kept but emptied — card HTML still references it for retreat card compat */
.ng-card-bottom {
  display: none;
}

.ng-vibe {
  font-size: 10px;
  color: rgba(13, 26, 14, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* Arrow action button — bottom-right, same height as signal pill (24px) */
.ng-arrow-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 6;
  width: 24px;
  height: 24px;
  background: rgba(217, 255, 61, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--bg-dark);
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(13,26,14,0.18);
}

.ng-card:hover .ng-arrow-btn,
.ng-retreat-card:hover .ng-arrow-btn {
  background: var(--bio-mass);
  transform: scale(1.12) translateX(1px);
}

/* Signal indicator row — legacy, kept for explore.html list cards */
.ng-sig-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

/* .ng-sig is a flex row so bars align at their bottom edges */
.ng-sig {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.ng-sig span {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: rgba(74, 105, 74, 0.2);
}

.ng-sig span.on { background: var(--living-moss); }
.ng-sig span:nth-child(1) { height: 3px; }
.ng-sig span:nth-child(2) { height: 5px; }
.ng-sig span:nth-child(3) { height: 7px; }
.ng-sig span:nth-child(4) { height: 9px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY PLACEHOLDER ICONS — SVG data URIs per category
   ═══════════════════════════════════════════════════════════════════════════ */

/* Soft green glassmorphism behind all place images */
.cat-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  background: rgba(170, 185, 162, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Category-specific placeholder classes — all use the base soft green glass */
.cat-placeholder-parks,
.cat-placeholder-forest,
.cat-placeholder-lakes,
.cat-placeholder-water,
.cat-placeholder-temples,
.cat-placeholder-cafes,
.cat-placeholder-retreats,
.cat-placeholder-cabins,
.cat-placeholder-thermal,
.cat-placeholder-meditation,
.cat-placeholder-stone,
.cat-placeholder-gardens,
.cat-placeholder-crystals,
.cat-placeholder-default { background: rgba(170, 185, 162, 0.35); }

/* ═══════════════════════════════════════════════════════════════════════════
   LARGER RETREAT CARD (nosignal section)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Retreat card — light cream #f2eeea glassmorphism */
.ng-retreat-card {
  flex-shrink: 0;
  width: 240px;
  height: 290px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  display: block;
  background: rgba(242, 238, 234, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 28px rgba(13, 26, 14, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.28s ease;
  scroll-snap-align: start;
}

.ng-retreat-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 18px 44px rgba(13, 26, 14, 0.16);
}

/* .ng-retreat-card .ng-cat-pill hidden via rule above — no need for pill styling */

/* Nosignal badge — top-left */
.ng-nosig-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background: rgba(242, 238, 234, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(74, 105, 74, 0.22);
  border-radius: var(--radius-pill);
  padding: 3px 9px 3px 7px;
  font-family: 'Nunito', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--living-moss);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ng-nosig-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--living-moss);
  animation: nosig-pulse 2.5s ease-in-out infinite;
}

@keyframes nosig-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardReveal {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.38; transform: scale(0.68); }
}

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

@keyframes perlinDrift {
  0%   { transform: scale(1.0) translate(0%, 0%); }
  25%  { transform: scale(1.08) translate(-1.5%, 1%); }
  50%  { transform: scale(1.05) translate(1%, -1.5%); }
  75%  { transform: scale(1.1) translate(-0.5%, 0.8%); }
  100% { transform: scale(1.0) translate(0%, 0%); }
}

@keyframes perlinFade {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

/* Card reveal class */
.card-revealed {
  animation: cardReveal 0.35s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}

/* ─── Fly animation (optical zoom — transform-based, see place.html) ─── */
/* Legacy: kept for pages that still reference fly-active via noya-fly.js.
   The new noya-fly.js uses body.fly-zooming-in / fly-zooming-out classes instead. */

/* ═══════════════════════════════════════════════════════════════════════════
   STICKY HEADER — minimal top bar (logo left, profile icon right)
   ═══════════════════════════════════════════════════════════════════════════ */

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent;
}

/* Flush left/right on desktop to match bottom pill edge-to-edge alignment */
.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

/* Glassmorphism pills for header — matches bottom nav style */
.header-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 238, 234, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(13, 26, 14, 0.14), inset 0 1px 0 rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.2s;
}

.header-pill-logo {
  padding: 10px 20px;
  font-family: 'Questrial', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.header-pill-logo:hover { background: rgba(242, 238, 234, 0.95); }

.header-pill-profile {
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.header-pill-profile:hover { background: rgba(242, 238, 234, 0.95); }

.header-pill-profile svg {
  width: 20px; height: 20px;
  stroke: rgba(13, 26, 14, 0.65);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Active filter row — shows current search term */
.active-filter-row {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 0 8px;
}

.active-filter-row.visible { display: flex; }

.active-filter-text {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--deep-moss);
  background: rgba(170, 185, 162, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.active-filter-clear {
  width: 24px; height: 24px;
  border: none;
  background: rgba(13, 26, 14, 0.08);
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(13, 26, 14, 0.5);
  transition: background 0.15s;
}

.active-filter-clear:hover { background: rgba(13, 26, 14, 0.15); }

/* Search suggestions dropdown — positioned above bottom pills */
.bnp-dropdown {
  display: none;
  position: absolute;
  bottom: 62px;
  right: 20px;
  width: min(300px, calc(100vw - 60px));
  background: rgba(242, 238, 234, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(13, 26, 14, 0.18);
  padding: 6px;
  pointer-events: all;
  z-index: 210;
}

.bnp-dropdown.visible { display: block; }

.bnp-dropdown .sdi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.bnp-dropdown .sdi:hover,
.bnp-dropdown .sdi.focused { background: rgba(170, 185, 162, 0.25); }

.bnp-dropdown .sdi-icon { font-size: 14px; flex-shrink: 0; }
.bnp-dropdown .sdi-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.bnp-dropdown .sdi-hint { font-size: 12px; color: rgba(13, 26, 14, 0.45); margin-left: auto; }

/* ═══════════════════════════════════════════════════════════════════════════
   BOTTOM NAV — two glassmorphism pill system with animated search expansion
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hide old bottom-nav if still present */
.bottom-nav {
  display: none;
}

/* Bottom pill container — fixed, sits above safe area */
.bnp-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px calc(16px + env(safe-area-inset-bottom, 0px)) 20px;
  z-index: 200;
  pointer-events: none;
}

/* Both pills share this base */
.bnp-pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(242, 238, 234, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(13, 26, 14, 0.14), inset 0 1px 0 rgba(255,255,255,0.5);
  pointer-events: all;
  overflow: hidden;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              gap 0.32s ease;
  height: 52px;
  white-space: nowrap;
}

/* LEFT PILL — Home + Favorites (favorites hidden when search active) */
.bnp-left {
  padding: 0 6px;
  gap: 2px;
}

.bnp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, opacity 0.28s ease, width 0.28s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.bnp-btn:hover { background: rgba(74, 105, 74, 0.1); }
.bnp-btn.active { background: rgba(74, 105, 74, 0.12); }

.bnp-btn svg {
  width: 20px;
  height: 20px;
  stroke: rgba(13, 26, 14, 0.65);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke 0.18s;
}

.bnp-btn.active svg { stroke: var(--living-moss); }

/* Favorites button — collapses when search is active */
.bnp-fav-btn {
  opacity: 1;
  width: 40px;
  transition: opacity 0.28s ease, width 0.28s ease, padding 0.28s ease;
  padding: 0;
}

/* RIGHT PILL — Search icon that expands into input */
.bnp-right {
  padding: 0 6px;
  width: 52px;
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Search input inside expanded right pill
   16px font-size prevents iOS auto-zoom on input focus */
.bnp-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 0 0 8px;
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease 0.08s, width 0.32s ease;
  min-width: 0;
}

.bnp-search-input::placeholder { color: rgba(13, 26, 14, 0.35); }

/* SEARCH ACTIVE STATE */
.bnp-container.search-active .bnp-right {
  width: min(260px, calc(100vw - 130px));
  padding: 0 12px 0 6px;
}

.bnp-container.search-active .bnp-search-input {
  width: 100%;
  opacity: 1;
  pointer-events: all;
}

/* Favorites collapses to zero */
.bnp-container.search-active .bnp-fav-btn {
  opacity: 0;
  width: 0;
  pointer-events: none;
}

/* body padding accounts for pill nav height */
body { padding-bottom: calc(var(--bottom-nav-h) + 8px); }


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 12px;
}

.section-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--living-moss);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.section-link:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   HORIZONTAL SCROLL TRACK
   ═══════════════════════════════════════════════════════════════════════════ */

/* Row-level scroll track — no background, no compositing artifacts.
   Removed -webkit-overflow-scrolling: touch (deprecated, creates separate
   compositing layer that causes visible backdrop-filter boundary artifacts). */
.h-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  background: transparent;
  border: none;
  box-shadow: none;
  /* Remove compositing-layer edge by forcing hardware compositing into parent layer.
     Prevents transparent divider line that appears at overflow-x: auto boundary. */
  transform: translateZ(0);
  will-change: scroll-position;
}

.h-track::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   SKELETON / LOADING STATE
   ═══════════════════════════════════════════════════════════════════════════ */

.ng-card-skel {
  flex-shrink: 0;
  width: 200px;
  height: 240px;
  border-radius: var(--radius-xl);
  scroll-snap-align: start;
  background: linear-gradient(90deg,
    rgba(74, 105, 74, 0.12) 0%,
    rgba(74, 105, 74, 0.22) 50%,
    rgba(74, 105, 74, 0.12) 100%);
  background-size: 600px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border: 1px solid rgba(74, 105, 74, 0.08);
}

.ng-retreat-skel {
  flex-shrink: 0;
  width: 240px;
  height: 290px;
  border-radius: var(--radius-xl);
  scroll-snap-align: start;
  background: linear-gradient(90deg,
    rgba(74, 105, 74, 0.12) 0%,
    rgba(74, 105, 74, 0.22) 50%,
    rgba(74, 105, 74, 0.12) 100%);
  background-size: 600px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border: 1px solid rgba(74, 105, 74, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOW ALL CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.show-all-card {
  flex-shrink: 0;
  width: 140px;
  min-height: 240px;
  border-radius: var(--radius-xl);
  border: 1.5px dashed rgba(74, 105, 74, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  background: rgba(74, 105, 74, 0.06);
  scroll-snap-align: start;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.show-all-card:hover {
  border-color: rgba(74, 105, 74, 0.55);
  background: rgba(74, 105, 74, 0.12);
}

.show-all-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(74, 105, 74, 0.15);
  border: 1.5px solid rgba(74, 105, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.show-all-label {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--living-moss);
  text-align: center;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOCATION ROW
   ═══════════════════════════════════════════════════════════════════════════ */

.location-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0 4px;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(74, 105, 74, 0.1);
  border: 1px solid rgba(74, 105, 74, 0.18);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--living-moss);
  transition: all 0.2s;
}

.location-pill:hover { background: rgba(74, 105, 74, 0.18); }

.loc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bio-mass);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.loc-dot.loading { background: rgba(74, 105, 74, 0.4); animation: none; }
.loc-dot.dim { background: rgba(74, 105, 74, 0.4); animation: none; }

.loc-btn {
  font-size: 12px;
  font-weight: 700;
  color: rgba(13, 26, 14, 0.4);
  background: transparent;
  border: 1px solid rgba(74, 105, 74, 0.16);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.loc-btn:hover { border-color: rgba(74, 105, 74, 0.35); color: var(--living-moss); }
.loc-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY TABS / FILTER PILLS
   ═══════════════════════════════════════════════════════════════════════════ */

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px 10px;
  scrollbar-width: none;
  max-width: 860px;
  margin: 0 auto;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(74, 105, 74, 0.2);
  color: rgba(13, 26, 14, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cat-pill:hover {
  border-color: rgba(74, 105, 74, 0.4);
  color: var(--bg-dark);
}

.cat-pill.active {
  background: var(--living-moss);
  border-color: var(--living-moss);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 16px;
}

.search-logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--bg-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-icon-svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  stroke: rgba(13, 26, 14, 0.4);
  fill: none;
  pointer-events: none;
  transition: stroke 0.2s;
}

.search-input-wrap.searching .search-icon-svg {
  animation: spin 0.8s linear infinite;
  stroke: var(--living-moss);
}

.search-input {
  width: 100%;
  background: rgba(13, 26, 14, 0.07);
  border: 1.5px solid rgba(74, 105, 74, 0.18);
  border-radius: var(--radius-pill);
  padding: 10px 16px 10px 40px;
  font-family: 'Questrial', sans-serif;
  font-size: 14px;
  color: var(--bg-dark);
  outline: none;
  transition: all 0.2s ease;
}

.search-input::placeholder { color: rgba(13, 26, 14, 0.35); }

.search-input:focus {
  background: rgba(13, 26, 14, 0.10);
  border-color: rgba(74, 105, 74, 0.38);
}

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: rgba(242, 238, 234, 0.96);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(74, 105, 74, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 300;
  display: none;
  animation: fadeInUp 0.16s ease;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.search-dropdown.visible { display: block; }

.sdi {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(74, 105, 74, 0.1);
  text-decoration: none;
  transition: background 0.14s;
}

.sdi:last-child { border-bottom: none; }
.sdi:hover, .sdi.focused { background: rgba(74, 105, 74, 0.08); }

.sdi-icon { font-size: 15px; flex-shrink: 0; }
.sdi-name { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
.sdi-hint { font-size: 10px; color: rgba(13, 26, 14, 0.4); }

/* Active filter pill */
.active-filter-row {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 0;
  max-width: 860px;
  margin: 0 auto;
}

.active-filter-row.visible { display: flex; }

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 105, 74, 0.1);
  border: 1.5px solid var(--living-moss);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--living-moss);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.active-filter-clear {
  background: none;
  border: none;
  color: rgba(74, 105, 74, 0.5);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}

.active-filter-clear:hover { color: var(--living-moss); }

/* ═══════════════════════════════════════════════════════════════════════════
   EXPLORE PAGE — LIST CARD
   ═══════════════════════════════════════════════════════════════════════════ */

/* Explore list card — horizontal row: portrait image left, text right */
.ng-list-card {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  color: inherit;
  /* List view item placeholder: light cream grey glassmorphism */
  background: rgba(242, 238, 234, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 12px rgba(13, 26, 14, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  align-items: stretch;
}

.ng-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 26, 14, 0.12);
}

.ng-list-card.highlighted .nlc-photo {
  box-shadow: 0 0 0 2.5px var(--bio-mass);
}

.ng-list-card.card-revealed {
  animation: cardReveal 0.3s ease both;
}

/* Portrait thumbnail: fixed width, 2:3 aspect ratio */
.nlc-photo {
  flex-shrink: 0;
  width: 110px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s;
}

.nlc-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  /* List view text card: light cream grey glassmorphism */
  background: rgba(242, 238, 234, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nlc-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.nlc-nosig-badge {
  position: absolute;
  bottom: 4px; right: 4px;
  font-size: 12px;
}

/* Text body — fills right side of horizontal card */
.nlc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 4px 4px 4px 0;
}

.nlc-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.nlc-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--living-moss);
  background: rgba(74, 105, 74, 0.1);
  border: 1px solid rgba(74, 105, 74, 0.18);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.nlc-name {
  font-family: 'Questrial', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nlc-vibe {
  font-size: 11px;
  color: rgba(13, 26, 14, 0.5);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.nlc-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  justify-content: space-between;
}

.nlc-dur {
  font-size: 10px;
  font-weight: 700;
  color: rgba(13, 26, 14, 0.35);
  line-height: 1;
  align-self: center;
  flex-shrink: 0;
}

.nlc-sig {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.nlc-sig span {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: rgba(74, 105, 74, 0.18);
}

.nlc-sig span.on { background: var(--bio-mass); }
.nlc-sig span:nth-child(1) { height: 3px; }
.nlc-sig span:nth-child(2) { height: 5px; }
.nlc-sig span:nth-child(3) { height: 7px; }
.nlc-sig span:nth-child(4) { height: 9px; }

/* Price + Details button container — bottom-right of card footer */
.nlc-price-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.nlc-price {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--deep-moss);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Details button — ROUND circle, bright accent green (bio-mass) */
.nlc-details-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bio-mass);
  color: var(--bg-dark);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(217, 255, 61, 0.35);
}

.nlc-details-btn:hover {
  background: #e5ff66;
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(217, 255, 61, 0.5);
}

/* Arrow inside the card footer, aligned with signal bars (legacy, hidden now) */
.nlc-arrow {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXPLORE PAGE — SKELETON LIST ROWS
   ═══════════════════════════════════════════════════════════════════════════ */

.ng-skel-row {
  display: flex;
  gap: 14px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg,
    rgba(74, 105, 74, 0.07) 0%,
    rgba(74, 105, 74, 0.14) 50%,
    rgba(74, 105, 74, 0.07) 100%);
  background-size: 600px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border: 1px solid rgba(74, 105, 74, 0.06);
}

/* Skeleton photo matches portrait 2:3 ratio */
.ng-skel-photo {
  flex-shrink: 0;
  width: 90px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  background: rgba(74, 105, 74, 0.12);
}

.ng-skel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.ng-skel-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(74, 105, 74, 0.14);
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXPLORE PAGE — HEADER + FILTER BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.explore-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 56px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(13, 26, 14, 0.5);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(74, 105, 74, 0.18);
  transition: all 0.2s;
  flex-shrink: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.back-btn:hover { color: var(--text-primary); border-color: rgba(74, 105, 74, 0.4); }

.header-title {
  flex: 1;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.loc-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 105, 74, 0.08);
  border: 1px solid rgba(74, 105, 74, 0.15);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--living-moss);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.loc-pill:hover { background: rgba(74, 105, 74, 0.14); }

/* Filter bar — top offset matches sticky-header height (72px) */
.filter-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 7px 16px 9px;
  scrollbar-width: none;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-bottom: 1px solid rgba(74, 105, 74, 0.08);
  position: sticky;
  top: 0;
  z-index: 190;
  height: 46px;
  align-items: center;
}

.filter-bar::-webkit-scrollbar { display: none; }

.f-chip {
  flex-shrink: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(74, 105, 74, 0.18);
  color: rgba(13, 26, 14, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.f-chip:hover { border-color: rgba(74, 105, 74, 0.4); color: var(--text-primary); }

.f-chip.active {
  background: var(--living-moss);
  border-color: var(--living-moss);
  color: white;
}

.f-chip.mode-chip.active-nearby {
  background: var(--living-moss);
  border-color: var(--living-moss);
  color: white;
}

.f-chip.mode-chip.active-nosignal {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--bio-mass);
}

.f-sep {
  width: 1px;
  height: 20px;
  background: rgba(74, 105, 74, 0.15);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXPLORE — MAP
   ═══════════════════════════════════════════════════════════════════════════ */

.map-section {
  position: sticky;
  top: 46px;
  z-index: 10;
  height: 44vh;
  background: var(--fog-grey);
}

#exploreMap { width: 100%; height: 100%; }

.leaflet-control-zoom { border: none !important; }
.leaflet-control-zoom a {
  background: rgba(242, 238, 234, 0.92) !important;
  color: var(--living-moss) !important;
  border: 1px solid rgba(74, 105, 74, 0.15) !important;
}

/* List slides over map. margin-bottom: -200px clips overflow content
   (the padding-bottom: 200px compensates so internal links aren't hidden).
   Container is clipped by the -200px negative margin, not by overscroll suppression. */
.list-section {
  position: relative;
  z-index: 20;
  /* List view main panel: soft sage glassmorphism */
  background: rgba(170, 185, 162, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 22px 22px 0 0;
  margin-top: -22px;
  min-height: 70vh;
  margin-bottom: -200px;
  padding: 0;
  padding-bottom: 200px;
  border-top: 1px solid rgba(74, 105, 74, 0.1);
}

.drag-handle {
  width: 36px; height: 4px;
  background: rgba(74, 105, 74, 0.25);
  border-radius: 2px;
  margin: 12px auto 0;
}

.list-inner { padding: 0 16px; }

.list-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 6px;
}

.list-count-text {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(13, 26, 14, 0.45);
}

/* Load more */
.load-more-wrap {
  padding: 24px 0;
  display: flex;
  justify-content: center;
}

.load-more-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--living-moss);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(74, 105, 74, 0.2);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.load-more-btn:hover { border-color: rgba(74, 105, 74, 0.45); background: rgba(74, 105, 74, 0.08); }
.load-more-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.load-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(74, 105, 74, 0.2);
  border-top-color: var(--living-moss);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLACE DETAIL — HERO
   Fixed full-viewport header: photo stays in place as user scrolls.
   Content panel starts at ~75vh so image dominates on load.
   ═══════════════════════════════════════════════════════════════════════════ */

.place-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Detail view hero backdrop: light cream grey #f2eeea */
  background: #f2eeea;
  overflow: hidden;
  z-index: 0;
}

.place-slides {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.place-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.place-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.place-slide-grad {
  position: absolute;
  inset: 0;
  /* WHY: transparent overlay — no green tint, just let the photo show through cleanly */
  background: transparent;
}

.place-slide-skel {
  width: 100%; height: 100%;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-size: 600px 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}

.place-slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.place-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
}

.place-dot.active {
  background: white;
  width: 18px;
  border-radius: 3px;
}

.place-slide-prev, .place-slide-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 38px; height: 38px;
  background: rgba(13, 26, 14, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 16px;
  transition: all 0.2s;
  user-select: none;
}

.place-slide-prev { left: 14px; }
.place-slide-next { right: 14px; }
.place-slide-prev:hover, .place-slide-next:hover { background: rgba(13, 26, 14, 0.8); }

.photo-count {
  position: absolute;
  top: 64px; right: 14px;
  background: rgba(13, 26, 14, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  z-index: 10;
}

/* Place detail top nav */
.place-top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  transition: background 0.3s, border-color 0.3s;
}

.place-top-nav.scrolled {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(13, 26, 14, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  cursor: pointer;
}

.place-top-nav.scrolled .nav-back {
  color: rgba(13, 26, 14, 0.6);
  background: rgba(74, 105, 74, 0.1);
  border-color: rgba(74, 105, 74, 0.18);
}

.nav-logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
}

.place-top-nav.scrolled .nav-logo { color: var(--text-primary); }

.nav-heart {
  width: 38px; height: 38px;
  background: rgba(13, 26, 14, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(255, 255, 255, 0.8);
}

.place-top-nav.scrolled .nav-heart {
  background: rgba(74, 105, 74, 0.1);
  border-color: rgba(74, 105, 74, 0.2);
  color: rgba(13, 26, 14, 0.55);
}

/* Place content area */
.place-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.place-title-block {
  padding: 24px 0 8px;
  animation: fadeInUp 0.35s ease both;
}

.place-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-moss);
  background: rgba(0, 108, 53, 0.08);
  border: 1.5px solid rgba(0, 108, 53, 0.14);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  margin-bottom: 12px;
}

.place-title {
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.place-loc-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.place-loc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bio-mass);
  animation: breathe 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* Stats chips */
.stats-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 9px 14px;
}

.stat-chip-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-chip-value {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Place detail blocks */
.place-divider {
  height: 1px;
  background: rgba(74, 105, 74, 0.1);
  margin: 20px 0;
}

.place-section-label {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--deep-moss);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.place-section-label::before {
  content: '';
  display: inline-block;
  width: 14px; height: 2px;
  background: var(--bio-mass);
  border-radius: 2px;
}

.place-desc-text {
  font-size: clamp(15px, 1.7vw, 17px);
  font-weight: 400;
  line-height: 1.8;
  color: rgba(13, 26, 14, 0.65);
  margin-bottom: 24px;
}

.place-detail-block {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
  border: 1px solid var(--glass-border);
}

.place-detail-block h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.place-detail-block p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(13, 26, 14, 0.6);
}

/* Map block */
.place-map-block {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 220px;
  background: var(--fog-grey);
  border: 1px solid rgba(74, 105, 74, 0.1);
  margin-bottom: 24px;
  position: relative;
  cursor: pointer;
}

#detailMap { width: 100%; height: 100%; }

.map-open-label {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 1000;
  background: rgba(13, 26, 14, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.01em;
}

.map-open-label svg {
  width: 11px; height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Coords block */
.coords-block {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coords-text {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(13, 26, 14, 0.6);
  font-variant-numeric: tabular-nums;
}

.coords-copy {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--living-moss);
  background: rgba(74, 105, 74, 0.07);
  border: 1px solid rgba(74, 105, 74, 0.18);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.coords-copy:hover { background: rgba(74, 105, 74, 0.14); }

/* CTA bar */
.cta-bar {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 0; right: 0;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 150;
}

.cta-info { flex: 1; }

.cta-price {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.cta-dist {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cta-btn {
  background: var(--deep-moss);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.cta-btn:hover { background: var(--living-moss); transform: translateY(-1px); }

/* Not found */
.not-found {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.not-found-num {
  font-family: 'Nunito', sans-serif;
  font-size: 72px;
  font-weight: 800;
  color: rgba(74, 105, 74, 0.1);
  line-height: 1;
  margin-bottom: 16px;
}

/* Signal bars (shared) */
.sig-bars-lg {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}

.sig-bars-lg span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: rgba(74, 105, 74, 0.18);
}

.sig-bars-lg span.on { background: var(--bio-mass); }
.sig-bars-lg span:nth-child(1) { height: 5px; }
.sig-bars-lg span:nth-child(2) { height: 9px; }
.sig-bars-lg span:nth-child(3) { height: 13px; }
.sig-bars-lg span:nth-child(4) { height: 17px; }

.sig-label {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLACE DETAIL PAGE — CONTENT ROUNDED CORNERS + GLASSMORPHISM
   Content panel slides over the fixed hero photo with a frosted-glass tint.
   Starts at ~75vh so image dominates; user scrolls content up over the photo.
   ═══════════════════════════════════════════════════════════════════════════ */

/* The margin/padding pair (margin-bottom: -200px + padding-bottom: 200px)
   clips overflow without suppressing the native iOS elastic bounce. Content
   peeks 200px below the viewport during bounce, but the negative margin
   clips it so nothing is visible to the user. */
.place-content-rounded {
  border-radius: 28px 28px 0 0;
  /* Detail view text panel: soft sage glassmorphism */
  background: rgba(170, 185, 162, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: -200px;
  padding-bottom: 200px;
}

/* Share button: neon lime CIRCLE with dark icon — applies everywhere.
   WHY appearance/aspect-ratio/max-*: iOS Safari's default <button> styling
   can stretch the element into a pill; these overrides lock it to a circle. */
.noya-share-btn {
  -webkit-appearance: none;
  appearance: none;
  background: #d9ff3d;
  border: none;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(217,255,61,0.35);
  transition: opacity 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  flex-grow: 0;
  line-height: 1;
  overflow: hidden;
}
.noya-share-btn:hover {
  opacity: 0.85;
  box-shadow: 0 0 16px rgba(217,255,61,0.5);
}
.noya-share-btn svg {
  color: #0d1a0e;
  flex-shrink: 0;
}

/* ── Circle stat row (Signal, Distance, Duration, Price) ─────────────────── */
.stat-circles {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-bottom: 20px;
}

.stat-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}

.stat-circle-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(170, 185, 162, 0.2);
  border: 1.5px solid rgba(74, 105, 74, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Signal bars inside circle */
.stat-circle-icon .sig-bars-lg {
  gap: 2px;
}

.stat-circle-label {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Google Reviews block ─────────────────────────────────────────────────── */
.reviews-summary {
  margin-bottom: 24px;
}

.reviews-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.reviews-stars {
  display: flex;
  gap: 2px;
}

.reviews-score {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.reviews-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.reviews-excerpts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-excerpt {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}

.review-text {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(13, 26, 14, 0.65);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .ng-card { width: 175px; }
  .ng-retreat-card { width: 215px; }
  .show-all-card { width: 120px; min-height: 215px; }
  .map-section { height: 38vh; }
  /* Mobile: narrower portrait thumbnail, keep 2:3 ratio via aspect-ratio */
  .nlc-photo { width: 90px; }
  .ng-skel-photo { width: 80px; height: 120px; }
  /* Mobile parallax layers — 100vw + shorter height so images appear smaller/tighter */
  .noya-bg-image {
    width: 100vw;
    inset: 60vh 0 auto 0;
    background-position: center top;
  }
  .noya-bg-mid {
    width: 100vw;
    inset: 75vh 0 auto 0;
    background-position: center top;
  }
}

@media (min-width: 640px) {
  /* place-slideshow is position:fixed / 100vh — no override needed */
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROFILE MENU (noya-profile-menu)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Pill menu (shown on /dashboard when logged in) */
#noyaProfileMenu {
  position: fixed;
  top: 70px;
  right: 12px;
  z-index: 10000;
  background: rgba(242, 238, 234, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(170, 185, 162, 0.5);
  border-radius: 18px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(13, 26, 14, 0.12), 0 2px 8px rgba(13, 26, 14, 0.06);
  display: none;
  flex-direction: column;
  gap: 2px;
  transform-origin: top right;
}

#noyaProfileMenu.open {
  display: flex;
  animation: npmReveal 0.15s ease-out;
}

@keyframes npmReveal {
  from { opacity: 0; transform: scale(0.92) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.npm-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(13, 26, 14, 0.75);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.12s, color 0.12s;
}

.npm-item:hover {
  background: rgba(13, 26, 14, 0.06);
  color: var(--deep-moss);
}

.npm-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.npm-sep {
  height: 1px;
  background: rgba(170, 185, 162, 0.4);
  margin: 4px 8px;
}

.npm-signout {
  color: #c0392b;
}

.npm-signout:hover {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
}

.npm-signout svg { stroke: #c0392b; opacity: 0.8; }

/* ── Sign-in modal (shown when logged out) ──────────────────────────────── */
#noyaSigninModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.nsm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 26, 14, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nsm-panel {
  position: relative;
  z-index: 1;
  background: rgba(242, 238, 234, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(170, 185, 162, 0.5);
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(13, 26, 14, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: nsmReveal 0.2s ease-out;
}

@keyframes nsmReveal {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.nsm-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: rgba(13, 26, 14, 0.4);
  line-height: 1;
  padding: 4px;
}

.nsm-close:hover { color: rgba(13, 26, 14, 0.8); }

.nsm-icon {
  width: 60px; height: 60px;
  background: rgba(170, 185, 162, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.nsm-title {
  font-family: 'Questrial', sans-serif;
  font-size: 22px;
  color: rgba(13, 26, 14, 0.9);
  margin-bottom: 8px;
}

.nsm-sub {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(13, 26, 14, 0.55);
  margin-bottom: 24px;
}

.nsm-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  margin-bottom: 10px;
  transition: opacity 0.15s, transform 0.15s;
}

.nsm-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.nsm-btn:active { transform: translateY(0); }

.nsm-btn-primary {
  background: var(--bio-mass);
  color: rgba(13, 26, 14, 0.85);
}

.nsm-btn-secondary {
  background: rgba(170, 185, 162, 0.3);
  color: rgba(13, 26, 14, 0.7);
}

/* ── Toast (shared) ────────────────────────────────────────────────────────── */
.noya-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(13, 26, 14, 0.88);
  color: #f2eeea;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.noya-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Homepage 3rd Panel — "Your Guide" article teaser ─────────────────────── */

#homePanel3 {
  margin: 0 0 20px;
}

.section-header-panel3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.section-title-panel3 {
  font-family: 'Questrial', sans-serif;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-link-panel3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--living-moss);
  text-decoration: none;
  letter-spacing: 0.03em;
}

/* Glass card — matches ng-card treatment */
.panel3-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  min-height: 180px;
  text-decoration: none;
  background: rgba(170, 185, 162, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel3-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(13, 26, 14, 0.14);
}

.panel3-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.panel3-card-bg.loaded { opacity: 0.28; }

.panel3-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(170, 185, 162, 0.55) 0%,
    rgba(100, 140, 80, 0.35) 60%,
    rgba(74, 105, 74, 0.45) 100%
  );
}

/* Content sits on top of overlay */
.panel3-content {
  position: relative;
  z-index: 2;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
}

.panel3-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.panel3-title {
  font-family: 'Questrial', sans-serif;
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 10px;
}

.panel3-excerpt {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px;
}

.panel3-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d9ff3d;
  color: #1a1a1a;
  border-radius: 100px;
  padding: 8px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.panel3-cta:hover {
  background: #e5ff66;
  transform: translateX(2px);
}

/* Generating / loading state */
.panel3-loading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 22px 24px;
  min-height: 180px;
  gap: 10px;
}

.panel3-loading-text {
  font-family: 'Questrial', sans-serif;
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.02em;
}

.panel3-shimmer {
  width: 60%;
  height: 14px;
  border-radius: 100px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.12) 25%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.12) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

.panel3-shimmer.short { width: 40%; }
.panel3-shimmer.tiny { width: 25%; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Shimmer fade when content appears */
.panel3-loading.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.panel3-card.fade-in {
  animation: fadeInCard 0.5s ease forwards;
}
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
