/* =============================================
   PLANTRIP — STYLE.CSS
   Color palette: Orange #F5860A | Blue #1A3A6B
   ============================================= */

:root {
  --orange:       #F5860A;
  --orange-light: rgba(245,134,10,0.12);
  --orange-dark:  #d4720a;
  --blue:         #1A3A6B;
  --blue-light:   rgba(26,58,107,0.1);
  --blue-mid:     #2a5298;
  --white:        #ffffff;
  --bg:           #F7F9FC;
  --bg2:          #EEF2F8;
  --border:       #DDE3EE;
  --text:         #1C2640;
  --muted:        #6B7A99;
  --success:      #10B981;
  --error:        #EF4444;
  --shadow:       0 4px 20px rgba(26,58,107,0.10);
  --shadow-lg:    0 8px 40px rgba(26,58,107,0.16);
  --radius:       12px;
  --radius-lg:    20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== UTILITY ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(245,134,10,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(245,134,10,0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--blue); color: #fff; }

.btn-large { padding: 15px 38px; font-size: 1.05rem; }

.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 1rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue);
  box-shadow: 0 2px 16px rgba(26,58,107,0.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-plan { color: var(--white); }
.brand-trip { color: var(--orange); }
.brand-tag {
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--orange-light);
  color: var(--orange);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(245,134,10,0.3);
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--orange-dark); }
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--blue);
  padding: 10px 20px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--blue) 0%, #2a5298 50%, #1a3060 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 20px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,134,10,0.2);
  color: var(--orange);
  border: 1px solid rgba(245,134,10,0.4);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-accent { color: var(--orange); }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-btn { font-size: 1.1rem; padding: 16px 42px; }
.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stats span {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ===== SECTION WRAP ===== */
.section-wrap { padding: 70px 0; }

/* ===== TRIP FORM ===== */
.trip-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-group input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-light);
  background: #fff;
}

/* Radio group */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-label { cursor: pointer; }
.radio-label input[type="radio"] { display: none; }
.radio-btn {
  display: block;
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  transition: all 0.2s;
  white-space: nowrap;
}
.radio-label input[type="radio"]:checked + .radio-btn {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--orange);
}

/* Checkbox group */
.checkbox-group { display: flex; gap: 12px; flex-wrap: wrap; }
.check-label { cursor: pointer; }
.check-label input[type="checkbox"],
.check-label input[type="radio"] { display: none; }
.check-btn {
  display: block;
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  transition: all 0.2s;
  white-space: nowrap;
}
.check-label input[type="checkbox"]:checked + .check-btn,
.check-label input[type="radio"]:checked + .check-btn {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

/* Field hint text */
.field-hint {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* One Way badge on return tab button when hidden */
#returnTabBtn[style*="none"] { display: none !important; }

/* Airport transfer card in result tabs */
.airport-transfer-card {
  margin-top: 28px;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.atc-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.atc-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.atc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.atc-row:hover { border-color: var(--orange); }
.atc-row.atc-selected { border-color: var(--orange); background: rgba(245,134,10,0.06); }
.atc-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; flex-shrink: 0; }
.atc-icon { font-size: 1.4rem; }
.atc-info { flex: 1; }
.atc-label { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.atc-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.atc-price { font-size: 1rem; font-weight: 700; color: var(--orange); white-space: nowrap; }

.hotel-pref { padding: 16px; background: var(--bg2); border-radius: var(--radius); }

.form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 20px;
  border-top: 2px solid var(--border);
  flex-wrap: wrap;
}

/* ===== LOADING ===== */
.loading-section {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
}
.loading-box { max-width: 440px; margin: 0 auto; }
.ai-orb {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
}
.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--orange);
  animation: spin 1.2s linear infinite;
}
.orb-ring-2 {
  inset: 10px;
  border-top-color: var(--blue);
  animation-duration: 0.8s;
  animation-direction: reverse;
}
.orb-core {
  position: absolute;
  inset: 20px;
  background: linear-gradient(135deg, var(--orange-light), var(--blue-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-box h3 { font-family: 'Poppins', sans-serif; font-size: 1.4rem; color: var(--blue); margin-bottom: 24px; }
.loading-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.load-step {
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.4s;
}
.load-step.done {
  background: rgba(16,185,129,0.08);
  border-color: var(--success);
  color: var(--success);
}
.load-step.done::before { content: '✅ '; }

/* ===== RESULTS ===== */
.results-section { padding: 50px 0 100px; }

.trip-summary-bar {
  background: linear-gradient(135deg, var(--blue), #2a5298);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  align-items: center;
}
.tsb-item { display: flex; flex-direction: column; }
.tsb-label { font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 2px; }
.tsb-value { font-weight: 700; font-size: 1rem; }
.tsb-divider { width: 1px; background: rgba(255,255,255,0.2); align-self: stretch; }

/* Tabs */
.result-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  background: #fff;
  padding: 8px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  width: fit-content;
}
.tab-btn {
  padding: 10px 22px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover { background: var(--blue); color: #fff; }
.tab-btn.active { box-shadow: 0 2px 12px rgba(26,58,107,0.3); }
.tab-btn-proposal { background: var(--orange-light); color: var(--orange); border: 1px solid rgba(245,134,10,0.3); }
.tab-btn-proposal.active, .tab-btn-proposal:hover { background: var(--orange); color: #fff; box-shadow: 0 2px 12px rgba(245,134,10,0.35); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Transport Cards */
.transport-section { margin-bottom: 36px; }
.transport-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.transport-cards { display: flex; flex-direction: column; gap: 14px; }

.transport-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-wrap: wrap;
  cursor: pointer;
}
.transport-card:hover { border-color: var(--orange); }
.transport-card.selected { border-color: var(--orange); background: rgba(245,134,10,0.04); box-shadow: 0 0 0 3px var(--orange-light); }

.tc-radio input[type="radio"] { width: 20px; height: 20px; accent-color: var(--orange); cursor: pointer; }
.tc-icon { font-size: 2rem; width: 48px; text-align: center; }
.tc-info { flex: 1; min-width: 160px; }
.tc-name { font-weight: 700; color: var(--text); font-size: 1rem; margin-bottom: 2px; }
.tc-detail { font-size: 0.82rem; color: var(--muted); }
.tc-timing { text-align: center; min-width: 100px; }
.tc-dep { font-weight: 700; font-size: 1.1rem; color: var(--blue); }
.tc-dur { font-size: 0.78rem; color: var(--muted); margin: 2px 0; }
.tc-arr { font-weight: 700; font-size: 1.1rem; color: var(--blue); }
.tc-class-list { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.tc-class {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.tc-class:hover { border-color: var(--orange); background: var(--orange-light); }
.tc-class.cls-selected { background: var(--orange-light); border-color: var(--orange); color: var(--orange); font-weight: 600; }
.tc-class-name { color: var(--muted); }
.tc-class.cls-selected .tc-class-name { color: var(--orange); }
.tc-class-price { font-weight: 700; color: var(--blue); }
.tc-class.cls-selected .tc-class-price { color: var(--orange); }
.tc-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--orange-light);
  color: var(--orange);
  white-space: nowrap;
}
.tc-badge.blue { background: var(--blue-light); color: var(--blue); }
.tc-badge.green { background: rgba(16,185,129,0.12); color: var(--success); }

/* Hotel Cards */
.hotel-section { margin-bottom: 36px; }
.hotel-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.hotel-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.hotel-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}
.hotel-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.hotel-card.selected { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); }
.hotel-img {
  height: 140px;
  background: linear-gradient(135deg, var(--blue), #2a5298);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.hotel-star-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: #FFD700;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.hotel-selected-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: none;
}
.hotel-card.selected .hotel-selected-badge { display: block; }
.hotel-body { padding: 16px; }
.hotel-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.hotel-location { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.hotel-amenities { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hotel-amenity {
  background: var(--bg2);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 500;
}
.hotel-pricing { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.hotel-rate { font-size: 0.8rem; color: var(--muted); }
.hotel-price { font-size: 1.2rem; font-weight: 800; color: var(--orange); }
.hotel-per { font-size: 0.75rem; color: var(--muted); }
.hotel-radio { display: flex; align-items: center; gap: 8px; }
.hotel-radio input { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }

/* Itinerary */
.itinerary-day {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.itin-day-header {
  background: linear-gradient(135deg, var(--blue), #2a5298);
  color: #fff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.itin-day-num {
  background: var(--orange);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.itin-day-title { font-weight: 700; font-size: 1rem; }
.itin-day-date { font-size: 0.8rem; opacity: 0.8; }
.itin-day-body { padding: 20px 22px; }
.itin-timeline { display: flex; flex-direction: column; }
.itin-item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  position: relative;
}
.itin-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: -6px;
  width: 2px;
  background: var(--border);
}
.itin-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-light);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  z-index: 1;
}
.itin-content { flex: 1; padding-top: 4px; }
.itin-time { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.itin-act { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.itin-note { font-size: 0.82rem; color: var(--muted); }

/* Expense Summary */
.expense-summary {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.exp-header {
  background: linear-gradient(135deg, var(--blue), #2a5298);
  color: #fff;
  padding: 24px 28px;
}
.exp-header h3 { font-family: 'Poppins', sans-serif; font-size: 1.3rem; margin-bottom: 4px; }
.exp-header p { opacity: 0.8; font-size: 0.88rem; }
.exp-body { padding: 24px 28px; }
.exp-section { margin-bottom: 24px; }
.exp-section-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 12px;
}
.exp-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.exp-line:last-child { border-bottom: none; }
.exp-line-label { color: var(--text); }
.exp-line-val { font-weight: 700; color: var(--blue); }
.exp-line-val.orange { color: var(--orange); }
.exp-daywise { background: var(--bg); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.exp-day-row { display: grid; grid-template-columns: 100px 1fr 1fr 1fr 120px; gap: 10px; padding: 12px 16px; font-size: 0.85rem; border-bottom: 1px solid var(--border); align-items: center; }
.exp-day-row:last-child { border-bottom: none; }
.exp-day-row.header { background: var(--blue); color: #fff; font-weight: 700; font-size: 0.8rem; }
.exp-total-box {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.exp-total-label { font-size: 1rem; font-weight: 600; }
.exp-total-val { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 800; }
.exp-per-person { font-size: 0.85rem; opacity: 0.85; }
.exp-note { padding: 12px 20px; font-size: 0.78rem; color: var(--muted); background: var(--bg); text-align: center; }

/* Floating expense */
.expense-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--blue), #2a5298);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 500;
  min-width: 200px;
  border: 1px solid rgba(255,255,255,0.15);
}
.expense-float.show { display: flex; }
.ef-label { font-size: 0.75rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.5px; }
.ef-amount { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--orange); }
.ef-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.ef-btn:hover { background: var(--orange-dark); }

/* Plan another */
.plan-another { text-align: center; padding: 40px 0 0; }

/* ===== HOW IT WORKS ===== */
.how-section { padding: 70px 0; background: var(--bg2); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.how-icon { font-size: 2.5rem; margin-bottom: 16px; }
.how-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.how-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }

/* ===== FOOTER ===== */
.footer {
  background: var(--blue);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand-plan { color: #fff; font-family: 'Poppins'; font-size: 1.4rem; font-weight: 800; }
.footer-brand .brand-trip { color: var(--orange); font-family: 'Poppins'; font-size: 1.4rem; font-weight: 800; }
.footer-brand p { margin-top: 10px; font-size: 0.88rem; opacity: 0.7; }
.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .exp-day-row { grid-template-columns: 80px 1fr 1fr 100px; }
  .exp-day-row > :nth-child(3) { display: none; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .trip-form { padding: 24px 18px; }
  .transport-card { flex-wrap: wrap; }
  .tc-class-list { width: 100%; }
  .hotel-cards { grid-template-columns: 1fr; }
  .result-tabs { gap: 4px; }
  .tab-btn { padding: 8px 14px; font-size: 0.82rem; }
  .trip-summary-bar { flex-direction: column; gap: 14px; }
  .tsb-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .how-grid { gap: 16px; }
  .expense-float { bottom: 12px; right: 12px; left: 12px; }
  .exp-day-row { grid-template-columns: 1fr 1fr 100px; font-size: 0.78rem; }
  .exp-day-row > :first-child { grid-column: 1 / -1; font-weight: 700; background: var(--bg2); margin: -12px -16px 4px; padding: 6px 16px; }
}

/* Misc helpers */
.no-results {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  background: var(--bg2);
  border-radius: var(--radius);
}
.no-results .nr-icon { font-size: 3rem; margin-bottom: 12px; }
.badge-best {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* ===== RETURN TRIP HEADER ===== */
.return-section-header {
  background: linear-gradient(135deg, #1a5c3a, #228b5e);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.return-section-header h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.return-section-header p  { font-size: 0.85rem; opacity: 0.85; margin: 0; }

/* ===== PROPOSAL SECTION ===== */
.proposal-wrap { display: flex; flex-direction: column; gap: 24px; }

.proposal-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4e9f 100%);
  border-radius: var(--radius-lg);
  padding: 36px 36px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.proposal-hero::before {
  content: '✈';
  position: absolute;
  right: 28px;
  top: 20px;
  font-size: 5rem;
  opacity: 0.08;
}
.proposal-hero-tag {
  display: inline-block;
  background: rgba(245,134,10,0.25);
  color: var(--orange);
  border: 1px solid rgba(245,134,10,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.proposal-hero h2 { font-family: 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.proposal-hero p  { opacity: 0.8; font-size: 0.9rem; margin-bottom: 24px; }
.proposal-route {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  padding: 14px 20px;
  border-radius: var(--radius);
  flex-wrap: wrap;
  gap: 16px;
}
.pr-city { font-weight: 700; font-size: 1.1rem; }
.pr-arrow { color: var(--orange); font-size: 1.4rem; }
.pr-dates { font-size: 0.85rem; opacity: 0.8; }
.pr-pax { font-size: 0.85rem; background: rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 20px; }

.proposal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.proposal-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.pcard-header {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.pcard-header.orange { background: var(--orange-light); color: var(--orange); border-bottom: 2px solid var(--orange); }
.pcard-header.blue   { background: var(--blue-light);   color: var(--blue);   border-bottom: 2px solid var(--blue); }
.pcard-header.green  { background: rgba(16,185,129,0.1); color: #059669; border-bottom: 2px solid #10B981; }
.pcard-header.purple { background: rgba(139,92,246,0.1); color: #7c3aed; border-bottom: 2px solid #8b5cf6; }
.pcard-body { padding: 16px 18px; }
.pcard-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  gap: 10px;
}
.pcard-line:last-child { border-bottom: none; }
.pcard-label { color: var(--muted); flex: 1; }
.pcard-val { font-weight: 700; color: var(--text); text-align: right; }
.pcard-val.orange { color: var(--orange); }
.pcard-val.blue   { color: var(--blue); }
.pcard-empty { color: var(--muted); font-style: italic; font-size: 0.85rem; padding: 8px 0; }

/* Grand total box */
.grand-total-box {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.gtb-left h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.gtb-left p  { font-size: 0.85rem; opacity: 0.85; }
.gtb-amount  { font-family: 'Poppins', sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1; }
.gtb-per     { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }

/* Cost table */
.cost-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.cost-table th { background: var(--blue); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; font-size: 0.82rem; }
.cost-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) { background: var(--bg); }
.cost-table .ct-total td { background: var(--blue-light); font-weight: 700; color: var(--blue); border-top: 2px solid var(--blue); }
.cost-table .ct-amt { font-weight: 700; color: var(--blue); text-align: right; }
.cost-table .ct-orange { color: var(--orange); font-weight: 700; }

/* Booking section */
.booking-section {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
}
.booking-header {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  padding: 20px 28px;
}
.booking-header h3 { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.booking-header p  { font-size: 0.85rem; opacity: 0.85; }
.booking-body { padding: 24px 28px; }
.booking-notice {
  background: rgba(245,134,10,0.1);
  border: 1px solid rgba(245,134,10,0.3);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.6;
}
.booking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.book-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  font-weight: 600;
}
.book-btn:hover { border-color: var(--orange); background: var(--orange-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.book-btn-icon { font-size: 1.8rem; flex-shrink: 0; }
.book-btn-text { display: flex; flex-direction: column; }
.book-btn-label { font-size: 0.75rem; color: var(--muted); font-weight: 500; margin-bottom: 1px; }
.book-btn-name  { font-size: 0.92rem; font-weight: 700; color: var(--blue); }
.book-btn-tag   { font-size: 0.72rem; color: var(--orange); font-weight: 600; }

.proposal-approve {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 0 4px;
  flex-wrap: wrap;
}
.btn-approve {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border: none;
  padding: 16px 38px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(5,150,105,0.35);
  transition: all 0.2s;
}
.btn-approve:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(5,150,105,0.45); }
.btn-modify {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-modify:hover { background: var(--blue); color: #fff; }

/* Daywise cost table */
.daywise-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.daywise-table th { background: var(--blue); color: #fff; padding: 9px 12px; text-align: left; font-size: 0.8rem; font-weight: 600; }
.daywise-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.daywise-table tr:nth-child(even) td { background: var(--bg); }
.daywise-table tr:last-child td { border-bottom: none; font-weight: 700; background: var(--blue-light); color: var(--blue); }
.daywise-table .td-amt { text-align: right; font-weight: 600; color: var(--blue); }

/* Approval toast */
.approval-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #059669;
  color: #fff;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}
.approval-toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .proposal-grid { grid-template-columns: 1fr; }
  .grand-total-box { flex-direction: column; text-align: center; }
  .gtb-amount { font-size: 2rem; }
  .proposal-hero { padding: 24px 18px 20px; }
  .proposal-hero h2 { font-size: 1.3rem; }
  .booking-body { padding: 16px 14px; }
  .result-tabs { gap: 3px; }
  .tab-btn { padding: 8px 10px; font-size: 0.78rem; }
}

/* ===== INLINE BOOK BUTTONS (transport & hotel cards) ===== */
.tc-book-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
a.book-btn.tc-inline,
a.book-btn-hotel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--orange);
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
a.book-btn.tc-inline:hover,
a.book-btn-hotel:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,134,10,0.3);
}
/* Override the large proposal-tab .book-btn for tc-book-wrap context */
.tc-book-wrap a.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--orange);
  background: var(--orange-light);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  flex-direction: row;
}
.tc-book-wrap a.book-btn:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,134,10,0.3);
}

/* Hotel card book button */
.hotel-pricing a.book-btn-hotel {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.82rem;
}

/* ===== GEMINI KEY FIELD ===== */
.gemini-group {
  background: linear-gradient(135deg, rgba(66,133,244,0.06), rgba(245,134,10,0.04));
  border: 1.5px dashed rgba(66,133,244,0.3);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 4px;
}
.gemini-group label { color: var(--blue); }
.gemini-group .field-hint a { color: var(--orange); font-weight: 600; }
.optional-tag {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ===== CAR FARE BREAKDOWN ===== */
.car-breakdown {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(26,58,107,0.04), rgba(245,134,10,0.04));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.cb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  min-width: 180px;
}
.cb-label {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.cb-val {
  font-weight: 700;
  color: var(--text);
}
.cb-orange { color: var(--orange); }
.cb-note {
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  min-width: unset;
}

/* ===== CITY VALIDATION ERROR ===== */
.city-error-msg {
  background: #fff5f5;
  border: 1.5px solid #fc8181;
  border-left: 4px solid #e53e3e;
  border-radius: 10px;
  padding: 12px 16px;
  color: #c53030;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
  animation: shakeError 0.35s ease;
}
@keyframes shakeError {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  60%      { transform: translateX(6px); }
}

/* ===== CUSTOM CITY DROPDOWN ===== */
.city-input-wrap {
  position: relative;
}
.city-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.13);
  z-index: 999;
  scroll-behavior: smooth;
}
.city-opt {
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid rgba(226,232,240,0.5);
  transition: background 0.12s;
}
.city-opt:last-child { border-bottom: none; }
.city-opt:hover {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 500;
}

/* ===== TRANSPORT NOT AVAILABLE ===== */
.transport-na {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff8f0;
  border: 1.5px solid #f5c07a;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.tna-icon { font-size: 2rem; }
.tna-msg { display: flex; flex-direction: column; gap: 4px; }
.tna-msg strong { font-size: 1rem; color: var(--text); font-weight: 600; }
.tna-msg span   { font-size: 0.88rem; color: var(--muted); }
.tna-fallback {
  font-size: 0.9rem;
  color: var(--blue);
  font-weight: 500;
  padding: 10px 4px 6px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

/* 4-slot departure time: small time-range hint inside radio button */
.radio-btn small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 1px;
  line-height: 1.2;
}
.radio-label input:checked ~ .radio-btn small {
  color: #fff;
  opacity: 0.85;
}

/* Edit-mode banner (shown when returning to form from results) */
.edit-mode-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(245,134,10,0.12), rgba(26,58,107,0.08));
  border: 1.5px solid var(--orange);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text);
  flex-wrap: wrap;
}
.edit-mode-banner button {
  margin-left: auto;
  background: none;
  border: 1.5px solid var(--muted);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.edit-mode-banner button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Two-button plan-another row */
.plan-another {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Transfer sub-options row (station type + basis selectors) */
.atc-subopts {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 12px 46px;
  flex-wrap: wrap;
  background: rgba(26,58,107,0.04);
  border-top: 1px dashed var(--border);
}
.atc-sel {
  padding: 5px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}
.atc-sel:focus { border-color: var(--blue); outline: none; }
.atc-fare-detail {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Amadeus key row — two inputs side by side */
.amadeus-key-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 6px;
}
.amadeus-key-row input {
  width: 100%;
}
@media (max-width: 600px) {
  .amadeus-key-row { grid-template-columns: 1fr; }
}

/* Live price badge on flight cards */
.badge-live {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  letter-spacing: 0.3px;
  vertical-align: middle;
}
