/* ── GlobePass Design System ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0f1a;
  --cream: #faf8f5;
  --accent: #e85d26;
  --accent-hover: #d14e1c;
  --accent-soft: #fff0ea;
  --sea: #1a5c6b;
  --sea-light: #e6f3f5;
  --sand: #d4a96a;
  --sand-light: #fdf6ee;
  --mist: #f0edea;
  --slate: #5a6577;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --yellow: #ca8a04;
  --yellow-soft: #fefce8;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); text-decoration: none; }
.nav-link.active { color: var(--accent); }

/* ── CONTAINERS ── */
.page { padding-top: 5rem; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.1);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 8px; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: white;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 38, 0.1);
}
.form-select { cursor: pointer; }

/* ── SEARCH BOX ── */
.search-box {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto auto;
  gap: 1rem;
  align-items: end;
}

/* ── VISA BADGE ── */
.visa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.visa-badge.visa-free { background: var(--green-soft); color: var(--green); }
.visa-badge.visa-on-arrival { background: var(--blue-soft); color: var(--blue); }
.visa-badge.e-visa { background: var(--yellow-soft); color: var(--yellow); }
.visa-badge.visa-required { background: var(--red-soft); color: var(--red); }
.visa-badge.unknown { background: var(--mist); color: var(--slate); }

/* ── FLIGHT CARDS ── */
.flight-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
.flight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.flight-airline {
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.flight-time {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.flight-city {
  font-size: 0.8rem;
  color: var(--slate);
}

.flight-duration {
  text-align: center;
  position: relative;
}
.flight-duration-line {
  width: 120px;
  height: 2px;
  background: var(--mist);
  margin: 0.5rem auto;
  position: relative;
}
.flight-duration-line::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.flight-duration-text {
  font-size: 0.8rem;
  color: var(--slate);
}
.flight-stops {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

.flight-price {
  text-align: right;
}
.flight-price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sea);
}
.flight-price-label {
  font-size: 0.75rem;
  color: var(--slate);
}

/* ── VISA INFO BANNER ── */
.visa-banner {
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.visa-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.visa-banner h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.visa-banner p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}
.visa-banner.visa-free { background: var(--green-soft); color: var(--green); }
.visa-banner.visa-on-arrival { background: var(--blue-soft); color: var(--blue); }
.visa-banner.e-visa { background: var(--yellow-soft); color: var(--yellow); }
.visa-banner.visa-required { background: var(--red-soft); color: var(--red); }

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

.dest-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}
.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  text-decoration: none;
}

.dest-card-header {
  padding: 2rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dest-card-flag { font-size: 3rem; }
.dest-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.dest-card-region {
  font-size: 0.8rem;
  color: var(--slate);
}

.dest-card-body { padding: 0 1.5rem 1.5rem; }
.dest-card-highlight {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.dest-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dest-card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sea);
}
.dest-card-price small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--slate);
}

/* ── SAFETY STARS ── */
.safety-stars {
  display: inline-flex;
  gap: 2px;
}
.safety-star { color: var(--sand); font-size: 0.8rem; }
.safety-star.empty { opacity: 0.25; }

/* ── COUNTRY DETAIL ── */
.country-hero {
  padding: 4rem 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.country-flag { font-size: 5rem; }
.country-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1.5px;
}
.country-subtitle {
  color: var(--slate);
  font-size: 1.1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.info-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
}
.info-card-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.info-card-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

/* ── LOADING & STATES ── */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--slate);
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--mist);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--slate);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--ink); margin-bottom: 0.5rem; }

/* ── PASSPORT SELECTOR ── */
.passport-selector {
  background: var(--sea-light);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.passport-selector-label {
  font-weight: 600;
  color: var(--sea);
  font-size: 0.9rem;
  white-space: nowrap;
}
.passport-selector select {
  flex: 1;
  min-width: 200px;
}

/* ── FILTER PILLS ── */
.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.08);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ink);
}
.filter-pill:hover, .filter-pill.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ── SECTION HEADERS ── */
.section-header {
  margin-bottom: 2rem;
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--slate);
  font-size: 1.05rem;
}

/* ── FOOTER ── */
.app-footer {
  padding: 2rem;
  text-align: center;
  background: var(--ink);
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  margin-top: 4rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
  .flight-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  .flight-price { text-align: center; }
  .flight-duration-line { width: 80px; }
  .nav { padding: 0.8rem 1rem; }
  .nav-links { gap: 0.75rem; }
  .nav-link { font-size: 0.8rem; }
  .container { padding: 0 1rem; }
  .dest-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .country-hero { flex-direction: column; text-align: center; }
  .passport-selector { flex-direction: column; align-items: stretch; }
  .search-box { padding: 1.5rem; }
  .visa-banner { flex-direction: column; }
}
