/* === Whereseek Web — Theme & Variables === */
:root {
  --accent: #E2162E;
  --accent-dark: #B0111F;
  --background: #FFFFFF;
  --surface: #F5F5F5;
  --text-primary: #212121;
  --text-secondary: #757575;
  --banner-gradient: rgba(0, 0, 0, 0.8);
  --font: 'Barlow', sans-serif;
  --blur-amount: 8px;
  --modal-backdrop: rgba(0, 0, 0, 0.35);
  --card-bg: rgba(255, 255, 255, 0.92);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === Blur Effect for Background Elements === */
.blurred {
  filter: blur(var(--blur-amount));
  transition: filter 0.25s ease-out;
  pointer-events: none;
}

/* === Map === */
#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: filter 0.25s ease-out;
}

/* === Loading Indicator === */
#loading-indicator {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 500;
  width: 28px;
  height: 28px;
  border: 3px solid var(--surface);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#loading-indicator.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Toolbar === */
#toolbar {
  position: fixed;
  top: 20px;
  left: 12px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: filter 0.25s ease-out;
}
.toolbar-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.1s, box-shadow 0.15s;
  padding: 0;
}
.toolbar-btn:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.2); }
.toolbar-btn:active { transform: scale(0.88); }
.toolbar-btn .material-icons { font-size: 24px; color: var(--text-primary); }

/* === Banner === */
#banner-container {
  position: fixed;
  bottom: 8px;
  left: 0;
  right: 0;
  z-index: 400;
  padding: 0 12px;
  transition: filter 0.25s ease-out;
}
#banner-container.hidden { display: none; }

.banner-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.banner-scroll::-webkit-scrollbar { display: none; }

.banner-card {
  flex-shrink: 0;
  width: 220px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #ddd;
  transition: transform 0.15s ease-out;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.banner-card:active { transform: scale(0.95); }
@media (hover: hover) {
  .banner-card:hover { transform: scale(1.02); box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
  .banner-card:hover:active { transform: scale(0.95); }
}

.banner-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
}

.banner-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--banner-gradient));
}

.banner-card-content {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.banner-card-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.banner-card-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.banner-vote-chip {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
}
.vote-up-text { color: #69F0AE; }
.vote-down-text { color: #FF5252; }

/* ==============================
   MODAL OVERLAYS — shared base
   ============================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--modal-backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: overlayIn 0.2s ease-out;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* === Popup Overlay (POI Detail) === */
#popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  overflow-y: auto;
  background: var(--modal-backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: overlayIn 0.2s ease-out;
}
#popup-overlay.hidden { display: none; }

.popup-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.popup-icon { width: 28px; height: 28px; flex-shrink: 0; }
.popup-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.popup-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: background 0.15s;
}
.popup-close-btn:hover { background: rgba(0,0,0,0.06); }

.popup-actions {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.popup-action-btn {
  background: none;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.popup-action-btn:hover { background: rgba(0,0,0,0.04); }
.popup-action-btn .material-icons { font-size: 18px; }
.popup-action-btn.vote-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(226, 22, 46, 0.06);
}
.vote-count { font-weight: 600; }

.popup-body {
  overflow-y: auto;
  flex: 1;
  padding: 0;
}

.popup-image {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  background: var(--surface);
}
.popup-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 300px;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-text {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}
.popup-text h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 16px 0 8px;
}
.popup-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 12px 0 6px;
}

.popup-loading {
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
}

.popup-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
}
.popup-empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}
.popup-kinds {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* === Overpass Bottom Sheet === */
#overpass-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  max-height: 50vh;
  overflow-y: auto;
  animation: sheetIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sheetIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
#overpass-sheet.hidden {
  display: none;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
  margin: 8px auto;
}

.sheet-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 12px;
}
.sheet-icon { width: 28px; height: 28px; }
.sheet-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
}
.sheet-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 50%;
  transition: background 0.15s;
}
.sheet-close:hover { background: rgba(0,0,0,0.06); }

.sheet-tags {
  padding: 0 16px 12px;
}
.sheet-tag {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.sheet-tag-key {
  color: var(--text-secondary);
  font-weight: 500;
}
.sheet-tag a {
  color: var(--accent);
  text-decoration: none;
}

.sheet-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}
.sheet-action-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.1s;
}
.sheet-action-btn:hover { background: var(--accent-dark); }
.sheet-action-btn:active { transform: scale(0.96); }
.sheet-action-btn .material-icons { font-size: 18px; }

/* === Sidebar Overlay === */
#sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--modal-backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: overlayIn 0.2s ease-out;
}
#sidebar-overlay.hidden { display: none; }

.sidebar-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  max-width: 380px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sidebar-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
}
.sidebar-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 50%;
  transition: background 0.15s;
}
.sidebar-close:hover { background: rgba(0,0,0,0.06); }

.sidebar-body {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}

.sidebar-amenities { padding-left: 16px; }
.sidebar-amenities.hidden { display: none; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.sidebar-about-btn {
  background: none;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.sidebar-about-btn:hover { background: rgba(0,0,0,0.04); }

/* Toggle rows */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  transition: background 0.1s;
  border-radius: 8px;
  margin: 0 4px;
}
.toggle-row:hover { background: rgba(0,0,0,0.03); }
.toggle-icon { width: 24px; height: 24px; flex-shrink: 0; }
.toggle-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s ease-out;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* === About Card === */
.about-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  max-width: 320px;
  width: 100%;
  padding: 32px;
  text-align: center;
  animation: cardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}
.about-title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 8px;
}
.about-tagline {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 4px;
}
.about-credit {
  color: var(--text-secondary);
  font-size: 12px;
  margin: 0 0 20px;
}
.about-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.about-store-link {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
}
.about-store-link:hover { background: var(--accent-dark); }
.about-store-link:active { transform: scale(0.96); }
.about-close-btn {
  background: none;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 8px 24px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}
.about-close-btn:hover { background: rgba(0,0,0,0.04); }

/* === Search Overlay (Centered Modal) === */
#search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--modal-backdrop);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 16px;
  animation: overlayIn 0.2s ease-out;
}
#search-overlay.hidden { display: none; }

.search-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  max-width: 480px;
  width: 100%;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.search-header-icon {
  color: var(--text-secondary);
  font-size: 22px;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 16px;
  outline: none;
  color: var(--text-primary);
}
.search-input::placeholder { color: #999; }
.search-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 50%;
  transition: background 0.15s;
}
.search-close-btn:hover { background: rgba(0,0,0,0.06); }

.search-results {
  flex: 1;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.1s;
}
.search-result-item:hover { background: rgba(0,0,0,0.04); }
.search-result-icon { color: var(--accent); font-size: 22px; flex-shrink: 0; }
.search-result-text { flex: 1; overflow: hidden; }
.search-result-name {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-detail {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}
.search-loading {
  padding: 32px;
  text-align: center;
}
.search-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--surface);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* === Download Button === */
#download-btn {
  position: fixed;
  bottom: 152px;
  right: 12px;
  z-index: 600;
  transition: filter 0.25s ease-out;
}

.download-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(226, 22, 46, 0.3);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.download-pill:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(226, 22, 46, 0.4);
}
.download-pill:active { transform: scale(0.95); }
.download-pill .material-icons { font-size: 18px; }

.download-desktop { position: relative; }
.download-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  min-width: 180px;
  animation: cardIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.download-dropdown.hidden { display: none; }
.download-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.1s;
}
.download-option:hover { background: rgba(0,0,0,0.04); }
.download-option .material-icons { color: var(--accent); font-size: 20px; }

/* === Responsive === */
@media (max-width: 768px) {
  #download-btn {
    bottom: 148px;
    right: 8px;
  }
  .popup-card {
    max-width: 100%;
    max-height: 85vh;
  }
  #popup-overlay {
    padding: 24px 12px;
  }
  .search-card {
    max-width: 100%;
    max-height: 80vh;
  }
  #search-overlay {
    padding: 32px 12px 12px;
  }
}

@media (max-width: 480px) {
  .banner-card {
    width: 180px;
    height: 110px;
  }
  .toolbar-btn {
    width: 44px;
    height: 44px;
  }
  .toolbar-btn .material-icons { font-size: 22px; }
  #download-btn {
    bottom: 128px;
  }
  .download-pill {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .search-result-item:hover { background: transparent; }
  .popup-action-btn:hover { background: transparent; }
  .toggle-row:hover { background: transparent; }
}

/* === Bookmarks === */
.bookmarks-card {
  max-width: 400px;
}
.bookmarks-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bookmark-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.1s;
}
.bookmark-item:hover { background: rgba(0,0,0,0.04); }
.bookmark-icon { width: 24px; height: 24px; flex-shrink: 0; }
.bookmark-text { flex: 1; overflow: hidden; }
.bookmark-name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bookmark-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.bookmark-remove:hover { background: rgba(0,0,0,0.06); color: var(--accent); }
.bookmark-remove .material-icons { font-size: 18px; }

/* === Nearby Grid === */
.nearby-card {
  max-width: 900px;
}
.nearby-body {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
}
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.nearby-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #ddd;
  transition: transform 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.nearby-tile:active { transform: scale(0.96); }
@media (hover: hover) {
  .nearby-tile:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
}
.nearby-tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.nearby-tile-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
}
.nearby-tile-content {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
}
.nearby-tile-votes {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}
.nearby-tile-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nearby-tile-dist {
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .nearby-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .nearby-card { max-width: 100%; }
}

/* Hide Google Maps default UI elements we don't want */
.gm-style-cc, .gmnoprint { /* Keep attribution visible but small */ }
