/* ===== Design Tokens ===== */
:root {
  --bg: #0a0a0f;
  --bg-card: #15151e;
  --bg-card-hover: #1c1c2a;
  --bg-glass: rgba(10, 10, 15, 0.82);
  --surface: #1e1e2e;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #f0f0f5;
  --text-secondary: #9a9ab0;
  --text-muted: #6b6b80;
  --primary: #ff6b35;
  --primary-light: #ff8c5a;
  --primary-dark: #e55a28;
  --primary-glow: rgba(255,107,53,0.25);
  --accent: #ffd166;
  --green: #06d6a0;
  --red: #ef476f;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font: 'Noto Sans TC', 'Outfit', system-ui, sans-serif;
  --font-en: 'Outfit', 'Noto Sans TC', system-ui, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  width: 100vw;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

/* ===== Loading Overlay ===== */
.loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.loading-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-content { text-align: center; }
.loading-logo { font-size: 4rem; animation: pulse 1.5s ease-in-out infinite; }
.loading-text { font-family: var(--font-en); font-size: 2rem; font-weight: 700; margin: 0.5rem 0; }
.loading-bar { width: 200px; height: 3px; background: var(--surface); border-radius: 3px; overflow: hidden; margin: 1rem auto; }
.loading-bar-inner { width: 40%; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; animation: loadSlide 1.2s ease-in-out infinite; }
.loading-hint { color: var(--text-muted); font-size: 0.85rem; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes loadSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ===== Full Screen Map ===== */
.map-fullscreen {
  position: fixed; inset: 0; z-index: 0;
}
.map-container { width: 100%; height: 100%; }

/* ===== Floating Header ===== */
.floating-header {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 100;
  pointer-events: none;
}
.header-inner {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: 60px;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  pointer-events: auto;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
  max-width: 800px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; flex-shrink: 0; }
.logo-icon { font-size: 1.3rem; }
.logo-text { font-family: var(--font-en); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo-accent { color: var(--primary); }
.header-search {
  flex: 1;
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50px; padding: 0.3rem 0.4rem 0.3rem 0.8rem;
  transition: border-color var(--transition);
  min-width: 0;
}
.header-search:focus-within { border-color: var(--primary); }
.header-search .search-icon { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.header-search input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 0.85rem; color: var(--text); min-width: 0;
}
.header-search input::placeholder { color: var(--text-muted); }
.search-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { background: var(--primary-light); transform: scale(1.05); }
.search-btn svg { width: 14px; height: 14px; }
.header-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.icon-btn:hover { background: var(--bg-card-hover); border-color: var(--border-hover); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.login-btn {
  display: flex; align-items: center; gap: 0.3rem;
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.3rem 0.8rem; border-radius: 50px; font-weight: 600; font-size: 0.8rem;
  transition: all var(--transition);
}
.login-btn:hover { background: var(--bg-card-hover); border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.login-btn svg { width: 14px; height: 14px; }
.login-btn.logged-in {
  background: rgba(6, 214, 160, 0.15); border-color: var(--green); color: var(--green);
}

/* ===== Floating Filters ===== */
.floating-filters {
  position: fixed; top: 68px; left: 12px; right: 12px; z-index: 90;
  pointer-events: none;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center;
}
.quick-tags {
  display: flex; gap: 6px;
  pointer-events: auto;
  overflow-x: auto;
  max-width: 100%;
  padding: 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.quick-tags::-webkit-scrollbar { display: none; }
.quick-tag {
  padding: 0.3rem 0.7rem; border-radius: 50px; font-size: 0.78rem;
  background: var(--bg-glass); border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition); white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.quick-tag:hover, .quick-tag.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.compact-filters {
  display: flex; align-items: center; gap: 6px;
  pointer-events: auto;
  background: var(--bg-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  overflow-x: auto;
  max-width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.compact-filters::-webkit-scrollbar { display: none; }
.filter-chips { display: flex; gap: 3px; flex-shrink: 0; }
.chip {
  padding: 0.2rem 0.55rem; border-radius: 50px; font-size: 0.72rem;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary); white-space: nowrap;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent; color: #fff; font-weight: 600;
}
.filter-divider-v {
  width: 1px; height: 18px; background: var(--border); flex-shrink: 0;
}
.filter-toggle-btn {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  transition: all var(--transition); flex-shrink: 0;
}
.filter-toggle-btn:hover { background: var(--bg-card-hover); border-color: var(--primary); color: var(--primary); }
.filter-toggle-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-toggle-btn svg { width: 14px; height: 14px; }

/* Extended filters panel */
.extended-filters {
  pointer-events: auto;
  background: var(--bg-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; gap: 0.5rem;
  max-width: 460px;
  animation: fadeSlideDown 0.2s ease-out;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.filter-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.filter-row-label {
  font-size: 0.75rem; color: var(--text-muted); white-space: nowrap;
  font-weight: 500; min-width: 80px;
}

/* ===== Results Drawer ===== */
.results-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  max-height: 55vh;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
}
.results-drawer.collapsed {
  max-height: 56px;
}
.results-drawer.expanded {
  max-height: 70vh;
}
.drawer-handle {
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  flex-shrink: 0;
  user-select: none;
}
.drawer-handle-bar {
  width: 36px; height: 4px;
  background: var(--text-muted); border-radius: 4px;
  opacity: 0.5;
}
.drawer-header-info {
  display: flex; align-items: baseline; justify-content: space-between;
  width: 100%;
}
.results-title { font-size: 1rem; font-weight: 700; }
.results-count { font-size: 0.8rem; color: var(--text-muted); }
.drawer-body {
  flex: 1; overflow-y: auto; padding: 0 1rem 1rem;
}
.results-list { display: flex; flex-direction: column; gap: 0.6rem; }

/* ===== Restaurant Card ===== */
.restaurant-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; gap: 0.75rem; align-items: flex-start;
}
.restaurant-card:hover {
  background: var(--bg-card-hover); border-color: var(--border-hover);
  transform: translateX(4px);
}
.restaurant-card.highlighted { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); }
.card-photo {
  width: 72px; height: 72px; border-radius: var(--radius-xs);
  overflow: hidden; flex-shrink: 0; background: var(--bg-card);
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; background: linear-gradient(135deg, var(--surface), var(--bg-card));
}
.card-info { flex: 1; min-width: 0; }
.card-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; display: flex; align-items: center; gap: 0.3rem; }
.open-badge {
  font-size: 0.6rem; padding: 0.1rem 0.4rem; border-radius: 50px;
  font-weight: 600;
}
.open-badge.open { background: rgba(6,214,160,0.15); color: var(--green); }
.open-badge.closed { background: rgba(239,71,111,0.15); color: var(--red); }
.card-rating { display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.2rem; }
.stars { color: var(--accent); font-size: 0.75rem; letter-spacing: 1px; }
.rating-num { font-weight: 700; font-size: 0.8rem; color: var(--accent); }
.review-count { font-size: 0.72rem; color: var(--text-muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.72rem; color: var(--text-secondary); }
.card-meta span { display: flex; align-items: center; gap: 0.15rem; }
.card-types { display: flex; flex-wrap: wrap; gap: 0.2rem; margin-top: 0.3rem; }
.type-tag {
  font-size: 0.62rem; padding: 0.1rem 0.4rem; border-radius: 50px;
  background: rgba(255,255,255,0.05); color: var(--text-muted);
}
.fav-btn {
  margin-left: auto; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); transition: all var(--transition);
  flex-shrink: 0;
}
.fav-btn:hover { background: rgba(239, 71, 111, 0.1); border-color: var(--red); color: var(--red); transform: scale(1.1); }
.fav-btn.active { background: var(--red); border-color: var(--red); color: white; }
.fav-btn svg { width: 14px; height: 14px; }

/* ===== No Results ===== */
.no-results { text-align: center; padding: 2rem 1rem; }
.no-results-icon { font-size: 3rem; margin-bottom: 0.5rem; opacity: 0.5; }
.no-results h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.no-results p { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; animation: fadeIn 0.3s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(0,0,0,0.8); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 0; }
.modal-photo { width: 100%; height: 250px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.modal-photo-placeholder {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; background: linear-gradient(135deg, var(--surface), var(--bg));
  border-radius: var(--radius) var(--radius) 0 0;
}
.modal-details { padding: 1.5rem; }
.modal-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.modal-rating-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.modal-rating-big { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.modal-stars { color: var(--accent); font-size: 1.1rem; }
.modal-review-count { color: var(--text-muted); font-size: 0.9rem; }
.modal-info-grid { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.modal-info-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; }
.modal-info-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.modal-info-item a { color: var(--primary); }
.modal-info-item a:hover { text-decoration: underline; }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.modal-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition);
}
.modal-action-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.modal-action-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--primary-glow); }
.modal-action-btn.secondary {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.modal-action-btn.secondary:hover { border-color: var(--border-hover); }
.modal-action-btn svg { width: 18px; height: 18px; }

.modal-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  outline: none;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.modal-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}
.modal-input::placeholder {
  color: var(--text-muted);
}

/* ===== Google Login Button ===== */
.google-login-btn {
  width: 100%; margin-bottom: 1.5rem;
  display: flex; gap: 0.6rem; justify-content: center; align-items: center;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: #fff; color: #333;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid rgba(0,0,0,0.1);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.google-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* Login form styles */
.login-divider {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem; color: var(--text-muted); font-size: 0.85rem;
}
.login-divider-line {
  flex: 1; height: 1px; background: var(--border);
}
.email-login-form {
  display: flex; flex-direction: column; gap: 0.8rem;
}
.login-error {
  color: var(--red); font-size: 0.85rem; display: none;
}

/* ===== Location Modal ===== */
.location-modal-content {
  max-width: 480px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  animation: slideUp 0.3s ease-out;
}
.location-modal-body { padding: 2rem; }
.location-modal-header { text-align: center; margin-bottom: 1.5rem; }
.location-modal-icon { font-size: 3rem; margin-bottom: 0.5rem; animation: pulse 2s ease-in-out infinite; }
.location-modal-header h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.3rem; }
.location-modal-header p { font-size: 0.85rem; color: var(--text-muted); }
.location-search-input-wrapper {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.7rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.location-search-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.location-search-input-wrapper .search-icon { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.location-search-input-wrapper input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 0.95rem; color: var(--text);
}
.location-search-input-wrapper input::placeholder { color: var(--text-muted); }
.location-search-clear {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.location-search-clear:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.location-search-clear svg { width: 14px; height: 14px; }

/* Location Suggestions */
.location-suggestions {
  max-height: 240px; overflow-y: auto;
  margin-top: 0.5rem;
}
.location-suggestion-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 0.8rem; border-radius: var(--radius-xs);
  cursor: pointer; transition: background var(--transition);
  border: 1px solid transparent;
}
.location-suggestion-item:hover {
  background: var(--surface); border-color: var(--border);
}
.location-suggestion-item .suggestion-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,107,53,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.location-suggestion-item .suggestion-icon svg { width: 18px; height: 18px; }
.location-suggestion-item .suggestion-info { flex: 1; min-width: 0; }
.location-suggestion-item .suggestion-name {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.location-suggestion-item .suggestion-addr {
  font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Location Modal Actions */
.location-modal-actions {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.location-action-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition);
}
.location-action-btn.gps-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary);
}
.location-action-btn.gps-btn:hover {
  border-color: var(--green); color: var(--green);
  background: rgba(6,214,160,0.08);
}
.location-action-btn svg { width: 18px; height: 18px; }

/* ===== Login Required Toast ===== */
.login-required-toast {
  position: fixed; bottom: -120px; left: 50%; transform: translateX(-50%);
  z-index: 300; transition: bottom 0.5s cubic-bezier(0.4,0,0.2,1);
}
.login-required-toast.visible { bottom: 2rem; }
.toast-content {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-card); border: 1px solid var(--primary);
  border-radius: 60px; padding: 0.6rem 0.8rem 0.6rem 1.2rem;
  box-shadow: 0 8px 32px rgba(255,107,53,0.2), 0 2px 8px rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
  animation: toastGlow 2s ease-in-out infinite alternate;
}
@keyframes toastGlow {
  from { box-shadow: 0 8px 32px rgba(255,107,53,0.15), 0 2px 8px rgba(0,0,0,0.3); }
  to { box-shadow: 0 8px 32px rgba(255,107,53,0.3), 0 2px 8px rgba(0,0,0,0.3); }
}
.toast-icon { font-size: 1.3rem; }
.toast-text { display: flex; flex-direction: column; gap: 0.1rem; }
.toast-text strong { font-size: 0.85rem; color: var(--text); }
.toast-text span { font-size: 0.75rem; color: var(--text-muted); }
.toast-login-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-weight: 700; font-size: 0.8rem;
  padding: 0.45rem 1rem; border-radius: 50px;
  transition: all var(--transition); white-space: nowrap;
}
.toast-login-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px var(--primary-glow); }
.toast-close {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.toast-close:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.toast-close svg { width: 14px; height: 14px; }

/* ===== Map Custom Styles ===== */
.gm-style .gm-style-iw-c { background: var(--bg-card) !important; border-radius: var(--radius-sm) !important; padding: 0 !important; box-shadow: var(--shadow-lg) !important; }
.gm-style .gm-style-iw-d { overflow: hidden !important; }
.gm-style .gm-style-iw-tc::after { background: var(--bg-card) !important; }
.gm-style .gm-ui-hover-effect { top: 4px !important; right: 4px !important; }
.custom-iw { padding: 0.75rem; min-width: 180px; }
.custom-iw-name { font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 0.25rem; }
.custom-iw-rating { font-size: 0.8rem; color: var(--accent); }
.custom-iw-addr { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ===== Desktop Layout ===== */
@media (min-width: 769px) {
  .results-drawer {
    top: 68px; bottom: auto;
    left: auto; right: 12px;
    width: 380px;
    max-height: calc(100vh - 80px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  }
  .results-drawer.collapsed {
    max-height: 56px;
  }
  .results-drawer.expanded {
    max-height: calc(100vh - 80px);
  }
  .drawer-body {
    max-height: calc(100vh - 160px);
  }
  .floating-header {
    left: 12px; right: 400px;
  }
  .floating-filters {
    left: 12px; right: 400px;
    align-items: flex-start;
  }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .floating-header {
    top: 8px; left: 8px; right: 8px;
  }
  .header-inner {
    padding: 0.3rem 0.4rem 0.3rem 0.8rem;
    gap: 0.4rem;
  }
  .logo-text { font-size: 1rem; }
  .login-btn span { display: none; }
  .floating-filters {
    top: 58px; left: 8px; right: 8px;
  }
  .results-drawer {
    max-height: 45vh;
  }
  .results-drawer.expanded {
    max-height: 65vh;
  }
  .card-photo {
    width: 60px; height: 60px;
  }
  .toast-content { border-radius: var(--radius); padding: 0.7rem; gap: 0.5rem; }
  .login-required-toast { left: 1rem; right: 1rem; transform: none; }
  .login-required-toast.visible { bottom: 1rem; }
}
@media (max-width: 400px) {
  .compact-filters {
    padding: 0.2rem 0.3rem;
  }
  .chip { font-size: 0.68rem; padding: 0.15rem 0.4rem; }
}

/* ===== Location Badge (floating on map) ===== */
.location-badge {
  position: fixed;
  bottom: 60vh; left: 50%; transform: translateX(-50%);
  z-index: 85;
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--primary);
  border-radius: 50px;
  padding: 0.4rem 0.5rem 0.4rem 0.8rem;
  box-shadow: 0 4px 20px rgba(255,107,53,0.2);
  animation: fadeIn 0.3s;
  max-width: calc(100vw - 2rem);
}
.location-badge-icon { font-size: 1rem; }
.location-badge-text {
  font-size: 0.8rem; font-weight: 600; color: var(--primary-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
.location-badge-reset {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border: 1px solid var(--border);
  color: var(--text-muted); transition: all var(--transition);
  flex-shrink: 0;
}
.location-badge-reset:hover {
  background: rgba(239,71,111,0.2); border-color: var(--red); color: var(--red);
}
.location-badge-reset svg { width: 12px; height: 12px; }

/* ===== Location Set Toast ===== */
.location-set-toast {
  position: fixed;
  top: 68px; left: 50%; transform: translateX(-50%) translateY(-20px);
  z-index: 300;
  background: var(--bg-card); border: 1px solid var(--green);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem; color: var(--text);
  box-shadow: 0 4px 20px rgba(6,214,160,0.2);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}
.location-set-toast.visible {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 769px) {
  .location-badge {
    bottom: auto; top: 68px;
    left: 12px; right: auto;
    transform: none;
  }
}
@media (max-width: 768px) {
  .location-badge {
    bottom: 47vh;
  }
}
