/* ==========================================================================
   Primavera Travels - Pricelist & Quote Calculator Stylesheet
   Designed to match primaveratravels.com design system
   ========================================================================== */

:root {
  /* Mediterranean Editorial Palette */
  --horizon: #0E4F6B;       /* Deep Lake Teal */
  --horizon-dark: #0A3A50;
  --terracotta: #C4622D;    /* Warm Clay Accent */
  --terracotta-hover: #A85122;
  --stone: #F7F5F0;         /* Soft Limestone Surface */
  --sand: #FAF8F5;          /* Card Background */
  --mist: #EAE6DF;          /* Subtle Borders */
  --charcoal: #1C252C;      /* Deep Text */
  --muted: #62717D;         /* Secondary Text */
  --white: #FFFFFF;

  /* Fonts */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout & Elevations */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px -5px rgba(14, 79, 107, 0.08);
  --shadow-hover: 0 18px 40px -8px rgba(14, 79, 107, 0.14);
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Global Resets & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--stone);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Header & Navigation --- */
.site-header {
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--mist);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--horizon);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--terracotta);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--terracotta);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.currency-selector {
  display: flex;
  background: var(--sand);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 3px;
}

.currency-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.currency-btn.active {
  background: var(--horizon);
  color: var(--white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  touch-action: manipulation;
  min-height: 44px;
}

.btn-terracotta {
  background-color: var(--terracotta);
  color: var(--white);
}

.btn-terracotta:hover {
  background-color: var(--terracotta-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--horizon);
  color: var(--horizon);
  background: transparent;
}

.btn-outline:hover {
  background: var(--horizon);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

/* --- Hero Section --- */
.hero-section {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--stone) 0%, rgba(247, 245, 240, 0.4) 100%);
}

.eyebrow-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  color: var(--horizon);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Section Tabs --- */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid var(--mist);
  background: var(--sand);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--horizon);
  color: var(--white);
  border-color: var(--horizon);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--horizon);
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Fixed Route Cards --- */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.route-card {
  background: var(--sand);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.route-card.featured {
  border-top: 4px solid var(--terracotta);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

.route-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terracotta);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.route-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--horizon);
  margin-bottom: 1.25rem;
}

.route-details {
  border-top: 1px dashed var(--mist);
  border-bottom: 1px dashed var(--mist);
  padding: 1rem 0;
  margin-bottom: 1.25rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.detail-label {
  color: var(--muted);
}

.detail-val {
  font-weight: 600;
  color: var(--charcoal);
}

.route-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-label {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--horizon);
}

/* --- Instant Quote Calculator Layout --- */
.calculator-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: start;
}

.calc-form-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
}

.calc-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--horizon);
}

.calc-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.span-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--stone);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--white);
}

/* Vehicle Selector Cards */
.vehicle-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.vehicle-option {
  position: relative;
  border: 1px solid var(--mist);
  background: var(--stone);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition);
}

.vehicle-option input {
  position: absolute;
  opacity: 0;
}

.vehicle-option:has(input:checked) {
  border-color: var(--horizon);
  background: rgba(14, 79, 107, 0.04);
  box-shadow: 0 0 0 1px var(--horizon);
}

.v-name {
  display: block;
  font-weight: 600;
  color: var(--horizon);
  font-size: 0.95rem;
}

.v-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Stepper Controls */
.stepper-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--stone);
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--white);
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--horizon);
  cursor: pointer;
  transition: background var(--transition);
}

.stepper-btn:hover {
  background: var(--terracotta);
  color: var(--white);
}

.stepper-val {
  font-weight: 600;
  font-size: 1rem;
}

/* Checkbox Extras */
.extras-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--charcoal);
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--terracotta);
  width: 18px;
  height: 18px;
}

/* Calculator Result Card */
.calc-result-card {
  background: var(--horizon);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 100px;
}

.result-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.result-price {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--white);
  margin: 0.2rem 0;
}

.result-currency-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-bottom: 1.5rem;
}

.result-summary {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row span {
  color: rgba(255, 255, 255, 0.7);
}

.inclusions-list {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

/* --- Fleet Table --- */
.fleet-table-wrapper {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
  margin-bottom: 4rem;
}

.fleet-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fleet-table th, .fleet-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--mist);
  font-size: 0.9rem;
}

.fleet-table th {
  background: var(--stone);
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--horizon);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fleet-table tr:last-child td {
  border-bottom: none;
}

/* --- Value Guarantee --- */
.value-guarantee {
  background: var(--sand);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  padding: 4rem 0;
  margin-bottom: 4rem;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.guarantee-card {
  text-align: center;
  padding: 1rem;
}

.guarantee-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.guarantee-card h3 {
  font-family: var(--font-serif);
  color: var(--horizon);
  margin-bottom: 0.5rem;
}

.guarantee-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- FAQ Section --- */
.faq-section {
  padding-bottom: 5rem;
}

.text-center {
  text-align: center;
}

.faq-grid {
  max-width: 760px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--terracotta);
}

.faq-question {
  font-weight: 600;
  color: var(--horizon);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--terracotta);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Sticky Mobile Bar --- */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--mist);
  box-shadow: 0 -4px 16px rgba(14, 79, 107, 0.12);
  z-index: 99;
  align-items: center;
  justify-content: space-between;
}

.sticky-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.sticky-price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--horizon);
}

/* --- Footer --- */
.site-footer {
  background: var(--horizon);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--terracotta);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  width: 100%;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .calc-result-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Can be paired with your mobile drawer toggle */
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .vehicle-selector {
    grid-template-columns: 1fr;
  }

  .sticky-mobile-bar {
    display: flex;
  }
}