/* ================================================
   Explorely — shared layout for the 3 new screens
   ================================================ */

/* ── Page wrapper ── */
.ex-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ── 3-column app shell (home feed) ── */
.ex-shell {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 0;
  min-height: calc(100vh - 60px);
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Sidebar ── */
.ex-sidebar {
  background: var(--surface);
  border-right: 0.5px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.ex-nav-section { padding: 0 12px; margin-bottom: 8px; }

.ex-nav-label {
  font-size: 11px;
  color: var(--text-3);
  padding: 0 8px 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

.ex-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}

.ex-nav-item:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.ex-nav-item.active { background: var(--purple-light); color: var(--purple); font-weight: 500; }

.ex-nav-badge {
  margin-left: auto;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  border-radius: 10px;
  padding: 1px 7px;
}

.ex-sidebar-footer {
  margin-top: auto;
  padding: 16px 20px 0;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Main feed column ── */
.ex-feed {
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}

/* When used inside the home grid, no extra padding needed */
.hf-grid .ex-feed { border-right: none; }

/* ── Right panel ── */
.ex-right {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

/* ── Quick log bar ── */
.ex-quick-log {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.ex-log-label { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }

.ex-log-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }

.ex-log-tab {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  border: 0.5px solid var(--border);
  color: var(--text-2);
  background: transparent;
  font-family: inherit;
}

.ex-log-tab.active { background: var(--purple); color: #fff; border-color: var(--purple); }

.ex-log-input { display: flex; gap: 8px; }

.ex-log-input input {
  flex: 1;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  color: var(--text);
}

.ex-log-input button {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

/* ── Section header ── */
.ex-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ex-section-hd h2 { font-size: 15px; font-weight: 500; margin: 0; color: var(--text); }
.ex-section-hd a  { font-size: 13px; color: var(--purple); text-decoration: none; }
.ex-section-hd a:hover { text-decoration: underline; }

/* ── Recently logged cards ── */
.ex-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.ex-entry-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s;
}

.ex-entry-card:hover { box-shadow: 0 0 0 1px var(--border-strong); text-decoration: none; color: inherit; }

.ex-entry-type {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}

.ex-entry-card h3 { font-size: 14px; font-weight: 500; margin: 0 0 4px; line-height: 1.3; color: var(--text); }
.ex-entry-card p  { font-size: 12px; color: var(--text-2); margin: 0; }

/* ── Friends activity feed ── */
.ex-feed-list {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ex-feed-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border);
}

.ex-feed-item:last-child { border-bottom: none; }

.ex-feed-body { flex: 1; }
.ex-feed-body p { font-size: 13px; line-height: 1.5; margin: 0; color: var(--text); }
.ex-feed-time  { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.ex-feed-like  { font-size: 12px; color: var(--text-3); margin-top: 4px; cursor: pointer; }

/* ── Avatar ── */
.ex-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  flex-shrink: 0;
  font-size: 11px;
  background: var(--purple-light);
  color: var(--purple);
  overflow: hidden;
}

.ex-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Right panel blocks ── */
.ex-panel-block h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--text);
}

.ex-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ex-stat-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.ex-stat-box .n { font-size: 22px; font-weight: 500; color: var(--text); }
.ex-stat-box .l { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.ex-map-thumb {
  background: var(--bg);
  border-radius: var(--radius-sm);
  height: 120px;
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 6px;
}

.ex-todo-list { display: flex; flex-direction: column; gap: 6px; }

.ex-todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
}

.ex-todo-item:hover { text-decoration: none; color: var(--text); background: var(--purple-light); }
.ex-todo-item.done { color: var(--text-3); text-decoration: line-through; }

.ex-recent-list { display: flex; flex-direction: column; gap: 0; }
.ex-recent-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border-bottom: 0.5px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
}
.ex-recent-item:last-child { border-bottom: none; }
.ex-recent-item:hover { color: var(--purple); }
.ex-recent-icon { font-size: 13px; flex-shrink: 0; }
.ex-recent-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-recent-time { font-size: 11px; color: var(--text-3); flex-shrink: 0; }

.ex-people-list { display: flex; flex-direction: column; gap: 10px; }

.ex-person-row { display: flex; align-items: center; gap: 8px; }
.ex-person-info { flex: 1; }
.ex-person-info p { font-size: 13px; font-weight: 500; margin: 0; color: var(--text); }
.ex-person-info span { font-size: 11px; color: var(--text-3); }
.ex-follow-btn { font-size: 12px; color: var(--purple); cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; }
.ex-follow-btn:hover { text-decoration: underline; color: var(--purple); }

/* ── Stars ── */
.ex-stars { color: var(--gold); font-size: 12px; }

/* ── Tags ── */
.ex-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px;
  background: var(--purple-light);
  color: var(--purple);
  font-weight: 500;
}

.ex-tag.teal  { background: var(--teal-light);  color: var(--teal); }
.ex-tag.coral { background: var(--coral-light); color: var(--coral); }
.ex-tag.amber { background: var(--amber-light); color: var(--amber); }
.ex-tag.green { background: var(--green-light); color: var(--green); }

/* ═══════════════════════════════════════════
   SCREEN 2 — Diary / Profile
   ═══════════════════════════════════════════ */
.ex-profile-wrap {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ex-profile-header {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  padding: 28px 32px 0;
}

.ex-profile-top { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px; }

.ex-profile-ava {
  width: 72px;
  height: 72px;
  font-size: 24px;
  background: var(--purple-light);
  color: var(--purple);
}

.ex-profile-meta h1 { font-size: 20px; font-weight: 500; margin: 0; color: var(--text); }
.ex-profile-location { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.ex-profile-bio { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.5; max-width: 420px; }
.ex-profile-actions { display: flex; gap: 8px; margin-top: 12px; }

.ex-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  border: 0.5px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ex-btn:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.ex-btn.primary { background: var(--purple); color: #fff; border-color: var(--purple); }
.ex-btn.primary:hover { background: var(--purple-hover); color: #fff; }

.ex-pstats { display: flex; gap: 0; border-top: 0.5px solid var(--border); margin-top: 4px; }

.ex-pstat {
  text-align: center;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  color: inherit;
}

.ex-pstat:hover { color: var(--purple); text-decoration: none; }
.ex-pstat.active { border-bottom-color: var(--purple); }
.ex-pstat .n { font-size: 18px; font-weight: 500; color: var(--text); }
.ex-pstat .l { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* Diary body */
.ex-diary-body {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 20px;
  padding: 24px 32px;
  background: var(--bg);
}

.ex-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

.ex-chip {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  border: 0.5px solid var(--border);
  color: var(--text-2);
  background: var(--surface);
  text-decoration: none;
}

.ex-chip:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }
.ex-chip.on { background: var(--purple); color: #fff; border-color: var(--purple); }

.ex-year-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  padding: 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ex-year-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

/* Timeline entry */
.ex-tl-entry { display: flex; gap: 14px; margin-bottom: 4px; }

.ex-tl-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
  flex-shrink: 0;
}

.ex-tl-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.ex-tl-connector { width: 1px; flex: 1; min-height: 16px; background: var(--border); }

.ex-tl-card {
  flex: 1;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.ex-tl-card-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ex-tl-type { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.ex-tl-date { font-size: 11px; color: var(--text-3); }
.ex-tl-card h3 { font-size: 15px; font-weight: 500; margin: 0 0 4px; color: var(--text); }
.ex-tl-sub { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }

.ex-tl-note {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 10px;
  margin-top: 8px;
}

.ex-tl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  border-top: 0.5px solid var(--border);
  padding-top: 10px;
}

.ex-tl-footer span { font-size: 12px; color: var(--text-3); cursor: pointer; }

/* Right panel cards */
.ex-panel-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.ex-panel-card h3 { font-size: 14px; font-weight: 500; margin: 0 0 12px; color: var(--text); }

.ex-taste-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ex-taste-lbl { font-size: 12px; color: var(--text-2); width: 70px; flex-shrink: 0; }
.ex-taste-bg  { flex: 1; height: 5px; background: var(--bg); border-radius: 10px; overflow: hidden; }
.ex-taste-bar { height: 100%; border-radius: 10px; }
.ex-taste-val { font-size: 12px; color: var(--text-3); width: 26px; text-align: right; }

.ex-top-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ex-top-num  { font-size: 13px; font-weight: 500; color: var(--text-3); width: 18px; flex-shrink: 0; }
.ex-top-info { flex: 1; }
.ex-top-info p    { font-size: 13px; margin: 0; color: var(--text); }
.ex-top-info span { font-size: 11px; color: var(--text-3); }

/* ═══════════════════════════════════════════
   SCREEN 3 — City guide
   ═══════════════════════════════════════════ */
.ex-city-wrap {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ex-city-hero {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  padding: 28px 32px 0;
}

.ex-breadcrumb { font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.ex-breadcrumb a { color: var(--text-3); text-decoration: none; }
.ex-breadcrumb a:hover { color: var(--purple); }

.ex-city-top { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px; }

.ex-city-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  overflow: hidden;
}

.ex-city-icon img { width: 100%; height: 100%; object-fit: cover; }

.ex-city-info h1 { font-size: 24px; font-weight: 500; margin: 0; color: var(--text); }
.ex-city-meta  { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.ex-city-desc  { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.6; max-width: 500px; }
.ex-city-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.ex-friends-been {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--purple-light);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.ex-friends-been p { font-size: 12px; color: var(--purple); margin: 0; }
.ex-friends-been strong { cursor: pointer; }

.ex-avatar-stack { display: flex; }
.ex-avatar-stack .ex-avatar { border: 2px solid var(--purple-light); margin-left: -6px; }
.ex-avatar-stack .ex-avatar:first-child { margin-left: 0; }

.ex-nav-tabs { display: flex; border-top: 0.5px solid var(--border); margin-top: 16px; }

.ex-nav-tab {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.ex-nav-tab:hover { color: var(--purple); text-decoration: none; }
.ex-nav-tab.active { color: var(--purple); border-bottom-color: var(--purple); font-weight: 500; }

/* City body */
.ex-city-body {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 20px;
  padding: 24px 32px;
  background: var(--bg);
}

.ex-cat-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

.ex-cat-pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  border: 0.5px solid var(--border);
  color: var(--text-2);
  background: var(--surface);
  text-decoration: none;
}

.ex-cat-pill:hover { border-color: var(--purple); color: var(--purple); text-decoration: none; }
.ex-cat-pill.on { background: var(--purple); color: #fff; border-color: var(--purple); }

/* Picks grid */
.ex-picks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ex-pick-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s;
}

.ex-pick-card:hover { box-shadow: 0 0 0 1px var(--border-strong); text-decoration: none; color: inherit; }

.ex-pick-card.featured {
  border: 1.5px solid var(--purple);
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ex-featured-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  width: fit-content;
  margin-bottom: 8px;
}

.ex-pick-type { font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.ex-pick-card h3 { font-size: 14px; font-weight: 500; margin: 0 0 3px; color: var(--text); }
.ex-pick-addr { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }

.ex-pick-note {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 8px;
  margin-bottom: 8px;
}

.ex-pick-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.ex-pick-loved { font-size: 11px; color: var(--text-3); }
.ex-pick-save  { font-size: 12px; color: var(--purple); cursor: pointer; }

.ex-pick-img {
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  overflow: hidden;
}

.ex-pick-img img { width: 100%; height: 100%; object-fit: cover; }

/* Friends picks list */
.ex-fp-list {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ex-fp-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border);
}

.ex-fp-item:last-child { border-bottom: none; }

.ex-fp-body p { font-size: 13px; line-height: 1.4; margin: 0; color: var(--text); }
.ex-fp-note { font-size: 12px; color: var(--text-2); font-style: italic; margin-top: 3px; }
.ex-fp-time { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* Quick facts */
.ex-qf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text);
}

.ex-qf-lbl { color: var(--text-3); width: 90px; flex-shrink: 0; font-size: 12px; }

/* Vibe tags */
.ex-vibe-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Home feed two-column grid ── */
.hf-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  padding: 24px 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .hf-grid {
    grid-template-columns: 1fr;
    padding: 12px 12px 80px;
    gap: 12px;
  }
  .hf-grid .ex-right { display: none; } /* hide "people like you" on mobile */
}

/* ── Home feed cards (hf-*) ── */
.hf-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 0.5px solid var(--border);
}

.hf-card-title { font-size: 14px; font-weight: 500; color: var(--text); }
.hf-card-link  { font-size: 12px; color: var(--purple); text-decoration: none; }
.hf-card-link:hover { text-decoration: underline; }

.hf-fi {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 0.5px solid var(--border);
}
.hf-fi:last-child { border-bottom: none; }

.hf-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
}
.hf-av img { width: 100%; height: 100%; object-fit: cover; }

.hf-fi-body { flex: 1; min-width: 0; }
.hf-fi-body p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
  white-space: normal;
}
.hf-fi-body p strong { color: var(--text); font-weight: 500; }
.hf-fi-body p em { font-style: normal; color: var(--purple); }

.hf-fi-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}
.hf-fi-time  { font-size: 11px; color: var(--text-3); }
.hf-fi-score { font-size: 11px; color: #EF9F27; }

.hf-fi-icon { font-size: 14px; flex-shrink: 0; margin-top: 2px; opacity: 0.7; }

.hf-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.hf-empty a { color: var(--purple); text-decoration: none; }
.hf-empty a:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .ex-shell {
    grid-template-columns: 1fr;
  }
  .ex-sidebar, .ex-right { display: none; }

  .ex-diary-body, .ex-city-body {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .ex-picks-grid { grid-template-columns: 1fr; }
  .ex-pick-card.featured { grid-template-columns: 1fr; }

  .ex-profile-header { padding: 20px 16px 0; }
  .ex-city-hero { padding: 20px 16px 0; }

  .ex-pstats { overflow-x: auto; }
  .ex-nav-tabs { overflow-x: auto; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE-FIRST HOME FEED  (mf-*)
   ════════════════════════════════════════════════════════════════ */

/* Main wrapper — constrain on desktop, full-bleed on mobile */
.mf-main {
  padding: 0 0 80px;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Log box ────────────────────────────────────────────────────── */
.mf-log-box {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin: 16px 12px 0;
}

.mf-log-prompt {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.mf-log-types {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mf-log-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
}
.mf-log-type:hover { border-color: var(--purple); color: var(--purple); }
.mf-log-primary {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff !important;
}

/* ── Section label ──────────────────────────────────────────────── */
.mf-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-3);
  padding: 20px 16px 8px;
  text-transform: uppercase;
}

/* ── Feed card ──────────────────────────────────────────────────── */
.mf-feed-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  margin: 0 12px 14px;
  overflow: hidden;
  padding: 16px;
}

/* Card header: user + badge */
.mf-card-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.mf-card-user {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mf-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.mf-av img { width: 100%; height: 100%; object-fit: cover; }

.mf-card-user-info { flex: 1; min-width: 0; }

.mf-card-user-line {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mf-card-user-line strong { font-weight: 600; }
.mf-verb { font-weight: 400; color: var(--text-2); }

.mf-card-time {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: .04em;
}

/* Type badge */
.mf-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .09em;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mf-badge-place { border: 1.5px solid var(--purple); color: var(--purple); }
.mf-badge-film  { border: 1.5px solid var(--pink);   color: var(--pink);   }
.mf-badge-book  { border: 1.5px solid var(--amber);  color: var(--amber);  }
.mf-badge-event { border: 1.5px solid var(--teal);   color: var(--teal);   }

/* Item title + meta */
.mf-item-link { text-decoration: none; display: block; margin-bottom: 12px; }

.mf-item-hd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mf-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}

.mf-item-text { flex: 1; min-width: 0; }
.mf-item-title {
  font-family: var(--font-serif, 'Newsreader', Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 5px;
}
.mf-item-meta {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: .02em;
}

/* Photo */
.mf-photo {
  width: calc(100% + 32px);
  margin: 0 -16px 14px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.mf-photo img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}
.mf-photo-placeholder {
  background: repeating-linear-gradient(
    -45deg,
    #C5D8F0,
    #C5D8F0 10px,
    #D9E8F7 10px,
    #D9E8F7 20px
  );
  display: flex;
  align-items: flex-end;
  padding: 10px 14px;
}
.mf-photo-label {
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 100px;
}

/* Rating */
.mf-rating {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 15px;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.mf-rating-max {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}

/* Review */
.mf-review {
  font-family: var(--font-serif, 'Newsreader', Georgia, serif);
  font-size: 15px;
  font-style: italic;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Actions */
.mf-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 0.5px solid var(--border);
}
.mf-action-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mf-action-btn:hover { color: var(--text); }
.mf-action-save {
  margin-left: auto;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--purple);
  font-weight: 500;
  cursor: pointer;
}
.mf-action-save:hover { opacity: .75; }

/* Empty state */
.mf-empty {
  text-align: center;
  padding: 48px 24px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Bottom nav (mobile home feed style) ─────────────────────────── */
.mob-nav {
  display: none;
}
@media (max-width: 860px) {
  .mob-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 0.5px solid var(--border);
    z-index: 200;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
  }
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-2);
  font-size: 20px;
  padding: 4px 12px;
  border-radius: 12px;
  min-width: 44px;
  min-height: 44px;
}
.mob-nav-active .mob-nav-icon { filter: none; opacity: 1; }
.mob-nav-active { color: var(--purple); }

.mob-nav-plus {
  background: var(--purple);
  color: #fff !important;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 24px;
  font-weight: 300;
  box-shadow: 0 4px 14px rgba(83,74,183,.35);
  padding: 0;
  flex-shrink: 0;
}

/* On desktop, hide mob-nav and give .ex-right breathing room */
@media (min-width: 861px) {
  .mf-main {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    padding: 24px 28px 80px;
    align-items: start;
  }
  .mf-log-box  { margin: 0; grid-column: 1; }
  .mf-section-label { grid-column: 1; }
  .mf-feed-card { margin: 0 0 14px; grid-column: 1; }
  .mf-empty { grid-column: 1; }
  .ex-right { grid-column: 2; grid-row: 1 / 99; align-self: start; position: sticky; top: 70px; }
}
