:root {
  --green: #3a6b52;
  --green-dark: #294b3a;
  --orange: #c1662b;
  --sand: #f4ecdf;
  --sand-dark: #e6dabf;
  --ink: #2b2823;
  --muted: #746e63;
  --white: #fffdf8;
  --border: #e0d6c1;
  --radius: 10px;
  --danger-bg: #fbe4e4;
  --danger-ink: #8a2e2e;
}

[data-theme="dark"] {
  --green: #4f9270;
  --green-dark: #24352b;
  --orange: #e08a4f;
  --sand: #14180f;
  --sand-dark: #202a20;
  --ink: #ece7dc;
  --muted: #9b9a8f;
  --white: #1b2116;
  --border: #333c2f;
  --danger-bg: #3a2323;
  --danger-ink: #e2a1a1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--sand);
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
  overflow-x: hidden; /* belt-and-braces: a map or other wide element should never push the page sideways */
}

a { color: var(--green); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.btn {
  background: var(--green);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
}
.btn:hover { background: var(--green-dark); }
.btn.secondary { background: var(--white); color: var(--green); border: 1px solid var(--green); }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.btn.danger { background: var(--orange); }
.btn:disabled { opacity: 0.5; cursor: default; }

.icon-btn {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 13px;
  line-height: 1;
}
.icon-btn:hover { background: rgba(255,255,255,0.2); }

input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
textarea { resize: vertical; }
input[type="file"] { padding: 7px; }

.topbar {
  background: var(--green-dark);
  color: white;
  padding: 0 20px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .brand { font-weight: 800; font-size: 18px; letter-spacing: 0.2px; color: white; display: flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; }
.topbar .brand .dot { color: var(--orange); }
.topbar .brand .brand-mark { height: 38px; width: auto; display: block; }
.hamburger-btn { display: none; font-size: 16px; padding: 6px 10px; }
.topbar nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a {
  color: #cfe3d7;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}
.topbar nav a.active, .topbar nav a:hover { background: rgba(255,255,255,0.12); color: white; }
.topbar .user-chip { display: flex; align-items: center; gap: 8px; }

.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 4px; margin-left: 6px;
  border-radius: 999px; background: var(--orange); color: white;
  font-size: 10.5px; font-weight: 700; line-height: 1; vertical-align: middle;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; }
.wrap.wide { max-width: 960px; }

.app-layout { display: flex; gap: 4px; max-width: 1240px; margin: 0 auto; align-items: flex-start; }
.sidebar {
  width: 230px; flex-shrink: 0; position: sticky; top: 56px;
  max-height: calc(100vh - 56px); overflow-y: auto;
  padding: 18px 8px 40px 16px; display: flex; flex-direction: column; gap: 2px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.sidebar-link:hover { background: var(--sand-dark); }
.sidebar-link.active { background: var(--sand-dark); color: var(--green-dark); }
[data-theme="dark"] .sidebar-link.active { color: #bfe6cf; }
.profile-link { font-weight: 700; margin-bottom: 6px; }
.profile-link .avatar { width: 30px; height: 30px; font-size: 12px; }
.sidebar-divider { border-top: 1px solid var(--border); margin: 10px 4px; }
.sidebar-heading { font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 10px; text-transform: uppercase; letter-spacing: 0.4px; }
.sidebar-group { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-only-link { display: none; }
.sidebar-backdrop { display: none; }
#view { flex: 1; min-width: 0; }

@media (max-width: 900px) {
  .hamburger-btn { display: inline-flex; align-items: center; justify-content: center; }
  .topbar nav { display: none; }
  .mobile-only-link { display: flex; }
  .app-layout { display: block; max-width: 100%; }
  .sidebar {
    display: flex;
    position: fixed; top: calc(56px + env(safe-area-inset-top, 0px)); left: 0; bottom: 0; z-index: 900;
    width: 260px; max-width: 82vw;
    background: var(--white); border-right: 1px solid var(--border);
    box-shadow: 3px 0 18px rgba(0,0,0,0.18);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open {
    display: block; position: fixed; top: calc(56px + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 850;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

.story-bar { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.story-tile {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; width: 62px; position: relative;
}
.story-tile .avatar { width: 56px; height: 56px; font-size: 18px; border: 2px solid var(--orange); }
.story-add-badge {
  position: absolute; top: 38px; left: 38px; background: var(--green); color: white;
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; border: 2px solid var(--white);
}
.story-label { font-size: 11px; color: var(--muted); text-align: center; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-viewer { max-width: 420px; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 15px;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 88px; height: 88px; font-size: 28px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }

.post-header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post-header .name { font-weight: 700; font-size: 14.5px; }
.post-header .meta { font-size: 12px; color: var(--muted); }
.post-content { font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; margin-bottom: 10px; }
.post-actions { display: flex; gap: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.post-actions button { background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.post-actions button:hover { background: var(--sand); }
.post-actions button.liked { color: var(--orange); }

.composer textarea { min-height: 60px; margin-bottom: 8px; }
.composer .row { display: flex; justify-content: space-between; align-items: center; }
.composer .btn.secondary.small { padding: 6px 10px; font-size: 13px; cursor: pointer; }
.post-media-preview { display: flex; align-items: center; gap: 8px; background: var(--sand); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; font-size: 13px; }
.post-media-preview .clear-media-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; margin-left: auto; }
.post-media { display: block; width: 100%; max-height: 480px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }

.comments { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.comment { display: flex; gap: 8px; margin-bottom: 8px; font-size: 13.5px; }
.comment .bubble { background: var(--sand); border-radius: 10px; padding: 6px 10px; flex: 1; }
.comment .bubble .name { font-weight: 700; margin-right: 4px; }
.comment .bubble { position: relative; padding-right: 24px; }
.del-comment-btn {
  position: absolute; top: 4px; right: 6px; background: none; border: none;
  color: var(--muted); font-size: 12px; line-height: 1; padding: 2px;
}
.del-comment-btn:hover { color: var(--danger-ink); }
.comment-form { display: flex; gap: 8px; margin-top: 6px; }
.comment-form input { flex: 1; }

h1, h2, h3 { font-family: inherit; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 10px; }
.subtitle { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.listing-card img.placeholder, .listing-icon {
  width: 100%; height: 110px; background: var(--sand-dark); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 10px;
}
.listing-card .title { font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.listing-card .price { color: var(--orange); font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.listing-card .loc { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  background: var(--sand-dark); color: var(--green-dark); text-transform: capitalize; margin-bottom: 8px;
}
[data-theme="dark"] .badge { color: #bfe6cf; }
.badge.sold { background: var(--danger-bg); color: var(--danger-ink); }

.filter-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-row select, .filter-row input { width: auto; }
.filter-row input { flex: 1; min-width: 150px; }

.group-card { display: flex; justify-content: space-between; align-items: center; }
.group-card .info .name { font-weight: 700; font-size: 15px; }
.group-card .info .desc { font-size: 13px; color: var(--muted); margin: 3px 0; }
.group-card .info .count { font-size: 12px; color: var(--muted); }

.friend-row, .convo-row, .search-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.friend-row:last-child, .convo-row:last-child, .search-row:last-child { border-bottom: none; }
.friend-row .info, .convo-row .info, .search-row .info { flex: 1; }
.friend-row .name, .convo-row .name, .search-row .name { font-weight: 700; font-size: 14px; }
.friend-row .sub, .convo-row .sub, .search-row .sub { font-size: 12px; color: var(--muted); }

.chat-layout { display: flex; gap: 16px; height: calc(100vh - 130px); }
.chat-list { width: 240px; overflow-y: auto; flex-shrink: 0; }
.chat-thread { flex: 1; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; }
.chat-msg { max-width: 70%; margin-bottom: 8px; display: flex; flex-direction: column; }
.chat-msg.mine { margin-left: auto; align-items: flex-end; }
.chat-msg.theirs { margin-right: auto; align-items: flex-start; }
.chat-msg-bubble { padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.chat-msg.mine .chat-msg-bubble { background: var(--green); color: white; border-bottom-right-radius: 3px; }
.chat-msg.theirs .chat-msg-bubble { background: var(--sand-dark); color: var(--ink); border-bottom-left-radius: 3px; }
.chat-msg-time { font-size: 10.5px; color: var(--muted); margin-top: 2px; padding: 0 4px; }
.chat-date-divider { text-align: center; margin: 14px 0 10px; }
.chat-date-divider span {
  display: inline-block; font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--sand); padding: 3px 10px; border-radius: 999px;
}
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; }
.empty-state { color: var(--muted); font-size: 13.5px; text-align: center; padding: 30px 10px; }

.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tabs button { background: none; border: none; padding: 10px 14px; font-size: 13.5px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--green-dark); border-bottom-color: var(--orange); }
[data-theme="dark"] .tabs button.active { color: var(--ink); }

.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-box { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 32px; width: 100%; max-width: 380px; }
.auth-box h1 { text-align: center; margin-bottom: 4px; }
.auth-logo { display: flex; align-items: center; justify-content: center; }
.auth-logo img { height: 130px; width: auto; display: block; }
.auth-box .subtitle { text-align: center; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.auth-toggle { text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.error-msg { background: var(--danger-bg); color: var(--danger-ink); padding: 8px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }

.profile-header { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.profile-header .info h1 { margin-bottom: 2px; }
.profile-header .info .rig { color: var(--muted); font-size: 13.5px; }
.avatar-edit { position: relative; flex-shrink: 0; }
.avatar-edit label {
  position: absolute; bottom: -2px; right: -2px; background: var(--green); color: white;
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; border: 2px solid var(--sand);
}
.avatar-edit input[type="file"] { display: none; }

.profile-cover { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 0; border: 1px solid var(--border); }
.trip-map { width: 100%; max-width: 100%; height: 260px; background: var(--sand-dark); }
.trip-map .leaflet-container { max-width: 100%; }
.trip-map-hint {
  position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.6); color: white;
  font-size: 11.5px; padding: 4px 10px; border-radius: 20px; pointer-events: none; z-index: 400;
}
.trip-pin-icon { font-size: 20px; text-align: center; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--white); color: var(--ink); }

.profile-header-fb { display: flex; align-items: flex-end; gap: 16px; margin: 16px 16px 18px; flex-wrap: wrap; position: relative; z-index: 5; }
.profile-avatar-fb .avatar.lg { border: 4px solid var(--sand); }
.profile-header-fb .info { padding-bottom: 6px; }
.profile-header-fb .info h1 { margin-bottom: 2px; }
.profile-header-fb .info .rig { color: var(--muted); font-size: 13.5px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; padding-bottom: 6px; }
@media (max-width: 640px) {
  .profile-header-fb { margin: 12px 8px 16px; align-items: flex-start; }
  .profile-actions { margin-left: 0; width: 100%; }
}

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.photo-tile { position: relative; padding-top: 100%; border-radius: 8px; overflow: hidden; background: var(--sand-dark); }
.photo-tile img, .photo-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-tile .del-photo {
  position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.55); color: white; border: none;
  width: 20px; height: 20px; border-radius: 50%; font-size: 11px; line-height: 1;
}
.add-photo-tile {
  position: relative; padding-top: 100%; border-radius: 8px; border: 1.5px dashed var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted);
}
.add-photo-tile span { position: absolute; font-size: 24px; }
.add-photo-tile input { display: none; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px;
}
.modal-box {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; width: 100%; max-width: 380px;
}


/* ---------- community map ---------- */
.map-layout { display: flex; gap: 16px; height: calc(100vh - 150px); min-height: 420px; }
.map-list { width: 280px; overflow-y: auto; flex-shrink: 0; }
#communityMap { flex: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 300px; }
#tripMap { flex: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 300px; }
.place-row {
  display: block; padding: 10px; border-radius: 8px; margin-bottom: 6px; cursor: pointer;
  border: 1px solid transparent; background: var(--white);
}
.place-row:hover, .place-row.active { border-color: var(--green); background: var(--sand-dark); }
.place-row .name { font-weight: 700; font-size: 14px; }
.place-row .cat { font-size: 11.5px; color: var(--muted); margin: 2px 0 4px; text-transform: capitalize; }
.map-hint { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

.stars { color: var(--orange); letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.stars.big { font-size: 20px; }
.stars .count { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: normal; margin-left: 4px; }

.star-picker { display: flex; gap: 4px; font-size: 26px; cursor: pointer; margin-bottom: 6px; }
.star-picker span { color: var(--border); transition: color 0.1s ease; }
.star-picker span.filled { color: var(--orange); }

.place-cover { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; background: var(--sand-dark); }
.review-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.review-row:last-child { border-bottom: none; }
.review-row .head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.review-row .name { font-weight: 700; font-size: 13.5px; }
.review-row .meta { font-size: 11.5px; color: var(--muted); }
.review-row .content { font-size: 13.5px; margin-top: 4px; white-space: pre-wrap; }
.review-row .review-media { grid-template-columns: repeat(2, 84px); margin-top: 8px; margin-bottom: 0; }
.modal-box.wide { max-width: 520px; max-height: 88vh; overflow-y: auto; }

/* ---------- amenity filters / badges ---------- */
.amenity-filter-row { margin-top: -8px; margin-bottom: 16px; }
.amenity-filter-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.amenity-filter-label select { width: auto; padding: 4px 6px; font-size: 12.5px; }
.amenity-field-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.amenity-field-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.amenity-field-row select { width: auto; }
.amenity-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.amenity-badge { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--sand); }
.amenity-badge.yes { border-color: var(--green); color: var(--green); }
.amenity-badge.no { color: var(--muted); }
.amenity-badge.unknown { color: var(--muted); font-style: italic; }

.claim-badge { display: inline-block; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; margin-bottom: 6px; }
.claim-badge.claimed { background: #e4f3ea; color: var(--green); border: 1px solid var(--green); }
.claim-badge.pending { background: var(--sand); color: var(--muted); border: 1px solid var(--border); }

.place-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 16px; }
.place-photo-thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--sand-dark); }
.place-photo-thumb img, .place-photo-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-photo-del {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; cursor: pointer; line-height: 1;
}
.place-photo-add {
  aspect-ratio: 1; border: 1.5px dashed var(--border); border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: 12px; color: var(--muted); cursor: pointer;
}
.place-photo-add:hover { border-color: var(--green); color: var(--green); }

/* ---------- trips ---------- */
.trip-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.trip-row .name { font-weight: 700; font-size: 15px; }
.trip-picker-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.trip-picker-row {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 12px;
  cursor: pointer; border-bottom: 1px solid var(--border);
}
.trip-picker-row:last-child { border-bottom: none; }
.trip-picker-row:hover { background: var(--sand-dark); }
.trip-stop-row { cursor: default; }
.trip-stop-num {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.trip-stop-marker {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50% 50% 50% 0; background: var(--green); color: #fff; font-size: 12px; font-weight: 700;
  transform: rotate(45deg); box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.trip-stop-marker { display: inline-flex; }

@media (max-width: 640px) {
  .topbar { padding: 0 10px; gap: 6px; }
  .topbar nav a { padding: 8px; font-size: 12px; }
  .chat-layout { flex-direction: column; height: auto; }
  .chat-list { width: 100%; }
  .map-layout { flex-direction: column; height: auto; }
  .map-list { width: 100%; max-height: 220px; }
  #communityMap { height: 320px; }
  #tripMap { height: 320px; }
}
@media (max-width: 420px) {
  .logout-text { display: none; }
  .logout-btn { padding: 8px 10px; }
  .logout-btn::after { content: "⎋"; }
}
