/* planner.css — Trip Planner page styles */

/* ============================================
   PLANNER HERO
   ============================================ */
.planner-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-text) 0%,
    #1a3a32 50%,
    var(--color-primary-active) 100%
  );
}

.planner-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: var(--space-32) clamp(var(--space-4), 6vw, var(--space-16)) var(--space-16);
  max-width: 700px;
  margin: 0 auto;
}

.planner-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: var(--space-4);
}

.planner-hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.88);
}

.planner-hero-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  max-width: 40ch;
  margin: 0 auto;
}

/* Decorative pattern overlay */
.planner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(45,122,107,0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(196,98,45,0.15) 0%, transparent 40%);
  z-index: 1;
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */
.planner-progress {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--color-bg) 96%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-4) 0;
}

.progress-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  border: none;
  background: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  transition: background var(--transition-interactive),
              color var(--transition-interactive);
}

.progress-step:hover {
  background: var(--color-surface-offset);
}

.progress-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  transition: all var(--transition-interactive);
  flex-shrink: 0;
}

.progress-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  transition: color var(--transition-interactive);
  white-space: nowrap;
}

.progress-connector {
  width: 24px;
  height: 2px;
  background: var(--color-divider);
  flex-shrink: 0;
  transition: background var(--transition-interactive);
}

/* Active step */
.progress-step.active .progress-dot {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.progress-step.active .progress-label {
  color: var(--color-primary);
  font-weight: 600;
}

/* Completed step */
.progress-step.completed .progress-dot {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.progress-step.completed .progress-label {
  color: var(--color-text-muted);
}

.progress-connector.completed {
  background: var(--color-primary);
}

/* ============================================
   STEP PANELS
   ============================================ */
.planner-steps {
  position: relative;
  min-height: 60vh;
}

.planner-step {
  display: none;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  animation: stepFadeIn 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.planner-step.active {
  display: block;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    clip-path: inset(4% 0 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.step-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

.step-header .section-eyebrow {
  margin-bottom: var(--space-2);
}

.step-header .section-heading {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.step-header .section-subheading {
  margin-inline: auto;
  margin-bottom: 0;
  font-size: var(--text-sm);
}

/* ============================================
   STEP 1: DESTINATION CARDS + MAP
   ============================================ */
.destinations-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-8);
  align-items: start;
}

.dest-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.dest-select-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
  box-shadow: var(--shadow-sm);
}

.dest-select-card:hover {
  border-color: var(--color-primary-highlight);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dest-select-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-primary) 20%, transparent), var(--shadow-md);
}

.dest-select-card.selected::after {
  content: '';
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.dest-select-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.dest-select-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-select-card:hover .dest-select-img img {
  transform: scale(1.05);
}

.dest-select-info {
  padding: var(--space-4) var(--space-5);
}

.dest-select-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.dest-select-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* SVG Map */
.dest-map-wrap {
  position: sticky;
  top: 100px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.dest-map-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  text-align: center;
}

.dest-map-wrap svg {
  width: 100%;
  height: auto;
}

.map-country {
  fill: var(--color-surface-offset);
  stroke: var(--color-border);
  stroke-width: 0.5;
  transition: fill var(--transition-interactive);
  cursor: pointer;
}

.map-country:hover {
  fill: var(--color-primary-highlight);
}

.map-country.highlighted {
  fill: var(--color-primary);
  stroke: var(--color-primary-hover);
}

/* ============================================
   STEP 2: MONTH SELECTOR
   ============================================ */
.month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  max-width: 640px;
  margin: 0 auto;
}

.month-card {
  padding: var(--space-4) var(--space-3);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-interactive);
  box-shadow: var(--shadow-sm);
}

.month-card:hover {
  border-color: var(--color-primary-highlight);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.month-card.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--color-primary) 15%, transparent);
}

.month-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.month-season {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
}

.month-card.selected .month-name {
  color: var(--color-primary-active);
}

.month-card.selected .month-season {
  color: var(--color-primary);
}

/* Flexible option */
.flexible-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  max-width: 640px;
  margin-inline: auto;
}

.flexible-btn {
  padding: var(--space-3) var(--space-6);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
  width: 100%;
}

.flexible-btn:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.flexible-btn.selected {
  border-color: var(--color-secondary);
  background: var(--color-secondary-highlight);
  color: var(--color-secondary);
  font-weight: 600;
}

/* ============================================
   STEP 3: INTEREST CHIPS
   ============================================ */
.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.chip {
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
  user-select: none;
}

.chip:hover {
  border-color: var(--color-primary-highlight);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.chip.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  color: var(--color-primary-active);
  font-weight: 600;
}

.chip-icon {
  margin-right: var(--space-1);
}

/* ============================================
   STEP 4: DURATION & BUDGET
   ============================================ */
.duration-budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  max-width: 800px;
  margin: 0 auto;
}

.option-group-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  text-align: center;
}

.duration-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.duration-option {
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition-interactive);
  text-align: center;
}

.duration-option:hover {
  border-color: var(--color-primary-highlight);
  box-shadow: var(--shadow-sm);
}

.duration-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  color: var(--color-primary-active);
  font-weight: 600;
}

.budget-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.budget-option {
  padding: var(--space-5) var(--space-5);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-interactive);
  text-align: center;
}

.budget-option:hover {
  border-color: var(--color-secondary-highlight);
  box-shadow: var(--shadow-sm);
}

.budget-option.selected {
  border-color: var(--color-secondary);
  background: var(--color-secondary-highlight);
}

.budget-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.budget-range {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.budget-option.selected .budget-name {
  color: var(--color-secondary-active);
}

.budget-option.selected .budget-range {
  color: var(--color-secondary);
}

/* ============================================
   STEP 5: SUMMARY & SEND
   ============================================ */
.summary-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.summary-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.summary-value {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: flex-end;
}

.summary-tag {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* Contact form in step 5 */
.summary-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.summary-form-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.summary-form-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

/* Success state */
.planner-success {
  display: none;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  max-width: 560px;
  margin: 0 auto;
}

.planner-success.show {
  display: block;
  animation: stepFadeIn 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.planner-success-icon {
  width: 80px;
  height: 80px;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--color-primary);
}

.planner-success-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.planner-success-message {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 45ch;
  margin: 0 auto;
}

/* ============================================
   NAV BUTTONS
   ============================================ */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-interactive);
  min-height: 44px;
}

.btn-back:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-interactive);
  min-height: 44px;
}

.btn-next:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-next:active {
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .destinations-layout {
    grid-template-columns: 1fr;
  }
  .dest-map-wrap {
    display: none;
  }
  .dest-select-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .summary-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .progress-label {
    display: none;
  }
  .progress-connector {
    width: 16px;
  }
  .dest-select-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .month-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .duration-budget-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .planner-hero-title {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 480px) {
  .dest-select-grid {
    grid-template-columns: 1fr;
  }
  .month-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (hover: none) {
  .dest-select-card:hover {
    transform: none;
  }
  .month-card:hover {
    transform: none;
  }
}
