/* ============================================================
   SRI LANKA 2026 — Trip Page Styles
   Tropical dark theme: jungle green, sunset orange, temple gold
   ============================================================ */

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

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

:root {
  --bg: #0a0f0d;
  --bg-2: #111a16;
  --accent: #ff8c42;
  --accent-2: #2dd4a8;
  --accent-3: #ffd700;
  --accent-ocean: #00bcd4;
  --text: #e8e8ef;
  --text-dim: rgba(255,255,255,0.5);
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.08);
  --card-bg: rgba(255,255,255,0.03);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ---- Tropical Background Layers ---- */
#tropical-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.tropical-layer {
  position: absolute; inset: -50%; width: 200%; height: 200%;
  border-radius: 40%; filter: blur(80px); opacity: 0.08;
}
.tropical-layer-1 {
  background: radial-gradient(ellipse at 30% 30%, var(--accent-2) 0%, transparent 60%);
  animation: tropical-drift-1 20s ease-in-out infinite alternate;
}
.tropical-layer-2 {
  background: radial-gradient(ellipse at 70% 60%, var(--accent) 0%, transparent 50%);
  animation: tropical-drift-2 18s ease-in-out infinite alternate-reverse;
}
.tropical-layer-3 {
  background: radial-gradient(ellipse at 50% 80%, var(--accent-3) 0%, transparent 50%);
  animation: tropical-drift-3 22s ease-in-out infinite alternate;
}
@keyframes tropical-drift-1 { from { transform: translate(0,0) rotate(0); } to { transform: translate(5%,-3%) rotate(15deg); } }
@keyframes tropical-drift-2 { from { transform: translate(0,0) rotate(0); } to { transform: translate(-4%,5%) rotate(-10deg); } }
@keyframes tropical-drift-3 { from { transform: translate(0,0) rotate(0); } to { transform: translate(3%,2%) rotate(8deg); } }

/* ---- Navigation ---- */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,15,13,0.85); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transform: translateY(-100%); transition: transform 0.3s ease;
}
#main-nav.visible { transform: translateY(0); }
.nav-content {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; max-width: 900px; margin: 0 auto;
}
.nav-back {
  font-size: 18px; color: var(--text-dim); text-decoration: none;
  padding: 4px 8px; border-radius: 6px; transition: all 0.2s;
}
.nav-back:hover { color: var(--accent); background: rgba(255,140,66,0.1); text-decoration: none; }
.nav-logo { font-weight: 700; font-size: 16px; color: var(--accent); }
.nav-links {
  list-style: none; display: flex; gap: 20px; margin-left: auto; align-items: center;
}
.nav-links a {
  font-size: 13px; color: var(--text-dim); text-decoration: none;
  transition: color 0.2s; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  width: 20px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(10,15,13,0.95);
    backdrop-filter: blur(20px); padding: 16px 20px; gap: 12px;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open { display: flex; }
}

/* ---- Main Site ---- */
#main-site { transition: opacity 0.6s ease; }

/* ---- Hero ---- */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.4) saturate(1.2);
  transition: transform 0.1s linear;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(10,15,13,0.3) 50%, rgba(10,15,13,0.5) 100%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center; padding: 40px 20px;
}
.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 30px;
  background: rgba(255,140,66,0.15); border: 1px solid rgba(255,140,66,0.3);
  font-size: 14px; font-weight: 600; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 20px;
}
.hero-title {
  font-family: 'Playfair Display', serif; font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 12px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px); color: var(--text-dim);
  max-width: 600px; margin: 0 auto 32px; line-height: 1.6;
}

/* Countdown */
.countdown-wrapper { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.countdown-item { text-align: center; }
.countdown-number {
  display: block; font-size: clamp(28px, 5vw, 42px); font-weight: 700;
  color: var(--accent); font-variant-numeric: tabular-nums;
  transition: transform 0.3s;
}
.countdown-number.flip { transform: scale(0.8); }
.countdown-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dim); }
.countdown-separator {
  font-size: 28px; font-weight: 300; color: rgba(255,255,255,0.15);
  align-self: flex-start; padding-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 12px; letter-spacing: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}
.scroll-indicator-arrow {
  width: 20px; height: 20px; border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim); transform: rotate(45deg);
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Section Titles ---- */
.section { padding: 80px 0; position: relative; }
.section-eyebrow {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700; margin-bottom: 8px;
}
.section-subtitle {
  font-size: 15px; color: var(--text-dim); max-width: 600px; line-height: 1.6;
  margin-bottom: 40px;
}

/* ---- Scroll Reveal ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Itinerary Nav ---- */
.itinerary-nav {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.itinerary-nav-btn {
  padding: 8px 16px; border-radius: 20px; border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text-dim); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.3s;
}
.itinerary-nav-btn:hover { border-color: rgba(255,140,66,0.3); color: var(--accent); }
.itinerary-nav-btn.active {
  background: rgba(255,140,66,0.15); border-color: rgba(255,140,66,0.4);
  color: var(--accent); font-weight: 600;
}

/* ---- Day Cards ---- */
.day-card {
  background: var(--card-bg); border: 1px solid var(--glass-border);
  border-radius: 16px; overflow: hidden; margin-bottom: 32px;
  transition: border-color 0.3s;
}
.day-card:hover { border-color: rgba(255,140,66,0.2); }
.day-card-image {
  position: relative; height: 280px; overflow: hidden;
}
.day-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), opacity 0.25s ease;
}
.day-card:hover .day-card-image img { transform: scale(1.05); }
.day-card-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,13,0.9) 0%, transparent 60%);
}
.day-number {
  position: absolute; bottom: 16px; left: 20px; font-size: 48px; font-weight: 900;
  font-family: 'Playfair Display', serif; color: rgba(255,255,255,0.1); z-index: 1;
}

.day-card-content { padding: 24px; }
.day-date {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.day-title {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  margin-bottom: 12px;
}
.day-route-summary {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px; font-size: 13px;
}
.route-stop {
  color: var(--accent-2); font-weight: 500; text-decoration: none;
  padding: 3px 10px; border-radius: 6px;
  background: rgba(45,212,168,0.08); border: 1px solid rgba(45,212,168,0.15);
  transition: all 0.2s;
}
.route-stop:hover { background: rgba(45,212,168,0.15); text-decoration: none; }
.route-arrow { color: var(--text-dim); font-size: 12px; }

/* Day spots gallery */
.day-spots-gallery {
  display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
}
.day-spots-gallery::-webkit-scrollbar { display: none; }
.spot-thumb {
  flex: 0 0 100px; cursor: pointer; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; transition: border-color 0.3s; position: relative;
}
.spot-thumb.active, .spot-thumb:hover { border-color: var(--accent); }
.spot-thumb img { width: 100%; height: 70px; object-fit: cover; display: block; }
.spot-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(10,15,13,0.8); font-size: 9px; text-align: center;
  padding: 2px; color: rgba(255,255,255,0.8); font-weight: 500;
}

/* Day mini map */
.day-mini-map {
  width: 100%; height: 180px; border-radius: 12px; overflow: hidden;
  margin-bottom: 16px; border: 1px solid var(--glass-border);
}

/* Day tips */
.day-tips {
  background: rgba(255,140,66,0.06); border: 1px solid rgba(255,140,66,0.12);
  border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.day-tips strong { color: var(--accent); }
.day-tips ul { list-style: none; margin-top: 8px; }
.day-tips li { font-size: 13px; color: var(--text-dim); padding: 4px 0; line-height: 1.5; }

/* Day schedule */
.day-schedule { margin-bottom: 16px; }
.schedule-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--glass-border);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-time {
  font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap;
}
.schedule-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* Day info */
.day-info {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px;
}
.day-info-item {
  font-size: 12px; color: var(--text-dim);
  background: var(--glass); padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--glass-border);
}

/* Plan B & Hotel */
.day-planb {
  font-size: 13px; color: var(--text-dim); background: rgba(255,215,0,0.05);
  border: 1px solid rgba(255,215,0,0.1); border-radius: 8px; padding: 12px;
  margin-bottom: 12px;
}
.day-hotel { margin-top: 12px; }
.day-hotel-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; display: block;
}
.day-hotel-option {
  display: block; padding: 12px 16px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-size: 13px; line-height: 1.5; text-decoration: none;
  transition: all 0.3s; margin-bottom: 8px;
}
.day-hotel-option:hover { border-color: rgba(255,140,66,0.3); text-decoration: none; }
.day-hotel-option span { color: var(--text-dim); font-size: 12px; }
.day-hotel-confirmed { border-color: rgba(45,212,168,0.3); }
.day-hotel-pending { border-color: rgba(255,215,0,0.3); }

/* ---- Map Section ---- */
.map-container {
  width: 100%; height: 450px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--glass-border);
}
@media (max-width: 768px) { .map-container { height: 300px; } }

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  background: rgba(10,15,13,0.95) !important; color: var(--text) !important;
  border-radius: 10px !important; border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(10px) !important;
}
.leaflet-popup-tip { background: rgba(10,15,13,0.95) !important; }
.map-popup-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.map-popup-desc { font-size: 12px; color: var(--text-dim); }

/* ---- Booking Cards ---- */
.booking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.booking-card {
  background: var(--card-bg); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 24px; transition: border-color 0.3s;
}
.booking-card:hover { border-color: rgba(255,140,66,0.2); }
.booking-card-title {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
  margin-bottom: 16px; color: var(--accent);
}
.booking-card-detail { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; line-height: 1.5; }
.booking-card-detail strong { color: var(--text); }
.booking-status {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 6px 14px;
  border-radius: 20px; margin: 12px 0;
  background: rgba(255,215,0,0.1); color: var(--accent-3);
  border: 1px solid rgba(255,215,0,0.2);
}
.booking-status-confirmed {
  background: rgba(45,212,168,0.1); color: var(--accent-2);
  border-color: rgba(45,212,168,0.2);
}
.booking-link {
  display: inline-block; font-size: 13px; font-weight: 500; color: var(--accent);
  margin-top: 8px; transition: color 0.2s;
}
.booking-link:hover { color: var(--accent-3); }
.booking-links-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.booking-links-group .booking-link {
  padding: 6px 14px; border-radius: 8px; background: rgba(255,140,66,0.08);
  border: 1px solid rgba(255,140,66,0.15); margin-top: 0;
}

/* ---- Checklist ---- */
.checklist-progress { margin-bottom: 24px; }
.checklist-progress-text { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.checklist-progress-bar {
  height: 6px; background: var(--glass); border-radius: 3px; overflow: hidden;
}
.checklist-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px; transition: width 0.5s ease; width: 0;
}
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.checklist-category {
  background: var(--card-bg); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 20px;
}
.checklist-category-title {
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.checklist-category-count {
  font-size: 12px; font-weight: 500; color: var(--accent);
  background: rgba(255,140,66,0.1); padding: 3px 10px; border-radius: 12px;
}
.checklist-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  cursor: pointer; transition: opacity 0.2s; user-select: none;
}
.checklist-item:hover { opacity: 0.8; }
.checklist-checkbox {
  width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; flex-shrink: 0;
}
.checklist-item.checked .checklist-checkbox {
  background: var(--accent-2); border-color: var(--accent-2);
}
.checklist-item.checked .checklist-checkbox::after {
  content: '✓'; color: var(--bg); font-size: 12px; font-weight: 700;
}
.checklist-item.checked .checklist-text {
  text-decoration: line-through; color: var(--text-dim);
}
.checklist-text { font-size: 13px; line-height: 1.4; }
.checklist-note {
  font-size: 12px; color: var(--text-dim); margin-top: 8px;
  padding: 8px 12px; background: rgba(255,215,0,0.05);
  border-radius: 8px; border: 1px solid rgba(255,215,0,0.1);
  line-height: 1.5;
}

/* ---- Tips Grid ---- */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tip-card {
  background: var(--card-bg); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 24px; transition: border-color 0.3s;
}
.tip-card:hover { border-color: rgba(255,140,66,0.2); }
.tip-icon { font-size: 28px; margin-bottom: 12px; }
.tip-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.tip-list { list-style: none; }
.tip-list li {
  font-size: 13px; color: var(--text-dim); padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03); line-height: 1.5;
}
.tip-list li:last-child { border-bottom: none; }
.tip-list a { color: var(--accent-ocean); }

/* Currency converter */
.lkr-converter {
  margin-top: 16px; padding: 16px; background: rgba(255,140,66,0.05);
  border-radius: 10px; border: 1px solid rgba(255,140,66,0.1);
}
.lkr-label { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 8px; display: block; }
.lkr-inputs { display: flex; align-items: center; gap: 8px; }
.lkr-inputs input {
  flex: 1; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--text); font-size: 15px; font-family: inherit;
}
.lkr-inputs input:focus { outline: none; border-color: var(--accent); }
.lkr-arrow { color: var(--text-dim); font-size: 16px; }
.lkr-rate { font-size: 11px; color: var(--text-dim); margin-top: 6px; display: block; }

/* ---- Weather Grid ---- */
.weather-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; }
.weather-day {
  text-align: center; padding: 16px 8px; background: var(--card-bg);
  border: 1px solid var(--glass-border); border-radius: 12px;
}
.weather-day-name { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.weather-icon { font-size: 28px; margin-bottom: 6px; }
.weather-temp { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.weather-desc { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.weather-detail { font-size: 10px; color: rgba(255,255,255,0.3); }

/* ---- Footer ---- */
#footer {
  padding: 40px 0; text-align: center; border-top: 1px solid var(--glass-border);
}
.footer-text { font-size: 14px; color: var(--text-dim); }
.footer-sub { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* ---- Print ---- */
@media print {
  #main-nav, .scroll-indicator, #tropical-bg, .itinerary-nav, .day-mini-map { display: none !important; }
  .day-card { break-inside: avoid; border: 1px solid #ddd !important; }
  body { background: #fff; color: #111; }
  .day-card-image { height: 150px; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .day-card-image { height: 200px; }
  .schedule-item { grid-template-columns: 90px 1fr; gap: 8px; }
  .schedule-time { font-size: 12px; }
  .booking-grid { grid-template-columns: 1fr; }
  .checklist-grid { grid-template-columns: 1fr; }
}
