/* ============================================================
   BAR ATLAS — Global Stylesheet
   Color Palette: Black · White · Navy
   ============================================================ */

:root {
  --black:        #050810;
  --black-2:      #0d1117;
  --black-3:      #161b27;
  --black-4:      #1e2438;
  --navy:         #0f2060;
  --navy-mid:     #1a3080;
  --navy-accent:  #2454d4;
  --navy-bright:  #3b6ef5;
  --white:        #ffffff;
  --white-90:     rgba(255,255,255,0.90);
  --white-70:     rgba(255,255,255,0.70);
  --white-50:     rgba(255,255,255,0.50);
  --white-30:     rgba(255,255,255,0.30);
  --white-15:     rgba(255,255,255,0.15);
  --white-08:     rgba(255,255,255,0.08);
  --white-04:     rgba(255,255,255,0.04);
  --border:       rgba(255,255,255,0.10);
  --border-navy:  rgba(36,84,212,0.35);
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --transition:   0.2s ease;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.4);
  --shadow-navy:  0 4px 24px rgba(36,84,212,0.25);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--white-70); }

/* ── Layout Helpers ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.flex       { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid       { display: grid; }

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5,8,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  transition: background var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.nav-logo svg,
.nav-logo img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
}
.nav-logo .logo-text span { color: var(--navy-bright); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-70);
  transition: color var(--transition);
  position: relative;
  letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--navy-accent);
  border-radius: 2px;
}
.nav-cta {
  background: var(--navy-accent);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--navy-bright); transform: translateY(-1px); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--black-2);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 1rem; padding: 8px 0; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--navy-accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow-navy);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--white-30);
  background: var(--white-08);
}
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ── Cards ── */
.bar-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.bar-card:hover {
  border-color: var(--border-navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.bar-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--black-4) 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.bar-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bar-card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.25;
}
.bar-card-img .card-type-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(5,8,16,0.8);
  backdrop-filter: blur(8px);
  color: var(--white-90);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bar-card-img .card-price {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(5,8,16,0.8);
  backdrop-filter: blur(8px);
  color: var(--navy-bright);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-navy);
}
.bar-card-img .card-city-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(5,8,16,0.85);
  backdrop-filter: blur(8px);
  color: var(--white-90);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  letter-spacing: 0.05em;
}
.bar-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.bar-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bar-card-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.bar-card-rating { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.rating-star { color: #f5c842; font-size: 0.85rem; }
.rating-num { font-weight: 700; font-size: 0.9rem; }
.rating-count { color: var(--white-50); font-size: 0.78rem; }
.bar-card-meta { display: flex; align-items: center; gap: 6px; color: var(--white-50); font-size: 0.82rem; }
.bar-card-meta .dot { width: 3px; height: 3px; background: var(--white-30); border-radius: 50%; }
.bar-card-desc { font-size: 0.85rem; color: var(--white-50); line-height: 1.5; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bar-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--white-08);
  border: 1px solid var(--border);
  color: var(--white-70);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.tag-navy {
  background: rgba(36,84,212,0.15);
  border-color: var(--border-navy);
  color: var(--navy-bright);
}
.bar-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.open-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.open-badge.open  { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.open-badge.closed { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* ── Section Titles ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy-bright);
  margin-bottom: 12px;
}
.section-title { color: var(--white); margin-bottom: 16px; }
.section-subtitle { color: var(--white-70); font-size: 1.05rem; max-width: 580px; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}

/* ── Filter Sidebar ── */
.filter-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 28px; }
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  color: var(--white-70);
  font-size: 0.87rem;
  transition: color var(--transition);
}
.filter-checkbox:hover { color: var(--white); }
.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy-accent);
  cursor: pointer;
}
.filter-count {
  margin-left: auto;
  color: var(--white-30);
  font-size: 0.78rem;
}

/* ── Search Input ── */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 16px;
  color: var(--white-50);
  font-size: 1rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  padding: 13px 16px 13px 44px;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.search-input::placeholder { color: var(--white-30); }
.search-input:focus { border-color: var(--navy-accent); }
.search-input::-webkit-search-cancel-button { display: none; }

/* ── Stars ── */
.stars { display: flex; gap: 2px; }
.stars span { color: #f5c842; font-size: 0.9rem; }

/* ── Footer ── */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.88rem; color: var(--white-50); margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-family: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-50); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: var(--white-60); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--white-30);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Page Header ── */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--black-2) 0%, var(--black) 100%);
  border-bottom: 1px solid var(--border);
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--white-50);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { color: var(--white-70); margin-bottom: 8px; font-family: inherit; font-size: 1.1rem; }

/* ── Responsive Grid ── */
.bars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
@media (max-width: 640px) {
  .bars-grid { grid-template-columns: 1fr; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: var(--black-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-mid); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ── Select ── */
select {
  background: var(--black-3);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: inherit;
  font-size: 0.87rem;
  padding: 9px 32px 9px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff50' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition);
}
select:focus { border-color: var(--navy-accent); }
select option { background: var(--black-2); }

/* ── Toggle Switch ── */
.toggle-wrap { display: flex; align-items: center; gap: 10px; font-size: 0.87rem; color: var(--white-70); cursor: pointer; }
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--black-4);
  border-radius: 11px;
  border: 1px solid var(--border);
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--white-50);
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: all var(--transition);
}
.toggle.on { background: var(--navy-accent); border-color: var(--navy-accent); }
.toggle.on::after { left: 20px; background: var(--white); }

/* ── Map specific ── */
#map { width: 100%; height: 100%; min-height: 500px; border-radius: var(--radius); overflow: hidden; }
.leaflet-popup-content-wrapper {
  background: var(--black-3) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  color: var(--white) !important;
}
.leaflet-popup-tip { background: var(--black-3) !important; }
.leaflet-popup-content { margin: 16px !important; }
.map-popup-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--white); }
.map-popup-type { font-size: 0.78rem; color: var(--white-50); margin-bottom: 8px; }
.map-popup-rating { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; margin-bottom: 12px; }
.map-popup-link {
  display: inline-block;
  background: var(--navy-accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background var(--transition);
}
.map-popup-link:hover { background: var(--navy-bright); }

/* ── Skeleton Loader ── */
.skeleton {
  background: linear-gradient(90deg, var(--black-3) 25%, var(--black-4) 50%, var(--black-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
