﻿/**
 * Trivandrum Top 10 - TripAdvisor-Inspired Design System
 * Clean, classic, professional interface
 */

/* ==================== Google Fonts ==================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ==================== CSS Variables ==================== */
:root {
  /* Primary - Modern Green */
  --color-primary: #00aa6c;
  --color-primary-dark: #008f5a;
  --color-primary-light: #00d68f;

  /* Secondary */
  --color-gold: #ffc107;
  --color-gold-dark: #e0a800;

  /* Dark Theme Backgrounds */
  --color-bg: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-bg-tertiary: #1a1a2e;
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-bg-card-hover: rgba(255, 255, 255, 0.06);
  --color-bg-elevated: #16213e;

  /* Dark Theme Text */
  --color-text: rgba(255, 255, 255, 0.95);
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.5);
  --color-text-light: rgba(255, 255, 255, 0.4);

  /* Dark Theme Borders */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-light: rgba(255, 255, 255, 0.05);

  /* Status Colors */
  --color-success: #00aa6c;
  --color-warning: #ffc107;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Score Colors */
  --color-qol: #00aa6c;
  --color-economic: #f5a623;
  --color-charm: #8b5cf6;

  /* Dark Theme Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 170, 108, 0.15);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ==================== Typography ==================== */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

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

a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ==================== Layout ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ==================== Header ==================== */

/* Dark Top Bar - Minimal */
.top-bar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.75rem;
}

.top-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-bar-left {
  display: none;
}

.top-bar-right {
  display: flex;
  gap: 2rem;
}

.top-bar-right a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.top-bar-right a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Main Header - Modern Dark with Transparency */
.main-header {
  background: rgba(10, 10, 15, 0.25);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-new {
  text-decoration: none;
  color: white;
}

.logo-new:hover {
  text-decoration: none;
  color: white;
}

.logo-image {
  height: 45px;
  width: auto;
  display: block;
}

.logo-text-new {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-tvm {
  opacity: 0.7;
  font-weight: 400;
}

.logo-top10 {
  font-size: 1.5rem;
  display: block;
  background: linear-gradient(135deg, var(--color-gold) 0%, #fff 50%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pill-shaped Navigation Container */
.main-nav {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.nav-link.active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.btn-plan {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s;
}

.btn-plan:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
  color: white !important;
}

/* Footer - Dark Theme */
.main-footer {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  display: block;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.footer-description {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}

.footer-bottom-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8125rem;
  margin: 0;
  font-style: italic;
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
    align-items: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links a:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  /* Note: Header/nav mobile styles handled by comprehensive mobile CSS at end of file */

  .footer-links a:hover {
    transform: none;
  }
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

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

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo-text:hover {
  text-decoration: none;
}

/* Search Bar - Header */
.search-bar {
  position: relative;
  flex-shrink: 0;
  margin-left: 1rem;
}

.search-bar input,
.search-input,
#search-input {
  width: 180px;
  padding: 0.5rem 0.75rem;
  padding-left: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.2s;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-bar input:focus,
.search-input:focus,
#search-input:focus {
  outline: none;
  width: 240px;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(0, 170, 108, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  pointer-events: none;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: background 0.15s;
}

.search-result-item:hover,
.search-result-item.active {
  background: var(--color-bg-secondary);
}

.search-result-item .result-icon {
  font-size: 1.25rem;
}

.search-result-item .result-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}

.search-result-item .result-name mark {
  background: rgba(0, 170, 108, 0.4);
  color: var(--color-text);
  padding: 0 2px;
  border-radius: 2px;
}

.search-result-item .result-score {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.875rem;
}

.search-no-results {
  padding: var(--space-4);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.search-no-results p {
  margin: var(--space-1) 0;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.search-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Search Category Headers */
.search-category-header {
  padding: var(--space-2) var(--space-4);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

.search-category-header:first-child {
  border-top: none;
}

.search-result-item .result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-item .result-locality {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.search-request {
  padding: var(--space-4);
  text-align: center;
  background: var(--color-bg-secondary);
}

.search-request p {
  margin: var(--space-2) 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.request-locality-btn {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
  margin: var(--space-2) 0;
}

.request-locality-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.request-note {
  font-size: 0.75rem !important;
  color: var(--color-text-muted) !important;
}

.search-request-success {
  padding: var(--space-6);
  text-align: center;
}

.search-request-success .success-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-2);
}

.search-request-success p {
  margin: var(--space-2) 0;
  color: var(--color-text);
}

.search-request-success .success-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--color-text);
}

.btn-text:hover {
  color: var(--color-primary);
}

.btn-primary {
  background: var(--color-bg-dark);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--color-text);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: var(--space-1);
  padding-bottom: 0;
  border-bottom: none;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px;
}

.category-tab:hover {
  color: var(--color-text);
  text-decoration: none;
}

.category-tab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.category-tab.disabled {
  color: var(--color-text-light);
  cursor: not-allowed;
}

.category-tab .tab-icon {
  font-size: 1.125rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-separator {
  color: var(--color-text-light);
}

/* ==================== Hero Section ==================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  padding: var(--space-12) 0;
  align-items: center;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel {
  position: relative;
}

.carousel-dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: white;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-dark);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}

.hero-cta:hover {
  background: var(--color-text);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-cta-note {
  display: block;
  margin-top: var(--space-3);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ==================== Main Content ==================== */
main {
  min-height: calc(100vh - 200px);
  padding: var(--space-8) 0;
}

/* ==================== Section Headers ==================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.section-header h2 {
  font-size: 1.75rem;
}

.section-header .see-all {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s;
}

.section-header .see-all:hover {
  background: var(--color-bg-secondary);
  text-decoration: none;
}

/* ==================== Rankings List (TripAdvisor Style) ==================== */
.rankings-header {
  text-align: left;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.rankings-header h2 {
  font-size: 2.25rem;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.custom-badge {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.custom-weights-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.btn-reset-weights {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset-weights:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.rankings-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Locality Card - List Style */
/* Locality Card - List Style */
.locality-card {
  display: grid;
  grid-template-columns: auto 240px 1fr auto;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  cursor: pointer;
  align-items: start;
}

.locality-map-container {
  width: 240px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.locality-card:hover .locality-img {
  transform: scale(1.05);
}

.locality-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.rank-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.rank-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.rank-medal {
  font-size: 1.25rem;
}

.locality-info {
  flex: 1;
}

.locality-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.locality-name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.locality-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.locality-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tag {
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

/* Score Bars - Horizontal */
.score-bars {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
}

.score-bar-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.score-bar-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  min-width: 80px;
}

.score-bar {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease-out;
}

.score-fill.qol {
  background: var(--color-qol);
}

.score-fill.economic {
  background: var(--color-economic);
}

.score-fill.sustainability,
.score-fill.charm {
  background: var(--color-charm);
}

/* New 6-category system colors */
.score-fill.accessibility {
  background: #3b82f6;
  /* Blue - travel/mobility */
}

.score-fill.amenities {
  background: #8b5cf6;
  /* Purple - services */
}

.score-fill.safety {
  background: #06b6d4;
  /* Cyan - protection */
}

.score-fill.environment {
  background: #22c55e;
  /* Green - nature */
}

.score-fill.economy {
  background: #f59e0b;
  /* Amber - business */
}

.score-fill.prestige {
  background: #ec4899;
  /* Pink - luxury */
}

.score-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  min-width: 35px;
}

/* Overall Score */
.overall-score {
  text-align: center;
  min-width: 80px;
}

.score-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
}

.score-circle .score-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Quick Stats on Card */
.quick-stats {
  display: flex;
  gap: var(--space-4);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.stat {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.stat-icon {
  font-size: 1rem;
}

/* ==================== Also Consider Section ==================== */
.also-consider {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.also-consider h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.minor-rankings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}

.minor-rank-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  cursor: pointer;
}

.minor-rank-item:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-secondary);
}

.minor-rank {
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 2rem;
}

.minor-icon {
  font-size: 1.25rem;
}

.minor-name {
  flex: 1;
  font-weight: 500;
  color: var(--color-text);
}

.minor-score {
  font-weight: 600;
  color: var(--color-primary);
}

/* ==================== Customize View ==================== */
.customize-header {
  text-align: left;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.customize-header h2 {
  font-size: 2.25rem;
  margin-bottom: var(--space-2);
}

.customization-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  align-items: start;
}

.sliders-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.weight-slider-group {
  margin-bottom: var(--space-8);
}

.slider-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.slider-icon {
  font-size: 1.5rem;
}

.slider-title {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.slider-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.weight-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--color-border);
  border-radius: var(--radius-full);
  outline: none;
  margin-bottom: var(--space-3);
}

.weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--color-bg-secondary);
  box-shadow: 0 0 10px rgba(0, 170, 108, 0.5);
}

.weight-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--color-bg-secondary);
  box-shadow: 0 0 10px rgba(0, 170, 108, 0.5);
}

.slider-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.total-weight {
  padding: var(--space-4);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: var(--space-6);
}

.weight-warning {
  display: block;
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: var(--space-2);
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.action-buttons .btn-secondary {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}

.action-buttons .btn-secondary:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-text-muted);
}

.btn {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--color-bg-dark);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-text);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-bg-secondary);
}

/* Preview Section */
.preview-section {
  position: sticky;
  top: calc(var(--space-16) + 80px);
}

.preview-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.preview-rankings {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.preview-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border-light);
}

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

.preview-rank {
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 2rem;
}

.preview-name {
  flex: 1;
  font-weight: 500;
}

.preview-score {
  font-weight: 600;
  color: var(--color-primary);
}

/* Profile Presets */
.profile-presets {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.profile-presets h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.preset-btn {
  display: block;
  width: 100%;
  padding: var(--space-3);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: var(--space-2);
  text-align: left;
  font-family: var(--font-sans);
}

.preset-btn:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-primary);
}

/* ==================== Methodology View ==================== */
.methodology-header {
  text-align: left;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.methodology-header h2 {
  font-size: 2.25rem;
  margin-bottom: var(--space-2);
}

.methodology-content {
  max-width: 900px;
}

.intro-section,
.formula-section,
.pillar-section,
.data-sources-section,
.quality-section,
.transparency-section,
.cta-section {
  margin-bottom: var(--space-12);
}

.intro-section h3,
.formula-section h3,
.data-sources-section h3,
.quality-section h3,
.transparency-section h3,
.cta-section h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
}

.intro-section p,
.transparency-section p,
.quality-section p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.stat-box {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-2);
}

.formula-box {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

.formula-box code {
  display: block;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.8;
  font-family: 'Monaco', 'Consolas', monospace;
}

.note {
  background: rgba(0, 170, 108, 0.1);
  border: 1px solid rgba(0, 170, 108, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-4);
  font-size: 0.9375rem;
}

.pillar-section h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-8);
}

.pillar-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}

.pillar-card.qol {
  border-left: 4px solid var(--color-qol);
}

.pillar-card.economic {
  border-left: 4px solid var(--color-economic);
}

.pillar-card.sustainability {
  border-left: 4px solid var(--color-charm);
}

.pillar-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.pillar-icon {
  font-size: 2.5rem;
}

.pillar-header h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-1);
}

.pillar-weight {
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 600;
}

.pillar-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.sub-categories {
  display: grid;
  gap: var(--space-6);
}

.sub-category h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.sub-category ul {
  list-style: none;
}

.sub-category li {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.sub-category li::before {
  content: 'â†’';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* Source Grid */
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.source-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.source-card h4 {
  font-size: 1rem;
  margin-bottom: var(--space-3);
}

.source-card ul {
  list-style: none;
}

.source-card li {
  padding: var(--space-1) 0;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

/* Quality Section */
.quality-list,
.transparency-list {
  list-style: none;
}

.quality-list li,
.transparency-list li {
  padding: var(--space-2) 0;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.quality-results {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.quality-stat {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
}

.quality-stat .stat-icon {
  font-size: 1.5rem;
}

.quality-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* CTA Section */
.cta-buttons {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* ==================== Detail View ==================== */
.detail-header {
  margin-bottom: var(--space-8);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
}

.back-button:hover {
  color: var(--color-primary);
}

.detail-title {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.category-icon-large {
  font-size: 3rem;
}

.detail-title h1 {
  font-size: 2.5rem;
  margin: 0;
}

.category-label-large {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0;
}

.tags-container-large {
  display: flex;
  gap: var(--space-2);
}

.tag-large {
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.metric-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.metric-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.score-display {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.score-bar-large {
  height: 12px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-2);
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.price-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.price-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.confidence-badge {
  display: inline-block;
  margin-top: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.travel-grid {
  display: grid;
  gap: var(--space-2);
}

.travel-grid>div {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.travel-grid>div:last-child {
  border-bottom: none;
}

/* Detail Metrics */
.detail-metrics {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.detail-metrics>h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-6);
}

.metrics-section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.metrics-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.metrics-section h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.metric-list {
  display: grid;
  gap: var(--space-2);
}

.metric-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: 0.9375rem;
}

.metric-item span {
  color: var(--color-text-muted);
}

.metric-item strong {
  color: var(--color-text);
}

.evidence-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* ==================== Footer ==================== */
footer {
  /* Generic footer tag reset - actual styles in .main-footer */
  display: block;
  width: 100%;
}

.main-footer {
  margin-top: 0;
  /* Remove gap if previous section is dark */
}

footer p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

footer .small {
  font-size: 0.75rem;
  margin-top: var(--space-2);
}

/* ==================== Loading State ==================== */
.loading {
  text-align: center;
  padding: var(--space-16) 0;
  color: var(--color-text-muted);
}

/* ==================== Error State ==================== */
.error {
  text-align: center;
  padding: var(--space-8);
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: var(--radius-lg);
  color: var(--color-error);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: -1;
  }

  .customization-container {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .source-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
  }

  .search-bar {
    display: none;
  }

  .category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .locality-card {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .locality-image-container {
    height: 200px;
    margin-bottom: var(--space-2);
  }

  .rank-badge {
    flex-direction: row;
    gap: var(--space-2);
  }

  .overall-score {
    text-align: left;
  }

  .score-bars {
    flex-direction: column;
    gap: var(--space-3);
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

/* ==================== Dark Mode Support (Future) ==================== */
@media (prefers-color-scheme: dark) {
  /* Dark mode variables can be added here later */
}

/* Legacy support for old class names */
.rankings-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.score-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.score-icon {
  font-size: 1.25rem;
}

.score-item>div {
  flex: 1;
}

.score-title {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.score-number {
  font-size: 0.875rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.view-details-btn {
  display: none;
}

/* Trending Badge */
.trending-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  margin-left: 0.5rem;
  animation: pulse-glow 2s infinite;
  vertical-align: middle;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
  }

  50% {
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
  }
}

/* Disclaimer Section */
.disclaimer-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff8e6;
  border-left: 4px solid #f5a623;
  border-radius: 8px;
}

.disclaimer-section h3 {
  color: #b8860b;
  margin-bottom: 1rem;
}

.disclaimer-box {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.disclaimer-box ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.disclaimer-box li {
  margin-bottom: 0.5rem;
}

.disclaimer-note {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(245, 166, 35, 0.15);
  border-radius: 6px;
  font-style: italic;
}

/* ==================== NEW HOMEPAGE DESIGN ==================== */

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: white;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  max-width: 600px;
  color: #ffffff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 1);
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat .stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin-top: 0.25rem;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 170, 108, 0.4);
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 170, 108, 0.5);
}

/* Categories Section */
.categories-section {
  padding: 4rem 2rem;
  background: var(--color-bg-secondary);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: scale(1.02);
}

.category-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.category-name {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Active category state */
.category-card.active {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.category-card.active::after {
  content: 'âœ“';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
}

/* Category filter banner */
.category-filter-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #00c57a 100%);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 500;
  margin-top: 1rem;
}

.category-filter-banner.hidden {
  display: none;
}

.category-filter-banner .btn-reset {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.category-filter-banner .btn-reset:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Localities Section - Dark Theme */
.localities-section {
  padding: 4rem 2rem;
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.custom-weights-banner {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}

.btn-reset {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.8rem;
  color: white;
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.3);
}

.localities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.locality-card-new {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.locality-card-new:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.locality-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.locality-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.locality-card-new:hover .locality-image img {
  transform: scale(1.1);
}

.locality-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
}

.locality-rank {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

.trending-badge-new {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
}

.locality-info-new {
  padding: 1rem;
}

.locality-name-new {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.locality-score {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.score-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.score-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.locality-meta-new {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Show More */
.show-more-container {
  text-align: center;
  margin-top: 2rem;
}

.btn-show-more {
  padding: 0.75rem 2rem;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-show-more:hover {
  background: var(--color-primary);
  color: white;
}

/* Show Less */
.show-less-container {
  text-align: center;
  margin: 2rem 0;
}

.btn-show-less {
  padding: 0.75rem 2rem;
  background: transparent;
  border: 2px solid var(--color-text-muted);
  color: var(--color-text-muted);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-show-less:hover {
  background: var(--color-text-muted);
  color: white;
}

.hidden {
  display: none !important;
}

/* CTA Section */
.cta-section {
  padding: 4rem 2rem;
  background: var(--color-bg-dark);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 0.875rem 2rem;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  padding: 0.875rem 2rem;
  background: transparent;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: white;
  color: var(--color-bg-dark);
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
  .localities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .localities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
    min-height: 500px;
  }

  .logo-image {
    height: 35px;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat .stat-number {
    font-size: 2rem;
  }

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

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

  .category-card {
    aspect-ratio: 1/1;
  }
}

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

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ==================== MAP PAGE ==================== */
.map-page {
  display: flex;
  height: calc(100vh - 120px);
  background: var(--color-bg);
}

.map-sidebar {
  width: 320px;
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  padding: 1.5rem;
}

.map-sidebar h2 {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.map-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.map-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-tertiary);
  color: var(--color-text);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--color-primary);
}

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

.localities-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.map-locality-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
}

.map-locality-item:hover {
  background: var(--color-bg-secondary);
}

.map-rank {
  width: 35px;
  height: 35px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.map-loc-name {
  flex: 1;
  font-weight: 500;
}

.map-loc-score {
  color: var(--color-primary);
  font-weight: 600;
}

.map-container {
  flex: 1;
  position: relative;
}

#localities-map {
  width: 100%;
  height: 100%;
}

/* Coming Soon Pages */
.coming-soon {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.coming-soon h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.coming-soon p {
  color: var(--color-text-muted);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Mobile Map */
@media (max-width: 768px) {
  .map-page {
    flex-direction: column;
    height: auto;
  }

  .map-sidebar {
    width: 100%;
    max-height: 250px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .map-container {
    height: 400px;
  }
}

/* ==================== METHODOLOGY PAGE ==================== */
.methodology-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.methodology-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.methodology-header .subtitle {
  color: var(--color-text-muted);
}

.methodology-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.intro-section {
  margin-bottom: 2rem;
}

.intro-section h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* Home Page Category Link Pills */
.explore-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  z-index: 20;
}

.explore-pill-link {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.explore-pill-link:hover {
  background: white;
  color: var(--color-bg-dark, #0f172a);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.explore-card:not(a) {
  cursor: default;
}

.explore-card-desc {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.stat-box {
  background: var(--color-bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-box .stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-box .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== PREMIUM SPOTS SECTION ==================== */
.premium-spots-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.spots-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.spots-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

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

.spot-card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.spot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.spot-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-tertiary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spot-icon-large {
  font-size: 3rem;
  opacity: 0.7;
}

.spot-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: capitalize;
  font-weight: 500;
}

.spot-info {
  padding: 1rem;
}

.spot-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.spot-rating {
  color: var(--color-gold);
  font-weight: 600;
}

.spot-maps-link {
  color: var(--color-primary);
  font-weight: 500;
}

.spot-card:hover .spot-maps-link {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .spots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .spot-image {
    height: 120px;
  }

  .spot-name {
    font-size: 0.9rem;
  }

  .spots-title {
    font-size: 1.5rem;
  }
}

/* ==================== DETAIL PAGE PHOTO HERO ==================== */
.detail-hero-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.hero-photo-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.hero-photo-content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-shadow: none;
}

.hero-photo-content .category-label-large {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 0;
  margin-top: 0.25rem;
}

.hero-photo-content .category-icon-large {
  font-size: 2.5rem;
}

@media (max-width: 768px) {
  .hero-photo-content {
    bottom: 1rem;
    left: 1rem;
  }

  .hero-photo-content h1 {
    font-size: 1.75rem;
  }

  .hero-photo-content .category-icon-large {
    font-size: 2rem;
  }
}

/* ==================== FLOATING DISCOVER BUTTON ==================== */
.discover-floating-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.discover-float-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.discover-float-link:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
  background: #fff;
}

.discover-float-arrow {
  transition: transform 0.2s ease;
}

.discover-float-link:hover .discover-float-arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .discover-floating-btn {
    bottom: 1rem;
    right: 1rem;
  }

  .discover-float-link {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* ==================== DISCOVER CTA CARD ==================== */
.discover-cta-card {
  display: block;
  max-width: 600px;
  margin: 2rem auto;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.discover-cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--color-primary);
}

.discover-cta-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.discover-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.discover-cta-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: #fff;
}

.discover-cta-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
}

.discover-cta-content p {
  margin: 0 0 0.75rem 0;
  opacity: 0.9;
}

.discover-cta-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.discover-cat-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.discover-cta-button {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background 0.2s ease;
}

.discover-cta-card:hover .discover-cta-button {
  background: var(--color-primary-dark, #1a5f4a);
}

/* ==================== DISCOVER PAGE ==================== */
.discover-page {
  min-height: 100vh;
}

.discover-hero {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.discover-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.discover-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #fff;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.discover-hero-content h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.discover-hero-content p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
}

.back-button-light {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.back-button-light:hover {
  opacity: 1;
  text-decoration: underline;
}

.discover-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.discover-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.discover-tab {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.discover-tab:hover {
  background: var(--color-bg-tertiary);
}

.discover-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.discover-spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.discover-spot-card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.discover-spot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: var(--color-primary);
}

.discover-spot-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discover-spot-icon {
  font-size: 3rem;
  opacity: 0.6;
}

.discover-spot-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: capitalize;
}

.discover-spot-info {
  padding: 1.25rem;
}

.discover-spot-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.discover-spot-address {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discover-spot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.discover-spot-rating {
  color: var(--color-gold);
  font-weight: 600;
}

.discover-spot-link {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.discover-spot-card:hover .discover-spot-link {
  text-decoration: underline;
}

.discover-empty {
  text-align: center;
  padding: 4rem 2rem;
}

@media (max-width: 768px) {
  .discover-hero {
    height: 250px;
  }

  .discover-hero-content h1 {
    font-size: 1.75rem;
  }

  .discover-spots-grid {
    grid-template-columns: 1fr;
  }

  .discover-cta-image {
    height: 180px;
  }
}

/* ==================== Dining Views - Dark Theme ==================== */
.dining-hero {
  height: 50vh;
  min-height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.dining-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  background: var(--color-bg);
}

/* Filter & Sort Bar */
.filter-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.filter-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  min-width: 140px;
}

.filter-select:hover {
  border-color: var(--color-primary);
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 170, 108, 0.2);
}

.price-filters {
  display: flex;
  gap: 0.25rem;
}

.price-filter-btn {
  padding: 0.5rem 0.75rem;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.price-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.price-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn-clear-filters {
  margin-left: auto;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-filters:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.results-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  grid-column: 1 / -1;
}

/* Mobile Filter Bar */
@media (max-width: 768px) {
  .filter-sort-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .filter-select {
    width: 100%;
  }

  .price-filters {
    width: 100%;
    justify-content: space-between;
  }

  .price-filter-btn {
    flex: 1;
    text-align: center;
  }

  .btn-clear-filters {
    margin-left: 0;
    width: 100%;
  }
}

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

.dining-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.dining-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.card-rank {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  z-index: 5;
  border: 1px solid var(--color-border);
}

.card-image-container {
  height: 250px;
  position: relative;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
  display: flex;
  justify-content: flex-end;
}

.card-price {
  color: white;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.card-content {
  padding: 1.5rem;
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  /* Fix for truncated review counts */
}

.rating-val {
  background: var(--color-success);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}

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

.vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.vibe-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  font-weight: 500;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.score-pill {
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid;
  padding: 4px 12px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.3);
}

.btn-map {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* Clickable Card Links */
.dining-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.dining-card-link:hover .dining-card {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.dining-card-link:hover .card-title {
  color: var(--color-primary);
}

.btn-details {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.2s ease;
}

.dining-card-link:hover .btn-details {
  color: var(--color-primary-dark);
}

/* Card locality text */
.card-locality {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* Mobile Responsiveness for Dining */
@media (max-width: 768px) {
  .dining-hero {
    height: 50vh;
  }

  .dining-container {
    margin-top: -50px;
    padding: 0 1rem;
  }

  .dining-container .section-header {
    padding-top: 60px;
    margin-bottom: 1rem;
  }

  .dining-container .section-header-actions {
    justify-content: center;
    width: 100%;
  }

  .dining-grid {
    grid-template-columns: 1fr;
  }
}

/* Dining Show More/Less & Featured Badges */
.show-more-container,
.show-less-container {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.btn-show-more,
.btn-show-less {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-show-more:hover,
.btn-show-less:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #333;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 5;
}

.dining-card.featured {
  border: 2px solid var(--color-gold);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  justify-content: center;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--color-gold);
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-text-muted);
}

/* ==================== Methodology Page ==================== */
.methodology-page {
  padding-bottom: 4rem;
}

.methodology-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.methodology-hero h1 {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.methodology-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.methodology-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.methodology-section h2 {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.methodology-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.highlight-box {
  background: rgba(0, 170, 108, 0.15);
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: var(--color-text);
}

.highlight-box.warning-box {
  background: rgba(234, 179, 8, 0.15);
  border-left-color: #eab308;
}

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

.source-card {
  background: var(--color-bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.source-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.source-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.categories-breakdown {
  margin-top: 1.5rem;
}

.category-row {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-bg-secondary);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.category-icon {
  font-size: 2rem;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-details h3 {
  margin-bottom: 0.5rem;
}

.weight-badge {
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 0.5rem;
  font-weight: 600;
}

.category-details p {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.category-details code {
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--color-primary);
}

.excluded-list {
  list-style: none;
  padding: 0;
}

.excluded-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

/* Fix methodology hero subtitle */
.methodology-hero .hero-subtitle {
  font-size: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

/* CTA Buttons in methodology - ensure visibility */
.methodology-section .cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.methodology-section .btn-primary,
.methodology-section .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.methodology-section .btn-primary {
  background: var(--color-primary);
  color: white;
}

.methodology-section .btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.methodology-section .btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* About Page - Trust Points */
.trust-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.trust-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.trust-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

/* About Page Alias */
.about-page {
  min-height: 100vh;
}

/* Contact Page Styles */
.contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 1.5rem 0;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-icon {
  font-size: 2rem;
}

.contact-details h3 {
  margin: 0 0 0.5rem 0;
  color: var(--color-text);
}

.contact-email {
  font-size: 1.25rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-email:hover {
  text-decoration: underline;
}

/* Excluded list styling */
.excluded-list li strong {
  color: var(--color-error, #e53e3e);
}

/* Transparency section code blocks */
.methodology-section ul code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==================== HOME PAGE STYLES ==================== */

/* ========== DARK HERO THEME ========== */
.hero-dark {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
}

.hero-dark-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero-glow-1 {
  top: 10%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 170, 108, 0.3) 0%, transparent 70%);
}

.hero-glow-2 {
  bottom: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(100, 150, 200, 0.2) 0%, transparent 70%);
}

/* Floating Stats */
.floating-stat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  backdrop-filter: blur(12px);
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.stat-label {
  opacity: 0.7;
  font-weight: 500;
}

.stat-value {
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
}

/* Floating Animations - Each stat floats differently */
@keyframes float-1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(15px, -10px) rotate(1deg);
  }

  50% {
    transform: translate(5px, -20px) rotate(-1deg);
  }

  75% {
    transform: translate(-10px, -8px) rotate(0.5deg);
  }
}

@keyframes float-2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-12px, -15px) rotate(-1deg);
  }

  50% {
    transform: translate(-20px, -5px) rotate(1deg);
  }

  75% {
    transform: translate(-8px, 10px) rotate(-0.5deg);
  }
}

@keyframes float-3 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(10px, 12px) rotate(1deg);
  }

  50% {
    transform: translate(-8px, 18px) rotate(-1deg);
  }

  75% {
    transform: translate(15px, 5px) rotate(0.5deg);
  }
}

@keyframes float-4 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-12px, 8px) rotate(-1deg);
  }

  50% {
    transform: translate(10px, -10px) rotate(1deg);
  }

  75% {
    transform: translate(-5px, 15px) rotate(-0.5deg);
  }
}

.stat-1 {
  top: 18%;
  left: 8%;
  animation: float-1 8s ease-in-out infinite;
}

.stat-2 {
  top: 30%;
  right: 10%;
  animation: float-2 10s ease-in-out infinite;
  animation-delay: -2s;
}

.stat-3 {
  bottom: 28%;
  left: 10%;
  animation: float-3 9s ease-in-out infinite;
  animation-delay: -4s;
}

.stat-4 {
  bottom: 22%;
  right: 8%;
  animation: float-4 11s ease-in-out infinite;
  animation-delay: -6s;
}

/* Hero Content */
.hero-dark-content {
  position: relative;
  z-index: 20;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.badge-icon {
  color: var(--color-primary);
  font-size: 0.5rem;
}

.badge-arrow {
  opacity: 0.5;
}

.hero-dark-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-dark-title .highlight {
  color: white;
  background: linear-gradient(135deg, #00aa6c 0%, #00d68f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-dark-tagline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-primary:hover {
  background: white;
  color: #0a0a0f;
  border-color: white;
}

.cta-arrow {
  font-size: 1rem;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.scroll-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* Trust Strip */
.trust-strip {
  background: #0f0f17;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-strip-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.trust-logo-icon {
  font-size: 1.1rem;
  opacity: 0.7;
}

/* Explore Section Dark */
.explore-dark {
  background: linear-gradient(180deg, #0f0f17 0%, #1a1a2e 100%);
}

.explore-dark .section-title {
  color: white;
}

.explore-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 3rem;
}

/* Why Section */
.why-section {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f17 100%);
  padding: 6rem 2rem;
}

.why-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.why-content h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.why-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 170, 108, 0.3);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.why-icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #00d68f 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.why-icon-text {
  font-size: 0.875rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.why-card h3 {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.75rem;
}

.why-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.why-cta {
  margin-top: 2rem;
}

/* Responsive for Dark Hero */
@media (max-width: 768px) {
  .floating-stat {
    display: none;
  }

  .hero-dark-title {
    font-size: 2.25rem;
  }

  .hero-dark-tagline {
    font-size: 1rem;
  }

  .scroll-indicator {
    display: none;
  }

  .trust-strip-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .trust-logos {
    gap: 1.5rem;
  }

  .why-content h2 {
    font-size: 2rem;
  }
}

/* ========== END DARK HERO THEME ========== */

/* Home Hero (Legacy) */
.home-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 900px;
}

.home-hero-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.home-hero-title .highlight {
  color: var(--color-primary-light);
}

.home-hero-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 0.75rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.home-hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Purpose Cards */
.purpose-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.purpose-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
}

.purpose-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.purpose-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.purpose-text {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.purpose-desc {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Explore Section */
.explore-section {
  padding: 4rem 2rem;
  background: var(--color-bg);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.explore-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.explore-card:hover {
  transform: scale(1.02);
}

.explore-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.explore-card:hover .explore-card-bg {
  transform: scale(1.1);
}

.explore-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.explore-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: white;
}

.explore-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.explore-card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
  color: white;
}

.explore-card-content p {
  font-size: 0.95rem;
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 1), 0 0 8px rgba(0, 0, 0, 0.7);
}

/* Featured Section */
.featured-section {
  padding: 4rem 2rem;
  background: var(--color-bg-secondary);
}

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

.see-all {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.see-all:hover {
  text-decoration: underline;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-image {
  position: relative;
  height: 180px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-rank {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
}

.featured-info {
  padding: 1.25rem;
}

.featured-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.featured-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.featured-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* About Section */
.about-section {
  padding: 6rem 2rem;
  background: #111827;
  /* Match Footer */
  color: white;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.about-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: white;
}

.about-lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  text-align: center;
}

.about-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about-feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-8px);
  border-color: var(--color-primary-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 170, 108, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-primary-light);
  transition: all 0.3s ease;
}

.about-feature-card:hover .about-feature-icon {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.about-feature-text h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.about-feature-text p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin: 0;
}

.about-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-learn-more:hover {
  background: white;
  color: #111827;
  border-color: white;
}

/* Custom CSS Icons for About Features */
.icon-chart::before {
  content: '';
  width: 24px;
  height: 24px;
  display: block;
  background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line></svg>') no-repeat center;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line></svg>') no-repeat center;
}

.icon-scale::before {
  content: '';
  width: 24px;
  height: 24px;
  display: block;
  background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 16c0 1.1-.9 2-2 2H10c-1.1 0-2-.9-2-2"></path><path d="M20 16c0 1.1-.9 2-2 2h-1c-1.1 0-2-.9-2-2"></path><circle cx="12" cy="7" r="5"></circle></svg>') no-repeat center;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 16c0 1.1-.9 2-2 2H10c-1.1 0-2-.9-2-2"></path><path d="M20 16c0 1.1-.9 2-2 2h-1c-1.1 0-2-.9-2-2"></path><circle cx="12" cy="7" r="5"></circle></svg>') no-repeat center;
}

.icon-search::before {
  content: '';
  width: 24px;
  height: 24px;
  display: block;
  background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat center;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat center;
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: white;
  border: 2px solid white;
  color: var(--color-bg-dark);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .home-hero-title {
    font-size: 2.5rem;
  }

  .home-hero-tagline {
    font-size: 1.1rem;
  }

  .purpose-cards {
    flex-direction: column;
    align-items: center;
  }

  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-feature {
    flex-direction: column;
    align-items: center;
  }
}

/* ==================== CUSTOMIZED RANKING INDICATOR (INLINE) ==================== */

.section-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.customized-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(0, 170, 108, 0.2) 0%, rgba(0, 170, 108, 0.1) 100%);
  color: #4ade80;
  border: none;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-reset-inline {
  padding: 0.4rem 0.75rem;
  background: transparent;
  color: #f87171;
  border: 1px solid #f87171;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-inline:hover {
  background: #f87171;
  color: white;
}

.btn-customize-green {
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 170, 108, 0.3);
}

.btn-customize-green:hover {
  background: #00c878;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 170, 108, 0.4);
}

.btn-restore-small {
  padding: 0.5rem 1rem;
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: none;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-restore-small:hover {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 600px) {
  .section-header-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== METHODOLOGY TABS ==================== */

.methodology-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0;
  overflow-x: auto;
}

.methodology-tab {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-light);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.methodology-tab:hover {
  color: var(--color-primary);
}

.methodology-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.methodology-tab-content {
  display: none;
}

.methodology-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight-row {
  background: linear-gradient(135deg, rgba(0, 170, 108, 0.15) 0%, rgba(0, 170, 108, 0.1) 100%);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  border: 1px solid rgba(0, 170, 108, 0.3);
}

.vibe-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.vibe-example {
  padding: 0.5rem 1rem;
  background: rgba(0, 170, 108, 0.15);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 170, 108, 0.3);
}

.methodology-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* Responsive tabs */
@media (max-width: 600px) {
  .methodology-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .methodology-tab {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* ==================== INLINE CUSTOMIZE BUTTON ==================== */

.section-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-customize-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  background: transparent;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-customize-inline:hover {
  color: #00c97b;
  background: rgba(0, 170, 108, 0.1);
}

@media (max-width: 600px) {
  .section-header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-customize-inline {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   SHARED COMPONENTS - Unified UI System
   ======================================== */

/* Section Header Unified */
.section-header-unified {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.section-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-title-unified {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text, #1a1a1a);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.section-header-right {
  display: flex;
  align-items: center;
}

.section-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary, #00aa6c);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.section-action-btn:hover {
  background: var(--color-primary-dark, #008f5a);
  transform: translateY(-1px);
}

/* Category Card Unified */
.category-card-unified {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card-unified:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.category-card-unified:hover .category-card-bg {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.category-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: #fbbf24;
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.category-card-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  color: white;
}

.category-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.category-card-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.category-card-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.category-card-disabled {
  pointer-events: none;
  opacity: 0.7;
}

.category-card-disabled .category-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
}

/* Subcategory Card */
.subcategory-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.subcategory-card:hover {
  border-color: var(--color-primary, #00aa6c);
  box-shadow: 0 4px 12px rgba(0, 170, 108, 0.1);
  transform: translateX(4px);
}

.subcategory-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.subcategory-info {
  flex: 1;
  min-width: 0;
}

.subcategory-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text, #1a1a1a);
  margin: 0;
}

.subcategory-desc {
  font-size: 0.85rem;
  color: #666;
  margin: 0.25rem 0 0;
}

.subcategory-badge {
  padding: 0.2rem 0.6rem;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
}

.subcategory-card-disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* List Card */
.list-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.list-card-featured {
  border: 2px solid var(--color-primary, #00aa6c);
}

.list-card-rank {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.75rem;
  background: var(--color-primary, #00aa6c);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 8px;
  z-index: 2;
}

.list-card-image-container {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
}

.list-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.list-card:hover .list-card-image {
  transform: scale(1.05);
}

.list-card-content {
  padding: 1rem 1.25rem 1.25rem;
}

.list-card-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text, #1a1a1a);
  margin: 0 0 0.25rem;
}

.list-card-subtitle {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.5rem;
}

.list-card-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.list-card-rating .rating-value {
  font-weight: 700;
  color: var(--color-text, #1a1a1a);
}

.list-card-rating .rating-stars {
  font-size: 0.8rem;
}

.list-card-rating .review-count {
  font-size: 0.8rem;
  color: #999;
}

.list-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.list-card-tag {
  padding: 0.2rem 0.6rem;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.75rem;
  border-radius: 999px;
}

.list-card-score {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 2px solid;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.list-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Coming Soon Page */
.coming-soon-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.coming-soon-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary, #00aa6c);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.coming-soon-page .back-link:hover {
  color: var(--color-primary-dark, #008f5a);
}

.coming-soon-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.coming-soon-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text, #1a1a1a);
  margin: 0 0 0.75rem;
}

.coming-soon-description {
  font-size: 1.1rem;
  color: #666;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.coming-soon-subcategories {
  background: #f8fafc;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  width: 100%;
}

.coming-soon-subcategories p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.coming-soon-subcategories ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.coming-soon-subcategories li {
  padding: 0.4rem 0.85rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-text, #1a1a1a);
}

.coming-soon-badge {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Category Page Layout */
.category-page {
  min-height: 100vh;
}

.category-hero {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-bottom: 4rem;
}

.category-hero-content {
  text-align: center;
  color: white;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-hero-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
}

.category-hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.category-body {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation Group (Dropdown) - Dark Theme */
.nav-group {
  position: relative;
}

.nav-group-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--radius-full);
}

.nav-group-trigger:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-group-icon {
  font-size: 1rem;
}

.nav-group-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
  opacity: 0.5;
}

.nav-group:hover .nav-group-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  background: rgba(10, 10, 15, 0.52);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10001;
}

.nav-group:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.nav-item-badge {
  padding: 0.15rem 0.5rem;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Subcategory Grid */
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Category Cards Grid */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-header-unified {
    flex-direction: column;
    gap: 1rem;
  }

  .category-hero {
    height: 220px;
  }

  .category-hero-title {
    font-size: 2rem;
  }

  .coming-soon-title {
    font-size: 2rem;
  }

  .coming-soon-icon {
    font-size: 3rem;
  }

  .subcategory-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   EXPLORE SECTION ENHANCEMENTS
   ======================================== */

/* Explore Card Label (category indicator) */
.explore-card-label {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Explore Card Badge (Coming Soon) */
.explore-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  z-index: 3;
}

/* New Badge Styling */
.explore-card-badge-new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

/* Coming Soon Card Styling */
.explore-card-soon {
  opacity: 0.85;
}

.explore-card-overlay-soon {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
}

/* Subsection Title */
.explore-subsection-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #666;
  margin: 2.5rem 0 1rem;
  padding-left: 0.5rem;
}

/* Secondary Grid (Coming Soon categories) */
.explore-grid-secondary {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.explore-grid-secondary .explore-card {
  min-height: 160px;
}

.explore-grid-secondary .explore-card-content h3 {
  font-size: 1.25rem;
}

/* Responsive adjustments for explore section */
@media (max-width: 768px) {
  .explore-grid-secondary {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .explore-grid-secondary .explore-card {
    min-height: 140px;
  }

  .explore-subsection-title {
    font-size: 1.1rem;
    margin: 2rem 0 0.75rem;
  }
}

/* ========================================
   SERVICES GRID & CATEGORY CARDS
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.service-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 2rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary, #00aa6c);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-category-card h3 {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text, #1a1a1a);
  margin: 0 0 0.5rem;
}

.service-category-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Card locality styling */
.card-locality {
  font-size: 0.85rem;
  color: #666;
  margin: 0.25rem 0 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-category-card {
    padding: 1.5rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .service-category-card h3 {
    font-size: 1.25rem;
  }
}

/* ========================================
   ENTITY DETAIL VIEW
   ======================================== */

.entity-detail-page {
  min-height: 100vh;
  background: var(--color-bg);
}

.entity-back-nav {
  padding: 1rem 2rem;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
}

.entity-back-nav .back-link {
  color: var(--color-primary, #00aa6c);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.entity-back-nav .back-link:hover {
  color: var(--color-primary-dark, #008f5a);
}

/* Entity Hero */
.entity-hero {
  height: 350px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  position: relative;
}

.entity-hero-content {
  color: white;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.entity-rank-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.entity-category-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.entity-title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.entity-rank-context {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0;
}

/* Entity Content */
.entity-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Entity Info Card */
.entity-info-card {
  background: var(--color-bg-secondary);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.entity-score-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.entity-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid;
  flex-shrink: 0;
}

.entity-score .score-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.entity-score .score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.entity-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  flex: 1;
}

.entity-metric {
  display: flex;
  flex-direction: column;
}

.entity-metric .metric-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.entity-metric .metric-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.entity-vibes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entity-vibe {
  padding: 0.4rem 0.85rem;
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
}

/* Entity Location Card */
.entity-location-card {
  background: var(--color-bg-secondary);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.entity-location-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.entity-address {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.entity-locality {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.entity-mini-map {
  height: 200px;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Ensure Leaflet map elements stay below header */
.entity-mini-map .leaflet-pane,
.entity-mini-map .leaflet-control {
  z-index: auto !important;
}

.entity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.entity-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.entity-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.entity-action-btn.secondary {
  background: var(--color-bg-tertiary);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.entity-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
}

.entity-action-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border: none;
}

.entity-action-btn.instagram:hover {
  background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #a01472 100%);
  transform: translateY(-1px);
}

/* Nearby Section */
.entity-nearby-section {
  background: var(--color-bg-secondary);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.entity-nearby-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text);
}

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

.nearby-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--color-bg-tertiary);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid var(--color-border);
}

.nearby-card:hover {
  background: rgba(0, 170, 108, 0.1);
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.nearby-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
  color: white;
}

/* Default icon when category icon is empty */
.nearby-icon:empty::before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.nearby-info {
  flex: 1;
  min-width: 0;
}

.nearby-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Map Explorer Link */
.entity-map-cta {
  text-align: center;
  padding: 1rem 0;
}

.map-explorer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-explorer-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* ========================================
   ENHANCED MAP EXPLORER
   ======================================== */

.map-explorer-page {
  display: flex;
  height: calc(100vh - 120px);
  min-height: 500px;
}

/* Map Controls Sidebar */
.map-controls-sidebar {
  width: 300px;
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-controls-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.map-controls-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}

.map-controls-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.map-category-toggles {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.category-section {
  margin-bottom: 1.25rem;
}

.category-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
  padding-left: 0.25rem;
}

.map-category-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--color-bg-tertiary);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.map-category-toggle:hover {
  background: rgba(0, 170, 108, 0.1);
}

.map-category-toggle.active {
  background: var(--color-bg);
  border-color: var(--toggle-color, #00aa6c);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-category-toggle .toggle-icon {
  font-size: 1.25rem;
  width: 32px;
  text-align: center;
}

.map-category-toggle .toggle-label {
  flex: 1;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.map-category-toggle .toggle-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.map-category-toggle.active .toggle-count {
  background: var(--toggle-color, #00aa6c);
  color: white;
}

/* Map Controls Footer */
.map-controls-footer {
  padding: 1rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-tertiary);
}

.active-layers-info {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

.active-layers-info #active-layers-count {
  font-weight: 700;
  color: var(--color-primary, #00aa6c);
}

.btn-show-all-layers,
.btn-clear-layers {
  width: 48%;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-show-all-layers {
  background: var(--color-primary, #00aa6c);
  color: white;
  margin-right: 4%;
}

.btn-show-all-layers:hover {
  background: var(--color-primary-dark, #008f5a);
}

.btn-clear-layers {
  background: var(--color-bg-secondary);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-clear-layers:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-primary);
}

/* Map Main Container */
.map-main-container {
  flex: 1;
  position: relative;
  z-index: 1;
}

#explorer-map {
  width: 100%;
  height: 100%;
}

/* Ensure main map stays below header */
#explorer-map .leaflet-pane {
  z-index: auto !important;
}

#explorer-map .leaflet-top,
#explorer-map .leaflet-bottom {
  z-index: 500 !important;
}

/* Marker Cluster Styling */
.marker-cluster {
  background: transparent !important;
}

.marker-cluster div {
  transition: transform 0.2s ease;
}

.marker-cluster:hover div {
  transform: scale(1.15);
}

/* Cluster coverage area on hover */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
  transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

/* Map Legend */
.map-legend {
  position: absolute;
  bottom: 2rem;
  right: 1rem;
  background: var(--color-bg-secondary);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  z-index: 1000;
  max-width: 200px;
}

.map-legend h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
}

.legend-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.legend-empty {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .map-explorer-page {
    flex-direction: column;
    height: auto;
  }

  .map-controls-sidebar {
    width: 100%;
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .map-main-container {
    height: 60vh;
    min-height: 400px;
  }

  .map-legend {
    bottom: 1rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }

  .legend-items {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .entity-hero {
    height: 280px;
    padding: 1.5rem;
  }

  .entity-title {
    font-size: 1.75rem;
  }

  .entity-content {
    padding: 1rem;
  }

  .entity-score-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .entity-score {
    width: 80px;
    height: 80px;
  }

  .entity-score .score-number {
    font-size: 1.5rem;
  }

  .nearby-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== Map Interaction Styles (Global) ==================== */

/* Interactive Map Tooltips */
.interactive-tooltip {
  pointer-events: auto !important;
  cursor: default;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
  background: white !important;
  overflow: hidden !important;
  z-index: 1000 !important;
}

.interactive-tooltip::before {
  display: none !important;
}

/* Clear bridge to prevent closing when mouse moves from marker to tooltip */
.interactive-tooltip::after {
  content: '';
  position: absolute;
  bottom: -40px;
  /* Oversized reach */
  left: -80px;
  /* Extra wide for diagonal movement */
  right: -80px;
  height: 60px;
  /* Taller bridge */
  background: rgba(255, 255, 255, 0.01);
  /* Minimal visibility for capture */
  pointer-events: auto;
  z-index: 1200;
  /* Ensure it stays on top */
}

.interactive-tooltip button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Map Marker Hover Effects - CSS-based for best performance */
.map-marker-hoverable .marker-inner {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.map-marker-hoverable:hover .marker-inner {
  transform: scale(1.3) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
  z-index: 1000 !important;
}

/* Ensure Leaflet tooltip stays visible during interaction */
.leaflet-tooltip.interactive-tooltip {
  pointer-events: auto !important;
  z-index: 1001 !important;
  visibility: visible !important;
}

/* Interactive Popup Styles (Fallback/Click) */
.interactive-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  padding: 0;
  background: var(--color-bg-secondary);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.interactive-popup .leaflet-popup-content {
  margin: 0;
  min-width: 200px;
}

.interactive-popup .leaflet-popup-tip {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

/* Ensure nothing blocks clicks on popups */
.leaflet-popup {
  pointer-events: auto !important;
}

/* General Leaflet Popup Dark Theme */
.leaflet-popup-content-wrapper {
  background: var(--color-bg-secondary);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.leaflet-popup-tip {
  background: var(--color-bg-secondary);
}

/* ==================== Premium Home Grid ==================== */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--color-bg-tertiary);
  /* Fallback */
  border: 1px solid var(--color-border);
}

.explore-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--color-primary);
}

.explore-card.large-card {
  grid-column: span 2;
}

.explore-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.explore-card:hover .explore-card-bg {
  transform: scale(1.05);
}

.explore-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
}

.explore-card-content {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
  color: white;
}

.explore-card-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: var(--space-2);
  backdrop-filter: blur(4px);
}

.explore-card h3 {
  font-size: 1.75rem;
  color: white;
  margin-bottom: var(--space-2);
  font-family: var(--font-serif);
}

.explore-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

/* Responsive Grid */
@media (max-width: 992px) {
  .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .premium-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .explore-card {
    height: 300px;
  }

  .explore-card h3 {
    font-size: 1.5rem;
  }
}

/* ==================== Professional UI Badges & Icons ==================== */

/* Rank Badges */
.badge-rank-1,
.badge-rank-2,
.badge-rank-3 {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  z-index: 10;
}

.badge-rank-1 {
  background: #fff4e5;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.badge-rank-2 {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.badge-rank-3 {
  background: #fffafa;
  color: #7f1d1d;
  border: 1px solid #fecaca;
}

/* Trending Badge */
.badge-trending {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fee2e2;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* UI Icons & Symbols */
.ui-chevron-down::after {
  content: '\25BE';
  /* Small downward triangle */
  margin-left: 0.4rem;
  font-size: 0.8rem;
  vertical-align: middle;
}

.ui-arrow-right::after {
  content: '\2192';
  /* Standard right arrow */
  margin-left: 0.4rem;
}

.ui-arrow-left::before {
  content: '\2190';
  /* Standard left arrow */
  margin-right: 0.4rem;
}

/* Star Rating Refresh */
.star-rating-prof {
  color: var(--color-gold);
  letter-spacing: 1px;
}

.star-rating-prof::before {
  content: '\2605\2605\2605\2605\2605';
  /* 5 Unicode stars */
  display: inline-block;
}

.star-rating-prof-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  color: var(--color-gold);
}

/* Score Pills Revision */
.score-pill {
  background: #f8fafc;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   MOBILE RESPONSIVE OVERHAUL
   Viewport targets: 375px, 768px, 900px, 1024px
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10002;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Tablet and Mobile Navigation (900px and below) */
@media (max-width: 900px) {
  .top-bar {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-content {
    padding: 0.75rem 1rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #2d2d44;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 0 2rem;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 10001;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .main-nav.nav-open {
    right: 0;
  }

  .main-nav .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
  }

  .main-nav .nav-link.active::after {
    display: none;
  }

  /* Nav Groups for Mobile */
  .nav-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-group-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    min-width: auto;
  }

  .nav-group.dropdown-open .nav-dropdown {
    max-height: 500px;
    padding: 0.5rem 0;
  }

  .nav-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown-item {
    padding: 0.75rem 2.5rem;
    color: white;
    opacity: 0.85;
  }

  .nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-group-arrow {
    transition: transform 0.3s ease;
  }

  .nav-group.dropdown-open .nav-group-arrow {
    transform: rotate(180deg);
  }

  /* Body overlay when menu is open */
  body.nav-open-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
  }

  /* Footer adjustments */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* Tablet (768px) */
@media (max-width: 768px) {

  /* Home Hero */
  .home-hero {
    height: 70vh;
    min-height: 450px;
  }

  .home-hero-title {
    font-size: 2.25rem;
  }

  .home-hero-tagline {
    font-size: 1rem;
  }

  .home-hero-subtitle {
    font-size: 0.95rem;
  }

  /* Explore Grid - 2 columns on tablet */
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Premium Grid */
  .premium-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Map Explorer */
  .map-container {
    height: 50vh;
    min-height: 350px;
  }

  /* Explore cards */
  .explore-card {
    min-height: 180px;
  }

  .explore-card-content h3 {
    font-size: 1.1rem;
  }

  /* Purpose cards */
  .purpose-cards {
    gap: 1rem;
  }

  .purpose-card {
    padding: 1.25rem;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {

  /* Typography scaling */
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  /* Container padding */
  .container {
    padding: 0 1rem;
  }

  /* Home Hero - mobile */
  .home-hero {
    height: 60vh;
    min-height: 400px;
  }

  .home-hero-content {
    padding: 1rem;
  }

  .home-hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .home-hero-tagline {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .home-hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  /* Explore Grid - 1 column on mobile */
  .explore-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .explore-card {
    min-height: 160px;
  }

  /* Premium Grid - 1 column on mobile */
  .premium-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Explore card links */
  .explore-card-links {
    gap: 6px;
    margin-top: 12px;
  }

  .explore-card-link {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1rem;
  }

  .footer-section {
    align-items: center;
  }

  .footer-logo {
    font-size: 1.2rem;
  }

  /* Map adjustments */
  .map-container {
    height: 45vh;
    min-height: 300px;
  }

  .map-sidebar {
    max-height: 200px;
  }

  /* Locality cards */
  .locality-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .rank-badge {
    font-size: 1.5rem;
    min-width: 50px;
    height: 50px;
  }

  .locality-card-new {
    border-radius: 12px;
  }

  /* Score bars */
  .score-bar-container {
    gap: 0.5rem;
  }

  /* Category hero */
  .category-hero {
    height: 180px;
  }

  .category-hero-title {
    font-size: 1.75rem;
  }

  .category-hero-subtitle {
    font-size: 0.9rem;
  }

  /* Purpose section */
  .purpose-card {
    padding: 1rem;
  }

  .purpose-icon {
    font-size: 2rem;
  }

  .purpose-card h3 {
    font-size: 1rem;
  }

  /* Entity detail adjustments */
  .entity-header {
    padding: 1.5rem 1rem;
  }

  .entity-title {
    font-size: 1.5rem;
  }

  /* Methodology page */
  .methodology-header {
    padding: 1.5rem 1rem;
  }

  .methodology-content {
    padding: 0 1rem 2rem;
  }
}

/* Small mobile (375px) */
@media (max-width: 375px) {
  .home-hero-title {
    font-size: 1.5rem;
  }

  .home-hero-tagline {
    font-size: 0.85rem;
  }

  .explore-card-content h3 {
    font-size: 1rem;
  }

  .main-nav {
    width: 90%;
  }

  .header-content {
    padding: 0.5rem 0.75rem;
  }

  .logo-text-new {
    font-size: 0.75rem;
  }

  .logo-top10 {
    font-size: 1.25rem;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for map on mobile - ensure touch works */
.leaflet-container {
  touch-action: pan-x pan-y;
}

/* Ensure dropdowns don't overflow on mobile */
@media (max-width: 900px) {
  .nav-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 0;
    transform: none;
  }

  .nav-group.dropdown-open .nav-dropdown {
    max-height: 500px;
  }
}

/* Fix z-index stacking on mobile */
@media (max-width: 900px) {
  .main-header {
    z-index: 10000;
  }
}

/* ========================================
   COMPARE TOOL STYLES
   ======================================== */

/* Toast Notification */
.compare-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-bg-primary);
  color: var(--color-text);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

.compare-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Floating Compare Bar */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  padding: 0.75rem 1rem;
}

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

.compare-bar-items {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.compare-bar-label {
  font-weight: 600;
  color: var(--color-text);
}

.compare-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

.compare-bar-item-name {
  font-size: 0.875rem;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-bar-item-remove {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.compare-bar-item-remove:hover {
  color: #ef4444;
}

.compare-bar-hint {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  font-style: italic;
}

.compare-bar-actions {
  display: flex;
  gap: 0.5rem;
}

.compare-bar-clear {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.compare-bar-clear:hover {
  background: var(--color-bg-secondary);
}

.compare-bar-go {
  background: var(--color-primary);
  border: none;
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.compare-bar-go:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.compare-bar-go:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Compare Button on Cards */
.compare-add-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  z-index: 10;
}

.compare-add-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.compare-add-btn.in-compare {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Compare Page */
.compare-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.compare-header {
  text-align: center;
  margin-bottom: 2rem;
}

.compare-back {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.compare-back:hover {
  text-decoration: underline;
}

.compare-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.compare-subtitle {
  color: var(--color-text-secondary);
}

/* Compare Empty State */
.compare-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.compare-empty h2 {
  margin-bottom: 1rem;
}

.compare-empty p {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

/* Compare Cards (for places) */
.compare-cards-wrapper {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.compare-card {
  background: var(--color-bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  width: 200px;
  border: 1px solid var(--color-border);
}

.compare-card-image {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.compare-card-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.compare-card-remove:hover {
  background: #ef4444;
}

.compare-card-content {
  padding: 1rem;
  text-align: center;
}

.compare-card-name {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-card-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Compare Table */
.compare-table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.compare-table thead {
  background: var(--color-bg-primary);
}

.compare-metric-header {
  text-align: left !important;
  font-weight: 600;
  width: 180px;
}

.compare-item-header {
  min-width: 150px;
}

.compare-item-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.compare-item-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.compare-remove-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.compare-remove-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

.compare-metric-name {
  text-align: left !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-icon {
  font-size: 1.1rem;
}

.compare-value {
  font-size: 1rem;
  position: relative;
}

.compare-value strong {
  font-size: 1.25rem;
}

.compare-best {
  background: rgba(0, 170, 108, 0.1);
}

.best-badge {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.no-data {
  color: var(--color-text-secondary);
  font-style: italic;
}

.compare-actions {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem 0;
}

.compare-actions .btn-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compare-actions .btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

/* Mobile Compare */
@media (max-width: 768px) {
  .compare-bar-content {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-bar-items {
    justify-content: center;
  }

  .compare-bar-actions {
    justify-content: center;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  .compare-metric-header {
    width: 120px;
  }

  .compare-header h1 {
    font-size: 1.75rem;
  }

  .compare-card {
    width: 150px;
  }

  .compare-card-image {
    height: 80px;
  }
}

/* ========================================
   LOCALITY FINDER QUIZ STYLES
   ======================================== */

/* Quiz Container */
.quiz-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--color-bg-dark);
}

/* Quiz Intro Screen */
.quiz-intro {
  text-align: center;
  max-width: 600px;
}

.quiz-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(0, 170, 108, 0.15);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.quiz-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.quiz-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.quiz-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.quiz-meta-item {
  text-align: center;
}

.meta-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.meta-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quiz-start-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-start-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.quiz-skip-link {
  display: block;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
}

.quiz-skip-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Quiz Progress Bar */
.quiz-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

/* Quiz Header */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 600px;
}

.quiz-step {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.quiz-back-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.quiz-back-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

/* Quiz Question */
.quiz-question {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.quiz-question h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: white;
  margin-bottom: 2rem;
}

/* Quiz Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-option {
  display: block;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option:hover {
  background: rgba(0, 170, 108, 0.15);
  border-color: var(--color-primary);
  transform: translateX(4px);
}

/* Quiz Results */
.quiz-results {
  width: 100%;
  max-width: 900px;
}

.results-header {
  text-align: center;
  margin-bottom: 3rem;
}

.results-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(0, 170, 108, 0.15);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.results-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.results-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Result Card */
.result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.result-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.result-card-top {
  background: rgba(0, 170, 108, 0.1);
  border-color: var(--color-primary);
}

.result-best-match {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.result-rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  font-weight: 600;
}

.result-match-score {
  text-align: center;
  margin-bottom: 1rem;
}

.match-percent {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.match-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-align: center;
  margin-bottom: 0.75rem;
}

.result-overall {
  text-align: center;
  margin-bottom: 1rem;
}

.overall-score {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.overall-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 0.25rem;
}

.result-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.reason-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.result-price {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.result-explore-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.result-explore-btn:hover {
  background: var(--color-primary);
  color: white;
}

/* Results Actions */
.results-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.quiz-retake-btn {
  padding: 0.875rem 2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-retake-btn:hover {
  border-color: white;
}

.quiz-browse-btn {
  padding: 0.875rem 2rem;
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.quiz-browse-btn:hover {
  background: var(--color-primary-dark);
}

/* Quiz Banner (on Localities page) */
.quiz-banner {
  background: linear-gradient(135deg, rgba(0, 170, 108, 0.15) 0%, rgba(0, 100, 80, 0.15) 100%);
  border: 1px solid rgba(0, 170, 108, 0.3);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem auto;
  max-width: 1200px;
}

.quiz-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.quiz-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quiz-banner-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.quiz-banner-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.quiz-banner-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quiz-banner-btn:hover {
  background: var(--color-primary-dark);
}

/* Quiz Card on Home Page */
.explore-card-quiz {
  position: relative;
  overflow: hidden;
}

.explore-card-bg-gradient {
  background: linear-gradient(135deg, #00aa6c 0%, #006644 100%) !important;
}

.quiz-cta-pill {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.explore-card-quiz:hover .quiz-cta-pill {
  background: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .quiz-title {
    font-size: 1.75rem;
  }

  .quiz-meta {
    gap: 1.5rem;
  }

  .meta-value {
    font-size: 1.5rem;
  }

  .quiz-question h2 {
    font-size: 1.35rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .quiz-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .results-actions {
    flex-direction: column;
  }

  .quiz-retake-btn,
  .quiz-browse-btn {
    width: 100%;
  }
}

/* ========================================
   NEW SPLASH PAGE STYLES
   ======================================== */

/* Hero Splash - Shorter, cleaner */
.hero-splash {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--color-bg-dark);
  overflow: hidden;
}

.hero-splash-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Brand Lockup */
.brand-lockup {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-top10 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  display: block;
}

.brand-city {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.5rem;
}

.hero-splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.cta-explore {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.cta-explore:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 170, 108, 0.3);
}

/* About Rankings CTA */
.about-rankings-cta {
  text-align: center;
  margin-top: 3rem;
  padding-bottom: 2rem;
}

/* Updated Logo Styles */
.logo-text-new {
  line-height: 1.1;
}

.logo-top10 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: white;
  letter-spacing: 0.02em;
}

.logo-tvm {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.7rem;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-splash {
    min-height: 70vh;
  }

  .brand-top10 {
    font-size: 3.5rem;
  }

  .brand-city {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
  }

  .hero-tagline {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* ========================================
   VIBRANT LANDING PAGE STYLES
   ======================================== */

/* Hero Section - Vibrant */
.hero-vibrant {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1602216056096-3b40cc0c9944?w=1920&q=80') center/cover no-repeat;
  filter: brightness(0.80) saturate(1.2);
  transform-origin: center center;
  transform: scale(1.08);
  animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.08); }
  100% { transform: scale(1.15); }
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10,20,30,0) 0%,
    rgba(10,20,30,0.02) 15%,
    rgba(10,20,30,0.08) 35%,
    rgba(10,20,30,0.20) 50%,
    rgba(10,20,30,0.40) 65%,
    rgba(10,20,30,0.60) 78%,
    rgba(10,20,30,0.80) 88%,
    rgba(10,20,30,0.95) 96%,
    rgba(10,20,30,1) 100%);
}

/* Animated Particles - Hero Only */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 170, 108, 0.6);
  border-radius: 50%;
  animation: particleFloat 15s infinite ease-in-out;
}

.particle-1 { left: 20%; top: 30%; animation-delay: 0s; }
.particle-2 { left: 70%; top: 50%; animation-delay: 5s; }
.particle-3 { left: 40%; top: 70%; animation-delay: 10s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-30px) translateX(20px); opacity: 0.8; }
  50% { transform: translateY(-60px) translateX(-10px); opacity: 0.5; }
  75% { transform: translateY(-30px) translateX(30px); opacity: 0.8; }
}

/* Hero Content */
.hero-vibrant-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.brand-lockup-vibrant {
  margin-bottom: 2rem;
}

.brand-top10-large {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 6rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.brand-city-large {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: #00aa6c;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.75rem;
  text-shadow: 0 2px 20px rgba(0, 170, 108, 0.5);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-tagline-vibrant {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

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

/* CTA Button */
.cta-explore-vibrant {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  background: linear-gradient(135deg, #00aa6c 0%, #00c97b 100%);
  color: white;
  text-decoration: none;
  border-radius: 60px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 40px rgba(0, 170, 108, 0.4);
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.cta-explore-vibrant:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 170, 108, 0.5);
  color: white;
}

.cta-explore-vibrant svg {
  animation: ctaBounce 2s infinite;
}

@keyframes ctaBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Scroll Indicator */
.scroll-indicator-vibrant {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  animation: fadeInDelayed 1s ease-out 1s backwards;
}

@keyframes fadeInDelayed {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* Explore Section - Vibrant */
.explore-section-vibrant {
  background: linear-gradient(180deg, #0a1420 0%, #0f1d2d 100%);
  padding: 5rem 2rem;
  min-height: 100vh;
}

.section-header-vibrant {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title-vibrant {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  color: white;
  margin: 0 0 1rem;
}

.section-subtitle-vibrant {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Floating Cards Grid */
.floating-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Floating Card */
.floating-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  animation: floatCardIn 0.6s ease-out backwards;
  background: #1a2a3a;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  outline: none;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.floating-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 10;
}

.floating-card:nth-child(1) { animation-delay: 0.1s; }
.floating-card:nth-child(2) { animation-delay: 0.2s; }
.floating-card:nth-child(3) { animation-delay: 0.3s; }
.floating-card:nth-child(4) { animation-delay: 0.4s; }
.floating-card:nth-child(5) { animation-delay: 0.5s; }
.floating-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes floatCardIn {
  from {
    opacity: 0;
    transform: translateZ(0) translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateZ(0) translateY(0);
  }
}

.floating-card:hover {
  transform: translateZ(0) translateY(-12px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.floating-card-large {
  grid-column: span 2;
  min-height: 380px;
}

.floating-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.floating-card:hover .floating-card-bg {
  transform: scale(1.1);
}

/* Shine Effect */
.floating-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.floating-card:hover .floating-card-shine {
  opacity: 1;
}

/* Card Content */
.floating-card-content {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.85) 100%);
  color: white;
  z-index: 2;
}

.floating-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #00aa6c;
  margin-bottom: 0.5rem;
}

.floating-card-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.floating-card-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

/* Card Pills */
.floating-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card-pill:hover {
  background: #00aa6c;
  border-color: #00aa6c;
  color: white;
  transform: translateY(-2px);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin: 5rem auto 3rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  max-width: 800px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00aa6c;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* About Rankings CTA */
.about-rankings-cta-vibrant {
  text-align: center;
  margin-top: 2rem;
}

.cta-secondary-vibrant {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta-secondary-vibrant:hover {
  border-color: #00aa6c;
  color: #00aa6c;
  background: rgba(0, 170, 108, 0.1);
}

/* Mobile Responsive - Vibrant */
@media (max-width: 1024px) {
  .floating-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .floating-card-large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .brand-top10-large {
    font-size: 4rem;
  }
  .brand-city-large {
    font-size: 1.3rem;
    letter-spacing: 0.25em;
  }
  .hero-tagline-vibrant {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  .section-title-vibrant {
    font-size: 2.25rem;
  }
  .floating-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .floating-card-large {
    grid-column: span 1;
  }
  .floating-card {
    min-height: 280px;
  }
  .stats-bar {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .brand-top10-large {
    font-size: 3rem;
  }
  .brand-city-large {
    font-size: 1rem;
  }
  .cta-explore-vibrant {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  .floating-card-content h3 {
    font-size: 1.5rem;
  }
}