:root {
  --primary: #0077B6;
  --secondary: #90E0EF;
  --bg-color: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --font-base: 'Inter', system-ui, sans-serif;
  --transition: all 0.25s ease;
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

/* NAVBAR */
header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--primary);
}

/* MAIN LAYOUT */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: 70vh;
}

/* HERO */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #023E8A 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* CARDS & GRIDS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.page-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.btn:hover {
  background: #023E8A;
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--secondary);
  color: #03045E;
}
.badge.warning {
  background: #FFD166;
  color: #513B00;
}

/* MAP */
.map-container {
  width: 100%;
  height: 400px;
  background: var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1; 
}

/* FALLBACK / EMPTY STATE */
.alert {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  color: #92400E;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* RESULTS LIST */
.shop-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.shop-item:last-child {
  border-bottom: none;
}
.shop-item:hover, .shop-item.active { 
  background-color: #F8FAFC; 
  border-left: 4px solid var(--primary); 
  padding-left: calc(1.5rem - 4px); 
}
.shop-icon {
  background: #F0F9FF;
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.shop-item.active .shop-icon { 
  background: var(--primary); 
  color: var(--white); 
}
.shop-details h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #0F172A;
}
.shop-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.shop-meta > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.shop-meta i {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* FOOTER */
footer {
  background: #03045E;
  color: var(--white);
  padding: 3rem 2rem 1rem;
  text-align: center;
  margin-top: auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--secondary);
}
.footer-links a:hover {
  color: var(--white);
}

/* ANIMATIONS */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN (MOBILE-FIRST SCALE) */
@media (max-width: 992px) {
  .page-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Layout adjustments */
  main {
    padding: 2rem 1rem;
  }
  
  /* Typography */
  .hero h1 { 
    font-size: 2rem; 
  }
  .hero p {
    font-size: 1rem;
  }
  
  /* Header & Nav */
  .nav-container {
    padding: 1rem;
  }
  .nav-links { 
    display: none; 
  }
  .logo {
    font-size: 1.25rem;
  }
  header .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Hero adjustments */
  .hero {
    padding: 3rem 1.5rem;
    border-radius: var(--radius);
  }

  /* Safe grids override */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Shop Items */
  .shop-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .shop-item:hover, .shop-item.active { 
    padding-left: calc(1rem - 4px); 
  }
  .shop-details > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  /* Map adjustments */
  .map-container, #local-map {
    height: 300px;
  }
  
  /* Breadcrumb wrapping */
  nav[aria-label="breadcrumb"] {
    font-size: 0.85rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  header .btn {
    display: none;
  }
  .nav-container {
    justify-content: center;
  }
}