:root {
  --bg-primary: #0f1115;
  --bg-surface: #181b22;
  --bg-card: #20242e;
  --bg-card-hover: #262c38;
  --border-color: #2e3544;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --beer-gold: #f59e0b;
  --beer-amber: #d97706;
  --beer-foam: #fef3c7;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;

  --store-spar: #dc2626;
  --store-billa: #eab308;
  --store-hofer: #0284c7;
  --store-lidl: #2563eb;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select {
  touch-action: manipulation;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(60px, calc(40px + env(safe-area-inset-bottom)));
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

/* App Container */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header.app-header {
  padding: 24px 0 18px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.beer-logo-icon {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.4));
  animation: foamBounce 3s ease-in-out infinite alternate;
}

@keyframes foamBounce {
  0% { transform: rotate(-5deg); }
  100% { transform: rotate(5deg); }
}

.app-title-wrap h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.austria-badge {
  background: linear-gradient(180deg, #ed2939 33%, #ffffff 33%, #ffffff 66%, #ed2939 66%);
  width: 20px;
  height: 14px;
  display: inline-block;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.app-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.btn-refresh {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-refresh:hover {
  background: var(--bg-card);
  border-color: var(--beer-gold);
  color: var(--beer-gold);
}

/* Location Hero Section */
.location-panel {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(32, 36, 46, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.location-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.location-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--beer-foam);
}

.active-loc-badge {
  font-size: 0.8rem;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.active-loc-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.location-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .location-controls {
    grid-template-columns: 1fr;
  }
}

.search-input-group {
  position: relative;
  display: flex;
}

.search-input-group input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 11px 14px 11px 40px;
  border-radius: var(--radius-sm);
  font-size: 16px; /* 16px prevents iOS Safari from auto-zooming on focus */
  outline: none;
  min-height: 44px;
  transition: border-color 0.2s;
}

.search-input-group input:focus {
  border-color: var(--beer-gold);
}

.search-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}

.btn-gps {
  background: var(--beer-gold);
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.btn-gps:hover {
  background: var(--beer-amber);
}

.btn-gps:active {
  transform: scale(0.96);
}

/* Quick city chips */
.city-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.city-presets::-webkit-scrollbar {
  display: none;
}

.city-presets span {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 4px;
  font-weight: 600;
}

.chip-city {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.chip-city:hover, .chip-city.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--beer-gold);
  color: var(--beer-foam);
}

.chip-city:active {
  transform: scale(0.95);
}

/* Distance Radius Filter */
.radius-selector-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.radius-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.radius-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-radius {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-radius:active {
  transform: scale(0.95);
}

.pill-radius.active {
  background: var(--beer-gold);
  color: #000;
  border-color: var(--beer-gold);
}

/* Filter Controls Bar */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

/* Beverage Category Filters */
.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.btn-category-filter {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  scroll-snap-align: start;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-category-filter:hover {
  background: var(--bg-card);
  color: #fff;
  border-color: rgba(245, 158, 11, 0.5);
}

.btn-category-filter:active {
  transform: scale(0.96);
}

.btn-category-filter.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

/* Category Pills in Cards */
.cat-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-beer {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.pill-radler {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border-color: rgba(234, 179, 8, 0.3);
}

.pill-cider {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.pill-wine {
  background: rgba(225, 29, 72, 0.15);
  color: #fb7185;
  border-color: rgba(225, 29, 72, 0.3);
}

/* Store Filter Buttons */
.store-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.store-filters::-webkit-scrollbar {
  display: none;
}

.btn-store-filter {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  min-height: 42px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  scroll-snap-align: start;
  transition: all 0.2s;
}

.btn-store-filter:active {
  transform: scale(0.96);
}

.btn-store-filter .store-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-all { background: var(--text-muted); }
.dot-billa { background: var(--store-billa); }
.dot-spar { background: var(--store-spar); }
.dot-hofer { background: var(--store-hofer); }
.dot-lidl { background: var(--store-lidl); }

.btn-store-filter.active {
  background: var(--bg-card);
  color: #fff;
  border-color: var(--beer-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

/* Packaging & Sort bar */
.sub-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.package-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.package-tabs::-webkit-scrollbar {
  display: none;
}

.tab-pkg {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab-pkg:active {
  transform: scale(0.95);
}

.tab-pkg.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--beer-gold);
  color: var(--beer-gold);
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select-wrap label {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.sort-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom on focus */
  font-weight: 600;
  min-height: 42px;
  outline: none;
  cursor: pointer;
}

/* Deals Grid */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

@media (max-width: 680px) {
  .deals-grid {
    grid-template-columns: 1fr;
  }
}

/* Deal Card */
.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.deal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
}

.deal-card-header {
  padding: 14px 16px 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.store-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-spar { background: var(--store-spar); color: #fff; }
.badge-billa { background: var(--store-billa); color: #000; }
.badge-hofer { background: var(--store-hofer); color: #fff; }
.badge-lidl { background: var(--store-lidl); color: #fff; }

.discount-badge {
  background: var(--accent-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.deal-image-wrapper {
  height: 170px;
  background: radial-gradient(circle, #2a313e 0%, #171a21 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}

.deal-image-wrapper img {
  max-height: 146px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
  transition: transform 0.3s ease;
}

.deal-card:hover .deal-image-wrapper img {
  transform: scale(1.05);
}

.package-tag {
  position: absolute;
  bottom: 8px;
  left: 12px;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(4px);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.deal-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deal-brand {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--beer-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.deal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.deal-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--beer-foam);
  letter-spacing: -0.5px;
}

.orig-price {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.unit-economics {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
}

.unit-highlight {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--beer-gold);
}

.unit-liter {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Nearest Store Box (Location integration) */
.nearest-store-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: auto;
  font-size: 0.8rem;
}

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

.dist-badge {
  color: var(--beer-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.store-open-pill {
  font-size: 0.7rem;
  color: var(--accent-green);
  font-weight: 600;
}

.nearest-address {
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-card-action {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 42px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-card-action:active {
  transform: scale(0.97);
}

.btn-route {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-route:hover {
  background: var(--beer-gold);
  color: #000;
  border-color: var(--beer-gold);
}

.btn-offer {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.btn-offer:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Empty / Loading State */
.loading-indicator, .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--beer-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px auto;
}

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

/* Radler Meme Banner */
.radler-meme-container {
  margin-bottom: 24px;
  display: none;
}

.radler-meme-container.active {
  display: block;
  animation: slideDownBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideDownBounce {
  0% { opacity: 0; transform: translateY(-16px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.radler-meme-banner {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.16) 0%, rgba(26, 30, 40, 0.98) 100%);
  border: 2px solid #eab308;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 10px 30px -5px rgba(234, 179, 8, 0.25);
  position: relative;
  overflow: hidden;
}

.radler-meme-banner::before {
  content: '🍋';
  position: absolute;
  right: -15px;
  bottom: -20px;
  font-size: 7rem;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-20deg);
}

.radler-meme-gif-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 125px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(234, 179, 8, 0.5);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.radler-meme-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radler-meme-content {
  flex: 1;
}

.radler-meme-badge {
  display: inline-block;
  background: #eab308;
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.radler-meme-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radler-meme-text {
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 14px 0;
}

.radler-meme-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-radler-rescue {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-radler-rescue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.btn-radler-accept {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-radler-accept:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Floating emoji shower */
.radler-floating-emoji {
  position: fixed;
  font-size: 2.2rem;
  pointer-events: none;
  z-index: 9999;
  user-select: none;
  animation: floatDown 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes floatDown {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(420deg); opacity: 0; }
}

/* Mobile Responsive Enhancements */
@media (max-width: 640px) {
  .app-container {
    padding: 0 12px;
  }

  header.app-header {
    padding: 16px 0 14px 0;
    margin-bottom: 14px;
  }

  .header-top {
    gap: 10px;
  }

  .beer-logo-icon {
    font-size: 2rem;
  }

  .app-title-wrap h1 {
    font-size: 1.25rem;
  }

  .app-subtitle {
    font-size: 0.78rem;
  }

  .btn-refresh {
    padding: 7px 12px;
    font-size: 0.8rem;
    min-height: 38px;
  }

  .location-panel {
    padding: 14px 12px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }

  .location-headline {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .location-controls {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-gps {
    width: 100%;
  }

  .radius-selector-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .radius-pills {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .filter-bar {
    gap: 10px;
    margin-bottom: 18px;
  }

  .sub-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .package-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sort-select-wrap {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
    min-width: 0;
  }

  .deals-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .deal-image-wrapper {
    height: 150px;
  }

  .deal-image-wrapper img {
    max-height: 130px;
  }

  .deal-body {
    padding: 14px;
  }

  .deal-price {
    font-size: 1.45rem;
  }

  .radler-meme-banner {
    flex-direction: column;
    text-align: center;
    padding: 16px 12px;
  }

  .radler-meme-gif-wrap {
    width: 100%;
    max-width: 220px;
    height: 125px;
  }

  .radler-meme-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .btn-radler-rescue, .btn-radler-accept {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  footer.app-footer {
    margin-top: 32px;
    padding-top: 18px;
  }
}

/* Extra small mobile adjustments (e.g. iPhone SE, 360-380px screens) */
@media (max-width: 380px) {
  .app-container {
    padding: 0 8px;
  }

  .app-title-wrap h1 {
    font-size: 1.15rem;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .btn-card-action {
    width: 100%;
  }
}

/* Footer */
footer.app-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

footer a {
  color: var(--beer-gold);
  text-decoration: none;
}

