/* ============================================================
   Cadê Meu Chopp? — Modern Dark Amber Glass Design System
   ============================================================ */

:root {
  --bg-main: #0b0f19;
  --bg-surface: #151c2c;
  --bg-glass: rgba(21, 28, 44, 0.85);
  --border-color: #243048;
  --border-highlight: #3b4c6e;

  --amber-primary: #f59e0b;
  --amber-hover: #d97706;
  --amber-light: rgba(245, 158, 11, 0.15);
  
  --emerald-primary: #10b981;
  --emerald-light: rgba(16, 185, 129, 0.15);

  --blue-primary: #3b82f6;
  --blue-light: rgba(59, 130, 246, 0.15);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #64748b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--amber-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber-hover);
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.logo-text span {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--amber-primary);
}

.btn-geo-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--amber-light);
  color: var(--amber-primary);
  border: 1px solid var(--amber-primary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-geo-nav:hover {
  background: var(--amber-primary);
  color: #000;
}

/* Container Principal */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  background: radial-gradient(circle at top center, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-primary);
  border-radius: 50%;
  animation: pulse-emerald 2s infinite;
}

@keyframes pulse-emerald {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 1.75rem;
}

/* Barra de Busca e Filtros Limpa */
.search-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-lg);
}

.search-main-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input-main {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-main .search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-main input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input-main input:focus {
  border-color: var(--amber-primary);
}

.btn-toggle-filters {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-toggle-filters:hover {
  border-color: var(--amber-primary);
  color: var(--amber-primary);
}

.btn-search {
  background: linear-gradient(135deg, var(--amber-primary), var(--amber-hover));
  color: #000;
  font-weight: 700;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Painel Expansível de Filtros Avançados */
.advanced-filters-panel {
  display: none;
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.advanced-filters-panel.is-open {
  display: block;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.filters-grid label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filters-grid select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
}

.filter-checkbox-group {
  display: flex;
  align-items: flex-end;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem !important;
  color: var(--amber-primary) !important;
  cursor: pointer;
  margin-bottom: 0.5rem !important;
}

/* Quick Filter Pills Limpos */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.pill {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover, .pill.active {
  background: var(--amber-light);
  color: var(--amber-primary);
  border-color: var(--amber-primary);
}

/* Sections & Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title span {
  font-size: 1.4rem;
}

/* Cards Grid */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.venue-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.venue-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber-primary);
  box-shadow: 0 14px 36px -10px rgba(245, 158, 11, 0.25);
}

.venue-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.venue-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.venue-name a {
  color: var(--text-main);
}

.venue-name a:hover {
  color: var(--amber-primary);
}

.venue-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.venue-distance {
  color: var(--emerald-primary);
  font-weight: 600;
  margin-left: auto;
}

/* Tap List inside Card */
.tap-list {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tap-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.tap-item-name {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tap-item-price {
  font-weight: 700;
  color: var(--amber-primary);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

.badge-hh {
  background: var(--emerald-light);
  color: var(--emerald-primary);
  border: 1px solid var(--emerald-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-hh::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--emerald-primary);
  border-radius: 50%;
  animation: pulse-emerald 2s infinite;
}

/* Card Actions */
.venue-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.btn-action-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.btn-action-sm:hover {
  border-color: var(--amber-primary);
  color: var(--amber-primary);
}

.btn-details {
  background: var(--amber-light);
  color: var(--amber-primary);
  border-color: var(--amber-primary);
  margin-left: auto;
}

.btn-details:hover {
  background: var(--amber-primary);
  color: #000;
}

/* Brands Grid */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.brand-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: all 0.2s ease;
}

.brand-card:hover {
  border-color: var(--amber-primary);
  transform: translateY(-2px);
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.brand-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.brand-venues-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-primary);
  background: var(--amber-light);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* Footer */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1rem 1.5rem;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
}

/* Mobile Sticky Dock Search Bar */
.mobile-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-dock-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.mobile-dock-item:hover, .mobile-dock-item.active {
  color: var(--amber-primary);
}

.mobile-dock-item span.icon {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  .venues-grid {
    grid-template-columns: 1fr;
  }
  .mobile-dock {
    display: block;
  }
  .main-content {
    padding-bottom: 5rem;
  }
}
