/* ═══════════ SKYLIO DESTINOS 2.0 — PREMIUM DARK THEME ═══════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --bg: #0a0f16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --text-white: #ffffff;
  --text-gray: #9ca3af;
  --accent: #f59e0b; /* Amber 500 */
  --accent-glow: rgba(245, 158, 11, 0.2);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 24px;
  --shadow: 0 20px 50px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-gray);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--text-white); }

/* ═══════════ TOPBAR ═══════════ */
.topbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(10, 15, 22, 0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 70px;
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); color: var(--text-white);
  padding: 8px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 600; transition: 0.3s;
  border: 1px solid var(--border);
}
.btn-back:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.topbar-brand { font-size: 18px; font-weight: 500; color: var(--text-white); }
.topbar-brand span { color: var(--accent); font-weight: 700; }

/* ═══════════ HERO ═══════════ */
.hero {
  padding: 120px 24px 40px; text-align: center;
  background: radial-gradient(circle at top, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(245, 158, 11, 0.1); color: var(--accent);
  padding: 6px 16px; border-radius: 50px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 15px; font-weight: 700; }
.hero p { color: var(--text-gray); font-size: 1.2rem; font-weight: 300; }

/* ═══════════ SEARCH ═══════════ */
.search-section {
  position: relative; z-index: 1001;
  max-width: 700px; margin: 0 auto 40px; padding: 0 24px;
}
.search-box input {
  width: 100%; padding: 20px 24px 20px 60px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  border-radius: 50px; font-size: 16px; outline: none; color: #fff;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.search-box input:focus { 
  border-color: var(--accent); 
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.search-icon {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--text-gray); opacity: 0.5;
}

.search-results {
  position: absolute; top: calc(100% + 15px); left: 24px; right: 24px;
  background: rgba(20, 25, 35, 0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius);
  max-height: 400px; overflow-y: auto; box-shadow: var(--shadow);
  display: none; z-index: 2000; padding: 12px;
}
.search-results.open { display: block; }
.sr-item {
  padding: 14px 20px; cursor: pointer; display: flex; align-items: center; gap: 15px;
  border-radius: 12px; transition: 0.2s;
}
.sr-item:hover { background: rgba(255, 255, 255, 0.05); }
.sr-flag { font-size: 1.6rem; }
.sr-label { flex: 1; font-weight: 500; color: #fff; }
.sr-badge { font-size: 10px; text-transform: uppercase; color: var(--accent); font-weight: 700; letter-spacing: 1px; }

/* ═══════════ MAP ═══════════ */
.map-container-section {
  padding: 0 24px 60px; max-width: 1400px; margin: 0 auto;
}
#map {
  height: 75vh; width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 1; filter: grayscale(0.2) contrast(1.1);
}

.marker-circle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--accent); background: rgba(0,0,0,0.8);
  box-shadow: 0 0 20px var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; transition: 0.3s;
}
.custom-marker:hover .marker-circle { transform: scale(1.2) rotate(5deg); border-width: 3px; }

/* Popup Dark Mode */
.leaflet-popup-content-wrapper { 
  background: rgba(10, 15, 22, 0.95) !important; 
  color: #fff !important; 
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  border-radius: 16px;
}
.leaflet-popup-tip { background: rgba(10, 15, 22, 0.95) !important; }
.custom-popup h3 { font-size: 1.2rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.custom-popup p { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-gray); margin-bottom: 12px; }
.popup-links { display: flex; flex-direction: column; gap: 8px; }
.popup-btn {
  background: var(--accent); color: #000;
  padding: 10px 16px; border-radius: 12px; font-size: 12px; font-weight: 700;
  text-align: center; transition: 0.2s;
}
.popup-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px var(--accent-glow); }

/* ═══════════ COUNTRY CHIPS ═══════════ */
.all-dest-section {
  padding: 80px 24px; max-width: 1200px; margin: 0 auto; text-align: center;
}
.section-title { font-size: 2.5rem; margin-bottom: 15px; }
.country-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 15px;
}
.chip {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 12px 24px; border-radius: 50px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; transition: all .4s;
  color: #fff;
}
.chip:hover { 
  background: rgba(255,255,255,0.08); 
  border-color: var(--accent); 
  transform: translateY(-5px); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.chip-flag { font-size: 1.4rem; }
.chip-name { font-weight: 500; }
.chip-count {
  background: var(--accent); color: #000;
  font-size: 10px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  padding: 60px 24px; text-align: center; border-top: 1px solid var(--border);
  color: var(--text-gray); font-size: 14px;
}
.footer-brand span { color: var(--accent); font-weight: 700; }

@media (max-width: 768px) {
  #map { height: 60vh; }
  .hero { padding-top: 100px; }
}
