/* ==========================================================================
   CSS Design System - LUXURY Italian Travel Itinerary (v3 – Exclusive)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* LUXURY Dark Palette */
  --bg-deep: #0c0e12;
  --bg-card: #141820;
  --bg-card-hover: #1a1f2a;
  --bg-surface: #1e2330;
  --bg-glass: rgba(20, 24, 32, 0.82);

  /* Gold & Champagne */
  --gold: #c9a84c;
  --gold-light: #e0c878;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --gold-text: #d4b85c;
  --champagne: #f5ead0;

  /* Accent – Mediterranean Teal */
  --teal: #3aa8a0;
  --teal-glow: rgba(58, 168, 160, 0.12);
  --teal-dark: #2a7a74;

  /* Text */
  --text-bright: #f0ece4;
  --text-main: #c8c4bc;
  --text-muted: #7a7770;
  --text-dim: #4e4c48;

  /* Borders & Effects */
  --border-subtle: rgba(201, 168, 76, 0.08);
  --border-gold: rgba(201, 168, 76, 0.2);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-card-hover: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.12);

  /* Radii & Motion */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fast: 0.2s;
  --normal: 0.4s;
  --slow: 0.65s;

  --sidebar-width: 340px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--text-bright);
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.app-container {
  display: flex;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(201,168,76,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(58,168,160,0.03) 0%, transparent 50%),
    var(--bg-deep);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.app-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: linear-gradient(180deg, #10131a 0%, #0d0f14 100%);
  border-right: 1px solid var(--border-subtle);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.1) transparent;
  z-index: 10;
  transition: transform var(--normal) var(--ease-out);
}

.app-sidebar::-webkit-scrollbar { width: 4px; }
.app-sidebar::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.12); border-radius: 2px; }

/* Mobile toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--bg-deep);
  border: none;
  border-radius: 14px;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all var(--fast) var(--ease-out);
}
.sidebar-toggle:hover { transform: scale(1.08); }

/* Brand */
.brand-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-gold);
}

.agency-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.brand-title {
  font-size: 2rem;
  font-weight: 300;
  color: var(--champagne);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

/* Summary Card */
.summary-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--normal) var(--ease-out);
}

.summary-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.summary-card h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-text);
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 8px;
  letter-spacing: 0.02em;
}

.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.summary-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.summary-details { min-width: 0; }

.summary-details p {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.summary-details h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-bright);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
}

/* Agent Card */
.agent-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border-subtle);
  transition: all var(--normal) var(--ease-out);
}
.agent-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.agent-header { display: flex; align-items: center; gap: 12px; }

.agent-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  flex-shrink: 0;
}

.agent-info { min-width: 0; }
.agent-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  color: var(--champagne);
  font-weight: 600;
}
.agent-info p { font-size: 0.7rem; color: var(--text-muted); }

.agent-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-main);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  line-height: 1.55;
}

/* Quick Links */
.quick-links { display: flex; flex-direction: column; gap: 8px; }

.quick-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--gold-text);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.quick-link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-glow) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--fast);
}
.quick-link-btn:hover::before { opacity: 1; }

.quick-link-btn span:first-child {
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.35;
  position: relative;
}

.quick-link-btn span:last-child {
  flex-shrink: 0;
  transition: transform var(--fast);
  position: relative;
  color: var(--gold);
}

.quick-link-btn:hover {
  border-color: var(--gold);
  color: var(--champagne);
  box-shadow: var(--shadow-gold);
  transform: translateX(4px);
}
.quick-link-btn:hover span:last-child { transform: translateX(4px); }

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-content {
  flex-grow: 1;
  padding: 36px 44px;
  overflow-y: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* ==========================================================================
   TABS – Premium Pill Navigation
   ========================================================================== */

.tabs-container {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 16px 0 12px;
  background: linear-gradient(to bottom, var(--bg-deep) 60%, transparent 100%);
}

.tabs-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-glow) transparent;
}
.tabs-wrapper::-webkit-scrollbar { height: 4px; }
.tabs-wrapper::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.15); border-radius: 2px; }

.tab-list {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg-card);
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  width: fit-content;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 40px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--fast) var(--ease-out);
  position: relative;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--champagne);
  background: var(--bg-surface);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--bg-deep);
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

.tab-btn.special-tab {
  color: var(--teal);
}

.tab-btn.special-tab:hover {
  color: var(--champagne);
  background: var(--teal-glow);
}

.tab-btn.special-tab.active {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--text-bright);
  box-shadow: 0 4px 20px rgba(58,168,160,0.3);
}

/* ==========================================================================
   TAB PANELS
   ========================================================================== */

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 28px;
}

.tab-panel.active {
  display: flex;
  animation: panelReveal var(--slow) var(--ease-out) forwards;
}

@keyframes panelReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   HERO – Cinematic
   ========================================================================== */

.panel-hero {
  position: relative;
  height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,0.45);
}

.panel-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(201,168,76,0.1);
  pointer-events: none;
  z-index: 2;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1.5%, -1%); }
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top,
    rgba(12,14,18,0.95) 0%,
    rgba(12,14,18,0.55) 45%,
    rgba(12,14,18,0.1) 75%,
    transparent 100%);
  padding: 40px;
  color: var(--text-bright);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  z-index: 1;
}

.hero-title p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  animation: heroTextIn 0.7s 0.05s backwards;
}

.hero-title h2 {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--champagne);
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  margin-top: 4px;
  animation: heroTextIn 0.7s 0.15s backwards;
}

@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; }

.meta-pill {
  padding: 6px 14px;
  border-radius: 24px;
  background: rgba(201,168,76,0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201,168,76,0.2);
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 5px;
  animation: pillPop 0.4s 0.4s backwards;
}

.meta-pill.beach {
  background: rgba(58,168,160,0.12);
  border-color: rgba(58,168,160,0.25);
  color: var(--teal);
}

@keyframes pillPop {
  from { opacity: 0; transform: scale(0.75); }
  to   { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   DAY GRID
   ========================================================================== */

.day-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

/* Timeline Card */
.timeline-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-subtle);
  transition: all var(--normal) var(--ease-out);
}

.timeline-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.timeline-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold-text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-gold);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--teal), var(--gold));
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
  opacity: 0;
  animation: staggerIn 0.5s var(--ease-out) forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.08s; }
.timeline-item:nth-child(2) { animation-delay: 0.16s; }
.timeline-item:nth-child(3) { animation-delay: 0.24s; }
.timeline-item:nth-child(4) { animation-delay: 0.32s; }
.timeline-item:nth-child(5) { animation-delay: 0.40s; }
.timeline-item:nth-child(6) { animation-delay: 0.48s; }
.timeline-item:nth-child(7) { animation-delay: 0.56s; }

@keyframes staggerIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 3px var(--gold-glow), 0 0 12px var(--gold-glow);
  transition: all var(--fast) var(--ease-spring);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 5px var(--gold-glow), 0 0 20px rgba(201,168,76,0.2);
}

.timeline-time {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   DETAILS CARDS
   ========================================================================== */

.details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.details-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-subtle);
  transition: all var(--normal) var(--ease-out);
  animation: cardFloat 0.55s 0.3s backwards;
}

.details-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

@keyframes cardFloat {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.details-card.highlight {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border-left: 3px solid var(--gold);
}

.details-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.details-card p {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.65;
}

.details-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.details-card li {
  font-size: 0.84rem;
  position: relative;
  padding-left: 18px;
  color: var(--text-main);
}
.details-card li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.5rem;
  top: 5px;
}

/* Tip & Alert Boxes */
.tip-box {
  background: var(--gold-glow);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-left: 3px solid var(--gold);
  margin-top: 14px;
  transition: transform var(--fast) var(--ease-out);
}
.tip-box:hover { transform: translateX(4px); }

.tip-box h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-text);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tip-box p {
  font-size: 0.82rem;
  margin-bottom: 0;
  color: var(--text-main);
}

.alert-box {
  background: var(--teal-glow);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-left: 3px solid var(--teal);
  margin-top: 14px;
  transition: transform var(--fast) var(--ease-out);
}
.alert-box:hover { transform: translateX(4px); }

.alert-box h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alert-box p {
  font-size: 0.82rem;
  margin-bottom: 0;
  color: var(--text-main);
}

/* ==========================================================================
   BUDGET CALCULATOR
   ========================================================================== */

.budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calculator-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-subtle);
}

.calculator-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold-text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-gold);
}

.calc-control-group { margin-bottom: 22px; }
.calc-control-group:last-child { margin-bottom: 0; }

.control-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 4px;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.control-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  transition: transform var(--fast);
}

/* Custom range slider */
.slider-input {
  width: 100%;
  height: 4px;
  background: var(--bg-surface);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  transition: background var(--fast);
}
.slider-input:hover { background: var(--gold-glow); }

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(201,168,76,0.3);
  transition: all var(--fast) var(--ease-spring);
}
.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 4px 18px rgba(201,168,76,0.4);
}

.slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  cursor: pointer;
  border: none;
}

.btn-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--fast) var(--ease-out);
  color: var(--text-muted);
}

.btn-radio-input { display: none; }

.btn-radio-input:checked + .btn-radio-label {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 2px 12px rgba(201,168,76,0.15);
}

/* Budget Display */
.budget-display-card {
  background: linear-gradient(145deg, #18130a 0%, #0d1a18 50%, #0a0f18 100%);
  color: var(--text-bright);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 16px 56px rgba(0,0,0,0.5), inset 0 1px 0 rgba(201,168,76,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.budget-display-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -30%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201,168,76,0.06), transparent 70%);
  animation: orbFloat 10s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 30px) scale(1.2); }
}

.total-header {
  border-bottom: 1px solid rgba(201,168,76,0.12);
  padding-bottom: 18px;
  margin-bottom: 22px;
  position: relative;
}

.total-header p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 500;
}

.total-value-main {
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1;
  margin-top: 8px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--champagne);
  transition: transform var(--fast) var(--ease-spring);
}

.budget-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-main);
}

.breakdown-row span:last-child {
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--champagne);
}

.family-costs-box {
  background: rgba(201,168,76,0.04);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-gold);
  position: relative;
}

.family-costs-box h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.family-cost-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.84rem;
  color: var(--text-main);
}
.family-cost-row:last-child { margin-bottom: 0; }

.family-cost-val {
  font-weight: 700;
  color: var(--champagne);
}

/* ==========================================================================
   LOGISTICS
   ========================================================================== */

.logistics-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-subtle);
}

.logistics-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-gold);
}

.logistics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.logistics-item-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--gold-text);
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.logistics-step { margin-bottom: 14px; }
.logistics-step:last-child { margin-bottom: 0; }

.logistics-step p {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  :root { --sidebar-width: 300px; }
  .main-content { padding: 28px 24px; }
  .brand-title { font-size: 1.6rem; }
}

@media (max-width: 900px) {
  .app-container { flex-direction: column; }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 320px;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 8px 0 40px rgba(0,0,0,0.5);
  }
  .app-sidebar.open { transform: translateX(0); }

  .main-content {
    height: auto;
    padding: 72px 18px 32px;
  }

  .day-grid, .budget-grid, .logistics-grid {
    grid-template-columns: 1fr;
  }

  .hero-title h2 { font-size: 1.6rem; }
  .hero-overlay { padding: 26px; }
  .panel-hero { height: 260px; }
}

@media (max-width: 600px) {
  .main-content { padding: 60px 12px 24px; }
  .tab-btn { padding: 8px 14px; font-size: 0.7rem; }
  .tab-list { padding: 4px; gap: 4px; }
  .hero-title h2 { font-size: 1.3rem; }
  .total-value-main { font-size: 2.4rem; }
}

/* ==========================================================================
   DYNAMIC TRIP SWAP & SIDEBAR MENU STYLES
   ========================================================================== */

.sidebar-menu-btn {
  width: 100%;
  text-align: left !important;
  border-radius: var(--radius-sm);
  padding: 10px 16px !important;
  color: var(--text-dim) !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem !important;
  transition: all var(--fast) var(--ease-out);
  white-space: normal !important;
}

.sidebar-menu-btn:hover, 
.sidebar-menu-btn.active {
  color: var(--gold-text) !important;
  background: var(--gold-glow) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.swap-btn:hover {
  background: var(--gold-glow) !important;
  color: var(--text-bright) !important;
  border-color: var(--gold-text) !important;
  box-shadow: var(--shadow-gold);
}

.trip-option {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   DAY MAP
   ========================================================================== */

.day-map-card {
  padding: 0;
  overflow: hidden;
}

.day-map-card h3 {
  padding: 20px 24px 0;
}

.day-map {
  height: 260px;
  margin-top: 16px;
}

.day-map-empty {
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.day-map-pin {
  background: var(--gold);
  color: var(--bg-deep);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 0 0 2px var(--bg-card);
}

/* ==========================================================================
   EDITABLE SCHEDULE
   ========================================================================== */

.edit-toggle-btn {
  display: inline-block;
  margin-left: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  color: var(--gold-text);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  cursor: pointer;
}

.edit-toggle-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.item-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 6px;
}

.item-actions button {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px 6px;
}

.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  padding: 2px 6px;
}

.timeline-card.editing .timeline-item {
  padding-right: 90px;
}

.add-item-form {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-subtle);
}

.timeline-card.editing .add-item-form {
  display: flex;
}

.add-item-form input {
  flex: 1 1 140px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text-bright);
  font-size: 0.85rem;
}

.add-item-form button {
  flex: 1 1 100%;
  background: var(--gold);
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  font-weight: 600;
}
