*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root, [data-theme="light"] {
  --bg: #f8f7f4;
  --bg-secondary: #f0ede8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #999;
  --accent: #c2185b;
  --accent-hover: #a01248;
  --accent-light: #fce4ec;
  --accent-soft: #f8d7e3;
  --border: #e8e5e0;
  --border-light: #f0ede8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.06);
  --star-color: #f59e0b;
}

[data-theme="dark"] {
  --bg: #1a1a1e;
  --bg-secondary: #2a2a2e;
  --surface: #242428;
  --text: #e8e6e3;
  --text-secondary: #a0a0a0;
  --text-tertiary: #707070;
  --accent: #e91e63;
  --accent-hover: #f06292;
  --accent-light: #3a1a28;
  --accent-soft: #2e1420;
  --border: #3a3a3e;
  --border-light: #2e2e32;
  --shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.2);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
  --star-color: #f59e0b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1a1e;
    --bg-secondary: #2a2a2e;
    --surface: #242428;
    --text: #e8e6e3;
    --text-secondary: #a0a0a0;
    --text-tertiary: #707070;
    --accent: #e91e63;
    --accent-hover: #f06292;
    --accent-light: #3a1a28;
    --accent-soft: #2e1420;
    --border: #3a3a3e;
    --border-light: #2e2e32;
    --shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.2);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
    --star-color: #f59e0b;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

#app { display: flex; flex-direction: column; height: 100vh; }

/* === Header === */
header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: 8px;
  z-index: 10;
  min-height: 0;
}

.header-left { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }

.header-logo { display: flex; align-items: center; color: var(--accent); }

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.header-center { flex: 1; min-width: 0; max-width: 480px; }

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194,24,91,0.08);
}

.search-icon { color: var(--text-secondary); flex-shrink: 0; }

.search-bar input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  flex: 1;
  color: var(--text);
}

.search-clear {
  border: none;
  background: none;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.hidden { display: none !important; }

.error-banner {
  background: #ffebee;
  color: #c62828;
  padding: 8px 20px;
  font-size: 13px;
  font-family: monospace;
  border-bottom: 1px solid #ef9a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.stats {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* === Main layout === */
main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

#map-container {
  flex: 1;
  position: relative;
}

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

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248,247,244,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
  transition: opacity 0.3s;
}

.map-overlay.fade-out { opacity: 0; pointer-events: none; }

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* === Sidebar === */
.sidebar-resize {
  width: 5px;
  cursor: col-resize;
  background: transparent;
  transition: background 0.15s;
  flex-shrink: 0;
  z-index: 5;
}

.sidebar-resize:hover,
.sidebar-resize.dragging {
  background: var(--accent);
}

#sidebar {
  width: 400px;
  min-width: 280px;
  max-width: 700px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.shop-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
  border-bottom: 1px solid var(--border);
}

.shop-list-header h2 { font-size: 15px; font-weight: 600; }

.badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
}

#shop-list-items { padding: 6px; }

/* === Shop Cards (List) === */
.shop-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  align-items: center;
}

.shop-card:hover {
  background: var(--bg);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.shop-card.active {
  background: var(--accent-light);
  border-color: var(--accent);
}

.shop-card-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.shop-card-thumb-icon {
  color: var(--accent);
  opacity: 0.5;
}

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

.shop-card-name {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-card-location {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-card-rating {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 1px;
}

.shop-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.shop-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--star-color);
  font-weight: 600;
  font-size: 12px;
}

.shop-card-rating svg { flex-shrink: 0; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-confirmed_open, .status-likely_open { background: #4caf50; }
.status-uncertain { background: #ff9800; }
.status-likely_closed, .status-confirmed_closed { background: #f44336; }

.rav-badge {
  display: inline-flex;
  color: #ee6e62;
  opacity: 0.7;
  flex-shrink: 0;
  margin-left: auto;
}

/* === Shop Detail === */
.shop-detail { padding: 0; flex: 1; }

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.back-btn:hover { background: var(--bg); }

/* === Photo Carousel === */
.carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-soft) 100%);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.carousel-placeholder svg {
  opacity: 0.2;
  color: var(--accent);
}

.carousel-loading-state {
  flex-direction: column;
}

.carousel-loading-state svg {
  opacity: 0.6;
}

.yarn-spinner-wrap {
  animation: yarn-spin 2.5s ease-in-out infinite;
}

@keyframes yarn-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
  z-index: 2;
}

.carousel-btn:hover { background: #fff; box-shadow: var(--shadow-lg); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

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

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.carousel-dot.active { background: #fff; transform: scale(1.2); }

.carousel-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
  z-index: 1;
}

/* === Photo Gallery Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  transition: opacity 0.2s ease;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  z-index: 3;
}

/* === About Modal === */
.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.about-overlay.open { opacity: 1; pointer-events: auto; }

.about-modal {
  background: var(--bg);
  border-radius: 16px;
  padding: 32px;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-modal h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.about-modal h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.about-modal p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.about-modal a {
  color: var(--accent);
  text-decoration: none;
}
.about-modal a:hover { text-decoration: underline; }
.about-modal hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}
.about-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.about-close:hover { background: var(--border); }

.about-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-bottom: 12px;
}

/* === Detail Info === */
.detail-info {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.detail-info h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.detail-info .shop-type {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: capitalize;
  margin-bottom: 6px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--star-color);
}

.detail-rating .count {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 13px;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
}

.detail-status.open { background: #e8f5e9; color: #2e7d32; }
.detail-status.uncertain { background: #fff3e0; color: #e65100; }
.detail-status.closed { background: #ffebee; color: #c62828; }

/* Amenity icons */
.amenities {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 3px 8px;
  border-radius: 4px;
}

.amenity svg { width: 13px; height: 13px; }

/* === Action Buttons === */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.action-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.action-btn.stash2go {
  color: #1976d2;
  border-color: #1976d2;
}

.action-btn.stash2go:hover {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #1565c0;
}

.action-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.action-btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* === Detail Sections === */
.detail-section {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.detail-section:last-child { border-bottom: none; }

.detail-section h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.detail-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.detail-field-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-field a {
  color: var(--accent);
  text-decoration: none;
}

.detail-field a:hover { text-decoration: underline; }

/* Brands */
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brand-chip {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-secondary);
}

.brand-chip-link {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.brand-chip-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* Schedule */
.schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}

.schedule-row + .schedule-row { border-top: 1px solid var(--border-light); }

.schedule-day { font-weight: 500; }
.schedule-hours { color: var(--text-secondary); }

/* Score bars */
.score-bar-container { margin-bottom: 8px; }

.score-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 3px;
}

.score-bar {
  height: 5px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.4s ease;
}

/* Rating cards */
.ratings-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.rating-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
}

.rating-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.rating-card-source {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-card-source svg { width: 13px; height: 13px; }

.rating-card-score {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.rating-card-stars {
  display: flex;
  gap: 1px;
}

.rating-card-count {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Notes */
.detail-notes {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
}

/* === Google Reviews === */
.review-card {
  padding: 10px 0;
}

.review-card + .review-card { border-top: 1px solid var(--border-light); }

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.review-author {
  font-weight: 600;
  font-size: 13px;
}

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

.review-stars {
  display: flex;
  gap: 1px;
  margin-bottom: 4px;
}

.review-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Star icon */
.star-filled { color: var(--star-color); }
.star-empty { color: var(--border); }

/* === Utility === */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-state p { font-size: 14px; margin-top: 8px; }

/* === Google Maps InfoWindow dark mode === */
[data-theme="dark"] .gm-style .gm-style-iw-d,
[data-theme="dark"] .gm-style .gm-style-iw-c,
[data-theme="dark"] .gm-style .gm-style-iw { background: var(--surface) !important; }
[data-theme="dark"] .gm-style .gm-style-iw-c { padding: 0 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important; }
[data-theme="dark"] .gm-style .gm-style-iw-d { overflow: hidden !important; }
[data-theme="dark"] .gm-style .gm-style-iw-tc::after { background: var(--surface) !important; }
[data-theme="dark"] .gm-style .gm-style-iw-chr button span { background-color: var(--text-secondary) !important; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gm-style .gm-style-iw-d,
  :root:not([data-theme="light"]) .gm-style .gm-style-iw-c,
  :root:not([data-theme="light"]) .gm-style .gm-style-iw { background: var(--surface) !important; }
  :root:not([data-theme="light"]) .gm-style .gm-style-iw-c { padding: 0 !important; box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important; }
  :root:not([data-theme="light"]) .gm-style .gm-style-iw-d { overflow: hidden !important; }
  :root:not([data-theme="light"]) .gm-style .gm-style-iw-tc::after { background: var(--surface) !important; }
  :root:not([data-theme="light"]) .gm-style .gm-style-iw-chr button span { background-color: var(--text-secondary) !important; }
}

/* === Responsive === */
@media (max-width: 768px) {
  header { padding: 4px 6px; gap: 4px; }
  .header-left { gap: 4px; }
  .header-logo svg { width: 18px; height: auto; }
  .header-title { font-size: 14px; }
  .header-center { max-width: none; }
  .search-bar { padding: 5px 8px; }
  .search-bar input { font-size: 13px; }
  .stats { display: none; }
  .icon-btn { width: 28px; height: 28px; padding: 4px; }
  .icon-btn svg { width: 16px; height: 16px; }
  main { flex-direction: column; }
  #map-container { height: 45vh; }
  #sidebar { width: 100%; border-left: none; border-top: 1px solid var(--border); }
  #sidebar-resize { display: none; }
  .carousel { height: 180px; }
  .action-buttons { padding: 8px 10px; flex-wrap: wrap; gap: 6px; }
  .action-btn { padding: 6px 10px; font-size: 12px; }
  .about-modal { padding: 24px 20px; }
}

@media (max-width: 480px) {
  header { padding: 3px 5px; gap: 3px; }
  .header-title { font-size: 13px; }
  .header-logo svg { width: 16px; }
  .search-bar { padding: 4px 6px; gap: 4px; }
  .search-bar input { font-size: 12px; }
  .icon-btn { width: 26px; height: 26px; padding: 3px; }
  .header-right { gap: 3px; }
}
