/* --------- Global Styling --------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  color: #ffffff;
  background: radial-gradient(1000px 600px at 80% 10%, rgba(0, 198, 255, 0.08), transparent 40%),
              radial-gradient(800px 500px at 10% 90%, rgba(0, 114, 255, 0.06), transparent 40%),
              #000000;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 2rem;
}

/* Page transition */
.page-fade-enter { opacity: 0; transform: translateY(8px); }
.page-fade-enter-active { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.page-fade-exit { opacity: 1; }
.page-fade-exit-active { opacity: 0; transition: opacity .35s ease; }

spline-viewer.background {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* --------- Header --------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header nav ul {
  display: flex;
  gap: 0.8rem;
  list-style: none;
}

header nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

header nav ul li a:hover {
  background: rgba(255,195,0,0.18);
  border-color: rgba(255,195,0,0.35);
}

/* --------- Containers --------- */
.container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.main-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.other-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

/* Trip hero */
.trip-hero{ max-width:1200px; margin: 0 auto 12px; padding: 12px; }
.trip-hero-content{ display:flex; gap:12px; align-items:center; justify-content:space-between; background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-radius:16px; padding:12px 14px; }
.trip-hero .k{ display:block; font-size:12px; opacity:0.8; color:#ffd975; }
.trip-where div, .trip-when div{ font-size:18px; font-weight:700; }
.trip-cta{ display:flex; gap:8px; width: 420px; }
.trip-cta .btn{ margin:0; }

@media (max-width: 800px){
  .trip-hero-content{ flex-direction: column; align-items: stretch; gap:10px; }
  .trip-cta{ width: 100%; }
}

/* --------- Card Styling --------- */
.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #ffde73;
  position: relative;
}
.card h2::after{ content:""; position:absolute; left:0; bottom:-6px; width:56px; height:3px; background: linear-gradient(90deg, #ffc300, transparent); border-radius: 2px; opacity:.85; }

.card p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #f1f1f1;
}

/* --------- Buttons --------- */
button {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,114,255,0.55);
}

/* Button variants */
.btn{ width:100%; }
.btn-primary{ background: linear-gradient(135deg, #ffc300, #0081ff); color:#ffffff; }
.btn-secondary{ background: rgba(255,195,0,0.10); color:#ffe8a6; border:1px solid rgba(255,195,0,0.35); }
.btn-secondary:hover{ background: rgba(0,198,255,0.25); }

/* --------- Checklist --------- */
#checklist {
  list-style: none;
  margin-bottom: 1rem;
}

#checklist li {
  padding: 0.4rem 0.6rem;
  margin: 0.3rem 0;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.9rem;
  gap: 0.5rem;
}

/* --------- Progress Bar --------- */
.progress-container {
  width: 100%;
  background-color: rgba(255,255,255,0.15);
  border-radius: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 20px;
  width: 0%;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  text-align: center;
  color: white;
  line-height: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: width 0.3s ease;
}

/* --------- Responsive --------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  header h1 {
    font-size: 1.8rem;
  }
  header nav ul {
    flex-wrap: wrap;
  }
}
/* Smaller compact cards */
.small-card {
  max-height: 140px;
  overflow: hidden;
}

.small-card p {
  font-size: 0.9rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* max 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scenic filler card */
#scenicCard{ position: relative; min-height: 160px; padding: 0; overflow: hidden; }
#scenicCard .scenic-bg{
  position: absolute; inset: 0;
  background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTIjFRZpvP4HbciTBw195pFYxg09sVbetURpA&s');
  background-size: cover; background-position: center; opacity: 0.35; filter: saturate(0.9) contrast(1.05);
}
/* #currency-widget {
  position: relative;
  top: -100px; /* Moves it 50px upwards */
} */


/* Ensure equal card height */
#currencyCard, 
#shoppingCard {
  min-height: 250px;   /* same base height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Match headings */
#currencyCard h2, 
#shoppingCard h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* Inputs & buttons inside converter */
#currencyCard input, 
#currencyCard select, 
#currencyCard button {
  width: 100%;
  margin: 5px 0;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  color: #eee;
}

#currencyCard button { background: linear-gradient(135deg, #00c6ff, #0072ff); color:#ffffff; font-weight: bold; cursor: pointer; }
#currencyCard .currency-ticker{ position: relative; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.10); padding:6px 8px; font-weight:600; }
#currencyCard .currency-ticker .line{ display:inline-block; white-space: nowrap; animation: ticker 14s linear infinite; }
.badge{ display:inline-block; margin:0 10px; color:#ffe8a6; }
@keyframes ticker{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }
#shoppingCard,
#budgetCard {
  margin-top: -20px; /* moves the cards slightly upwards */
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.9,.2,1), transform .6s cubic-bezier(.2,.9,.2,1); }
.reveal.show { opacity: 1; transform: none; }

/* Floating Chat Assistant */
#chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(0,114,255,0.35);
  z-index: 50;
}

#chat-panel {
  position: fixed;
  right: 22px;
  bottom: 90px;
  width: 340px;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  z-index: 60;
  animation: slideUp .35s ease;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 700;
}
.chat-actions button{ background: transparent; border: none; color:#fff; cursor: pointer; font-size: 16px; }

.chat-messages { padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.msg { padding: 10px 12px; border-radius: 12px; line-height: 1.35; max-width: 85%; }
.msg.bot { background: rgba(255,255,255,0.08); align-self: flex-start; }
.msg.user { background: linear-gradient(135deg, #00c6ff, #0072ff); color:#ffffff; align-self: flex-end; }

.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(255,255,255,0.1); }
.chat-input input{ flex:1; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.3); color:#fff; }
.chat-input button{ padding: 8px 12px; border-radius: 10px; border:none; background: linear-gradient(135deg, #00c6ff, #0072ff); color:#ffffff; font-weight:700; cursor:pointer; }

@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Footer */
.site-footer{ max-width:1200px; margin: 18px auto 10px; padding:12px 14px; text-align:center; background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); border-radius: 12px; }
.footer-links{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:6px; }
.footer-links a{ color:#bdefff; text-decoration:none; padding:4px 8px; border-radius: 999px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); }
.footer-links a:hover{ background: rgba(0, 198, 255, 0.15); }
