/* ============================================================
   VOYEDGY DESIGN SYSTEM
   Brand: Deep navy, lavender, electric blue, lime, hot pink
   Aesthetic: Bold editorial meets tech-route cartography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --navy:      #1E1B4B;
  --navy-deep: #13114F;
  --lavender:  #7B7BB5;
  --blue:      #3B82F6;
  --lime:      #A3C132;
  --pink:      #E91E8C;
  --white:     #FAFAFA;
  --off-white: #F0EFF8;
  --gray-100:  #EAE9F5;
  --gray-200:  #D4D3E8;
  --gray-500:  #8887AA;
  --gray-700:  #3E3C6A;

  --font-display: 'Barlow Semi Condensed', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(30,27,75,0.08);
  --shadow-md: 0 8px 32px rgba(30,27,75,0.12);
  --shadow-lg: 0 20px 60px rgba(30,27,75,0.18);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; }

.display-xl {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.display-lg {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.display-md {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.display-sm {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
}
.body-lg  { font-size: 1.125rem; font-weight: 300; }
.body-md  { font-size: 1rem; }
.body-sm  { font-size: 0.875rem; }
.label    { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1280px) { .container { padding: 0 60px; } }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 38px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--pink); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--blue) !important; color: var(--white) !important; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 768px) {
  .nav-mobile-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
}

/* ── ROUTE LINE MOTIF ── */
.route-line {
  display: flex;
  align-items: center;
  gap: 0;
  height: 3px;
  position: relative;
}
.route-line .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.route-line .line {
  height: 2px;
  flex: 1;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--pink);
  color: var(--white);
}
.btn-accent:hover { background: #d01880; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(233,30,140,0.3); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ── TAGS / BADGES ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.tag-navy    { background: rgba(30,27,75,0.08); color: var(--navy); }
.tag-blue    { background: rgba(59,130,246,0.12); color: var(--blue); }
.tag-lime    { background: rgba(163,193,50,0.15); color: #6a7d1a; }
.tag-pink    { background: rgba(233,30,140,0.1); color: var(--pink); }
.tag-lavender{ background: rgba(123,123,181,0.15); color: var(--lavender); }

/* ── CARDS ── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-body { padding: 20px; }

/* ── SECTION HEADERS ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}
.section-label {
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── AFFILIATE BUTTONS ── */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.affiliate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.affiliate-btn.booking  { background: #003580; color: white; }
.affiliate-btn.expedia  { background: #FFC72C; color: #1a1a1a; }
.affiliate-btn.hotels   { background: #D9251D; color: white; }
.affiliate-btn.agoda    { background: #5C3FBD; color: white; }
.affiliate-btn:hover    { opacity: 0.88; transform: translateY(-1px); }
.affiliate-btn.disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; pointer-events: none; }

/* ── FILTERS ── */
.filter-bar {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 140px; flex: 1; }
.filter-group label { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }
.filter-group select, .filter-group input {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy);
  background: white;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.filter-group select:focus, .filter-group input:focus {
  outline: none;
  border-color: var(--blue);
}

/* ── SAFETY STARS ── */
.safety-stars { display: flex; gap: 2px; align-items: center; }
.safety-stars .star { color: var(--lime); font-size: 0.85rem; }
.safety-stars .star.empty { color: var(--gray-200); }

/* ── PROPERTY CARD ── */
.property-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-100);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.property-card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--gray-100);
  background: linear-gradient(135deg, var(--off-white) 0%, white 100%);
}
.property-card-body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.property-card-footer { padding: 12px 20px 16px; border-top: 1px solid var(--gray-100); }
.property-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 4px; }
.property-location { font-size: 0.825rem; color: var(--gray-500); display: flex; align-items: center; gap: 5px; }
.property-type { font-size: 0.78rem; font-weight: 500; color: var(--lavender); }
.property-vibe { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.property-vibe.very-friendly { color: var(--lime); }
.property-vibe.luxury { color: var(--pink); }
.property-notes { font-size: 0.82rem; color: var(--gray-700); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.budget-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.budget-budget { background: rgba(163,193,50,0.15); color: #5a6e10; }
.budget-mid    { background: rgba(59,130,246,0.1); color: var(--blue); }
.budget-luxury { background: rgba(233,30,140,0.1); color: var(--pink); }

/* ── MAP ── */
#map { width: 100%; height: 520px; border-radius: var(--radius-lg); overflow: hidden; }
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: var(--font-body) !important;
}
.map-popup-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; }
.map-popup-loc  { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 8px; }
.map-popup-type { font-size: 0.78rem; color: var(--lavender); font-weight: 500; }

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .tagline { font-size: 0.875rem; margin-top: 12px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: white; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; }
.footer-route { display: flex; align-items: center; gap: 0; }
.footer-route .dot { width: 8px; height: 8px; border-radius: 50%; }
.footer-route .seg { height: 2px; width: 32px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.text-white  { color: white; }
.text-pink   { color: var(--pink); }
.text-lime   { color: var(--lime); }
.text-blue   { color: var(--blue); }
.text-gray   { color: var(--gray-500); }
.bg-navy     { background: var(--navy); }
.bg-off-white{ background: var(--off-white); }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom:  8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-8  { gap:  8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes routeDraw {
  from { stroke-dashoffset: 400; }
  to   { stroke-dashoffset: 0; }
}
.animate-fade-up { animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
