:root {
  --bg-page: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-soft: #f9fafb;
  --border-subtle: #e5e7eb;
  --border-strong: #4f46e5;
  --text-main: #111827;
  --text-soft: #6b7280;
  --text-softest: #4b5563;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --accent-pill: #ede9fe;
  --danger: #ef4444;
  --success: #22c55e;
  --shadow-card: 0 22px 60px rgba(15,23,42,0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --nav-height: 60px;
  --subnav-height: 56px;
  --bottom-nav-height: 68px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
  font-size: 16px;
}

body.dragging {
  cursor: grabbing;
}

.app {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
}

.app-inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
}

/* TOP NAV */

.top-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
  z-index: 50;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.logo-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.top-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-logo-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top-logo-tag {
  font-size: 12px;
  color: var(--text-soft);
}

.top-search {
  flex: 2;
  max-width: 520px;
  margin: 0 16px;
  position: relative;
}

.top-search input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: var(--radius-pill);
  border: 1px solid #d1d5db;
  outline: none;
  background: #f9fafb;
  font-size: 14px;
  color: var(--text-main);
}

.top-search input::placeholder {
  color: var(--text-softest);
}

.top-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-softest);
}

.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-location-btn,
.top-account-btn,
.top-post-btn {
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: var(--text-soft);
  font-size: 13px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.top-location-btn span.icon,
.top-account-btn span.icon {
  font-size: 16px;
}

.top-post-btn {
  border-color: var(--accent);
  background: var(--accent);
  color: #f9fafb;
  font-weight: 600;
  padding: 8px 18px;
  box-shadow: 0 10px 20px rgba(79,70,229,0.25);
}

.top-post-btn span.icon {
  font-size: 18px;
}

.top-location-btn:hover,
.top-account-btn:hover {
  border-color: var(--border-strong);
  color: var(--border-strong);
  background: var(--accent-soft);
}

.top-post-btn:hover {
  filter: brightness(0.95);
}

/* MODE / VIEW / FILTER BAR */

.nav-bar {
  position: fixed;
  top: var(--nav-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  height: var(--subnav-height);
  background: var(--bg-surface);
  border-bottom: 1px solid #e5e7eb;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  gap: 16px;
}

.nav-left-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  gap: 3px;
}

.mode-tab {
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
}

.mode-tab.active {
  background: #ffffff;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15,23,42,0.12);
}

.view-toggle {
  display: inline-flex;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.view-btn {
  border: none;
  background: #f3f4f6;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
}

.view-btn.active {
  background: #111827;
  color: #f9fafb;
  font-weight: 600;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-chip {
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: var(--text-soft);
  font-size: 13px;
  padding: 5px 11px;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--accent);
  background: var(--accent-pill);
  color: var(--accent);
  font-weight: 500;
}

/* FEED VIEW */

.feed-view {
  position: fixed;
  top: calc(var(--nav-height) + var(--subnav-height));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  bottom: 0;
  overflow-y: auto;
  padding: 14px 0 14px;
  background: var(--bg-page);
}

.feed-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px 90px;
}

.interests-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 12px;
}

.interest-pill {
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--text-soft);
  font-size: 14px;
  padding: 7px 12px;
  white-space: nowrap;
  cursor: pointer;
}

.interest-pill.primary {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  color: #111827;
  font-weight: 600;
}

.interest-pill.add {
  border-style: dashed;
  color: var(--text-softest);
}

.stories-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px 14px;
}

.story-card {
  min-width: 80px;
  max-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.story-ring {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.story-inner {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}

.story-name {
  font-size: 12px;
  color: var(--text-soft);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.feed-post {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.feed-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 8px;
}

.feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}

.feed-header-text {
  flex: 1;
  min-width: 0;
}

.feed-username {
  font-size: 15px;
  font-weight: 600;
}

.feed-header-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.feed-tag-pill {
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: var(--text-soft);
  font-size: 11px;
  padding: 2px 7px;
}

.feed-time {
  font-size: 11px;
  color: var(--text-softest);
}

.feed-media {
  width: 100%;
  aspect-ratio: 4/5;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  position: relative;
}

.feed-media-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: #111827;
  color: #f9fafb;
  font-size: 11px;
  text-transform: uppercase;
}

.feed-body {
  padding: 10px 16px 6px;
}

.feed-caption {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-main);
  line-height: 1.4;
}

.feed-caption strong {
  font-weight: 600;
}

.feed-offer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  margin-bottom: 6px;
}

.feed-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 10px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.feed-actions-left,
.feed-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-action-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.feed-action-btn span.icon {
  font-size: 16px;
}

.feed-profile-btn {
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--text-soft);
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 500;
}

.feed-profile-btn:hover {
  border-color: var(--border-strong);
  color: var(--border-strong);
}

/* MAP VIEW */

#canvasView {
  position: fixed;
  top: calc(var(--nav-height) + var(--subnav-height));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  bottom: 0;
  display: none;
}

.viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

.map-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.world {
  position: absolute;
  width: 10000px;
  height: 10000px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: none;
}

.grid {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(50, 180px);
  gap: 18px;
  padding: 18px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.user-card,
.sell-card,
.content-card {
  width: 150px;
  height: 170px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card);
  padding: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s;
  pointer-events: auto;
}

.user-card:hover,
.sell-card:hover,
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15,23,42,0.18);
  border-color: var(--border-strong);
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  margin: 2px auto 6px;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.user-status {
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
}

.user-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-top: 6px;
}

.user-tag-pill {
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 10px;
  padding: 2px 6px;
  color: var(--text-softest);
}

.status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 2px solid #ffffff;
}

.status-streaming { background: var(--danger); }
.status-online { background: var(--success); }
.status-for-sale { background: #eab308; }

.status-label {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: rgba(249,250,251,0.95);
  font-size: 10px;
  padding: 2px 7px;
  color: var(--text-soft);
  text-transform: uppercase;
  font-weight: 500;
}

.sell-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  border: 1px solid #22c55e;
  color: #166534;
  background: #dcfce7;
  text-transform: uppercase;
  font-weight: 500;
}

.sell-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 6px;
}

.sell-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.sell-seller {
  font-size: 11px;
  color: var(--text-softest);
}

.sell-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-soft);
}

.sell-price {
  font-weight: 700;
  color: #166534;
}

.sell-cta {
  font-size: 11px;
  color: var(--text-softest);
  text-align: right;
}

.content-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 6px;
  position: relative;
}

.content-type-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 10px;
  padding: 2px 6px;
  color: var(--text-softest);
  text-transform: uppercase;
  font-weight: 500;
}

.content-user {
  font-size: 11px;
  color: var(--text-softest);
  margin-bottom: 3px;
}

.content-caption {
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
}

.content-tag-row {
  margin-top: 3px;
  font-size: 10px;
  color: var(--accent);
}

.coordinates {
  position: absolute;
  bottom: 12px;
  right: 14px;
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 11px;
  padding: 6px 9px;
  color: var(--text-softest);
  z-index: 30;
  display: none;
}

.zoom-controls {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: none;
  gap: 8px;
  z-index: 30;
}

.zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

/* POPUPS */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.18);
  display: none;
  z-index: 60;
}

.popup-overlay.active { display: block; }

.quick-menu {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 92%;
  max-width: 340px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e5e7eb;
  box-shadow: 0 26px 60px rgba(15,23,42,0.2);
  display: none;
  z-index: 70;
}

.quick-menu.active { display: block; }

.quick-menu-header {
  display: flex;
  gap: 12px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid #e5e7eb;
}

.quick-menu-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #111827;
}

.quick-menu-info h3 {
  font-size: 15px;
  margin-bottom: 3px;
}

.quick-menu-info p {
  font-size: 13px;
  color: var(--text-softest);
}

.quick-menu-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-softest);
  cursor: pointer;
  font-size: 18px;
}

.profile-links {
  list-style: none;
  padding: 8px 10px 10px;
}

.profile-links li {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
}

.profile-links li:hover {
  background: #f9fafb;
}

.profile-popup {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 92%;
  max-width: 920px;
  max-height: 86vh;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid #e5e7eb;
  box-shadow: 0 30px 80px rgba(15,23,42,0.25);
  display: none;
  z-index: 80;
  overflow: hidden;
}

.profile-popup.active {
  display: flex;
  flex-direction: column;
}

.profile-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  position: relative;
}

.profile-avatar-large {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  margin: 0 auto 10px;
  background: #111827;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
}

.profile-status {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
}

.profile-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.profile-tag-pill {
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 4px 9px;
  font-size: 11px;
  color: var(--text-soft);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-softest);
  font-size: 16px;
}

.profile-nav {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
}

.profile-nav-btn {
  border: none;
  background: transparent;
  padding: 9px 16px;
  font-size: 12px;
  color: var(--text-softest);
  cursor: pointer;
  white-space: nowrap;
}

.profile-nav-btn.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  font-weight: 500;
}

.profile-content {
  padding: 12px 18px 18px;
  overflow-y: auto;
}

.profile-section { display: none; }
.profile-section.active { display: block; }

.section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-softest);
  margin-bottom: 10px;
}

.media-grid, .friends-grid, .video-grid, .offers-grid {
  display: grid;
  gap: 10px;
}

.media-grid { grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); }
.friends-grid { grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); }
.offers-grid { grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); }

.media-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.friend-card {
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  text-align: center;
  padding: 10px;
}

.friend-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  margin: 0 auto 6px;
  background: #111827;
}

.friend-name { font-size: 12px; }

.video-item {
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  overflow: hidden;
}

.video-thumbnail {
  aspect-ratio: 16/9;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.video-info { padding: 8px 10px; }
.video-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.video-meta { font-size: 12px; color: var(--text-softest); }

.offer-card {
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 10px;
}

.offer-tag {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent);
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  padding: 3px 7px;
  display: inline-block;
  margin-bottom: 4px;
}

.offer-title { font-size: 14px; font-weight: 600; }
.offer-desc { font-size: 12px; color: var(--text-softest); margin-top: 3px; }

.offer-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  font-size: 12px;
}

.offer-price { font-weight: 600; }

.offer-cta-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.offer-btn {
  flex: 1;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 12px;
  padding: 7px;
  cursor: pointer;
}

.offer-btn-primary { background: var(--accent); color: #ffffff; }
.offer-btn-secondary { background: #ffffff; border: 1px solid #e5e7eb; color: var(--text-soft); }

.message-input {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--text-main);
  font-size: 13px;
  padding: 8px;
  resize: vertical;
  min-height: 70px;
}

.post-btn {
  margin-top: 8px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  cursor: pointer;
}

.message-list { margin-top: 10px; }
.message-item {
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 8px;
  margin-bottom: 6px;
}
.message-author { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.message-text { font-size: 13px; }
.message-time { font-size: 11px; color: var(--text-softest); margin-top: 2px; }

.bottom-nav { display: none; }

.poi-wrapper {
  transform: translate(-50%, -100%);
  position: absolute;
}

@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
    --subnav-height: 56px;
    --bottom-nav-height: 68px;
  }

  .top-logo-text { display: none; }

  .nav-bar { padding-inline: 12px; }
  .view-toggle { display: none; }

  .feed-view { bottom: var(--bottom-nav-height); }
  #canvasView { bottom: var(--bottom-nav-height); }

  .grid {
    grid-template-columns: repeat(50, 180px);
  }

  .bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 1280px;
    height: var(--bottom-nav-height);
    background: var(--bg-surface);
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 45;
  }

  .bottom-nav-btn {
    border: none;
    background: transparent;
    color: var(--text-softest);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
  }

  .bottom-nav-btn span.icon { font-size: 20px; }
  .bottom-nav-btn.active { color: var(--accent); }
  .bottom-nav-btn.post span.icon { font-size: 24px; }
}

.feed-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sell-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Small map thumbnails inside map POI cards */
.map-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
