/* ========================================
   ASSIA FAMILY ROAD TRIP 2026
   Shared Stylesheet
   assiatrip.clawz.org
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

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

:root {
  --bg-deep:    #0f1923;
  --bg-card:    #111d2b;
  --bg-card2:   #13222f;
  --bg-hover:   #172840;
  --border:     #1e3448;
  --border2:    #1a2e42;
  --text:       #e8eaf0;
  --text-muted: #7b93a8;
  --text-dim:   #546e7a;
  --accent-blue: #64b5f6;
  --accent-green: #81c784;
  --accent-purple: #ce93d8;
  --accent-orange: #ffb74d;
  --hotel-bg:   rgba(25,60,100,.4);
  --hotel-border: #1e4060;
  --rv-bg:      rgba(20,60,40,.4);
  --rv-border:  #1a4a2a;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; font-family: 'Inter', sans-serif; }

p { color: var(--text-muted); line-height: 1.7; }

a { color: var(--accent-blue); text-decoration: none; transition: color .2s; }
a:hover { color: #90caf9; }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(15,25,35,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-hover);
}

.nav-links a.active { color: var(--accent-blue); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* === PAGE LAYOUT === */
.page-content {
  padding-top: 60px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === HERO BANNERS === */
.stop-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-deep) 60%, #0a121b 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 36px;
  position: relative;
  overflow: hidden;
}

.stop-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(100,181,246,.06) 0%, transparent 70%);
  pointer-events: none;
}

.stop-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.stop-hero-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.stop-hero-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.stop-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.stop-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.stop-hero-meta-item strong { color: var(--text); }

/* === SECTION HEADERS === */
.section { padding: 48px 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-icon { font-size: 1.5rem; }
.section-title { font-size: 1.25rem; font-weight: 700; color: var(--text); }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-sm);
}

.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* === HOTEL / RV SECTION === */
.lodging-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.lodging-column-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid;
}

.lodging-column-title.hotels { color: var(--accent-blue); border-color: var(--accent-blue); }
.lodging-column-title.rv { color: var(--accent-green); border-color: var(--accent-green); }

.lodging-card {
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  transition: transform .2s;
}
.lodging-card:hover { transform: translateY(-2px); }

.lodging-card.hotel-card {
  background: var(--hotel-bg);
  border: 1px solid var(--hotel-border);
}
.lodging-card.rv-card {
  background: var(--rv-bg);
  border: 1px solid var(--rv-border);
}

.lodging-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.lodging-stars { color: #ffd54f; font-size: .8rem; margin-bottom: 8px; }
.lodging-price {
  font-size: .78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}
.hotel-price { background: rgba(100,181,246,.15); color: var(--accent-blue); }
.rv-price { background: rgba(129,199,132,.15); color: var(--accent-green); }

.lodging-details { font-size: .78rem; color: var(--text-muted); line-height: 1.6; }
.lodging-tag {
  display: inline-block;
  font-size: .65rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-top: 6px;
}
.tag-best { background: rgba(255,183,77,.2); color: #ffb74d; }
.tag-book { background: rgba(239,83,80,.2); color: #ef5350; }

/* === ATTRACTIONS === */
.attraction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  gap: 12px;
  transition: all .2s;
}
.attraction-card:hover {
  background: var(--bg-hover);
  transform: translateX(4px);
  border-color: rgba(100,181,246,.3);
}
.attraction-icon { font-size: 1.5rem; flex-shrink: 0; }
.attraction-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.attraction-desc { font-size: .78rem; color: var(--text-muted); }

/* === HIKE BADGES === */
.hike-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-left: 8px;
}
.badge-easy { background: rgba(129,199,132,.2); color: #81c784; }
.badge-moderate { background: rgba(255,183,77,.2); color: #ffb74d; }
.badge-hard { background: rgba(239,83,80,.2); color: #ef5350; }

/* === HIKE CARDS === */
.hike-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  transition: all .2s;
}
.hike-card:hover { background: var(--bg-hover); border-color: rgba(129,199,132,.2); }
.hike-info { flex: 1; }
.hike-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.hike-stats { font-size: .75rem; color: var(--text-muted); }

/* === RESTAURANT LIST === */
.restaurant-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.restaurant-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: all .2s;
}
.restaurant-item:hover { background: var(--bg-hover); transform: translateY(-2px); }
.restaurant-icon { font-size: 1.2rem; flex-shrink: 0; }
.restaurant-name { font-size: .85rem; font-weight: 700; color: var(--text); }
.restaurant-desc { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }

/* === STOP NAVIGATION === */
.stop-nav {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 24px;
}

.stop-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.stop-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.stop-nav-btn:hover {
  background: rgba(100,181,246,.1);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.stop-nav-btn.home {
  background: linear-gradient(135deg, rgba(100,181,246,.15), rgba(129,199,132,.1));
  border-color: rgba(100,181,246,.3);
}

/* === MINI MAP === */
.mini-map {
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* === BUDGET TABLE === */
.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.budget-table th {
  background: var(--bg-hover);
  color: var(--text);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}
.budget-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.budget-table tr:hover td { background: var(--bg-hover); }
.budget-table .total-row td {
  font-weight: 700;
  color: var(--text);
  background: rgba(100,181,246,.05);
}
.budget-table td.rv-col { color: var(--accent-green); }
.budget-table td.hotel-col { color: var(--accent-blue); }

/* === PACKING CHECKLIST === */
.pack-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.pack-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pack-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pack-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.pack-item:hover { background: var(--bg-hover); }
.pack-item input[type="checkbox"] { display: none; }
.pack-item .check-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-size: .65rem;
}
.pack-item.checked .check-box {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #0a1a0a;
}
.pack-item.checked .pack-label {
  color: var(--text-dim);
  text-decoration: line-through;
}
.pack-label { font-size: .82rem; color: var(--text-muted); line-height: 1.4; }

/* === ROUTE TIMELINE === */
.route-timeline {
  position: relative;
  padding-left: 40px;
}
.route-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-green), var(--accent-purple));
}
.route-stop {
  position: relative;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all .2s;
}
.route-stop:hover { border-color: rgba(100,181,246,.3); }
.route-stop::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 0 2px;
}
.route-connector {
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  padding: 0 0 8px 0;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-connector::before, .route-connector::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* === URGENCY BADGES === */
.urgency-red { background: rgba(239,83,80,.2); color: #ef5350; border: 1px solid rgba(239,83,80,.3); }
.urgency-yellow { background: rgba(255,183,77,.2); color: #ffb74d; border: 1px solid rgba(255,183,77,.3); }
.urgency-green { background: rgba(129,199,132,.2); color: #81c784; border: 1px solid rgba(129,199,132,.3); }
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* === STATS BANNER === */
.stats-banner {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.stat-card {
  flex: 1;
  min-width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; }

/* === GRADIENT HEADER === */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === SCROLL ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === LEAFLET CUSTOM === */
.leaflet-tile { filter: brightness(.88) saturate(.8) contrast(.95); }
.leaflet-popup-content-wrapper {
  background: #0f1f30 !important;
  border: 1px solid #1e3a55 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.6) !important;
  color: #e0e8f0 !important;
}
.leaflet-popup-tip { background: #0f1f30 !important; }
.leaflet-popup-content { color: #e0e8f0; font-family: 'Inter', sans-serif; }
.leaflet-control-attribution { background: rgba(10,20,30,.8) !important; color: #546e7a !important; }
.leaflet-control-attribution a { color: #7b93a8 !important; }
.leaflet-control-zoom a {
  background: #111d2b !important;
  color: #90a4ae !important;
  border-color: #1e3448 !important;
}
.leaflet-control-zoom a:hover { background: #172840 !important; color: #e0e8f0 !important; }

/* === FOOTER === */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: .8rem;
}
.footer a { color: var(--accent-blue); }

/* === PRINT === */
@media print {
  .nav, .stop-nav, .mini-map { display: none; }
  body { background: white; color: #222; }
  .card, .lodging-card, .hike-card, .attraction-card { border: 1px solid #ddd; }
  .stop-hero { background: #f5f5f5; }
  h1, h2, h3 { color: #111; }
  p, .lodging-details, .attraction-desc { color: #444; }
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(15,25,35,.97);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 8999;
    gap: 4px;
  }
  .nav-links.open a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .nav-hamburger { display: block; }
  .stop-hero-inner { flex-direction: column; align-items: flex-start; }
  .lodging-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 600px) {
  html { font-size: 15px; }

  .nav { padding: 0 10px; height: 44px; }
  .nav-brand { font-size: .88rem; }
  .nav-hamburger { font-size: 1.2rem; }
  .page-content { padding-top: 44px; }

  .section { padding: 24px 0; }
  .container, .container-wide { padding: 0 12px; }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }

  .stop-hero { padding: 28px 0 24px; }
  .stop-hero-inner { padding: 0 12px; gap: 14px; }
  .stop-hero-num { width: 52px; height: 52px; font-size: 1.5rem; }
  .stop-hero-meta { gap: 8px; }
  .stop-hero-meta-item { font-size: .75rem; padding: 3px 8px; }

  .section-header { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding-bottom: 10px; }

  .lodging-grid { grid-template-columns: 1fr; gap: 16px; }
  .lodging-card { padding: 14px; }
  .lodging-name { font-size: .88rem; }
  .lodging-details { font-size: .75rem; }

  .card { padding: 14px; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }

  .attraction-card { padding: 12px; gap: 10px; }
  .attraction-icon { font-size: 1.3rem; }
  .attraction-name { font-size: .85rem; }
  .attraction-desc { font-size: .75rem; }

  .hike-card { padding: 12px; gap: 10px; }

  .restaurant-list { grid-template-columns: 1fr; gap: 8px; }
  .restaurant-item { padding: 10px 12px; }

  .stats-banner { gap: 8px; }
  .stat-card { min-width: 80px; padding: 14px 10px; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: .65rem; }

  .stop-nav-inner { flex-direction: column; align-items: stretch; }
  .stop-nav-btn { justify-content: center; padding: 12px 16px; font-size: .8rem; }

  .mini-map { height: 180px; }

  .route-timeline { padding-left: 32px; }
  .route-timeline::before { left: 12px; }
  .route-stop { padding: 12px 14px; margin-bottom: 20px; }
  .route-stop::before { left: -24px; width: 12px; height: 12px; }

  /* Budget table scroll */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .budget-table th, .budget-table td { padding: 10px 12px; font-size: .78rem; white-space: nowrap; }

  /* Packing grid */
  .pack-list { grid-template-columns: 1fr; }

  .footer { padding: 24px 12px; font-size: .75rem; }

  /* Touch-friendly tap targets */
  .stop-nav-btn, .lodging-card, .attraction-card, .hike-card, .restaurant-item {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .nav-brand { font-size: .85rem; }
  h1 { font-size: 1.3rem; }
  .stop-hero-num { width: 44px; height: 44px; font-size: 1.2rem; }
  .stat-card { min-width: 70px; padding: 10px 8px; }
  .stat-num { font-size: 1.3rem; }
}
