/* ─── RESET & TOKENS ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #dcfce7;
  --green-glow: rgba(34, 197, 94, 0.15);
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --white: #ffffff;
  --amber: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--slate-950);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

/* ─── NAV ────────────────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.8; }

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--slate-400);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}

.nav-tag {
  font-size: 0.7rem;
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--slate-950);
  box-shadow: 0 0 20px var(--green-glow), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--green-glow), 0 4px 12px rgba(0,0,0,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-300);
  border: 1px solid var(--slate-700);
}
.btn-ghost:hover {
  border-color: var(--slate-500);
  color: var(--white);
  background: rgba(255,255,255,0.03);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--green);
  padding: 6px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent {
  -webkit-text-fill-color: var(--green);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--slate-400);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero visual - card stack */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-map-preview {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.map-card-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-card {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  transform: translateX(calc(var(--i) * 12px));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slideIn 0.5s ease backwards;
  animation-delay: calc(var(--i) * 0.15s);
}

.stack-card:hover {
  transform: translateX(calc(var(--i) * 12px)) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: var(--green);
}

.stack-rating { margin-left: auto; font-size: 0.85rem; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(calc(var(--i) * 12px + 40px)); }
  to { opacity: 1; transform: translateX(calc(var(--i) * 12px)); }
}

/* ─── SECTIONS ───────────────────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
}

.section-link {
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity var(--transition);
}
.section-link:hover { opacity: 0.7; }

/* ─── LIST CARDS ─────────────────────────────────────────────────── */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.list-card {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.list-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.card-emoji {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-900);
  border-radius: var(--radius);
  flex-shrink: 0;
}

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

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}

.card-meta {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 8px;
}
.card-dot { margin: 0 4px; }

.card-desc {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
}

.star { font-size: 0.9rem; }
.star.filled { color: var(--amber); }
.star.half { color: var(--amber); opacity: 0.6; }
.star.empty { color: var(--slate-600); }

.rating-num {
  font-weight: 600;
  color: var(--white);
  margin-left: 4px;
}
.rating-count {
  color: var(--slate-500);
  font-size: 0.8rem;
}

.card-pins {
  font-size: 0.8rem;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pin-icon { font-size: 0.9rem; }

/* ─── CHIPS (categories) ─────────────────────────────────────────── */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-300);
  transition: all var(--transition);
}
.chip:hover {
  border-color: var(--green);
  color: var(--white);
  background: rgba(34, 197, 94, 0.06);
}

.chip-icon { font-size: 1.1rem; }
.chip-count {
  font-size: 0.75rem;
  background: var(--slate-700);
  color: var(--slate-400);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ─── CITY GRID ──────────────────────────────────────────────────── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.city-card {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}
.city-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.city-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.city-country {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-bottom: 8px;
}
.city-count {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
}

/* ─── CTA SECTION ────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 48px;
  background: linear-gradient(180deg, transparent, rgba(34, 197, 94, 0.03));
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.cta-inner > p {
  color: var(--slate-400);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.cta-input {
  flex: 1;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}
.cta-input:focus {
  border-color: var(--green);
}
.cta-input::placeholder {
  color: var(--slate-600);
}

.cta-note {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 1.2em;
}

/* ─── BROWSE PAGE ────────────────────────────────────────────────── */
.browse-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 0;
  text-align: center;
}
.browse-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.browse-hero p {
  color: var(--slate-400);
  font-size: 1.05rem;
}

.browse-filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 48px;
}

.filter-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  font-weight: 600;
}
.filter-group select {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  min-width: 160px;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.filter-group select:focus {
  border-color: var(--green);
}

.browse-results { padding-top: 0; }

.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--slate-400);
}
.empty-state a {
  color: var(--green);
  text-decoration: underline;
}

/* ─── LIST DETAIL PAGE ───────────────────────────────────────────── */
.list-hero {
  background: linear-gradient(180deg, var(--slate-900) 0%, var(--slate-950) 100%);
  padding: 48px 0 40px;
}

.list-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.list-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 24px;
}
.list-breadcrumb a {
  color: var(--slate-400);
  transition: color var(--transition);
}
.list-breadcrumb a:hover { color: var(--green); }

.list-emoji-big {
  font-size: 3rem;
  margin-bottom: 12px;
}

.list-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.list-meta {
  font-size: 1rem;
  color: var(--slate-400);
  margin-bottom: 12px;
}
.list-meta strong { color: var(--white); }

.list-rating-big {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.list-description {
  font-size: 1.1rem;
  color: var(--slate-300);
  line-height: 1.7;
  max-width: 700px;
}

/* Map */
.list-map-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.list-map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-700);
  overflow: hidden;
}

/* Custom map markers */
.custom-marker {
  background: none;
  border: none;
}
.marker-pin {
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: var(--green);
  transform: rotate(-45deg);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.map-popup {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
}
.map-popup strong { color: var(--slate-900); }
.map-popup span { color: var(--slate-600); font-size: 0.8rem; }

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}
.leaflet-popup-tip {
  box-shadow: none !important;
}

/* ─── PLACES LIST ────────────────────────────────────────────────── */
.places-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.places-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.place-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.place-card:hover {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.03);
}

.place-num {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--slate-950);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
}

.place-info { flex: 1; }
.place-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.place-address {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 6px;
}
.place-desc {
  font-size: 0.9rem;
  color: var(--slate-400);
  line-height: 1.5;
}

.place-actions {
  flex-shrink: 0;
  align-self: center;
}

/* ─── RATING SECTION ─────────────────────────────────────────────── */
.rate-section {
  display: flex;
  justify-content: center;
}

.rate-card {
  text-align: center;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-lg);
  padding: 40px 60px;
  max-width: 400px;
}
.rate-card h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.rate-card > p {
  color: var(--slate-400);
  margin-bottom: 20px;
}

.rate-stars {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.rate-star {
  background: none;
  border: none;
  color: var(--slate-600);
  font-size: 2.2rem;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0 2px;
  line-height: 1;
}
.rate-star:hover,
.rate-star.active {
  color: var(--amber);
  transform: scale(1.15);
}

.rate-msg {
  font-size: 0.9rem;
  min-height: 1.2em;
}

/* ─── RELATED SECTION ────────────────────────────────────────────── */
.related-section .list-card {
  padding: 18px;
}
.related-section .card-emoji {
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */
footer {
  margin-top: 40px;
  border-top: 1px solid var(--slate-800);
  padding: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-tagline {
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-links a {
  color: var(--slate-400);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--green); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--slate-600);
}

/* ─── MOBILE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px 60px;
  }
  .hero h1 { font-size: 2.4rem; }
  .hero-visual { display: none; }

  .section { padding: 40px 20px; }
  .list-grid { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }

  .browse-hero { padding: 32px 20px 0; }
  .browse-hero h1 { font-size: 1.8rem; }
  .browse-filters { padding: 24px 20px; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-group select { min-width: 100%; }

  .list-hero-content { padding: 0 20px; }
  .list-hero h1 { font-size: 1.8rem; }
  .list-map-section { padding: 0 20px; }
  .list-map { height: 280px; border-radius: var(--radius); }

  .place-card { flex-direction: column; }
  .place-actions { align-self: flex-start; }

  .rate-card { padding: 28px 24px; }

  .cta-section { padding: 60px 20px; }
  .cta-form { flex-direction: column; }

  footer { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .city-grid { grid-template-columns: 1fr; }
}

/* ─── SMOOTH SCROLLING ───────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ─── SCROLLBAR ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--slate-950); }
::-webkit-scrollbar-thumb {
  background: var(--slate-700);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--slate-600); }

/* ─── SELECTION ──────────────────────────────────────────────────── */
::selection {
  background: rgba(34, 197, 94, 0.3);
  color: var(--white);
}
