@import url('https://fonts.cdnfonts.com/css/switzer');

:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #5c6776;
  --accent: #FF7A45;
  --mapborder: #fff;
  --accent-2: #4aa3ff;
  --danger: #ff6b6b;
  --card: #ffffff;
  --border: #dfe5ef;
  --shadow: 0 12px 32px rgba(23, 40, 68, 0.12);
  font-family: Switzer,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-size: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

html, body {
  height: 100%;
  min-height: 100vh;
}
@supports (height: 100dvh) {
  html, body { min-height: 100dvh; }
}
.hidden { display: none !important; }

.panel-open {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  height: 100%;
}

.desktop-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f3f2e7;
  color: var(--text);
  display: none;
  overflow-y: auto;
}
.desktop-overlay.visible { display: block; }
.desktop-overlay-inner {
  min-height: 100vh;
  padding: 48px 56px 64px;
  display: grid;
  place-items: center;
}
.desktop-overlay .hero-card {
  width: min(980px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(23,40,68,0.18);
  border-radius: 32px;
  padding: 40px 44px;
  text-align: center;
}
.desktop-overlay .brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 100px;
}
.desktop-overlay .brand-stack img.logo-icon {

  height: 96px;
  border-radius: 24px;
  padding:15px
}
.desktop-overlay .brand-stack img.logo-text {

  width: 400px;
}
.desktop-overlay h1 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.desktop-overlay p.lead {
  margin: 0 auto 18px;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
@media (max-width: 960px) {
  .desktop-overlay { display: none !important; }
}

.bg, .overlay, .mapBg { display: none; }

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}
#map, .map-panel {
  height: 100vh;
}
@supports (height: 100dvh) {
  #map, .map-panel { height: 100dvh; }
}

.topbar {
  position: absolute;
  right: 14px;
  top: 14px;
  left: auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(12, 28, 58, 0.12);
  border-radius: 14px;
  z-index: 600;
}
.brand { display: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand { display: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brandIcon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.brandLabels { display: flex; flex-direction: column; gap: 2px; }
.brandTextLogo { height: 22px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.2)); }
.brand-sub { text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; color: var(--muted); }

.actions { display: flex; gap: 8px; align-items: center; }

select, button {
  background: linear-gradient(180deg, #ffffff, #f4f6fb);
  color: var(--text);
  border: 1px solid #cfd6e3;
  padding: 8px 12px;
  border-radius: 12px;
  /*box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(26, 52, 94, 0.08);*/
}

button {
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s, border-color 0.2s;
  font-weight: 700;
  border-radius: 10px;
  background: #e6e8ef;
  border: 1px solid #d0d5e0;
  color: #0f172a;
  box-shadow: none;
}

/* button:hover { background: #f9fbff; } */
button:active { transform: scale(0.99); }
button.ghost { background: transparent; border-color: var(--border); box-shadow: none; }
button.small { box-shadow: #22293b4d 0 4px 0 0 !important; padding: 8px 14px; font-size: 0.92rem; margin-bottom: 10px; }
button.danger { background: #ffe8e8; border-color: #f4b3b3; color: #b30f0f; }
button.danger:hover { background: #ffd6d6; }

.layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: 100vh;
  position: relative;
}
@supports (height: 100dvh) {
  .layout { min-height: 100dvh; height: 100dvh; }
}
.panel {
  background: var(--panel);
  border: none;
  border-radius: 0;
}
.list-panel {
  position: relative;
  box-shadow: none;
  z-index: 520;
  grid-column: 1;
  pointer-events: auto;
}
.detail-panel {
  position: absolute;
  top: 0;
  left: 380px;
  bottom: 0;
  width: 500px;
  box-shadow: 12px 0 28px rgba(20,40,70,0.14);
  transform: translateX(-110%);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  border-left: none;
  z-index: 620;
  pointer-events: none;
  visibility: hidden;
}
.detail-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.panel-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(4px);
  z-index: 650;
}
.loader-dots {
  display: flex;
  gap: 10px;
}
.loader-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 0.8s infinite ease-in-out;
}
.loader-dots span:nth-child(2) { animation-delay: 0.12s; }
.loader-dots span:nth-child(3) { animation-delay: 0.24s; }
@keyframes pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.6; }
  40% { transform: scale(1); opacity: 1; }
}
.panel-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  color: var(--muted);
  z-index: 610;
}
.panel-empty .empty-graphic {
  width: 160px;
  height: 120px;
  background: radial-gradient(circle at 30% 30%, rgba(53,227,210,0.25), transparent 60%),
              radial-gradient(circle at 70% 40%, rgba(74,163,255,0.25), transparent 62%),
              linear-gradient(160deg, #eff4fb, #dfe7f3);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(15, 30, 60, 0.15);
  margin-bottom: 12px;
}
.filter-panel {
  position: absolute;
  top: 0;
  left: 380px;
  width: 420px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  box-shadow: 12px 0 28px rgba(20,40,70,0.14);
  transform: translateX(-110%);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  z-index: 700;
  pointer-events: none;
  visibility: hidden;
}
.filter-panel.open { transform: translateX(0); opacity: 1; pointer-events: auto; visibility: visible; }
.filter-header {
  flex: 0 0 auto;
  color: var(--text);
  background: var(--panel);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 22px rgba(10,20,40,0.08);
}
.filter-header-inner { display: block; min-height: 132px; padding: 45px 18px 18px 20px; }
.filter-header-row { display: flex; align-items: center; gap: 12px; }
.filter-header-text { flex: 1; min-width: 0; }
.filter-header-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  margin-top: 15px;
}
.filter-header-title-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-header-sub { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.filter-header-btn,
.filter-header-spacer {
  width: 45px;
  height: 45px;
  font-size: 25px;
  flex: 0 0 auto;
}
.filter-header-btn {
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  position: relative;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 22px rgba(10,20,40,0.10);
}
.filter-header-btn i { pointer-events: none; }

.filter-body {
  flex: 1 1 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.filter-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.filter-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filter-group-value {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.66);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 4px 8px;
  border-radius: 999px;
}
.filter-hint { font-size: 12px; margin-top: 6px; color: var(--muted); line-height: 1.35; }

.filter-panel input[type="range"] { width: 100%; accent-color: #0f172a; }
.filter-dual-range { position: relative; height: 36px; margin-top: 6px; }
.filter-range-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}
.filter-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}
.filter-dual-range input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.filter-dual-range input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: transparent; }
.filter-dual-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #0f172a;
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 8px 18px rgba(15,23,42,0.25);
}
.filter-dual-range input[type="range"]::-moz-range-track { height: 8px; background: transparent; }
.filter-dual-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #0f172a;
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 8px 18px rgba(15,23,42,0.25);
}
.filter-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row .input { flex: 1; }
.range-row .sep { color: var(--muted); }
.range-row .unit { color: var(--muted); font-size: 12px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #dfe5ef; transition: .2s; border-radius: 24px;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; transition: .2s; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider:before { transform: translateX(18px); }
.filter-footer {
  flex: 0 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  background: var(--panel);
}
.panel .close {
  display: inline-block;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
}
.panel-scroller {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #f3f2e7;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  height: 100%;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 120px);
  display: none;
}
/* only show scroller when a sliding panel is actually open */
.detail-panel.open .panel-scroller,
.detail-panel.peek .panel-scroller,
.detail-panel.expanded .panel-scroller,
.filter-panel.open .panel-scroller,
.filter-panel.peek .panel-scroller,
.filter-panel.expanded .panel-scroller { display: block; }
.detail-panel:not(.open) .panel-scroller { display: none; }
.panel-header { font-weight: 400; margin: 0 0 8px; color: #fff }
.card-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); box-sizing: border-box; }
.card-list > * { min-width: 0; }
.card-list { gap: 15px; }
.drop-title label { font-size: 0.95rem; font-weight: 800; }
.drop-title .input { font-size: 1rem; }
.media-preview img.drop-preview-img { width: 120px; height: 80px; object-fit: cover; image-orientation: from-image; border-radius: 10px; display: block; margin-top: 6px; }
.card {
  background: var(--card);
  border: none;
  border-radius: 14px;
  padding: 12px;
  box-shadow: none;
  margin-bottom: 10px;
}
.card .thumb {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 320px;
}
.list-feed .card { padding: 0; overflow: hidden; border-radius: 14px; }
.list-card .thumb { border-radius: 0; }
.list-card .list-body { padding: 12px; }
.list-card h3 { margin: 0 0 4px; font-size: 16px; }
.list-card .sub { color: var(--muted); font-size: 13px; }
.list-card .title-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.list-card .meta-row { display: flex; gap: 10px; color: var(--muted); font-size: 13px; margin: 8px 0; }
.list-card .excerpt { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.filter-btn { width: 100%; text-align: left; margin: 10px 0 14px; }
.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.filter-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #041018;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.action-btn {
  position: relative;
}
.filter-count-mobile {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.meta { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 0.9rem; margin-top: 6px; }
.meta.meta-row { align-items: center; margin-bottom: 10px; min-height: 10px; }

.media-meta { align-items: center; gap: 14px; padding-bottom: 10px; }
.media-meta .meta-title { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.media-meta .media-sort { margin-left: auto; }
.meta-title { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.meta-title .pill { background: #fff; border: 1px solid var(--accent); color: var(--accent); }
.action-card { padding: 10px 12px; }
.action-row { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; }
.icon-chip { 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 0px solid var(--border);
  background: #f7f8fb;
  box-shadow: none;
  font-weight: 800;
  text-transform: none;
}
.icon-chip i { font-size: 1.1rem; color: #0f172a; }
.icon-chip span { font-size: 0.9rem; }
.icon-chip.active { background: #0f172a; color: #fff; border-color: #0f172a; box-shadow: 0 10px 24px rgba(15,23,42,0.2); }
.icon-chip.active i { color: #ffd166; }
.action-row .icon-chip { flex: 1; min-width: 0; }
.trip-chip { border: 0; background: #f7f8fb; }
.collection-chip { border: 0; background: #f7f8fb; }
.contained-card .meta { margin-bottom: 6px; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 2px; }
.chip-scroll .chip.tiny { padding: 8px 12px; font-size: 0.85rem; letter-spacing: 0.04em; }
.chip.tiny { text-transform: none; letter-spacing: 0.02em; }
.pill-trip { background: #e8eefc !important; color: #0f172a; border-color: #c7d6f8; }
.pill-collection { background: #eef8f6 !important; color: #0f172a; border-color: #c7e8df; }
.chip .chip-sub {
  margin-left: 6px;
  font-size: 0.72em;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.58);
  letter-spacing: 0.02em;
}
.chip.is-shared {
  background: #eef1f8;
  border-color: #d5dbea;
}
@media (max-width: 520px) {
  .action-row { grid-template-columns: repeat(2, 1fr); }
}
.activity-card .activity-rows { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.activity-line { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; }
.activity-line .label { color: var(--muted); letter-spacing: 0.01em; font-size: 0.9rem; }
.activity-line .value { flex: 1; text-align: right; font-weight: 800; color: var(--text); font-size: 0.9rem; }
.activity-line .value .pill { margin-left: 6px; }
.comment-write-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.comment-fake-input { flex: 1; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); background: #f8fafc; cursor: text; margin-top: 10px; margin-bottom: 10px; }
.comment-compose.hidden { display: none; }
.comment-compose { display: flex; gap: 10px; align-items: stretch; flex-direction: column; }
.comment-compose .input { width: 100%; resize: vertical; min-height: 96px; margin-top: 10px; }
.comment-compose button { width: 100%; padding: 12px 0; font-weight: 800; border-radius: 12px; background: #f7f8fb; border: 0px solid #dfe4ef; color: #0f172a; box-shadow: none; margin-bottom: 20px; }
.comments-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comments-head .comments-meta { display: flex; align-items: center; gap: 10px; }
.comments-meta .pill { background: #0f172a; color: #fff; }
.comments-sort { display: flex; gap: 6px; }
.comments-sort .chip { background: #fff; color: #0f172a; border-color: #dfe4ef; }
.comments-sort .chip.active { background: #0f172a; color: #fff; border-color: #0f172a; box-shadow: 0 8px 18px rgba(15,23,42,0.18); }
.comment-count { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 4px 8px; font-weight: 800; border-radius: 999px; }
.comments-card { padding-bottom: 14px; }
.comments-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.comment { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px 16px; background: #f8fafc; border-radius: 12px; box-shadow: 0 6px 14px rgba(15,23,42,0.08); }
.comment > div { flex: 1; }
.comment .comment-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.comment .comment-actions button { border-radius: 10px; background: #f1f3f8; color: #111827; border: 1px solid #e1e6f0; }
.comment .comment-actions button:hover { background: #e8edf7; }
.comment .comment-actions button.comment-like.active {
  background: rgba(15,23,42,0.92);
  border-color: rgba(15,23,42,0.12);
  color: #fff;
}
.comment .comment-actions button.comment-like.active i { opacity: 0.9; }
.comment .comment-body { margin-top: 5px; margin-bottom: 22px; line-height: 1.6; color: #1f2937; background-color: #f0f8ffc4; padding: 5px; border-radius: 7px; }
.comment .comment-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }

.follow-requests-sheet {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 6px 6px 2px;
}
.settings-people-sheet {
  padding: 8px;
}
.settings-people-head {
  margin-bottom: 8px;
}
.settings-people-sub {
  color: #6b7280;
  font-size: 12px;
  margin: 0 4px 10px;
}
.settings-people-list {
  display: grid;
  gap: 10px;
}
.settings-user-row {
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10,20,40,0.08);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.settings-user-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  text-decoration: none;
  min-width: 0;
}
.settings-user-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.settings-user-name {
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-user-handle {
  color: #6b7280;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-user-action {
  flex: 0 0 auto;
}
.follow-requests-list {
  gap: 10px;
}
.request-item {
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10,20,40,0.08);
  padding: 12px;
}
.request-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.request-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  text-decoration: none;
  min-width: 0;
}
.request-name {
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.request-date {
  border-color: rgba(15,23,42,0.14);
  color: rgba(15,23,42,0.68);
  background: rgba(255,255,255,0.95);
  font-size: 11px;
  white-space: nowrap;
}
.request-item-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.request-item-actions .small {
  width: 100%;
  justify-content: center;
  font-weight: 900;
}
@media (max-width: 420px) {
  .request-item-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .settings-user-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .settings-user-action {
    width: 100%;
  }
}
.comment .comment-meta .left { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; padding: 5px; }
.comment .comment-meta .name { font-weight: 800; color: #1f2937; }
.comment .comment-meta .date { color: #6b7280; font-size: 0.9rem; }
.comment .avatar { align-self: start; }
.comment .comment-meta a { text-decoration: none; color: #1f2937; font-weight: 800; }
.comment a { text-decoration: none; color: inherit; }
.pinned-label { background: #ffd166; color: #0f172a; }
.comments-card .input { background: #fff; }
.pill-outline { background: #fff; border: 1px solid var(--accent); color: var(--accent); }
.pill-outline, .comment-count { border-radius: 999px; }
.settings-open { margin-left: auto; }
button.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  line-height: 1;
}
button.icon-btn i { pointer-events: none; }
.pill { padding: 4px 10px; border-radius: 12px; background: #FF7A450D; color: var(--accent); border: 1px solid #FF7A45 }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.distance-modal { text-align: center; display: grid; gap: 10px; }
.distance-large { font-size: 2rem; font-weight: 900; }
.direction-arrow { font-size: 1.6rem; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #e9edf5; margin: 0 auto; }
.visit-media-grid { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 8px; }
.media-slot { border: 1px dashed var(--border); background: #f8fafc; border-radius: 12px; padding: 10px; min-height: 82px; display: grid; place-items: center; cursor: pointer; }
.media-slot img { width: 100%; height: 100%; object-fit: cover; image-orientation: from-image; border-radius: 10px; }
.drop-media-grid { display: grid; grid-template-columns: repeat(3, minmax(88px, 1fr)); gap: 8px; }
.drop-slot { min-height: 94px; padding: 6px; position: relative; overflow: hidden; }
.drop-slot.has-file { border-style: solid; border-color: rgba(15, 23, 42, 0.16); background: #eef3fb; }
.drop-slot .drop-slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
  line-height: 1;
}
.comments-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.comment { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; color: var(--text); font-size: 0.92rem; display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; }
.comment .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.comment .avatar.placeholder { background: #e0e6f1; }
.comment.pinned { border-color: var(--accent); box-shadow: 0 6px 18px rgba(74,163,255,0.18); background: #FF7A4512; }
.pinned-label { background: #FF7A450D; color: #0f172a; border: 1px solid #FF7A45; margin-left: 6px; }

/* Design review overrides */
.comment-count { margin-left: 5px; border-radius: 999px; }
.comment { background: #fff; }
.comment.pinned { border-color: var(--accent); background: #FF7A4512; }
.comment .comment-body { margin-top: 5px; margin-bottom: 22px; line-height: 1.6; color: #1f2937; background-color: #f0f8ffc4; padding: 5px; border-radius: 7px; }
.comment .comment-meta .left { font-size: 0.9rem; padding: 5px; }
.comment-fake-input { margin-top: 10px; margin-bottom: 10px; }
.comment-compose .input { margin-top: 10px; }
.comment-compose button { margin-bottom: 20px; background: #f7f8fb; border: 0; }
.comments-head { font-size: 0.9rem; }
.activity-line .label { font-size: 0.9rem; font-weight: 700; }
.activity-line .value { font-size: 0.9rem; }
.meta { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.card-list { gap: 15px; }
.icon-chip { border: 0; background: #f7f8fb; box-shadow: none; }
.trip-chip, .collection-chip { border: 0; background: #f7f8fb; }
button { box-shadow: none; }

@media (max-width: 768px) {
  .publisher-avatar { border-radius: 999px; }
  .publisher-btn.ghost { background: #f7f8fb; }
  .publisher-primary { font-size: 0.9rem; }
  .publisher-primary a { font-weight: 800; }
}

.map-panel { position: relative; height: 100vh; background: transparent; grid-column: 2; z-index: 50; }
#map { position:absolute; inset:0; height: 100%; width: 100%; border-radius: 0; z-index: 50; }
.leaflet-container { background: #68a6c4; }
.leaflet-pane .leaflet-tile { background-color: #68a6c4; }
.mobile-actions {
  position: absolute;
  top: env(safe-area-inset-top, 10px);
  right: 12px;
  display: none;
  gap: 8px;
  z-index: 960;
}
.action-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  display: grid;
  place-items: center;
  color: #111;
}

.search-mobile {
  position: fixed;
  top: env(safe-area-inset-top, 12px);
  left: 12px;
  right: 12px;
  z-index: 955;
  pointer-events: auto;
 
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
  border: 1px solid rgba(0,0,0,0.06);
  align-items: center;
  gap: 8px;
  display: none;
}
body.search-open .search-mobile { display: flex; }
.search-mobile .input { height: 42px; font-size: 15px; }
#searchBtn { height: 42px; width: 46px; display: grid; place-items: center; }
.search-suggestions-mobile {
  position: fixed;
  top: calc(env(safe-area-inset-top, 12px) + 54px);
  left: 12px;
  right: 12px;
  z-index: 2000;

  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  height: 60vh;

  display: none;
}
body.search-open .search-suggestions-mobile { display: block; }

#searchSuggestions.inline {
  position: fixed;
  top: calc(2vh + env(safe-area-inset-top, 0px) + 56px);
  left: 12px;
  right: 12px;
  z-index: 1200;
  overflow: visible;

  border-radius: 12px;

  max-height: 60vh;
  min-height: 120px;
  padding: 8px 0;
  display: block;
  pointer-events: auto;
  transform: translateZ(0);
  animation: fadeSlide 0.18s ease;
}
#searchSuggestions .empty {
  padding: 12px 14px;
  color: #555;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
#searchSuggestions .spinner {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
}
#searchSuggestions .spinner::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.55);
  animation: spin 0.8s linear infinite;
}
#searchSuggestions .item.empty-item {
  color: #555;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-inline-bar {
  position: fixed;
  top: calc(2vh + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  height: 52px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.16);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  z-index: 959;
  opacity: 1;
  transform: translateY(0) scaleX(1);
  transform-origin: right center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.search-inline-bar.hidden {
  opacity: 0;
  transform: translateY(-8px) scaleX(0.05);
  pointer-events: none;
}
.search-inline-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
}
.search-inline-bar button {
  border: none;
  background: transparent;
  color: #444;
  font-size: 1.1rem;
  padding: 6px 6px;
}
.search-inline-bar button {
  border: none;
  background: transparent;
  color: #444;
  font-size: 1.1rem;
  padding: 10px;
  box-shadow: none;
}

.map-controls {
  position: absolute;
  top: 110px; left: 14px; right: 14px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 820;
  pointer-events: none;
}
.map-controls > * { pointer-events: auto; }
.map-import-bar {
  display: flex;
  gap: 8px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.map-import-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}
#btnWikiImport.small {
  background: #dadbdd1a;
  color: #0000005c;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 20px rgba(0,0,0,0.22);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
#btnWikiImport:disabled { opacity: 0.6; cursor: progress; }
#btnWikiImport.small:active,
#btnWikiImport.small.loading {
  background: #fff;
  color: #041018;
  border-color: rgba(0,0,0,0.08);
}
.pin-wiki {
  width: 52px; height: 52px; border-radius: 16px;
  border: 2px solid #c8ccd1;
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
  position: relative;
}
.pin-wiki::after {
  content: "W";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #111;
  font-family: "Times New Roman", "Linux Libertine", "Georgia", serif;
  font-weight: 700;
  font-size: 22px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
.pin-wiki .thumb { border-radius: 14px; opacity: 0.16; filter: grayscale(100%); }
.wiki-pop { max-width: 280px; }
.wiki-pop img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin: 6px 0; }
.wiki-pop h4 { margin: 0; font-size: 17px; }
.wiki-pop p { margin: 4px 0 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.wiki-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wiki-actions a { font-weight: 700; color: var(--accent-2); text-decoration: none; }
.wiki-actions button { white-space: nowrap; flex-shrink: 0; }
.wiki-popup .leaflet-popup-content-wrapper { border-radius: 14px; border: 1px solid var(--accent-2); box-shadow: 0 14px 32px rgba(15,23,42,0.25); }
.wiki-popup .leaflet-popup-content { margin: 10px 12px; }
.ww-share-popup .leaflet-popup-content-wrapper { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 12px 26px rgba(15,23,42,0.24); }
.ww-share-popup .leaflet-popup-content { margin: 10px 12px; min-width: 220px; }
.ww-share-bubble-thumb {
  width: 100%;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 8px;
  background: #eef2f7;
}
.ww-share-bubble-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ww-share-bubble-title { font-weight: 700; font-size: 14px; line-height: 1.25; margin: 0 0 4px; }
.ww-share-bubble-sub { font-size: 12px; color: var(--muted); line-height: 1.35; margin: 0 0 8px; }
.ww-share-bubble-actions { display: flex; gap: 6px; flex-wrap: wrap; }
button.primary { background: linear-gradient(130deg, var(--accent-2), #35e3d2); color: #041018; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 10px 20px rgba(74,163,255,0.25); }
button.block { width: 100%; }

.search-bar { display: flex; gap: 6px; }
.search-bar.sticky {
  position: sticky;
  top: 0;
  background: var(--panel);
  padding-bottom: 10px;
  z-index: 1000;
}
.search-bar .input { flex: 1; }
.search-suggestions {
  position: relative;
  margin: -6px 0 10px;
  z-index: 1200;
}
.search-suggestions .list {
  position: absolute;
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(16, 30, 60, 0.18);
  max-height: 320px;
  overflow-y: auto;
}
.search-suggestions .item {
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}
.search-suggestions .item:hover { background: #f4f7fb; }
.search-suggestions .icon {
  width: 30px; height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #eef3fa;
  color: var(--muted);
  font-size: 14px;
}
.search-suggestions .label { font-weight: 600; }
.search-suggestions .meta { color: var(--muted); font-size: 12px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dfe4ef;
  color: var(--text);
  padding: 8px 14px;
  box-shadow: 0 6px 14px rgba(23, 40, 68, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}
.chip.active { background: var(--accent); color: #041018; border-color: var(--accent); box-shadow: 0 10px 20px rgba(53, 227, 210, 0.25); }

.map-popover {
  position: absolute;
  right: 18px;
  bottom: 22px;
  max-width: 360px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(16, 28, 60, 0.2);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 520;
}
.map-popover.hidden { display: none; }
.map-popover img { width: 100%; height: 180px; object-fit: cover; display: block; }
.map-popover .pop-body { padding: 14px; }
.map-popover h3 { margin: 0 0 6px; font-size: 18px; }
.map-popover .sub { color: var(--muted); font-size: 13px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.map-popover .meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.map-popover .meta-pill { background: rgba(53, 227, 210, 0.12); color: var(--mapborder); border: 1px solid rgba(53, 227, 210, 0.35); border-radius: 10px; padding: 4px 10px; font-size: 12px; }
.map-popover p { margin: 0; color: var(--muted); line-height: 1.5; }

.fab-wrap { position: absolute; right: 14px; bottom: 14px; display: flex; justify-content: flex-end; }
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041018; font-size: 1.4rem; font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 16px 32px rgba(5, 226, 200, 0.28);
}
.fab:hover { transform: translateY(-2px); }

.passport {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(135deg, #f8fbff, #f1f5fb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin: 8px 0;
}
.passport-header { font-weight: 700; display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.passport-stamps { display: flex; gap: 8px; flex-wrap: wrap; }
.passport-stamp {
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 700;
}
.passport-stamp .flag { font-size: 1.1rem; }
.passport-stamp .code { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.5px; }

.modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.32);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000000;
  opacity: 0;
  pointer-events: none;
  padding: 18px 12px;
  box-sizing: border-box;
  transition: opacity 220ms ease;
}
.modal.hidden { display: none; }
.modal.opening {
  opacity: 1;
  pointer-events: auto;
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal.closing {
  opacity: 0;
  pointer-events: none;
}
.modal-content {
  background: var(--panel); border: 1px solid var(--border);
  padding: 16px; border-radius: 12px; width: min(420px, 92vw);
  position: relative; box-shadow: var(--shadow);
  max-height: calc(100vh - 125px);

  display: flex;
  flex-direction: column;
  transform: translateY(34px);
  opacity: 0;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.modal-content #modalBody {
  overflow: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.ww-welcome-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0 10px;
}
.ww-welcome-hero .ww-welcome-video {
  display: block;
  max-width: 100%;
  pointer-events: none;
}
.ww-welcome-logo {
  width: min(240px, 70vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.12));
}
.ww-welcome-text {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.5;
}

.onboard-handle {
  margin: 10px 0 6px;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: center;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: #0f172a;
  background: rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}
.onboard-cover-preview {
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e8eefc;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.onboard-cover-preview.no-cover {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(53,227,210,0.35), transparent 55%),
    radial-gradient(circle at 70% 25%, rgba(74,163,255,0.28), transparent 60%),
    linear-gradient(160deg, #eff4fb, #dfe7f3);
}

/* Spot edit modal */
.spot-edit-modal { display: flex; flex-direction: column; gap: 10px; }
.spot-edit-modal h3 { margin: 0 0 4px; }
.spot-edit-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spot-edit-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 520px) {
  .spot-edit-media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.spot-edit-media-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  background: #eef1f6;
  aspect-ratio: 1 / 1;
}
.spot-edit-media-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-edit-media-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #eef1f6, #f8fafc);
  color: rgba(15,23,42,0.55);
  font-size: 20px;
}
.spot-edit-media-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(2,6,23,0.55);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}
.spot-edit-media-remove i { pointer-events: none; font-size: 14px; }
.spot-edit-media-actions { display: flex; gap: 10px; align-items: center; }
.spot-edit-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal.is-open .modal-content {
  transform: translateY(0);
  opacity: 1;
}
.modal.closing .modal-content {
  transform: translateY(34px);
  opacity: 0;
}
.achievement-modal {
  text-align: center;
}
.ach-info-modal { text-align: left; }
.ach-info-modal .ach-info-head { text-align: center; }
.achievement-badge {
  display: flex;
  justify-content: center;
  margin: 2px 0 10px;
}
.achievement-badge-img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}
.achievement-badge-fallback {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 3px solid rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 42px;
}
.achievement-modal p {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}
.achievement-modal .form-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.collection-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.collection-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #e4e8f1;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
}
.collection-icon.fallback {
  display: grid;
  place-items: center;
  color: rgba(17, 24, 39, 0.65);
  background: linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.18));
}
.ach-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.ach-icon-btn {
  width: 75px;
  height: 75px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: #e4e8f1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ach-icon-btn:hover { transform: translateY(-1px); }
.ach-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ach-icon-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(17, 24, 39, 0.62);
  font-size: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.18));
}
.ach-icon-more {
  font-weight: 900;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 2px dashed rgba(15, 23, 42, 0.22);
  box-shadow: none;
  cursor: default;
}
.ach-info-map {
  height: 230px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 12px;
  background: #f8fafc;
  position: relative;
}
.ach-info-map.is-clickable { cursor: pointer; }
.ach-info-map.is-clickable:focus-visible {
  outline: 2px solid rgba(200, 164, 80, 0.35);
  outline-offset: 2px;
}
.ach-info-spot-list {
  margin-top: 10px;
  max-height: 210px;
  overflow: auto;
  padding-right: 4px;
  display: grid;
  gap: 6px;
}
.coll-progress { margin-top: 10px; }
.coll-progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.coll-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(200, 164, 80, 0.95), rgba(200, 164, 80, 0.55));
  box-shadow: 0 10px 22px rgba(200, 164, 80, 0.16);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.coll-progress-meta { margin-top: 6px; font-weight: 900; font-size: 0.9rem; }
.ach-info-spot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.ach-info-spot-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.ach-info-spot-btn:active { transform: scale(0.99); }
.ach-info-spot-btn:focus-visible {
  outline: 2px solid rgba(200, 164, 80, 0.35);
  outline-offset: 2px;
}
.ach-info-spot .thumb {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  background: #e4e8f1;
  flex: 0 0 auto;
}
.ach-info-spot .label {
  font-weight: 800;
  color: var(--text);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}
.ach-req-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.45;
}
.ach-req-list li { margin: 4px 0; }
.upload-status {
  margin-top: 6px;
  text-align: center;
  font-weight: 700;
}
.upload-status.error {
  color: var(--danger);
}
.upload-spinner {
  width: 34px;
  height: 34px;
  margin: 12px auto 4px;
  border-radius: 50%;
  border: 3px solid rgba(15, 23, 42, 0.14);
  border-top-color: var(--accent-2);
  animation: spin 0.8s linear infinite;
}
#postSavingOverlay,
#checkinUploadOverlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 11, 22, 0.34);
  backdrop-filter: blur(2px);
  z-index: 2000005;
}
#postSavingOverlay.visible,
#checkinUploadOverlay.visible {
  display: flex;
}
#postSavingOverlay .post-saving-card,
#checkinUploadOverlay .post-saving-card {
  min-width: 190px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}
.trim-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tiny-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.18);
  border-top-color: var(--accent-2);
  animation: spin 0.8s linear infinite;
}
.close { position: absolute; right: 12px; top: 12px; background: rgba(0,0,0,0.04);border-radius: 999px;
  font-size: 24px;
  z-index: 10;
  border: 0; }

.form-group { margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f7f9fd;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.notice { color: var(--muted); font-size: 0.9rem; text-align: center;}
.status { margin-top: 8px;
  font-size: 1.1rem;
  padding-bottom: 20px;
}
.status.error { color: var(--danger); }
.status.success { color: var(--accent); }

.premium-sheet {
  max-width: 560px;
}

.premium-hero-status {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 800;
  border: 1px solid var(--border);
  background: #f5f8fe;
}

.premium-hero-status.is-active {
  color: #0f5132;
  border-color: rgba(15, 81, 50, 0.25);
  background: #e8f7ef;
}

.premium-hero-status.is-inactive {
  color: var(--muted);
}

.premium-offers-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.premium-offer-card {
  margin-top: 0 !important;
}

.premium-trial-note {
  margin-top: 10px;
}

.premium-sub-overview {
  margin-top: 10px;
}

.premium-sub-overview .value {
  margin-top: 4px;
  font-weight: 700;
  line-height: 1.35;
}

.premium-sub-overview .notice {
  margin-top: 6px;
}

.premium-buy-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.premium-secondary-actions {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .premium-offers-grid {
    grid-template-columns: 1fr;
  }
  .premium-buy-actions {
    grid-template-columns: 1fr;
  }
}

.pin-wrap { background: transparent; border: none; overflow: visible !important; }

/* --- WanderWard Map UI (Photo Tile Markers + Treasure Stack Clusters) --- */
.ww-spot-wrap { background: transparent !important; border: none !important; }

.ww-marker {
  width: var(--ww-size, 52px);
  height: var(--ww-size, 52px);
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.18),
    0 0 0 3px var(--ww-club-color, rgba(255,255,255,0)),
    0 0 0 5px var(--ww-select-color, rgba(255,255,255,0));
  transform-origin: 50% 62%;
}
.ww-marker--far { border-radius: 12px; }

.ww-marker::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--ww-size, 52px) * 0.34);
  pointer-events: none;
  opacity: 0;
  transform: rotate(-30deg);
  background: conic-gradient(
    from 180deg,
    rgba(255,255,255,0.00),
    rgba(255,255,255,0.72),
    rgba(255,255,255,0.00),
    rgba(255,255,255,0.00)
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}
.ww-marker--pulse::before { animation: wwMarkerBorderShimmer 0.82s ease-out; }

.ww-marker__tile {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.ww-marker__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.00) 55%, rgba(0,0,0,0.08));
  opacity: 0.55;
}

.ww-marker__tile--fallback {
  background: radial-gradient(120% 120% at 25% 15%, rgba(255,255,255,0.94), rgba(240,244,252,0.92) 45%, rgba(225,232,245,0.92));
}
.ww-marker__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(15,23,42,0.70);
  font-size: 16px;
}
.ww-marker__fallback i { opacity: 0.82; }

.ww-marker--unvisited .ww-marker__tile {
  filter: saturate(1.08) contrast(1.05) brightness(1.02);
}
.ww-marker--visited .ww-marker__tile {
  filter: saturate(0.58) brightness(0.94);
}
.ww-marker--reported .ww-marker__tile {
  filter: blur(6px) saturate(0.75) brightness(0.92);
}
.ww-marker--private {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(15, 23, 42, 0.92);
  box-shadow:
    0 16px 34px rgba(2, 6, 23, 0.42),
    0 0 0 3px rgba(241, 245, 249, 0.85),
    0 0 0 5px var(--ww-select-color, rgba(255,255,255,0));
}
.ww-marker--private .ww-marker__tile {
  filter: saturate(0.78) brightness(0.92) contrast(1.08);
}
.ww-marker--promo {
  border-color: rgba(245, 158, 11, 0.95);
  box-shadow:
    0 16px 34px rgba(245, 158, 11, 0.28),
    0 0 0 3px rgba(255, 251, 235, 0.92),
    0 0 0 5px var(--ww-select-color, rgba(255,255,255,0));
}
.ww-marker--promo .ww-marker__tile {
  filter: saturate(1.12) contrast(1.07) brightness(1.03);
}

.ww-marker__badge {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}
.ww-marker--far .ww-marker__badge {
  width: 16px;
  height: 16px;
  font-size: 10px;
}
.ww-marker__badge--check {
  top: -8px;
  right: -8px;
  background: rgba(15,23,42,0.82);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 12px 22px rgba(0,0,0,0.22);
}
.ww-marker--far .ww-marker__badge--check { top: -6px; right: -6px; }

.ww-marker__badge--trip {
  bottom: -7px;
  right: -7px;
  background: rgba(255,255,255,0.80);
  color: rgba(15,23,42,0.72);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 12px 22px rgba(0,0,0,0.18);
}
.ww-marker__badge--trip i { font-size: 11px; }

.ww-marker__badge--shield {
  top: -7px;
  left: -7px;
  background: rgba(15,23,42,0.86);
  color: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 12px 22px rgba(0,0,0,0.22);
}
.ww-marker__badge--shield i { font-size: 11px; }
.ww-marker__badge--private {
  bottom: -7px;
  left: -7px;
  background: rgba(15,23,42,0.96);
  color: rgba(255,255,255,0.96);
  border: 1px solid rgba(148,163,184,0.38);
  box-shadow: 0 12px 22px rgba(0,0,0,0.28);
}
.ww-marker__badge--private i { font-size: 10px; }
.ww-marker__badge--promo {
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 36px;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.94);
  color: rgba(255,255,255,0.96);
  border: 1px solid rgba(245,158,11,0.82);
  box-shadow: 0 12px 22px rgba(0,0,0,0.24);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ww-marker--far .ww-marker__badge--promo {
  top: -8px;
  min-width: 45px;
  height: 16px;
  font-size: 8px;
  padding: 0 6px;
}

.ww-marker__dot {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 12px 22px rgba(0,0,0,0.14);
  pointer-events: none;
}
.ww-marker--new .ww-marker__dot { background: rgba(74,163,255,0.92); }
.ww-marker--trending .ww-marker__dot { background: rgba(245,158,11,0.88); }
.ww-marker--friend .ww-marker__dot { background: rgba(167,139,250,0.90); }

.ww-marker__ring {
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--ww-size, 52px) * 0.34);
  pointer-events: none;
  background: conic-gradient(
    rgba(255,255,255,0.92) calc(var(--ww-ring-pct, 100) * 1%),
    rgba(255,255,255,0.16) 0
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  opacity: 0.92;
}

.pin-wrap.selected .ww-marker {
  --ww-select-color: rgba(74,163,255,0.16);
}

@keyframes wwMarkerPlop {
  0% { transform: scale(1); }
  55% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes wwMarkerBorderShimmer {
  0% { opacity: 0; transform: rotate(-30deg); }
  25% { opacity: 0.85; }
  100% { opacity: 0; transform: rotate(230deg); }
}

.ww-marker.ww-marker--plop { animation: wwMarkerPlop 0.19s ease-out; }

.ww-cluster-icon { background: transparent !important; }
.ww-cluster {
  width: var(--ww-size, 64px);
  height: var(--ww-size, 64px);
  position: relative;
  border-radius: 18px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transition: transform 180ms ease, opacity 180ms ease;
}

.ww-cluster__stack { position: absolute; inset: 0; }
.ww-cluster__tile {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--ww-size, 64px) - 18px);
  height: calc(var(--ww-size, 64px) - 18px);
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.88);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  transition: transform 180ms ease, filter 180ms ease;
}
.ww-cluster__tile--0 { transform: translate(calc(-50% - 6px), calc(-50% + 5px)) rotate(-6deg); }
.ww-cluster__tile--1 { transform: translate(calc(-50% + 6px), calc(-50% - 5px)) rotate(4deg); }
.ww-cluster__tile--2 { transform: translate(-50%, -50%) rotate(0deg); }
.ww-cluster__tile--empty {
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0;
}

.ww-cluster__count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15,23,42,0.74);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 22px rgba(0,0,0,0.18);
  pointer-events: none;
}

.ww-cluster--shimmer::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(245,158,11,0.00), rgba(245,158,11,0.18), rgba(245,158,11,0.00));
  opacity: 0.12;
  animation: wwClusterShimmer 2.9s ease-in-out infinite;
}
@keyframes wwClusterShimmer {
  0% { transform: translateX(-18%); opacity: 0.08; }
  50% { transform: translateX(18%); opacity: 0.14; }
  100% { transform: translateX(-18%); opacity: 0.08; }
}

.ww-cluster-spread .ww-cluster { transform: scale(1.03); }
.ww-cluster-spread .ww-cluster__tile--0 { transform: translate(calc(-50% - 10px), calc(-50% + 8px)) rotate(-8deg); }
.ww-cluster-spread .ww-cluster__tile--1 { transform: translate(calc(-50% + 10px), calc(-50% - 8px)) rotate(6deg); }

.ww-hint {
  position: fixed;
  left: 50%;
  top: calc(12px + env(safe-area-inset-top, 0px));
  width: min(95vw, 520px);
  transform: translateX(-50%) translateY(-16px);
  z-index: 964;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.ww-hint.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.ww-hint__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 66px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(0,0,0,0.09);
  box-shadow: 0 18px 34px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
}
.ww-hint__chip {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 12px;
  padding: 0;
  color: rgba(15,23,42,0.92);
  font-weight: 900;
  min-width: 0;
}
.ww-hint__chip:active { transform: scale(0.99); }
.ww-hint__ico i { opacity: 0.86; }
.ww-hint__text {
  font-size: 0.95rem;
  line-height: 1.2;
  max-width: 100%;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ww-hint__text strong { font-weight: 900; }
.ww-hint__meta {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.08);
  font-size: 0.82rem;
  font-weight: 900;
  color: rgba(15,23,42,0.70);
}
.ww-hint__dismiss {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.84);
  box-shadow: none;
  color: rgba(15,23,42,0.72);
  font-size: 18px;
  display: grid;
  place-items: center;
  padding: 0;
}
.ww-hint__dismiss:active { transform: scale(0.98); }

@media (max-width: 768px) {
  .ww-hint {
    top: calc(10px + env(safe-area-inset-top, 0px));
    width: min(96vw, 520px);
  }
  .ww-hint__inner { min-height: 62px; padding: 9px 10px; }
  .ww-hint__text { font-size: 0.91rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ww-marker--near.ww-marker--unvisited { animation: none !important; }
  .ww-marker--plop, .ww-marker--pulse { animation: none !important; }
  .ww-marker--pulse::before { animation: none !important; opacity: 0 !important; }
  .ww-cluster--shimmer::after { animation: none !important; }
  .ww-hint { transition: none !important; }
}
.pin {
  width: 60px; height: 60px; border-radius: 14px;
  background: #ffffff;
  border: 2px solid var(--mapborder);
  box-shadow: 0 10px 22px rgba(53, 227, 210, 0.25);
  position: relative; overflow: visible;
}
.pin, .pin .thumb { border-radius: 14px; }
.pin-promo, .pin-promo .thumb { border-radius: 50%; }
.pin-hot { border-color: #ffb347; box-shadow: 0 0 14px #ffb347; }
.pin-new::after {
  content: "NEW";
  position: absolute; top: 4px; left: 4px;
  background: var(--accent); color: #041018;
  font-size: 0.7rem; padding: 2px 6px; border-radius: 999px;
}
.pin-visit::after { content: none; }
.pin-visited { opacity: 0.82; }
.pin-visited .thumb { filter: grayscale(100%) brightness(0.75); opacity: 0.9; }
.pin-visited .badge-visited { filter: none !important; opacity: 1 !important; }
.pin-reported .thumb { filter: blur(6px) saturate(0.75); }
.pin .thumb { width: 100%; height: 100%; background-size: cover; background-position: center; border-radius: inherit; overflow: visible; }
.pin .badge { position: absolute; bottom: 6px; right: 6px; background: var(--accent); color: #041018; border-radius: 50%; min-width: 18px; height: 18px; padding: 0 6px; display: grid; place-items: center; font-size: 0.75rem; line-height: 1; }
.pin .badge-reported {
  top: 6px;
  left: 6px;
  right: auto;
  bottom: auto;
  width: 22px;
  height: 22px;
  min-width: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}
.pin .badge-club-icon { bottom: -12px; right: -12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.35); overflow: visible; pointer-events: none; }
.pin .badge-club-icon img { width: 20px; height: 20px; object-fit: cover; border-radius: 50%; }
.pin.selected {
  transform: scale(1.08);
  border-color: var(--accent-2);
  box-shadow: 0 12px 28px rgba(74,163,255,0.35);
}
.badge-club { background: #ffb347; color: #111; right: 6px; top: 6px; }
.badge-hot { background: #ff3b30; color: #fff; left: 6px; right: auto; bottom: 6px; top: auto; border-radius: 10px; }
.badge-visit { background: #34c759; color: #041018; right: 6px; bottom: 6px; }
.badge-trip {
background: #e8eefc !important;
  color: #1d2a44 !important;
  border: 1px solid rgba(0,0,0,0.06);
  pointer-events: none;
left: 0px !important;
bottom: 0px !important;
border-radius: 0 65% !important;
  right: auto !important;
  top: auto !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 0;

  box-shadow: 0 8px 18px rgba(10,20,40,0.16);
  font-size: 7px !important;
  padding: 0 !important;
}
.badge-trip i { font-size: 0.86rem; }
.badge-visited {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #fbbf24 !important;
  position: absolute !important;
  right: -12px !important;
  top: -12px !important;
  left: auto !important;
  bottom: auto !important;
  font-size: 1.6rem !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
  pointer-events: none !important;
  line-height: 1 !important;
  display: block !important;
}

.cluster-icon { background: transparent; }
.cluster {
  position: relative; width: 64px; height: 64px; border-radius: 18px; overflow: hidden;
  border: 2px solid var(--mapborder);
  box-shadow: 0 10px 22px rgba(53, 227, 210, 0.2);
  display: grid; grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(2,1fr);
  background: #ffffff;
}
.cluster span { position: absolute; inset: auto 4px 4px 4px; background: rgba(0, 0, 0, 0.55); color: #fff; border-radius: 10px; text-align: center; font-weight: 700; font-size: 0.9rem; padding: 2px 0; }
.cluster .c-thumb { background-size: cover; background-position: center; }

@media (max-width: 960px) {
  .layout { flex-direction: column; }
  .panel { width: 100%; order: 2; }
  .map-panel { height: 100vh; order: 1; }
  .panel .close { display: inline-block; }
}

/* Mobile bottom nav */
.mobile-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  z-index: 900;
  padding-right: 14px;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  scrollbar-width: none;
}
.mobile-nav::-webkit-scrollbar { display: none; }
.nav-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 6px 10px;
  min-width: 60px;
  border-radius: 999px;
  color: #333 !important;
}
.nav-btn .nav-ico { font-size: 1.2rem; }
.nav-btn .nav-label { font-size: 0.82rem; font-weight: 700; }
.nav-btn i { line-height: 1; }
.nav-btn:active { transform: scale(0.98); }
.nav-add {
  background: #ffffff3b;
  color: #041018;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 18px rgba(0,0,0,0.12);
  border: 1px solid #fff;
}

@media (max-width: 360px) {
  .mobile-nav { gap: 8px; padding: 10px 12px; }
  .nav-btn { min-width: 56px; padding: 6px 8px; }
  .nav-btn .nav-label { font-size: 0.78rem; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; min-height: 100vh; display: flex; flex-direction: column; }
  #panelBack,
  #panelShare { display: none !important; }
  #noSpots { display: none !important; }
.list-panel {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 950;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
  .search-bar {
    position: absolute;
    top: env(safe-area-inset-top, 14px);
    left: 12px;
    right: 12px;
    z-index: 955;
    pointer-events: auto;
    background: #fff;
    padding: 10px 12px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.16);
    border: 1px solid rgba(0,0,0,0.06);
    align-items: center;
    gap: 8px;
    display: none;
  }
  body.search-open .search-bar { display: flex; }
  .search-bar .input { height: 42px; font-size: 15px; }
  #searchBtn { height: 42px; width: 46px; display: grid; place-items: center; }
/* Floating map actions (search/filter) right side */
.mobile-actions {
  position: fixed;
  right: 12px;
  top: calc(2vh + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 960;
}
.mobile-actions .action-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 12px 22px rgba(0,0,0,0.16);
  display: grid;
  place-items: center;
  color: #111;
  font-size: 1.2rem;
  font-weight: 900;
}
#jumpMobile.action-btn {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.08);
}
  #filterBtn {
    display: none !important;
  }
  #filterBtn .filter-label { display: none; }
  #spotList { display: none; }
  .map-panel { height: calc(100vh + env(safe-area-inset-top, 0px)); top: 0; padding-top: 0; order: 1; flex: 1; overflow: hidden; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .topbar { display: none; }
  .fab-wrap { display: none; }
  .mobile-nav { display: flex; }
  .mobile-actions { display: flex; }
  .leaflet-bottom.leaflet-left .map-import-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    z-index: 961;
    display: flex;
    justify-content: center;
    pointer-events: auto;
  }
  #btnWikiImport {
    min-width: 170px;
    justify-content: center;
  }
.detail-panel, .filter-panel, .panel.detail-panel, .panel.filter-panel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  max-height: 100vh;
  height: auto;
  top: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 26px rgba(10,20,40,0.2);
  transform: translateY(105%);
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
  .detail-panel.open { opacity: 1; }
  .detail-panel.peek { transform: translateY(65%); }
  .detail-panel.expanded { transform: translateY(0); }
  .detail-panel.peek { transform: translateY(65%); }
  .detail-panel.expanded { transform: translateY(0); }
  .detail-panel.profile-panel.expanded { border-radius: 0; }
  .filter-panel.open { transform: translateY(0); opacity: 1; }
  .filter-panel { border-radius: 0; padding-bottom: 0; }
  .detail-panel.nav-full { top: 5vh; max-height: 95vh; }
}

@media (max-width: 768px) {
  #map { position: absolute; inset:0; height: 100%; min-height: 100%; }
}

@media (max-width: 768px) {
  .panel-drag {
    position: absolute;
    inset: 0 0 120px 0; /* großflächige Drag-Zone, lässt Platz für Thumbs unten */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12px;
    background: linear-gradient(180deg, rgba(6, 11, 22, 0.09), rgba(6, 11, 22, 0));
    z-index: 10;
    pointer-events: auto;
    touch-action: none;
    cursor: grab;
  }
  .spot-hero .panel-drag {
    inset: 0 0 130px 0;
  }
  .panel-drag::after {
    content: "";
    width: 64px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.86);
    box-shadow: 0 8px 18px rgba(0,0,0,0.28);
  }
  .filter-panel .panel-drag {
    inset: 0 0 auto 0;
    height: 84px;
    background: transparent;
  }
}

@media (max-width: 768px) {
  .panel-scroller.mobile-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow-y: auto;
  }
  #galleryHeader {
    flex: 0 0 auto;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--panel);
    color: #333 !important;
  }
  #galleryList.mobile-content {
    flex: 1 1 auto;
    overflow: visible;
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom,0px));
    pointer-events: auto;
    touch-action: auto;
  }
}

@media (max-width: 768px) {
  .profile-panel .panel-drag {
    inset: 0 0 auto 0;
    height: 90px;
  }
}

.settings-card {
  border-radius: 18px;
  padding: 8px;

}
.settings-tabs {
  display: flex;
  gap: 8px;
  padding: 6px 4px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.settings-tabs::-webkit-scrollbar {
  display: none;
}
.settings-tab {
  flex: 0 0 auto;
  min-width: max-content;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.72);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0f172a;
  transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.settings-tab i { opacity: 0.8; }
.settings-tab:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.10);
}
.settings-tab:active { transform: scale(0.99); }
.settings-tab.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
  box-shadow: 0 10px 22px rgba(17,24,39,0.20);
}
.settings-tab-body { padding: 2px 0 0; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  margin: 6px 0;
  transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.settings-row:active { transform: scale(0.99); }
.settings-row:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: rgba(0,0,0,0.08); }
.settings-row.indent { margin-left: 14px; margin-right: 4px; }
.settings-label { display: flex; flex-direction: column; gap: 4px; }
.settings-title { font-weight: 700; color: #0f172a; }
.settings-sub { font-size: 12px; color: #6b7280; }
.settings-check {
  width: 24px; height: 24px;
  border-radius: 12px;
  border: 2px solid #d9dce3;
  display: grid;
  place-items: center;
  color: #fff;
  background: #fff;
  transition: all 0.15s ease;
}
.settings-row.active .settings-check {
  background: #111827;
  border-color: #111827;
  box-shadow: 0 6px 14px rgba(17,24,39,0.22);
}
.settings-row.active .settings-check::after {
  content: "\2713";
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.settings-subsection {
  margin: 12px 4px 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}
.settings-chevron {
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgba(15, 23, 42, 0.35);
}
.settings-chevron::after {
  content: "\203A"; /* › */
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  transform: translateX(1px);
}
.settings-row:hover .settings-chevron { color: rgba(15, 23, 42, 0.55); }
.settings-select {
  border: none;
  background: #f5f6fb;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  min-width: 120px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

#spotHero {
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}
.spot-mini-gallery { scroll-behavior: smooth; }
.thumb-slot { padding: 6px 0 4px; }

#galleryHeader.panel-drag {
  position: sticky;
  inset: auto;
  top: 0;
  height: auto;
  min-height: 80px;
  line-height: 1.3;
  padding: 12px 18px 12px 20px;
  z-index: 6;
}

@media (max-width: 768px) {
  .spot-hero {
    position: relative;
    background: #050a12;
    overflow: hidden;
    min-height: var(--panel-peek-h, 42vh);
    max-height: var(--panel-peek-h, 48vh);
    height: var(--panel-peek-h, 42vh);
    width: 100%;
    display: block;
    border-radius: 18px 18px 0 0;
  }
.spot-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transform: scale(1.01);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.spot-hero img.img-loaded {
  opacity: 1;
  transform: scale(1);
}
  .spot-overlay-top,
  .spot-overlay-bottom { position: absolute; inset: 0; pointer-events: none; }
  .spot-overlay-top {
  /*  background: -webkit-linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
    background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
  */
  }
  .spot-overlay-bottom {
    background: -webkit-linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
    background: linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
  }
  .spot-hero-content {
    position: absolute;
    inset: auto 0 10px 0;
    padding: 12px 14px 16px;
    color: #fff;
    display: grid;
    gap: 10px;
    z-index: 12;
    pointer-events: auto;
  }
  .spot-hero-title { font-size: 1.6rem; font-weight: 700; line-height: 1.25; text-shadow: 0 8px 18px rgba(0,0,0,0.32); }
  .spot-hero-title { transition: opacity 0.18s ease, margin 0.18s ease, height 0.18s ease; }
  .spot-hero-top {
    position: absolute;
    top: var(--hero-top, 30px);
    left: 12px;
    right: 12px;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 12;
    pointer-events: none;
    color:#fff;
    transition: top 0.45s ease-in-out, bottom 0.85s ease-in-out, transform 0.45s ease-in-out, opacity 0.40s ease-in-out;
    will-change: top, bottom, transform, opacity;
  }
  .spot-hero-top .spot-hero-back,
  .spot-hero-top .spot-hero-meta,
  .spot-hero-top .spot-distance,
  .spot-hero-top .spot-hero-stats,
  .spot-hero-top .spot-hero-count {
    pointer-events: auto;
  }
  .spot-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .spot-hero-back {
    margin-right: 8px;
    flex: 0 0 auto;
width: 46px;
height: 46px;
position: absolute;
top: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 18px rgba(10,20,40,0.14);
  }
  .spot-hero-top { gap: 8px; }
  .spot-hero-top .spot-hero-meta .spot-distance { margin-left: auto; }
  /* Collapsed/peek: Stats-Bar an den unteren Rand des Headers setzen */
  /* NOTE: now reversed per request:
     - Expanded -> counts down, title hidden
     - Collapsed/peek -> counts up, title visible */
  .detail-panel:not(.expanded) .spot-hero-top {
    top: var(--hero-top, 30px) !important;
    bottom: auto !important;
    left: 12px;
    right: 12px;
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  .detail-panel.expanded .spot-hero-top {
    top: var(--hero-top, 30px) !important;
    bottom: 14px !important;
    left: 12px;
    right: 12px;
    align-items: flex-start;
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  .detail-panel.expanded .spot-hero-top .spot-hero-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  /* Title im collapsed Zustand ausblenden */
  .detail-panel:not(.expanded) .spot-hero-title {
    opacity: 1 !important;
    max-height: 4rem !important;
    margin: 0 0 6px 0 !important;
    pointer-events: auto !important;
    display: block !important;
    transition: opacity 0.42s ease-in-out, max-height 0.42s ease-in-out, margin 0.42s ease-in-out;
  }
  .detail-panel.expanded .spot-hero-title {
    opacity: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
    display: block !important; /* keep layout for smooth collapse */
    transition: opacity 0.42s ease-in-out, max-height 0.42s ease-in-out, margin 0.42s ease-in-out;
  }
  .spot-distance {
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .spot-hero-stats {
    display: flex; gap: 8px; flex-wrap: nowrap; font-size: 0.95rem;
  }
  .spot-hero-count { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: rgba(0,0,0,0.35); }
  .spot-hero-count i { color: var(--accent); }
  .hero-badge-avatar.inline {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    margin-right: 8px;
    vertical-align: middle;
  }
  .hero-badge-avatar.inline img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .spot-drag-handle {
    display: none;
  }
  .spot-mini-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78px;
    gap: 10px;
    padding: 8px 2px 0;
    overflow-x: visible;
    scrollbar-width: none;
  }
  .detail-panel.expanded .spot-mini-gallery {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    display: none;
  }
  .spot-mini-gallery::-webkit-scrollbar { display: none; }
  .mini-thumb {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.18);
    height: 72px;
  }
  .mini-thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #0b1a2a;
    color: #fff;
    font-size: 1.1rem;
  }
  .mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .mini-thumb img.img-loaded {
    opacity: 1;
    transform: scale(1);
  }
  .mini-thumb.more {
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.01em;
  }
  .panel-scroller.mobile-body {
    overflow-y: auto;
    max-height: calc(95vh - 38vh - 12px - env(safe-area-inset-bottom,0px));
    padding: 0 0 0;
  }

  /* Spot meta header + action menu */
  .spot-meta-card { padding: 14px 14px 10px; }
  .spot-meta-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .spot-meta-title { font-size: 20px; font-weight: 800; line-height: 1.25; }
  .spot-meta-location { font-size: 13px; color: #6b7280; margin-top: 4px; }
  .spot-meta-actions { position: relative; }
  .spot-actions-toggle { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; }
  .spot-actions-menu {
    position: absolute;
    right: 0;
    top: 42px;
    min-width: 200px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255,255,255,0.88);
    border: none;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.16);
    backdrop-filter: blur(12px);
    z-index: 20;
  }
  .spot-actions-menu.hidden { display: none; }
  .spot-actions-menu button {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    gap: 10px;
    border-radius: 12px;
    border: 0;
    background: #f7f8fb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
    padding: 10px 12px;
  }
  .spot-actions-menu button:hover {
    background: #eef1f8;
    box-shadow: 0 8px 18px rgba(15,23,42,0.10);
    transform: translateY(-1px);
  }
  .spot-actions-menu button:active {
    transform: translateY(0);
    background: #e5e8f2;
  }
  .spot-actions-menu button.spot-save-btn.active {
    background: #e0f2fe;
    color: #0b5fb3;
    box-shadow: 0 8px 18px rgba(11, 95, 179, 0.12);
  }
  .spot-actions-menu button.danger {
    background: #fff1f2;
    color: #b42318;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  }
  .spot-actions-menu button.danger:hover {
    background: #ffe4e8;
    box-shadow: 0 8px 18px rgba(180, 35, 24, 0.16);
  }

  /* Publisher strip */
  .publisher-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
  .publisher-avatar { width: 52px; height: 52px; border-radius: 16px; overflow: hidden; background: #eef3fa; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,0.9); }
.publisher-avatar .avatar { width: 100%; height: 100%; object-fit: cover; }
  .publisher-text { flex: 1; min-width: 0; }
  .publisher-primary { font-weight: 800; font-size: 1rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
  .publisher-primary a { color: inherit; text-decoration: none; }
  .publisher-secondary { color: var(--muted); font-size: 0.9rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .publisher-secondary a { color: inherit; text-decoration: none; }
  .publisher-btn { border-radius: 12px; padding: 10px 12px; font-weight: 800; background: #0f172a; color: #fff; border: none; box-shadow: 0 10px 20px rgba(15,23,42,0.16); }
  .publisher-btn.ghost { background: #eef1f6; color: #0f172a; }

  /* Sticky check-in bar (mobile) */
  @media (max-width: 768px) {
    #checkinBar {
      position: fixed;
      left: 12px;
      right: 12px;
      bottom: calc(env(safe-area-inset-bottom, 0px));
      display: grid;
      /*grid-template-columns: 120px 1fr; */
      gap: 10px;
      align-items: center;
      z-index: 30;
      pointer-events: auto;
      background: #ffffffe5;
      padding: 12px;
      border-radius: 999px;
    }
    #checkinBar button {
      border: none;
      border-radius: 18px;
      padding: 14px 16px;
      font-weight: 800;
      font-size: 16px;
    }
    .checkin-route {
      background: rgba(255,255,255,0.85);
      color: #111827;
      box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    }
    .checkin-cta {
      background: linear-gradient(135deg, #448918, #448918);
      color: #FFF;
      box-shadow: 0 14px 30px rgba(158,199,34,0.35);
    }
    .checkin-cta:disabled {
      opacity: 0.5;
      box-shadow: none;
    }
  }

  /* Nav overlay */
  #navOverlay {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.20);
    backdrop-filter: blur(14px);
    z-index: 40;
  }
  #navOverlay.hidden { display: none; }
  #navOverlay .nav-header {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
  }
  #navOverlay .nav-modes {
    display: inline-flex;
    gap: 6px;
  }
  #navOverlay .nav-mode {
    width: 38px; height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.1);
    background: #f4f6fb;
    color: #111827;

  }
  #navOverlay .nav-mode.active {
    background: var(--accent);
    color: #fff;

  }
  #navOverlay .nav-info {
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.01em;
  }
  #navOverlay .nav-voice {
    width: 34px; height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,0.12);
    background: #f7f8fc;
    color: #111827;
  }
  #navOverlay .nav-voice.active {
    background: var(--accent);
    color: #fff;
    border-color: color-mix(in oklab, var(--accent) 60%, #111827 40%);
  }
  #navOverlay .nav-close {
    width: 34px; height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,0.12);
    background: #f7f8fc;
    color: #111827;
  }
  #navOverlay .nav-body {
    margin-top: 10px;
    display: grid;
    gap: 10px;
  }
  #navOverlay .nav-origin {
    display: grid;
    gap: 8px;
  }
  #navOverlay .nav-origin-value {
    font-size: 12px;
    font-weight: 800;
    color: rgba(15,23,42,0.72);
  }
  #navOverlay .nav-section-title {
    font-size: 12px;
    font-weight: 800;
    color: rgba(15,23,42,0.72);
  }
  #navOverlay .nav-origin-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  #navOverlay .nav-origin-btn {
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 12px;
    padding: 8px 6px;
    background: rgba(255,255,255,0.96);
    color: #0f172a;
    font-weight: 800;
    font-size: 11px;
    text-align: center;
  }
  #navOverlay .nav-external {
    display: grid;
    gap: 8px;
  }
  #navOverlay .nav-external-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #navOverlay .nav-external.hidden { display: none; }
  #navOverlay .nav-external-actions.hidden { display: none; }
  #navOverlay .nav-external button {
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 12px;
    padding: 9px 10px;
    background: rgba(255,255,255,0.96);
    color: #0f172a;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
  #navOverlay .nav-chips {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0;
    transform: scale(0.96);
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.22s ease, max-height 0.22s ease, transform 0.22s ease;
  }
  #navOverlay .nav-chip {
    min-width: 72px;
    padding: 10px 12px;
    border-radius: 14px;
    background: transparent;
    border: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: #0f172a;
  }
  #navOverlay .nav-arrow {
    font-size: 65px;
    transform: rotate(0deg);
    transition: transform 0.12s ease;
    padding: 0;
    background: none;
    border: none;
    font-weight: bolder;
  }
  #navOverlay .nav-nextdist { font-size: 40px; }

  /* map jump button */
#btnJumpToMe.map-fab {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: none;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
  display: grid;
  place-items: center;
  color: #111827;
  margin-top: 0;
  z-index: 840;
  display: none;
}
  #navOverlay .nav-instruction {
    font-size: 15px;
    line-height: 1.4;
    background: #f7f8fc;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.08);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.22s ease, max-height 0.22s ease, transform 0.22s ease;
    transform: translateY(-6px);
  }
  #navOverlay button.nav-start,
  #navOverlay button.nav-stop {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  }
  #navOverlay button.nav-start { background: linear-gradient(135deg, #448918, #448918); color: #fff; }
  #navOverlay button.nav-stop { background: #e5e7eb; color: #111827; }
  #navOverlay.nav-active .nav-origin,
  #navOverlay.nav-active .nav-external {
    display: none !important;
  }
  .nav-start-spot-list {
    max-height: min(52vh, 360px);
    overflow-y: auto;
  }
  .nav-start-spot-item {
    width: 100%;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.10);
    border-radius: 14px;
    padding: 10px;
  }
  .nav-start-spot-item .thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(15,23,42,0.08);
    background: #eef2f8;
  }
  .nav-start-spot-item .thumb.fallback {
    display: grid;
    place-items: center;
    font-weight: 900;
    color: rgba(15,23,42,0.68);
  }
  .nav-start-spot-item .copy {
    min-width: 0;
    display: grid;
    gap: 4px;
  }
  .nav-start-spot-item .name {
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-start-spot-item .meta {
    color: rgba(15,23,42,0.62);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-start-spot-item .src {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }
  .nav-start-spot-item .src .pill.tiny {
    font-size: 10px;
    padding: 3px 7px;
    border: 1px solid rgba(15,23,42,0.10);
    background: rgba(255,255,255,0.92);
    color: rgba(15,23,42,0.72);
  }

  /* User position marker */
  .user-marker {
    width: 52px;
    height: 52px;
    border-radius: 26px;
    background: transparent;
    position: relative;
  }
  .user-marker-shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 42px;
    margin-left: -17px;
    margin-top: 0;
    background:
      radial-gradient(ellipse at 50% 0%,
        rgba(108, 114, 128, 0.58) 0%,
        rgba(128, 134, 148, 0.34) 38%,
        rgba(150, 156, 168, 0.14) 68%,
        rgba(150, 156, 168, 0.00) 100%);
    clip-path: polygon(50% 0%, 6% 100%, 94% 100%);
    transform: rotate(var(--heading, 0deg));
    transform-origin: 50% 0%;
    pointer-events: none;
    z-index: 1;
  }
  .user-marker-inner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    margin-top: -11px;
    border-radius: 50%;
    background: #2d7cf6;
    border: 2px solid #fff;
    box-shadow:
      0 0 0 10px rgba(45,124,246,0.12),
      0 5px 14px rgba(0,0,0,0.20);
    z-index: 3;
  }

  /* Arrived modal */
  .arrived-modal {
    display: grid;
    gap: 10px;
  }
  .arrived-modal h3 { margin: 0; }
  .arrived-modal p { margin: 0 0 6px 0; color: #374151; }
.arrived-modal button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  background-color: #e5e7eb;
  color: #111827;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* Check-in success */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: grid;
  place-items: center;
  z-index: 1600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.success-card {
  background: #f3f2e7;
  padding: 26px 28px;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  text-align: center;
  max-width: 420px;
  width: min(90vw, 420px);
  transform: translateY(34px);
  opacity: 0;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}
.success-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.success-overlay.is-open .success-card {
  transform: translateY(0);
  opacity: 1;
}
.success-overlay.closing {
  opacity: 0;
  pointer-events: none;
}
.success-overlay.closing .success-card {
  transform: translateY(34px);
  opacity: 0;
}
.success-card .spark { font-size: 38px; margin-bottom: 12px; }
.success-card h3 { margin: 6px 0 10px; }
.success-card p { margin: 0 0 14px; }
.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.btn-nav-primary:active { transform: translateY(1px); }
}

.media-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.media-grid img,
.media-grid video { width: 100%; height: 100%; max-height: 200px; object-fit: cover; border-radius: 10px;  }
.media-grid video { display: block; }
.grid-item { position: relative; }
.club-grid .grid-item { box-shadow: 0 0 0 3px var(--club-color, #35e3d2); border-radius: 12px; }
.club-grid .grid-item { box-shadow: 0 0 0 5px var(--club-color, #35e3d2); }
.grid-item.video-item::after {
  content: "VIDEO";
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.grid-item .media-actions { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.grid-item .media-actions button { background: rgba(255, 255, 255, 0.92); }
.visit-card { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.visit-card .meta { display: flex; gap: 8px; align-items: center; }
.visit-thumb-wrap { display: inline-block; margin-top: 6px; }
.visit-thumb { width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid #dfe5ef; background: #050a12; position: relative; }
.visit-thumb img, .visit-thumb video { width: 100%; height: 100%; object-fit: cover; image-orientation: from-image; display: block; }
.visit-thumb.video-thumb .play-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.28));
  color: #fff; font-size: 1rem;
}
.avatars { display: flex; gap: 4px; margin: 6px 10px; }
.avatars .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.avatars .overlap { margin-left: -10px; }
.avatars .avatar.placeholder { background: #e0e6f1; }
.avatar.small { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.avatar.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 12px auto 8px;
  display: block;
  border: 2px solid #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}
.avatar.fallback {
  display: grid;
  place-items: center;
  font-weight: 900;
  line-height: 1;
  color: rgba(15, 23, 42, 0.92);
  background: radial-gradient(120% 120% at 25% 20%, rgba(255,255,255,0.92), rgba(233,237,245,0.92));
  text-shadow: 0 1px 0 rgba(255,255,255,0.75);
}
.avatar.placeholder { background: #223; }
.avatar.circle { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.12); background: #e4e8f1; }
.avatar.circle.more { display: grid; place-items: center; font-weight: 700; color: #111; background: #d9dde6; }
.avatar.overlap { margin-left: -12px; }
.visit-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0 6px; }
.avatar-stack { display: flex; align-items: center; gap: 0; }
.visit-strip button { margin-left: 8px; }
.media-grid-wrapper { margin-top: 6px; }
.media-grid-head { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.media-sort { display: flex; gap: 6px; }
.media-sort .chip { border-radius: 999px; padding: 6px 10px; font-weight: 700; }
.media-sort .chip.active { background: #0f172a; color: #fff; border-color: #0f172a; }
.media-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.media-grid.compact { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.media-grid.compact .grid-item { border-radius: 12px; overflow: hidden; height: 112px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); position: relative; }
.media-grid.compact .grid-item .tile-action {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.42);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1;
  backdrop-filter: blur(6px);
}
.media-grid.compact .grid-item .tile-action.danger {
  border-color: rgba(255, 107, 107, 0.6);
  color: #ffd6d6;
}
.media-grid.compact .grid-item .tile-action:active { transform: scale(0.98); }
.media-grid.compact .grid-item img,
.media-grid.compact .grid-item video { width: 100%; height: 100%; object-fit: cover; display: block;  }
.media-grid.compact .grid-item video { pointer-events: none; }
.media-grid.compact .grid-item .thumb { width: 100%; height: 100%; background-size: cover; background-position: center; }
.media-grid.compact .grid-item.more { display: grid; place-items: center; font-weight: 800; color: #111; background: #e9edf5; }
.media-grid .badge { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,0.65); color: #fff; padding: 4px 8px; border-radius: 10px; font-size: 0.85rem; display: flex; gap: 6px; align-items: center; }

/* Moderation: reported content blur overlay */
.reported-blur { position: relative; overflow: hidden; }
.reported-blur .reported-blur-target { filter: blur(10px) saturate(0.85); }
.reported-blur img.reported-blur-target,
.reported-blur video.reported-blur-target { transform: scale(1.06); }
.reported-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(4px);
}
.reported-overlay-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; max-width: 280px; }
.reported-overlay-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}
.reported-overlay-text { font-size: 12px; font-weight: 900; line-height: 1.25; color: #0f172a; }
.reported-overlay .reported-reveal { white-space: nowrap; }
.reported-overlay.compact { padding: 8px; }
.reported-overlay.compact .reported-overlay-inner {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  max-width: 360px;
}
.reported-overlay.compact .reported-overlay-icon { width: 26px; height: 26px; font-size: 0.9rem; }
.reported-overlay.compact .reported-overlay-text { font-size: 11px; font-weight: 900; line-height: 1.2; }
.reported-overlay.compact .reported-reveal { padding: 6px 10px; font-size: 0.84rem; }

.reported-overlay.micro { padding: 4px; }
.reported-overlay.micro .reported-overlay-inner { gap: 3px; max-width: 100%; }
.reported-overlay.micro .reported-overlay-icon { width: 20px; height: 20px; font-size: 0.82rem; box-shadow: none; }
.reported-overlay.micro .reported-overlay-text {
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.reported-overlay.micro .reported-reveal { padding: 3px 8px; font-size: 0.74rem; }
.reported-overlay.lightbox {
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(6px);
}
.reported-overlay.lightbox .reported-overlay-text { color: #fff; }
.reported-overlay.lightbox .reported-overlay-icon {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}
.reported-overlay.lightbox .reported-reveal { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); color: #fff; }

.trip-spot-thumb-wrap { width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; }
.trip-spot-thumb-wrap .trip-spot-thumb { width: 100%; height: 100%; border-radius: inherit; }
.list-thumb-wrap { display: block; }
.list-thumb-wrap.reported-blur { border-radius: 0; }
.list-thumb-wrap .reported-overlay { border-radius: 0; }
.visit-thumb-wrap.reported-blur { border-radius: 12px; }
.visit-body-blur.reported-blur { border-radius: 12px; }
.timeline-body-blur.reported-blur { border-radius: 12px; }
.comment .comment-body.reported-blur,
.visit-body-blur.reported-blur,
.timeline-body-blur.reported-blur { min-height: 74px; }
.hidden-control { display: none !important; }
.comments-block { margin-top: 12px; display: grid; gap: 8px; }
.comments-head { display: flex; align-items: center; gap: 8px; }
.comments-head h4 { margin: 0; }

.trim-preview { width: 100%; border-radius: 10px; background: #050a12; margin: 8px 0; }
.trim-track { position: relative; width: 100%; height: 12px; background: #e5eaf2; border-radius: 999px; margin: 6px 0 14px; }
.trim-window { position: absolute; top: 0; bottom: 0; background: rgba(53,227,210,0.55); border-radius: 999px; cursor: grab; box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.trim-assistant-overlay {
  z-index: 2000010;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 0 calc(12px + env(safe-area-inset-bottom, 0px));
}
.trim-assistant-content {
  width: min(560px, 94vw);
  margin: 0 auto;
  max-height: calc(100svh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.trim-assistant-content .trim-preview {
  width: 100%;
  max-height: min(46svh, 380px);
  object-fit: contain;
}
.trim-assistant-content .form-group:last-child {
  position: sticky;
  bottom: 0;
  background: var(--panel);
  padding-top: 8px;
  margin-bottom: 0;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 2600;
  opacity: 1;
  transform: translateY(20px) scale(0.98);
  transition: opacity 160ms ease, transform 200ms ease;
}
.lightbox.enter {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.lightbox.hide { display: none; }
.lightbox-frame {
  position: relative; width: 100vw; height: 100vh;
  background: #050a12; border-radius: 0; overflow: hidden;
  display: grid; grid-template-rows: 1fr;
}

.visit-feed { display: flex; flex-direction: column; gap: 10px; height: min(72vh, 640px); }
.visit-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.visit-feed-head h3 { margin: 0; font-size: 1.15rem; }
.visit-feed-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; gap: 10px; padding-right: 2px; }
.visit-feed .visit-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  align-items: flex-start;
}
.visit-meta { display: grid; gap: 4px; }
.visit-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.visit-user { font-weight: 900; color: #0f172a; }
.visit-user a { text-decoration: none; font-weight: 900; color: #0f172a; }
.visit-meta-sub { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.visit-date { color: var(--muted); opacity: 0.85; }
.visit-rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: var(--accent); }
.visit-note {
  margin-top: 6px;
  line-height: 1.4;
  font-size: 0.92rem;
  font-weight: 400;
  text-align: left;
}
.visit-media-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (min-width: 420px) {
  .visit-media-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.visit-media-row .visit-thumb-wrap { margin-top: 0; width: 100%; display: block; }
.visit-feed .visit-thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 12px; }
.lightbox-main {
  display: grid; place-items: center; background: #050a12;
  touch-action: pan-x pan-y;
  position: relative;
}
.lightbox-main img, .lightbox-main video {
  width: 100%; height: 100%; object-fit: contain; background: #050a12;
  transition: transform 180ms ease, opacity 180ms ease;
}
.lb-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.lb-video-wrap .lb-video-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.lb-video-wrap.is-loading .lb-video-loading {
  display: flex;
}
.lb-video-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.34);
  border-top-color: #fff;
  animation: lbSpin 0.8s linear infinite;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
@keyframes lbSpin {
  to { transform: rotate(360deg); }
}
.lightbox-bar {
  position: absolute; top: auto; bottom: 62px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; color: #f2f6ff; font-size: 0.95rem; gap: 14px;
  background: linear-gradient(0deg, rgba(5,10,18,0.82), rgba(5,10,18,0.4), transparent);
}
.lightbox-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(var(--lb-bar-gap, 0px) + var(--lb-bar-h, 0px) + 12px);
  max-height: 33vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px;
  border-radius: 16px;
  color: #fff;
  background: rgba(5,10,18,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 32px rgba(0,0,0,0.32);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.lightbox-caption .lb-cap-title { font-weight: 900; line-height: 1.25; }
.lightbox-caption .lb-cap-title-link {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.lightbox-caption .lb-cap-note { margin-top: 6px; opacity: 0.95; line-height: 1.35; white-space: pre-wrap; }
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.18); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 1.2rem;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.28); }
.lightbox-btn.prev { left: 10px; }
.lightbox-btn.next { right: 10px; }
.lightbox-close {
    position: absolute;
    right: 14px;
    top: 50px;
    width: 45px;
    height: 45px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    z-index: 60;
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(6px);
}
.lightbox-close:hover { background: rgba(255,255,255,0.26); }
.lightbox-meta { display: flex; align-items: center; gap: 10px; }
.lightbox-meta .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.35); }
.lightbox-actions { margin-right: 16px; display: flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 700; }
.lb-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 18px;
  border: 2px solid #fff;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease;
}
.lb-like-btn:active { transform: scale(0.97); }
.lb-like-btn .fa-heart { font-size: 16px; color: #ff7a45; }
.lb-indicator {
  font-weight: 800;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  bottom: auto;
  z-index: 61;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
}
.lb-like-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.lightbox-hotspots {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  pointer-events: none;
}
.lightbox-hotspots .tapzone {
  pointer-events: none;
}
.lightbox-hotspots .tapzone.prev { grid-column: 1; }
.lightbox-hotspots .tapzone.next { grid-column: 2; }
.lightbox-btn.hint { opacity: 0.85; }
.pill-btn {
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
  color: #fff; padding: 8px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; font-weight: 600;
}
.pill-btn:hover { background: rgba(255,255,255,0.2); }
.pill-btn.danger { border-color: rgba(255, 107, 107, 0.6); }

.club-banner {
  border-radius: 12px;
  margin: 6px 0 10px;
  padding: 10px 12px;
  color: #fff;
}
.club-banner-inner { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.club-banner-inner img { width: 36px; height: 36px; object-fit: cover; border-radius: 10px; background: rgba(255,255,255,0.18); }
.club-chip.active { background: rgba(53,227,210,0.14); }

.star-row { display: flex; gap: 6px; justify-content: center; align-items: center; }
.star-btn { border: none; background: transparent; font-size: 1.2rem; color: #c3c7d4; cursor: pointer; }
.star-btn.active { color: #ffb347; }

#mapCrosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
  pointer-events: none;
  z-index: 700;
}
#mapPickBar {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: none;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: var(--shadow);
  z-index: 701;
}
#mapPickBar button { margin: 0 4px; }
@media (max-width: 768px) {
  #mapPickBar {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    z-index: 980;
    width: min(85vw, 420px);
    justify-content: center;
  }
  #mapPickBar button {
    min-width: 132px;
  }
}

.map-filter-badge {
  position: absolute;
  left: 50%;
  bottom: calc(105px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 650;
  width: auto;
  max-width: min(92vw, 460px);
}
.map-filter-badge.hidden { display: none; }
.map-filter-badge.is-clickable { cursor: pointer; }
.map-filter-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 22px rgba(10,20,40,0.10);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #0f172a;
}
.map-filter-icon.hidden { display: none; }
.map-filter-label {
  flex: 1;
  min-width: 0;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-filter-clear {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  display: grid;
  place-items: center;
  padding: 0;
  flex: 0 0 auto;
}
.map-filter-clear i { pointer-events: none; }
.map-filter-clear.hidden { display: none; }

/* Trips */
.trip-mini-map {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  box-shadow: 0 10px 22px rgba(10,20,40,0.12);
  margin: 10px 0 14px;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.trip-mini-map:active { transform: scale(0.995); }
.trip-mini-map.is-empty { cursor: default; }
.trip-mini-map-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trip-card.active { box-shadow: inset 0 0 0 2px var(--accent-2); }

.settings-panel .panel-scroller,
.trips-panel .panel-scroller,
.wishlist-panel .panel-scroller,
.clubs-panel .panel-scroller,
.feed-panel .panel-scroller { background-color: #f3f2e7; }
.settings-panel #galleryList,
.trips-panel #galleryList,
.wishlist-panel #galleryList,
.clubs-panel #galleryList,
.feed-panel #galleryList { padding: 14px 14px 22px; }
.settings-panel #galleryHeader,
.trips-panel #galleryHeader,
.wishlist-panel #galleryHeader,
.clubs-panel #galleryHeader,
.feed-panel #galleryHeader {
  color: var(--text);
  background: var(--panel);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 22px rgba(10,20,40,0.08);
}
.settings-panel #galleryHeader.settings-drag,
.trips-panel #galleryHeader.trips-drag,
.wishlist-panel #galleryHeader.wishlist-drag,
.clubs-panel #galleryHeader.clubs-drag,
.feed-panel #galleryHeader.feed-drag { display: block; min-height: 132px; padding: 45px 18px 18px 20px; }
.settings-panel #galleryHeader .trips-header-row,
.trips-panel #galleryHeader .trips-header-row,
.wishlist-panel #galleryHeader .trips-header-row,
.clubs-panel #galleryHeader .trips-header-row,
.feed-panel #galleryHeader .trips-header-row { display: flex; align-items: center; gap: 12px; }
.settings-panel #galleryHeader .trips-header-text,
.trips-panel #galleryHeader .trips-header-text,
.wishlist-panel #galleryHeader .trips-header-text,
.clubs-panel #galleryHeader .trips-header-text,
.feed-panel #galleryHeader .trips-header-text { flex: 1; min-width: 0; }
.settings-panel #galleryHeader .trips-header-title,
.trips-panel #galleryHeader .trips-header-title,
.wishlist-panel #galleryHeader .trips-header-title,
.clubs-panel #galleryHeader .trips-header-title,
.feed-panel #galleryHeader .trips-header-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  margin-top: 15px;
}
.settings-panel #galleryHeader .trips-header-title-text,
.trips-panel #galleryHeader .trips-header-title-text,
.wishlist-panel #galleryHeader .trips-header-title-text,
.clubs-panel #galleryHeader .trips-header-title-text,
.feed-panel #galleryHeader .trips-header-title-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-panel #galleryHeader .trips-header-sub,
.trips-panel #galleryHeader .trips-header-sub,
.wishlist-panel #galleryHeader .trips-header-sub,
.clubs-panel #galleryHeader .trips-header-sub,
.feed-panel #galleryHeader .trips-header-sub,
.profile-panel #galleryHeader .trips-header-sub { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.settings-panel #galleryHeader .trips-header-btn,
.settings-panel #galleryHeader .trips-header-spacer,
.trips-panel #galleryHeader .trips-header-btn,
.trips-panel #galleryHeader .trips-header-spacer,
.wishlist-panel #galleryHeader .trips-header-btn,
.wishlist-panel #galleryHeader .trips-header-spacer,
.clubs-panel #galleryHeader .trips-header-btn,
.clubs-panel #galleryHeader .trips-header-spacer,
.feed-panel #galleryHeader .trips-header-btn,
.feed-panel #galleryHeader .trips-header-spacer,
.profile-panel #galleryHeader .trips-header-btn,
.profile-panel #galleryHeader .trips-header-spacer {
  width: 45px;
  height: 45px;
  font-size: 25px;
  flex: 0 0 auto;
}
.settings-panel #galleryHeader .trips-header-btn,
.trips-panel #galleryHeader .trips-header-btn,
.wishlist-panel #galleryHeader .trips-header-btn,
.clubs-panel #galleryHeader .trips-header-btn,
.feed-panel #galleryHeader .trips-header-btn,
.profile-panel #galleryHeader .trips-header-btn {
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 22px rgba(10,20,40,0.10);
}
.settings-panel #galleryHeader .trips-header-btn i,
.trips-panel #galleryHeader .trips-header-btn i,
.wishlist-panel #galleryHeader .trips-header-btn i,
.clubs-panel #galleryHeader .trips-header-btn i,
.feed-panel #galleryHeader .trips-header-btn i,
.profile-panel #galleryHeader .trips-header-btn i { pointer-events: none; }

.trips-panel .trips-controls,
.wishlist-panel .trips-controls { display: grid; gap: 10px; }
.trips-panel .trips-new-btn {
  width: 100%;
  background: #f7f8fb;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  color: #0f172a;
  border-radius: 14px;
  padding: 11px 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.trips-panel .trips-new-btn i { font-size: 14px; }

.trips-panel .trip-card {
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
  border-radius: 18px;
  transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.trips-panel .trip-card:active { transform: scale(0.99); }
.trips-panel .trip-card-preview {
  width: 100%;
  height: 116px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  margin-bottom: 10px;
}
.trips-panel .trip-card-preview-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trips-panel .trip-card-preview.placeholder {
  display: grid;
  place-items: center;
  color: rgba(15, 23, 42, 0.55);
  background: linear-gradient(135deg, #eef1f6, #f8fafc);
}
.trips-panel .trip-card-preview.placeholder i { font-size: 20px; }
.trips-panel .trip-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trips-panel .trip-card-name { font-weight: 900; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.trips-panel .trip-card-name-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trips-panel .trip-card-actions { display: flex; gap: 8px; }
.trips-panel .trip-card-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #f1f3f8;
  border: 1px solid #e1e6f0;
}
.trips-panel .trip-card-btn i { pointer-events: none; }
.trips-panel .trip-card-btn.danger { background: #ffe8e8; border-color: #f4b3b3; color: #b30f0f; }
.trips-panel .trip-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.trips-panel .trip-card.active {
  border-color: rgba(74, 163, 255, 0.35);
  box-shadow: inset 0 0 0 2px var(--accent-2), inset 0 1px 0 rgba(255,255,255,0.85);
}

.trips-panel .trips-detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trips-panel .trips-detail-left { display: flex; gap: 8px; flex: 1; min-width: 0; }
.trips-panel .trips-detail-left .small { white-space: nowrap; }
.trips-panel .trips-detail-right { display: flex; gap: 8px; flex: 0 0 auto; }

.trips-panel .pill-trip.is-shared {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.82);
}

.trips-panel .trip-access-card {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(140deg, rgba(255,255,255,0.98), rgba(248,250,255,0.92));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
}
.trips-panel .trip-access-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.trips-panel .trip-access-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.62);
}
.trips-panel .trip-access-pill {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-weight: 900;
}
.trips-panel .trip-access-avatars { margin-top: 10px; }
.trips-panel .trip-access-avatars .avatar.placeholder {
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.70);
  background: #e0e6f1;
}
.trips-panel .trip-access-avatars .avatar.placeholder.more {
  background: rgba(15, 23, 42, 0.10);
}
.trips-panel .trip-access-line {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
}
.trips-panel .trip-access-line .trip-access-user { font-weight: 900; color: rgba(15, 23, 42, 0.78); }
.trips-panel .trip-access-line a.trip-access-user { text-decoration: none; }
.trips-panel .trip-access-line a.trip-access-user:hover { text-decoration: underline; }
.trips-panel .trip-access-line .trip-access-sep { color: rgba(15, 23, 42, 0.30); }
.trips-panel .trip-access-line .trip-access-more {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.72);
  font-weight: 900;
}

.trips-panel .trip-meta-card {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.trips-panel .trip-meta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.trips-panel .trip-meta-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.62);
}
.trips-panel .trip-meta-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  padding: 6px 10px;
}
.trips-panel .trip-meta-grid {
  display: grid;
  gap: 12px;
}
.trips-panel .trip-meta-label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.trips-panel .trip-meta-value {
  font-weight: 900;
  color: #0f172a;
}
.trips-panel .trip-meta-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.trips-panel .trip-meta-date-text { min-width: 0; }
.trips-panel .trip-meta-countdown {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
}
.trips-panel .trip-meta-notes {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.86);
}

.trip-settings-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .trip-settings-dates { grid-template-columns: 1fr; }
}

.trip-share-modal { max-width: 520px; }
.trip-share-success {
  display: grid;
  gap: 10px;
  text-align: center;
}
.trip-share-success h3 { margin: 0; }
.trip-share-success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.trip-share-success-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.trip-share-success-check {
  width: 72px;
  height: 72px;
  margin: 2px auto 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.3);
  animation: tripShareSuccessPop 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.trip-share-success-check i {
  font-size: 28px;
  animation: tripShareSuccessTick 560ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.trip-share-link-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.trip-share-link-wrap .input { font-size: 13px; }
.trip-share-qr-wrap {
  margin-top: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}
.trip-share-qr { width: 100%; display: grid; place-items: center; }
.trip-share-qr svg { width: 220px; height: 220px; display: block; }
.trip-share-member-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.trip-share-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
  cursor: pointer;
}
.trip-share-member:active { transform: scale(0.995); }
.trip-share-member-avatar .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  background: #eef1f6;
}
.trip-share-member-avatar .avatar.placeholder {
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.70);
}
.trip-share-member-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trip-share-member-name {
  font-weight: 900;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trip-share-member-name a { color: inherit; text-decoration: none; font-weight: 900; }
.trip-share-member-name a:hover { text-decoration: underline; }
.trip-share-member-handle {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trip-share-role {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: rgba(15, 23, 42, 0.78);
}
.trip-share-role.is-owner {
  background: rgba(17, 24, 39, 0.10);
  border-color: rgba(17, 24, 39, 0.14);
  color: rgba(15, 23, 42, 0.92);
}
.trip-share-member-remove {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #ffe8e8;
  border: 1px solid #f4b3b3;
  color: #b30f0f;
}
.trip-share-member-remove i { pointer-events: none; }
.trip-share-actions { margin-top: 12px; }

.trips-panel .trip-spot-list,
.profile-panel .trip-spot-list,
.wishlist-panel .trip-spot-list,
.feed-panel .trip-spot-list { display: flex; flex-direction: column; gap: 10px; }
.trips-panel .trip-spot-row,
.profile-panel .trip-spot-row,
.wishlist-panel .trip-spot-row,
.feed-panel .trip-spot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
  cursor: pointer;
}
.trips-panel .trip-spot-row:active,
.profile-panel .trip-spot-row:active,
.wishlist-panel .trip-spot-row:active,
.feed-panel .trip-spot-row:active { transform: scale(0.995); }
.trips-panel .trip-spot-row.is-new-highlight,
.profile-panel .trip-spot-row.is-new-highlight,
.wishlist-panel .trip-spot-row.is-new-highlight,
.feed-panel .trip-spot-row.is-new-highlight {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.18), inset 0 1px 0 rgba(255,255,255,0.85);
  animation: trip-new-pulse 1.2s ease-out 1;
}
@keyframes trip-new-pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.34), inset 0 1px 0 rgba(255,255,255,0.85); }
  100% { box-shadow: 0 0 0 6px rgba(14, 165, 233, 0), inset 0 1px 0 rgba(255,255,255,0.85); }
}
.trips-panel .trip-spot-thumb,
.profile-panel .trip-spot-thumb,
.wishlist-panel .trip-spot-thumb,
.feed-panel .trip-spot-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #eef1f6;
  border: 1px solid rgba(0,0,0,0.05);
}
.trips-panel .trip-spot-thumb.placeholder,
.profile-panel .trip-spot-thumb.placeholder,
.wishlist-panel .trip-spot-thumb.placeholder,
.feed-panel .trip-spot-thumb.placeholder { display: block; }
.trips-panel .trip-spot-main,
.profile-panel .trip-spot-main,
.wishlist-panel .trip-spot-main,
.feed-panel .trip-spot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.trips-panel .trip-spot-title,
.profile-panel .trip-spot-title,
.wishlist-panel .trip-spot-title,
.feed-panel .trip-spot-title {
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trips-panel .trip-spot-sub,
.profile-panel .trip-spot-sub,
.wishlist-panel .trip-spot-sub,
.feed-panel .trip-spot-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trips-panel .trip-spot-chips,
.profile-panel .trip-spot-chips,
.wishlist-panel .trip-spot-chips,
.feed-panel .trip-spot-chips { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.trips-panel .trip-spot-chip,
.profile-panel .trip-spot-chip,
.wishlist-panel .trip-spot-chip,
.feed-panel .trip-spot-chip {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 12px;
  background: #f7f8fb;
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.trips-panel .trip-spot-chip i,
.profile-panel .trip-spot-chip i,
.wishlist-panel .trip-spot-chip i,
.feed-panel .trip-spot-chip i { pointer-events: none; }
.trips-panel .trip-spot-visited,
.profile-panel .trip-spot-visited,
.wishlist-panel .trip-spot-visited,
.feed-panel .trip-spot-visited { width: 34px; justify-content: center; padding: 0; }
.trips-panel .trip-spot-visited.is-visited,
.profile-panel .trip-spot-visited.is-visited,
.wishlist-panel .trip-spot-visited.is-visited,
.feed-panel .trip-spot-visited.is-visited { background: #eef8f6; border-color: #c7e8df; }
.profile-panel .trip-spot-act-type,
.feed-panel .trip-spot-act-type { width: 34px; justify-content: center; padding: 0; }
.profile-panel .trip-spot-act-type.created,
.feed-panel .trip-spot-act-type.created { background: rgba(74,163,255,0.12); border-color: rgba(74,163,255,0.25); }
.profile-panel .trip-spot-act-type.visited,
.feed-panel .trip-spot-act-type.visited { background: rgba(53,227,210,0.12); border-color: rgba(53,227,210,0.25); }
.profile-panel .trip-spot-when,
.feed-panel .trip-spot-when { white-space: nowrap; }
.trips-panel .trip-spot-rating.is-empty,
.profile-panel .trip-spot-rating.is-empty,
.wishlist-panel .trip-spot-rating.is-empty,
.feed-panel .trip-spot-rating.is-empty { opacity: 0.65; }
.trips-panel .trip-spot-remove,
.profile-panel .trip-spot-remove,
.wishlist-panel .trip-spot-remove,
.feed-panel .trip-spot-remove {
  width: 34px;
  justify-content: center;
  padding: 0;
  background: #ffe8e8;
  border-color: #f4b3b3;
  color: #b30f0f;
}

/* Feed panel (Trips-like activity feed) */
.feed-panel #galleryHeader .feed-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(10,20,40,0.10);
}
.feed-panel #galleryHeader .feed-logo-text {
  height: 22px;
  width: auto;
  object-fit: contain;
}
.feed-empty-card { text-align: center; }
.feed-empty-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 6px;
}
.feed-empty-icon { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; box-shadow: 0 16px 30px rgba(0,0,0,0.18); }
.feed-empty-logo { height: 34px; width: auto; object-fit: contain; }
.feed-panel .feed-login-card,
.feed-panel .feed-info-card {
  max-width: min(520px, 100%);
  margin: 0 auto;
  width: 100%;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}
.feed-panel .feed-login-title { font-weight: 900; color: #0f172a; font-size: 16px; }
.feed-panel .feed-login-sub { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--muted); line-height: 1.35; }
.feed-panel .feed-login-card button { width: 100%; margin-top: 10px; }
.feed-panel .feed-info-card { display: flex; align-items: flex-start; gap: 12px; }
.feed-panel .feed-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(15,23,42,0.06);
  border: 1px solid rgba(15,23,42,0.10);
  display: grid;
  place-items: center;
  color: #0f172a;
  flex: 0 0 auto;
}
.feed-panel .feed-info-body { flex: 1; min-width: 0; }
.feed-panel .feed-info-title { font-weight: 900; color: #0f172a; }
.feed-panel .feed-info-text { margin-top: 4px; font-size: 13px; font-weight: 800; color: var(--muted); line-height: 1.35; }
.feed-panel .feed-list { display: flex; flex-direction: column; gap: 16px; }
.feed-panel .feed-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
  cursor: pointer;
  max-width: min(520px, 100%);
  margin: 0 auto;
  width: 100%;
}
.feed-panel .feed-card:active { transform: scale(0.995); }
.feed-panel .feed-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 10px;
}
.feed-panel .feed-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.feed-panel .feed-card-time { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.feed-panel .feed-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(10,20,40,0.10);
  white-space: nowrap;
}
.feed-panel .feed-type-badge.created { background: rgba(74,163,255,0.12); border-color: rgba(74,163,255,0.25); box-shadow: none; }
.feed-panel .feed-type-badge.visited { background: rgba(53,227,210,0.12); border-color: rgba(53,227,210,0.25); box-shadow: none; }
.feed-panel .feed-type-badge.commented { background: rgba(15,23,42,0.06); border-color: rgba(15,23,42,0.14); box-shadow: none; }
.feed-panel .feed-type-badge.activity { background: rgba(15,23,42,0.05); border-color: rgba(15,23,42,0.12); box-shadow: none; }
.feed-panel .feed-actor-row { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.feed-panel .feed-actor-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.feed-panel .feed-actor-name { font-weight: 900; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-panel .feed-actor-action { font-size: 12px; color: rgba(15, 23, 42, 0.72); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-panel .feed-media-hero { width: 100%; aspect-ratio: 4 / 5; background: #eef1f6; }
.feed-panel .feed-media-thumb { cursor: pointer; }
.feed-panel .feed-hero-media { position: relative; width: 100%; height: 100%; }
.feed-panel .feed-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-panel .feed-hero-media.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #eef1f6, #f8fafc);
  color: rgba(15,23,42,0.45);
  font-size: 20px;
}
.feed-panel .feed-hero-media.video-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.28));
  color: #fff;
  font-size: 1.3rem;
}
.feed-panel .feed-media-count {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.22);
}
.feed-panel .feed-map-preview {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 132px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;

  box-shadow: 0 16px 30px rgba(0,0,0,0.22);
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.feed-panel .feed-map-preview img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.06) contrast(1.06); }
.feed-panel .feed-map-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(0deg, rgba(2,6,23,0.72), rgba(2,6,23,0));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}
.feed-panel .feed-card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.feed-panel .feed-spot-title {
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.feed-panel .feed-spot-sub { font-size: 13px; font-weight: 800; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-panel .feed-spot-sub a { color: var(--accent-2); text-decoration: none; font-weight: 900; }
.feed-panel .feed-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(74,163,255,0.06);
  border: 1px solid rgba(74,163,255,0.14);
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.feed-panel .feed-note.is-comment { background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.10); }

.trips-modal-actions { flex-direction: row; justify-content: center; gap: 8px; }

/* Trip picker modal (Add to Trip) */
.trip-picker-modal { display: flex; flex-direction: column; gap: 12px; }
.trip-picker-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trip-picker-head .notice { margin: 6px 0 0; }
.trip-picker-controls { display: grid; gap: 10px; }
.trip-picker-new-btn {
  width: 100%;
  background: #f7f8fb;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  color: #0f172a;
  border-radius: 14px;
  padding: 11px 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.trip-picker-new-btn i { font-size: 14px; pointer-events: none; }
.trip-picker-list { display: flex; flex-direction: column; gap: 10px; }
.trip-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}
.trip-picker-row:active { transform: scale(0.995); }
.trip-picker-preview {
  width: 76px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  flex: 0 0 auto;
}
.trip-picker-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trip-picker-preview.placeholder {
  display: grid;
  place-items: center;
  color: rgba(15, 23, 42, 0.55);
  background: linear-gradient(135deg, #eef1f6, #f8fafc);
}
.trip-picker-preview.placeholder i { font-size: 18px; }
.trip-picker-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.trip-picker-title {
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trip-picker-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trip-picker-sub.is-in-trip { color: rgba(15, 23, 42, 0.72); font-weight: 800; }
.trip-picker-add {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #eef8f6;
  border: 1px solid #c7e8df;
  color: #0f172a;
  flex: 0 0 auto;
}
.trip-picker-add.remove {
  background: #ffe8e8;
  border-color: #f4b3b3;
  color: #b30f0f;
}
.trip-picker-add i { pointer-events: none; }
.trip-picker-add:disabled { opacity: 0.65; cursor: progress; }

@media (max-width: 768px) {
  .trips-panel #galleryList,
  .wishlist-panel #galleryList,
  .clubs-panel #galleryList { padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .trips-panel #galleryHeader.panel-drag.trips-drag,
  .wishlist-panel #galleryHeader.panel-drag.wishlist-drag,
  .clubs-panel #galleryHeader.panel-drag.clubs-drag { display: block; padding-top: 54px; }
  .trips-panel #galleryHeader.panel-drag.trips-drag::after,
  .wishlist-panel #galleryHeader.panel-drag.wishlist-drag::after,
  .clubs-panel #galleryHeader.panel-drag.clubs-drag::after {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    background: rgba(15,23,42,0.22);
    box-shadow: 0 8px 18px rgba(15,23,42,0.16);
  }
}

/* Clubs panel */

.clubs-panel .clubs-controls { display: grid; gap: 10px; }
.clubs-panel .clubs-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 22px rgba(10,20,40,0.10);
}
.clubs-panel .clubs-search i { font-size: 14px; color: rgba(15,23,42,0.55); }
.clubs-panel .clubs-search .input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  padding: 3px;
  line-height: 30px;
}
.clubs-panel .clubs-search-clear {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(241,243,248,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: none;
}
.clubs-panel .clubs-search-clear i { pointer-events: none; font-size: 14px; }
.clubs-panel .clubs-search-clear.hidden { display: none; }

.clubs-panel .clubs-empty-card {
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.clubs-panel .club-list { display: flex; flex-direction: column; gap: 10px; }
.clubs-panel .club-group { display: flex; flex-direction: column; gap: 10px; }
.clubs-panel .club-group + .club-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(15,23,42,0.06); }
.clubs-panel .club-group-title {
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.01em;
  margin: 2px 2px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.clubs-panel .club-group-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f172a;
  display: inline-block;
  opacity: 0.2;
}
.clubs-panel .club-card {
  --club-accent: rgba(15,23,42,0.12);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.clubs-panel .club-card:active { transform: scale(0.995); }
.clubs-panel .club-card-icon-wrap {
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.clubs-panel .club-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #eef1f6, #f8fafc);
  border: 1px solid rgba(15,23,42,0.06);
}
.clubs-panel .club-card-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--club-accent, rgba(15,23,42,0.12));
  opacity: 0.85;
  pointer-events: none;
}
.clubs-panel .club-card-icon-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clubs-panel .club-card-icon-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(15,23,42,0.68);
}
.clubs-panel .club-card-privacy-badge {
  min-height: 18px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.clubs-panel .club-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.clubs-panel .club-card-title-row { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.clubs-panel .club-card-title {
  font-weight: 900;
  color: #0f172a;
  flex: 1 1 auto;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.15;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.clubs-panel .club-card-title-row { flex-direction: column; align-items: flex-start; gap: 6px; }
.clubs-panel .club-card-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; flex: 0 0 auto; }
.clubs-panel .club-card-sub {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clubs-panel .club-card-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; padding-top: 2px; }
.clubs-panel .club-card-arrow { width: 24px; height: 24px; display: grid; place-items: center; color: rgba(15,23,42,0.35); }
.clubs-panel .club-card-arrow i { pointer-events: none; font-size: 14px; }

.clubs-panel .club-cta {
  height: 38px;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,23,42,0.92);
  color: #fff;
  border: 1px solid rgba(15,23,42,0.12);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(10,20,40,0.12);
}
.clubs-panel .club-cta i { pointer-events: none; font-size: 13px; }
.clubs-panel .club-cta.ghost {
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}
.clubs-panel .club-cta:disabled { opacity: 0.7; cursor: progress; }

.clubs-panel .club-ico-btn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #f1f3f8;
  border: 1px solid #e1e6f0;
}
.clubs-panel .club-ico-btn i { pointer-events: none; font-size: 14px; }
.clubs-panel .club-ico-btn.danger { background: #ffe8e8; border-color: #f4b3b3; color: #b30f0f; }

.clubs-panel .pill {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.06);
  color: rgba(15,23,42,0.74);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}
.clubs-panel .club-pill-owner { border-color: rgba(0,0,0,0.10); }
.clubs-panel .club-pill-member { border-color: rgba(0,0,0,0.08); }
.clubs-panel .club-pill-pending { border-style: dashed; }

.clubs-panel .card {
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
  border-radius: 18px;
  transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.clubs-panel .card:active { transform: scale(0.995); }

.clubs-modal { display: grid; gap: 10px; }
.clubs-modal h3 { margin: 0; }
.clubs-modal .clubs-modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* Club detail (clubs panel) */

.clubs-panel .club-detail { --club-accent: rgba(15,23,42,0.12); }
.clubs-panel .club-hero {
  width: 100%;
  height: 210px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(135deg, #eef1f6, #f8fafc);
  box-shadow: 0 10px 22px rgba(10,20,40,0.12);
  margin: 0 0 10px;
}
.clubs-panel .club-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); filter: saturate(1.03) contrast(1.02); }
.clubs-panel .club-hero-img.placeholder { background: linear-gradient(135deg, #eef1f6, #f8fafc); }
.clubs-panel .club-hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 20% 20%, rgba(255,255,255,0.0), rgba(0,0,0,0.28) 62%, rgba(0,0,0,0.44));
  pointer-events: none;
}
.clubs-panel .club-icon-wrap {
  width: 104px;
  height: 104px;
  margin: -52px auto 10px;
  border-radius: 26px;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(255,255,255,0.92);
  box-shadow: 0 14px 30px rgba(10,20,40,0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.clubs-panel .club-icon-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--club-accent, rgba(15,23,42,0.12));
  opacity: 0.9;
  pointer-events: none;
}
.clubs-panel .club-icon-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clubs-panel .club-icon-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  color: rgba(15,23,42,0.7);
  background: linear-gradient(135deg, #eef1f6, #f8fafc);
}
.clubs-panel .club-name { text-align: center; font-size: 22px; font-weight: 900; margin-top: 6px; }
.clubs-panel .club-desc {
  text-align: center;
  color: var(--muted);
  margin: 8px auto 0;
  max-width: 560px;
  line-height: 1.45;
  font-size: 13px;
}
.clubs-panel .club-stats { display: flex; gap: 6px; justify-content: center; margin: 10px 0 0; flex-wrap: wrap; }
.clubs-panel .club-actions { display: flex; gap: 10px; justify-content: center; margin: 12px 0 0; flex-wrap: wrap; }
.clubs-panel .club-action { border-radius: 999px; padding: 9px 14px; font-weight: 900; display: inline-flex; align-items: center; gap: 8px; }
.clubs-panel .club-action i { pointer-events: none; font-size: 13px; }
.clubs-panel .club-action-join { background: rgba(15,23,42,0.92); color: #fff; border: 1px solid rgba(15,23,42,0.12); box-shadow: 0 12px 26px rgba(10,20,40,0.14); }
.clubs-panel .club-action-leave { background: rgba(255,255,255,0.92); color: #0f172a; border: 1px solid rgba(0,0,0,0.08); box-shadow: none; }
.clubs-panel .club-owner { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 12px 0 0; }
.clubs-panel .club-owner a { text-decoration: none; color: #0f172a; font-weight: 900; }
.clubs-panel .club-owner-badge {
  font-size: 11px;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.08);
  border: 1px solid rgba(15,23,42,0.14);
  color: rgba(15,23,42,0.82);
}
.clubs-panel .club-avatars { display: flex; justify-content: center; gap: 0; position: relative; padding: 10px 0 4px; z-index: 1;}
.clubs-panel .club-avatars .avatar { border: 2px solid rgba(255,255,255,0.92); }
.clubs-panel .club-avatars .avatar:first-child { margin-left: 0; }
.clubs-panel .club-avatars .avatar.more { background: rgba(15,23,42,0.92); color: #fff; display: grid; place-items: center; z-index: 64; }

.clubs-panel .tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 14px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 22px rgba(10,20,40,0.08);
}
.clubs-panel .tabs .tab {
  flex: 1 1 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: none;
  background: transparent;
  font-weight: 900;
  color: rgba(15,23,42,0.65);
  cursor: pointer;
}
.clubs-panel .tabs .tab.active { background: rgba(15,23,42,0.92); color: #fff; }
.tab-content { position: relative; }
.tab-pane { display: none; padding: 10px 0; }
.tab-pane.active { display: block; }
.clubs-panel .tab-pane { padding: 12px 0 0; }

.clubs-panel .club-locked {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  background: rgba(243,242,231,0.55);
  border-radius: 18px;
}
.clubs-panel .club-locked-card {
  width: min(360px, calc(100% - 24px));
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 18px 36px rgba(10,20,40,0.18);
}
.clubs-panel .club-locked-title { font-weight: 900; color: #0f172a; margin-bottom: 6px; }
.clubs-panel .club-locked-sub { font-size: 13px; color: var(--muted); line-height: 1.4; margin-bottom: 12px; }
.clubs-panel .club-join-inline {
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 900;
  background: rgba(15,23,42,0.92);
  color: #fff;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 12px 26px rgba(10,20,40,0.14);
}
.clubs-panel .club-join-inline i { pointer-events: none; font-size: 13px; }
.clubs-panel .club-cancel-inline {
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 900;
  background: rgba(255,255,255,0.92);
  color: rgba(15,23,42,0.86);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}
.clubs-panel .club-cancel-inline i { pointer-events: none; font-size: 13px; }

.clubs-panel .club-action-pending {
  background: rgba(255,255,255,0.92);
  color: rgba(15,23,42,0.78);
  border: 1px dashed rgba(15,23,42,0.18);
  box-shadow: none;
  cursor: default;
}
.clubs-panel .club-action-pending:disabled { opacity: 1; }

.clubs-panel .club-manage-card { padding: 12px; display: grid; gap: 10px; }
.clubs-panel .club-manage-list { display: flex; flex-direction: column; gap: 8px; }
.clubs-panel .club-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  background: rgba(248,250,252,0.85);
}
.clubs-panel .club-member-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.clubs-panel .club-member-main .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 4px 12px rgba(10,20,40,0.12);
  flex: 0 0 auto;
}
.clubs-panel .club-member-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.clubs-panel .club-member-main a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.clubs-panel .club-member-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.clubs-panel .club-member-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.clubs-panel .activity-item { cursor: pointer; }
.clubs-panel .activity-item .time { font-size: 0.85rem; margin-left: auto; white-space: nowrap; color: var(--muted); font-weight: 800; }
.clubs-panel .forum-topic { cursor: pointer; }
.clubs-panel .forum-topic { text-align: left; }
.clubs-panel .forum-topic .title { font-weight: 900; margin: 4px 0; }
.clubs-panel .forum-topic .body {
  color: rgba(15,23,42,0.74);
  line-height: 1.42;
  font-size: 0.93rem;
  font-weight: 400;
  text-align: left;
}
.clubs-panel .club-spots-map-wrap { margin-top: 2px; }
.clubs-panel .club-spot-list {
  margin-top: 10px;
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}
.clubs-panel .club-spot-row {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}
.clubs-panel .club-spot-row:active { transform: scale(0.995); }
.clubs-panel .club-spot-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e9f3;
  flex: 0 0 auto;
}
.clubs-panel .club-spot-thumb.fallback {
  display: grid;
  place-items: center;
  color: rgba(15,23,42,0.6);
}
.clubs-panel .club-spot-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 3px;
}
.clubs-panel .club-spot-name {
  font-weight: 900;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clubs-panel .club-spot-sub {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clubs-panel .club-spot-new {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.38);
  color: #166534;
}
.thumb.small { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }

.club-thread-modal { display: flex; flex-direction: column; gap: 10px; min-height: 0; text-align: left; }
.club-thread-head { margin-bottom: 2px; }
.club-thread-title { font-size: 1.05rem; font-weight: 900; color: #0f172a; line-height: 1.25; }
.club-thread-sub { margin-top: 2px; color: var(--muted); font-weight: 800; font-size: 0.85rem; }
.club-thread-question {
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,249,255,0.96));
  border: 1px solid rgba(15,23,42,0.10);
}
.club-thread-question.hidden { display: none; }
.club-thread-question,
.club-thread-post,
.club-thread-posts { text-align: left; }
.club-thread-question-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.club-thread-question-meta .time { margin-left: auto; font-size: 0.82rem; font-weight: 800; }
.club-thread-question-body {
  color: rgba(15,23,42,0.90);
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
  font-weight: 400;
  text-align: left;
}
.club-thread-posts { display: flex; flex-direction: column; gap: 10px; }
.club-thread-post { padding: 12px; border: 1px solid rgba(15,23,42,0.08); background: rgba(255,255,255,0.96); }
.club-thread-post .meta { display: flex; gap: 10px; align-items: center; }
.club-thread-post .meta .time { margin-left: auto; white-space: nowrap; font-size: 0.85rem; font-weight: 800; }
.club-thread-body {
  color: rgba(15,23,42,0.86);
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15,23,42,0.04);
  font-size: 0.94rem;
  font-weight: 400;
  text-align: left;
}
.club-thread-compose { border-top: 1px solid rgba(0,0,0,0.06); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.club-thread-compose textarea { resize: vertical; }

#panelClose {
  display: none;
}

@media (max-width: 768px) {
  #panelClose {
    display: none !important;
    right: 14px;
    top: 50px;
    width: 45px;
    height: 45px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    z-index: 30;
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(6px);
  }
  .detail-panel.gallery-panel.expanded #panelClose {
    display: inline-flex !important;

    justify-content: center;
  }
}

/* =========================================================
   Profile panel v2 (cover + avatar overlay + collapse)
   ========================================================= */

.profile-panel #galleryHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: var(--panel);
  color: #0f172a !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 22px rgba(10,20,40,0.08);
}

.profile-panel #galleryHeader.panel-drag.profile-drag {
  display: block;
  align-items: unset;
  justify-content: unset;
  min-height: 0;
  line-height: normal;
  padding: 0;
}

.profile-panel #galleryHeader.panel-drag.profile-drag::after {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
  z-index: 9;
}

.profile-panel #galleryList { padding: 14px 14px 22px; }

.profile-header-v2 {
  --c: var(--profile-collapse, 0);
  /* Static header (no shrink): cover + avatar overlap (~3/4 on cover) */
  --cover-h: 245px;
  --avatar-s: 112px;
  --avatar-top: 116px;
  --meta-pad-top: 244px;

  position: relative;
  width: 100%;
  height: var(--meta-pad-top);
  background: var(--panel);
  overflow: hidden;
}

.profile-header-v2 .profile-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--cover-h);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e8eefc;
}

.profile-header-v2.no-cover .profile-cover {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(53,227,210,0.35), transparent 55%),
    radial-gradient(circle at 70% 25%, rgba(74,163,255,0.28), transparent 60%),
    linear-gradient(160deg, #eff4fb, #dfe7f3);
}

.profile-header-v2 .profile-cover-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--cover-h);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,6,23,0.62), rgba(2,6,23,0.08) 55%, rgba(243,242,231,0) 100%);
}

.profile-header-actions {
  position: absolute;
  top: 60px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 12;
}
.profile-actions-left,
.profile-actions-right { display: flex; align-items: center; gap: 8px; }

#galleryHeader.is-collapsed .profile-actions-left { display: none; }

.profile-header-actions button {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 22px rgba(10,20,40,0.10);
}
.profile-header-actions button.icon-btn {
  width: 45px;
  height: 45px;
  border-radius: 999px;
}
.profile-header-actions button.icon-btn i { font-size: 18px; }
.profile-header-actions button.ghost { background: rgba(255,255,255,0.88); }

.profile-header-actions button.profile-follow-btn {

  border-color: rgba(0,0,0,0.06);
  color: #041018;
  min-height: 45px;
  padding: 0 16px;
  border-radius: 999px;
}
.profile-header-actions button.profile-follow-btn.status-pending {
  background: rgba(255,255,255,0.88);
  color: #0f172a;
  border-color: rgba(15,23,42,0.18);
}
.profile-header-actions button.profile-follow-btn.status-accepted {
  background: rgba(15,23,42,0.92);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}

.profile-avatar-float {
  position: absolute;
  left: 16px;
  top: var(--avatar-top);
  z-index: 5;
}

.avatar.profile-avatar-lg {
  width: var(--avatar-s);
  height: var(--avatar-s);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.92);
  box-shadow: 0 18px 38px rgba(0,0,0,0.22);
  display: block;
}
.avatar.fallback.profile-avatar-lg { font-size: 38px; display: grid; place-items: center; }

.profile-header-meta {
  position: relative;
  padding: 0 16px 14px;
  padding-top: var(--meta-pad-top);
  padding-left: calc(16px + (64px * var(--c)));
  padding-right: calc(16px + (120px * var(--c)));
  z-index: 2;
}

.profile-scroll-meta { padding: 20px 20px;
margin: -15px;
background-color: #fff; }
.profile-scroll-meta .profile-title-row { padding-right: 4px; }
.profile-scroll-meta .profile-bio { padding-right: 4px; }
.profile-scroll-meta .profile-stats { margin-bottom: 6px; }

.profile-sticky-bar {
  position: sticky;
  top: calc(-45px + var(--profile-header-h, 0px));
  z-index: 19;
  background: var(--panel);
  padding: 10px 14px 12px;
  margin: 0 -14px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 22px rgba(10,20,40,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-sticky-bar .profile-tabs { margin-top: 0; }
.profile-sticky-bar .profile-stats { margin-top: 0; }

.profile-title-row { display: flex; flex-direction: column; gap: 2px; }
.profile-title { font-size: 1.45rem; font-weight: 900; color: #0f172a; line-height: 1.15; }
.profile-handle { font-size: 0.95rem; font-weight: 800; color: #6b7280; }
.profile-bio { margin-top: 6px; color: #334155; font-size: 0.95rem; line-height: 1.45; white-space: pre-wrap; }
.profile-stats { margin-top: 10px; justify-content: center; }

.profile-stats .chip {
  padding: 7px 12px;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(10,20,40,0.08);
  text-transform: none;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 65px;
  border: 0;
  margin-bottom: 0;
}
.profile-stats .chip i { font-size: 14px; opacity: 0.75; }
.profile-stats .chip .n { font-weight: 900; }

#galleryHeader.is-collapsed .profile-title-row { flex-direction: row; align-items: center; gap: 10px; }
#galleryHeader.is-collapsed .profile-title { font-size: 1.05rem; }
#galleryHeader.is-collapsed .profile-handle { font-size: 0.9rem; }
#galleryHeader.is-collapsed .profile-bio { display: none; }
#galleryHeader.is-collapsed .profile-stats { display: none; }

.profile-tabs { margin-top: 10px; }
#galleryHeader.is-collapsed .profile-tabs { margin-top: 8px; }

.profile-panel .tabs.profile-tabs,
.profile-panel .tabs.profile-subtabs {
  display: flex;
  gap: 0;
  justify-content: center;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 22px rgba(10,20,40,0.08);
}
.profile-panel .tabs.profile-tabs .tab,
.profile-panel .tabs.profile-subtabs .tab {
  flex: 1 1 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: none;
  background: transparent;
  font-weight: 900;
  color: rgba(15,23,42,0.65);
  cursor: pointer;
}
.profile-panel .tabs.profile-tabs .tab.active,
.profile-panel .tabs.profile-subtabs .tab.active {
  background: rgba(15,23,42,0.92);
  color: #fff;
}

.profile-overview-stats { justify-content: center; }
.profile-overview-stats .profile-overview-stat--score {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  background: rgba(15,23,42,0.06);
  border-color: rgba(15,23,42,0.18);
}
.profile-overview-stats .profile-overview-stat--score i { color: #0f172a; opacity: 0.75; }

.profile-score-chip {display: none !important;}

.profile-overview-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
}
.profile-overview-card {
  min-width: 0;
  max-width: 100%;
}

.profile-mini-chart {
  border: 1px solid rgba(0,0,0,0.05);
  background: linear-gradient(160deg, rgba(74,163,255,0.05), rgba(53,227,210,0.05));
  border-radius: 16px;
  padding: 10px 10px 12px;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.profile-chart-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.profile-chart-group {
  flex: 0 0 auto;
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.profile-chart-bars {
  height: 72px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.profile-chart-bar {
  width: 14px;
  border-radius: 12px 12px 8px 8px;
  background: #e5e7eb;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.profile-chart-bar.created { background: rgba(74,163,255,0.75); border-color: rgba(74,163,255,0.25); }
.profile-chart-bar.visited { background: rgba(53,227,210,0.72); border-color: rgba(53,227,210,0.25); }

.profile-chart-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 12px;
  color: #0f172a;
}
.profile-chart-label .flag { font-size: 14px; }
.profile-chart-label .code { color: var(--muted); letter-spacing: 0.02em; }

.profile-chart-counts {
  display: flex;
  gap: 8px;
  font-weight: 900;
  font-size: 12px;
  color: var(--muted);
  line-height: 1;
}
.profile-chart-counts .created { color: #4aa3ff; }
.profile-chart-counts .visited { color: #35e3d2; }

.profile-chart-legend {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
.profile-chart-legend .legend-item { display: inline-flex; align-items: center; gap: 6px; }
.profile-chart-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.08);
}
.profile-chart-legend .dot.created { background: rgba(74,163,255,0.85); border-color: rgba(74,163,255,0.25); }
.profile-chart-legend .dot.visited { background: rgba(53,227,210,0.82); border-color: rgba(53,227,210,0.25); }

.passport-mini-map {
  width: 100%;
  height: 170px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(160deg, rgba(74,163,255,0.10), rgba(53,227,210,0.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  z-index: 1;
}
.passport-mini-map-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.passport-flag-icon { background: transparent !important; border: none !important; }
.passport-flag-marker {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 26px rgba(0,0,0,0.18);
  font-size: 16px;
}

.profile-tab-content .activity-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.profile-tab-content .activity-main { min-width: 0; }
.profile-tab-content .activity-title { font-weight: 900; color: #0f172a; }
.profile-tab-content .activity-sub {
  color: var(--muted);
  font-weight: 800;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-tab-content .activity-item .time { white-space: nowrap; color: var(--muted); font-weight: 800; font-size: 0.85rem; }

.profile-tab-content .activity-note {
  margin-top: 6px;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
}
.profile-tab-content .activity-media-strip {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.profile-tab-content .activity-media-strip .visit-thumb-wrap { margin-top: 0; }
.profile-tab-content .activity-media-strip .visit-thumb { width: 86px; height: 64px; }

/* Profile PhotoWall */
.photowall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 520px) {
  .photowall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .photowall-grid { gap: 6px; }
}
.pw-tile {
  border: 1px solid rgba(0,0,0,0.04);
  background: #eef1f6;
  border-radius: 14px;
  padding: 0;
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}
.pw-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw-tile.placeholder { display: grid; place-items: center; }
.pw-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #eef1f6, #f8fafc);
  color: rgba(15,23,42,0.52);
  font-size: 22px;
}
.pw-video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(2,6,23,0.55);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  z-index: 2;
}

.private-profile-card {
  border: 1px dashed rgba(15,23,42,0.18);
  background: linear-gradient(160deg, rgba(74,163,255,0.08), rgba(53,227,210,0.08));
}

.cover-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 520px) {
  .cover-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cover-preset {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}
.cover-preset:active { transform: scale(0.99); }

/* =========================================================
   Map: following activity highlight (halos + cluster indicator)
   ========================================================= */

.follow-activity-chipbar {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}
.follow-activity-chipbar { pointer-events: auto; }

@media (max-width: 768px) {
  .follow-activity-chipbar {
    position: fixed;
    left: 50%;
    bottom: calc(105px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 890;
  }
  .map-panel.has-map-filter-badge .follow-activity-chipbar {
    bottom: calc(165px + env(safe-area-inset-bottom, 0px));
  }
}
.follow-activity-chipbar .chip { box-shadow: none; }

.follow-activity-chip {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 900;
  background: rgba(255,255,255,0.78);
  border-color: rgba(255,255,255,0.62);
  backdrop-filter: blur(12px);
}
.follow-activity-chip.active {
  background: #fff;
  border-color: rgba(0,0,0,0.06);
  color: #041018;
}
.follow-activity-markall {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 900;
  padding: 8px 12px;
  background: rgba(255,255,255,0.78);
  border-color: rgba(255,255,255,0.62);
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.follow-activity-markall i { font-size: 14px; opacity: 0.9; }
.follow-activity-markall .label { font-size: 0.84rem; }
@media (max-width: 430px) {
  .follow-activity-markall .label { display: none; }
  .follow-activity-markall { padding: 8px 10px; }
}

.pin-wrap.following-dim {
  opacity: 0.35;
  filter: grayscale(0.25) saturate(0.7);
}

.pin-wrap.following-hide {
  display: none !important;
}

.cluster-icon.focus-hidden {
  display: none !important;
}

.cluster-icon.has-following .cluster {
  box-shadow: 0 10px 22px rgba(53, 227, 210, 0.25), 0 0 0 3px rgba(53, 227, 210, 0.12);
}
.cluster-following {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15,23,42,0.72);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 22px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}
.cluster-following .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(53,227,210,0.92);
  box-shadow: 0 0 0 2px rgba(53,227,210,0.10);
}
.cluster-following .n { line-height: 1; }
.cluster-icon.focus .cluster-following {
  width: 18px;
  padding: 0;
  justify-content: center;
}
.cluster-icon.focus .cluster-following .n { display: none; }

.following-halo {
  filter: drop-shadow(0 10px 18px rgba(53,227,210,0.16));
}
.following-halo.pulse {
  animation: wwFollowingHaloPulse 1.7s ease-in-out infinite;
}
@keyframes wwFollowingHaloPulse {
  0% { opacity: 0.55; }
  50% { opacity: 1; }
  100% { opacity: 0.55; }
}
@keyframes tripShareSuccessPop {
  0% { transform: scale(0.72); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes tripShareSuccessTick {
  0% { transform: scale(0.3) rotate(-16deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.following-activity-bubble-icon {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
  pointer-events: auto;
}

.follow-activity-bubble {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, 0);
  max-width: min(72vw, 240px);
  min-width: 200px;
  pointer-events: auto;
}
.follow-activity-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.92);
  border-right: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transform: translateX(-50%) rotate(45deg);
}

.follow-activity-bubble .fab-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.follow-activity-bubble .fab-avatar.fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #041018;
  font-weight: 900;
  font-size: 12px;
}

.follow-activity-bubble .fab-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.follow-activity-bubble .fab-line1 {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.follow-activity-bubble .fab-line2 { font-size: 11px; font-weight: 700; color: var(--muted); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .follow-activity-bubble {
    background: rgba(255,255,255,0.98);
  }
}

/* In-app notifications (push-like banners) */
.inapp-notice-stack {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(95vw, 520px);
  z-index: 965;
  pointer-events: none;
}
.inapp-notice {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  min-height: 90px;
}
.inapp-notice.hidden { display: none; }
.inapp-notice-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
  font-weight: 900;
  min-width: 0;
}
.inapp-notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(53, 227, 210, 0.18);
  color: #041018;
  border: 1px solid rgba(53, 227, 210, 0.22);
  flex: 0 0 auto;
}
.inapp-notice.notice-warn .inapp-notice-icon {
  background: rgba(255, 122, 69, 0.18);
  border-color: rgba(255, 122, 69, 0.22);
}
.inapp-notice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.inapp-notice-title {
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inapp-notice-sub {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inapp-notice-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}
.inapp-notice-close i { font-size: 16px; }


.profile-subtabs {
  margin-top: 0px !important;
  margin-bottom: 12px;
}

h3 {font-size: 25px;}

.modal-content:has(.ach-info-modal){
  background-color: #f3f2e7;
}

.ww-marker--visited {
  opacity: 60%;
}



/* CSS */
.button-74 {
background-color: #ffffff87 !important;
border: 2px solid #f1f1f1 !important;
box-shadow: #22293b4d 4px 4px 0 0 !important;
backdrop-filter: blur(12px);
  border-radius: 30px;

  color: #22293b !important;
  cursor: pointer;

  font-weight: 600;
  font-size: 18px;


  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}


.tiny {
  font-size: 0.9rem;
}
