@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Syne:wght@700;800&family=Inter:wght@400;700&display=swap&font-display=swap');

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root[data-theme="dark"] {
  --primary: #020617; /* Deep Mauxx Navy */
  --accent: #00D4FF;  /* Mauxx Cyan */
  --accent-secondary: #7C3AED; /* Mauxx Purple */
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  --bg: #020617;
  --surface: #0f172a;
  --glass: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --hero-heading: linear-gradient(135deg, #ffffff 0%, #00D4FF 30%, #ffffff 60%, #00D4FF 90%, #ffffff 100%);
}

:root[data-theme="light"] {
  --primary: #4f46e5; /* Original Indigo */
  --accent: #6366f1;  /* Original Accent */
  --accent-secondary: #818cf8;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  --bg: #f8fafc;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-blur: blur(20px);
  --text: #0f172a;
  --text-muted: #64748b;
  --hero-heading: linear-gradient(135deg, #1e1b4b 10%, #4f46e5 60%, #818cf8 100%);
}

:root {
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 212, 255, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, .heritage-title, .section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

/* --- Navigation (Glassmorphism) --- */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: all 0.3s ease;
}

/* Push main content below fixed header */
main {
  padding-top: 72px;
  min-height: 100vh;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo div:last-child {
  margin-top: -8px;
  padding-left: 32px;
}

@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }
  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .logo {
    font-size: 1.5rem;
  }
  .logo div:last-child {
    font-size: 0.55rem !important;
    margin-top: -8px !important;
    padding-left: 30px;
  }
  .top-header {
    height: auto;
    min-height: 72px;
    padding: 10px 16px;
  }
  .header-actions .btn-signin {
    display: none !important;
  }
}

.desktop-nav {
  display: none;
  gap: 32px;
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--primary);
}

.desktop-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* --- Hero & Typography --- */
.hero-section {
  padding: 60px 0 80px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    padding: 40px 0;
  }
}

.hero-text {
  text-align: left;
}

.hero-text h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 576px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.hero-cta:hover { transform: scale(1.05); }

.hero-text h1 {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 0.9;
  margin-bottom: 24px;
  font-weight: 900;
}

.hero-text p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 48px;
  font-weight: 500;
}

.stat-val { font-size: 1.5rem; font-weight: 900; color: var(--accent); }
.stat-lbl { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }

/* Feature Collage in Hero */
.hero-visual-collage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.collage-orb {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent) 0%, var(--accent-secondary) 100%);
  filter: blur(120px);
  opacity: 0.15;
  position: absolute;
}

.floating-card {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: float-slow 6s ease-in-out infinite alternate;
}

.card-1 { top: 10%; right: 10%; transform: rotate(5deg); }
.card-2 { bottom: 15%; left: 5%; transform: rotate(-8deg); animation-delay: -3s; }
.card-3 { top: 40%; left: 20%; z-index: 5; transform: scale(1.1); animation-duration: 8s; }

@keyframes float-slow {
  from { transform: translateY(0) rotate(0); }
  to { transform: translateY(-20px) rotate(5deg); }
}

/* Trending Bar */
.trending-marquee {
  background: rgba(124, 58, 237, 0.05);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
  margin: 60px 0;
}

.marquee-content {
  display: inline-flex;
  gap: 60px;
  width: max-content;
  animation: scroll-marquee 40s linear infinite;
}

@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mq-item { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-muted); font-size: 0.9rem; }
.mq-item i { color: var(--accent); }

.heritage-title, h1, .section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shared Layout Elements */
.ai-banner {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 32px;
  width: fit-content;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 200px; height: 100px;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.1;
  z-index: -1;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.explore-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.explore-link:hover { opacity: 0.8; }

.deal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.contact-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.quick-categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.quick-categories::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cat-btn:hover, .cat-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.cat-btn i { font-size: 1rem; }

/* Business Solutions Section */
.featured-deal {
  background: var(--surface);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(124, 58, 237, 0.1) 100%);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.featured-deal::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.1;
}

.featured-deal h3 { font-size: 1.8rem; margin-bottom: 12px; }

/* --- Business Directory: Compact List Layout --- */
.dir-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.dir-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.view-toggle {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.view-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.view-btn.active {
  background: var(--primary);
  color: white;
}

/* LIST VIEW (default) */
.business-list-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 100px;
}

.business-row {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  min-height: 76px;
}

.business-row:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12);
  transform: translateX(3px);
}

.br-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.br-thumb-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bg) 0%, #f8fafc 100%);
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.br-body {
  flex: 1;
  min-width: 0;
}

.br-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.br-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.br-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.br-addr {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.br-rating {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  white-space: nowrap;
}

.br-verified {
  width: 16px;
  height: 16px;
  color: #059669;
  flex-shrink: 0;
  font-size: 1rem;
}

.br-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.br-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.br-btn.call {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}

.br-btn.call:hover { background: #4338ca; }

.br-btn.info {
  background: #f1f5f9;
  color: var(--text);
}

.br-btn.info:hover { background: #e2e8f0; }

/* GRID VIEW (toggled) */
.business-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding-bottom: 100px;
}

@media (max-width: 600px) {
  .business-grid-view {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.business-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.6);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.business-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.b-images {
  height: 160px;
  position: relative;
  background: rgba(148, 163, 184, 0.1);
  overflow: hidden;
}

.b-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.business-card:hover .b-images img { transform: scale(1.08); }

.b-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.b-tag {
  background: var(--glass);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text);
  border: 1px solid var(--glass-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.b-verified {
  background: #059669;
  color: white;
  padding: 4px 8px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

.b-content {
  padding: 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.b-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.i-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.i-row i { font-size: 0.9rem; color: var(--primary); opacity: 0.8; }

.b-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
}

@media (max-width: 600px) {
  .b-images { height: 120px; }
  .b-title { font-size: 0.9rem; }
  .i-row { font-size: 0.7rem; }
  .b-actions { gap: 4px; }
  .b-btn { padding: 6px; font-size: 0.65rem; }
}

.b-btn {
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.b-btn.primary { background: var(--primary); color: white; }
.b-btn.primary:hover { background: #4338ca; }
.b-btn.secondary { background: rgba(148, 163, 184, 0.15); color: var(--text); }
.b-btn.secondary:hover { background: rgba(148, 163, 184, 0.25); }

/* --- Facts Page (Magazine Style) --- */
.facts-magazine {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

@media (min-width: 992px) {
  .facts-magazine {
    grid-template-columns: 2fr 1fr;
  }
}

.magazine-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: var(--shadow-md);
}

.mag-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--text);
}

.mag-text {
  font-size: 1.1rem;
  color: #334155;
  margin-bottom: 20px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.fact-item {
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.fact-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.fact-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* News Cards */
.news-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  transition: transform 0.2s ease;
}

.news-card:hover { border-color: var(--primary); }

.news-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.news-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

/* --- Placeholders & Helpers --- */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.name-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  height: 100%;
  padding: 20px;
  text-align: center;
}

.pc-title { font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.pc-subtitle { font-size: 0.8rem; opacity: 0.8; font-weight: 500; margin-top: 4px; }

/* --- Verified Glow Effect --- */
@keyframes verified-glow {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(5, 150, 105, 0.35), var(--shadow-sm); border-color: rgba(5, 150, 105, 0.5); }
  50%       { box-shadow: 0 0 18px 4px rgba(5, 150, 105, 0.55), var(--shadow-md); border-color: rgba(5, 150, 105, 0.9); }
}

.business-row.verified-glow {
  animation: fadeIn 0.6s ease forwards, verified-glow 2.8s ease-in-out infinite;
  border-color: rgba(5, 150, 105, 0.5);
  opacity: 1 !important;
}

.business-card.verified-glow {
  animation: fadeIn 0.6s ease forwards, verified-glow 2.8s ease-in-out infinite;
  border-color: rgba(5, 150, 105, 0.5);
  opacity: 1 !important;
}

/* Pause glow on hover so hover shadow takes over cleanly */
.business-row.verified-glow:hover,
.business-card.verified-glow:hover {
  animation-play-state: paused;
  box-shadow: 0 0 22px 5px rgba(5, 150, 105, 0.45), var(--shadow-premium);
  border-color: #059669;
}

.theme-triplan {
  --profile-accent: var(--triplan-primary);
  background: white !important;
  color: var(--triplan-text) !important;
}

.theme-triplan .premium-badge {
  background: var(--triplan-primary) !important;
  color: white !important;
}

.theme-triplan .btn-primary {
  background: var(--triplan-primary) !important;
  border-color: var(--triplan-primary) !important;
}

/* Travel Background specifically for Triplan */
.triplan-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 320px;
  background: linear-gradient(rgba(255,140,0,0.8), rgba(255,215,0,0.3)), 
              url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?auto=format&fit=crop&q=80&w=1200') center/cover;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  z-index: 0;
}

/* --- Profile: Premium Design --- */
.profile-hero {
  position: relative;
  padding: 60px 0 40px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 40px;
  overflow: hidden;
}

.dynamic-banner-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.profile-hero .container {
  position: relative;
  z-index: 1;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.profile-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 4px solid #fff;
  flex-shrink: 0;
}

.profile-title-box {
  flex: 1;
  min-width: 300px;
}

.p-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.p-stats-row {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.p-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.p-stat i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Menu Section */
.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.menu-category {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: var(--shadow-sm);
}

.cat-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--primary);
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 10px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.menu-item:last-child { border-bottom: none; }

.item-name {
  font-weight: 600;
  color: var(--text);
}

.item-price {
  font-weight: 700;
  color: var(--primary);
  font-family: 'Inter', sans-serif;
}

/* Feature Tags */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.feature-pill {
  background: #f1f5f9;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-pill i { color: #059669; }

/* Photo Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 80px;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.gallery-img:hover {
  transform: scale(1.04);
}

/* Verification CTA Banner */
.verification-cta {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: white;
  padding: 48px;
  border-radius: var(--radius-xl);
  text-align: center;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.verification-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.cta-text {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--primary);
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.3s;
}

.cta-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* --- Footer Nav & Mobile --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  padding: 12px 0 24px;
  z-index: 1001;
}

@media (min-width: 768px) { .bottom-nav { display: none; } }

.bottom-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bottom-nav a.active { 
  color: var(--accent); 
}
.bottom-nav a.active i { 
  text-shadow: 0 0 15px var(--accent);
  color: var(--accent);
}
.bottom-nav a i { font-size: 1.4rem; transition: all 0.3s ease; }

/* Custom Preloader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f1f5f9;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}

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

/* Utility Animations */
.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Fix Wikipedia Maps on Facts Page */
.wiki-map-container {
  aspect-ratio: 4/3;
  width: 100%;
  background: var(--surface);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wiki-map-image-wrapper {
  flex: 1;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f8fafc;
}

.wiki-map-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Market Sectionizing & Category Navigation --- */
.category-nav-wrapper {
  position: sticky;
  top: 72px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 90;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 32px;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.category-nav-wrapper::-webkit-scrollbar { display: none; }

.category-pill-list {
  display: inline-flex;
  gap: 10px;
  padding: 0 4px;
}

.cat-pill {
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.cat-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5f3ff;
}

.cat-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.market-category-section {
  padding: 24px 0;
  margin-bottom: 40px;
  border-top: 1px solid #f1f5f9;
}

.market-category-section:first-of-type { border-top: none; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.section-count {
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}
/* =============================================
   HOME PAGE - CATEGORIES, COLLAGE, HERO
   ============================================= */
.ai-banner { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); padding: 10px 0 4px; }
.hero { position: relative; padding: 56px 0 40px; }
.hero-content h1 { 
  font-size: clamp(2.2rem, 7vw, 4rem); 
  font-weight: 900; 
  letter-spacing: -0.04em; 
  line-height: 1.1; 
  background: var(--hero-heading); 
  background-size: 300% 300%;
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  margin-bottom: 16px; 
  animation: shimmer-text 8s linear infinite;
}

@keyframes shimmer-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-content p { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; line-height: 1.7; }
.quick-categories { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; -ms-overflow-style: none; scrollbar-width: none; }
.quick-categories::-webkit-scrollbar { display: none; }
.cat-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 18px; border-radius: 100px; border: 1.5px solid var(--glass-border); background: var(--surface); color: var(--text-muted); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.2s cubic-bezier(0.4,0,0.2,1); flex-shrink: 0; }
.cat-btn:hover { border-color: var(--primary); color: var(--primary); background: #f5f3ff; }
.cat-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 14px rgba(79,70,229,0.25); }
.featured-deal { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.featured-deal h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.collage-section { margin-top: 56px; padding-bottom: 100px; }
.collage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
@media(min-width:768px){ .collage-grid { grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); } }
.collage-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1; cursor: pointer; background: #f1f5f9; box-shadow: var(--shadow-sm); transition: transform 0.3s cubic-bezier(0.19,1,0.22,1), box-shadow 0.3s; }
.collage-item:hover { transform: scale(1.04); box-shadow: var(--shadow-premium); }
.collage-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.collage-item:hover img { transform: scale(1.08); }
.collage-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.7) 0%, transparent 50%); display: flex; align-items: flex-end; padding: 12px; opacity: 0; transition: opacity 0.3s ease; }
.collage-item:hover .collage-overlay { opacity: 1; }
.collage-overlay span { color: white; font-size: 0.78rem; font-weight: 700; line-height: 1.3; }

/* =============================================
   PLACES PAGE
   ============================================= */
.places-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 48px; }
.place-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid rgba(226,232,240,0.6); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s cubic-bezier(0.19,1,0.22,1); position: relative; }
.place-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-premium); border-color: var(--primary-light); }
.dist-badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); color: var(--primary); font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; }
.place-card .name-card { height: 160px; }
.place-info { padding: 16px 20px 20px; }
.place-info h3 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -0.02em; }
.place-info p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* =============================================
   PROFILE PAGE
   ============================================= */
.back-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: #f1f5f9; border-radius: 100px; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; text-decoration: none; margin: 24px 0 0; transition: all 0.2s; }
.back-btn:hover { background: var(--primary); color: white; }
.profile-branding { display: flex; align-items: center; gap: 20px; flex: 1; }
.profile-main-thumb { width: 90px; height: 90px; border-radius: 20px; overflow: hidden; flex-shrink: 0; background: #f1f5f9; box-shadow: var(--shadow-md); }
.profile-main-thumb img { width: 100%; height: 100%; object-fit: cover; }
.profile-title-area { flex: 1; }
.profile-title { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.profile-category { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; margin-top: 6px; }
.profile-cta-group { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: all 0.2s ease; border: none; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px rgba(79,70,229,0.3); }
.btn-primary:hover { background: #4338ca; transform: translateY(-2px); }
.btn-secondary { background: #f1f5f9; color: var(--text); border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; }
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 80px; }
@media(min-width:900px){ .profile-grid { grid-template-columns: 2fr 1fr; } }
.card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--glass-border); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.card-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.info-list { display: flex; flex-direction: column; gap: 16px; }
.info-item { display: flex; align-items: flex-start; gap: 14px; }
.info-icon { width: 38px; height: 38px; border-radius: 10px; background: #f5f3ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.info-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.info-value { font-size: 0.95rem; font-weight: 600; margin-top: 2px; }
.profile-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 10px; }
.profile-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; transition: transform 0.3s; cursor: zoom-in; }
.profile-gallery img:hover { transform: scale(1.06); }
.hours-list { display: flex; flex-direction: column; gap: 10px; }
.hour-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.hour-row:last-child { border-bottom: none; }
.maps-card { display: flex; flex-direction: column; align-items: center; }
.verified-badge { display: inline-flex; align-items: center; gap: 6px; background: #ecfdf5; color: #059669; padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; }
.premium-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--triplan-primary); color: white; padding: 6px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; }
.profile-content { padding-top: 32px; }

/* =============================================
   LOVE PAGE
   ============================================= */
.love-hero { 
  position: relative; 
  text-align: center; 
  padding: 100px 24px; 
  margin: 32px 0 60px; 
  border-radius: var(--radius-xl); 
  overflow: hidden; 
  background: var(--bg); 
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1; /* Very subtle to avoid eye strain */
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Theme visibility for Love Page Video */
.dark-only, .light-only { display: none; }
html[data-theme="dark"] .dark-only { display: block; }
html[data-theme="light"] .light-only { display: block; }

.love-hero h1 { font-size: clamp(2.2rem, 8vw, 4.5rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 12px; }
.love-heart { display: inline-block; font-size: 1.3em; animation: heartbeat 1.4s ease-in-out infinite; color: #ef4444; }
@keyframes heartbeat { 0%,100%{transform:scale(1)} 14%{transform:scale(1.2)} 28%{transform:scale(1)} 42%{transform:scale(1.15)} 70%{transform:scale(1)} }
.glass { background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* --- Dynamic Categories Templates --- */
.theme-restaurant { --primary: #f97316; --primary-light: #fdba74; }
.theme-pharmacy { --primary: #10b981; --primary-light: #6ee7b7; }
.theme-tea_store { --primary: #d97706; --primary-light: #fcd34d; }
.theme-internet_cafe { --primary: #06b6d4; --primary-light: #67e8f9; }
.theme-grocery_store { --primary: #84cc16; --primary-light: #bef264; }
.theme-indian_grocery_store { --primary: #84cc16; --primary-light: #bef264; }
.theme-hospital { --primary: #ef4444; --primary-light: #fca5a5; }
.theme-kindergarten_school { --primary: #ec4899; --primary-light: #f9a8d4; }
.theme-high_school { --primary: #8b5cf6; --primary-light: #ddd6fe; }
.theme-general_store { --primary: #3b82f6; --primary-light: #93c5fd; }

/* =============================================
   MOBILE NAVIGATION & REFINEMENTS
   ============================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.bottom-nav a i {
  font-size: 1.4rem;
}

/* CYAN GLOW Effect for Active Tab */
.bottom-nav a.active {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.bottom-nav a.active i {
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8));
}

/* Site Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =============================================
   SITE FOOTER
   ============================================= */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0 32px;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .site-footer { margin-bottom: 0; }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }
}

.footer-brand { flex: 2; }

.footer-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.footer-logo-text span { color: var(--accent); }

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  flex: 1;
  align-content: flex-start;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-contact { flex: 1; }

@media (min-width: 768px) {
  .footer-contact { text-align: right; }
}

.footer-contact a {
  display: block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-contact p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

