/* planner_v2.css - Ultra Aesthetic Pill Layout */

/* Base overrides */
.planner-section {
  background-color: #FAFAFB;
  min-height: 100vh;
  padding-top: 80px;
}

.planner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Horizontal Top Bar - Glassmorphic / Clean */
.planner-top-bar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
  padding: 60px 0 50px 0;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.planner-header-text {
  text-align: center;
  margin-bottom: 40px;
}

.planner-header-text h2 {
  font-family: 'Volkhov', serif;
  color: #181E4B;
  font-size: 38px;
  margin-bottom: 10px;
}

.planner-header-text p {
  color: #5E6282;
  font-size: 16px;
  margin: 0;
}

.horizontal-planner-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

/* Airbnb-Style Pill Container */
.main-row {
  background: #fff;
  border-radius: 60px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  padding: 10px 10px 10px 30px;
  width: 100%;
  max-width: 1000px;
  transition: box-shadow 0.3s ease;
}

.main-row:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.main-row .form-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #E5E7EB;
  padding: 0 25px;
  position: relative;
}

.main-row .form-group:first-child {
  padding-left: 0;
}

.main-row .form-group.flex-1 {
  flex: 1;
  min-width: 0;
}

.main-row .form-group.btn-wrapper {
  border-right: none;
  padding-right: 0;
  padding-left: 15px;
}

.main-row .form-label {
  font-size: 12px;
  font-weight: 700;
  color: #181E4B;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-row .form-control {
  border: none;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: #5E6282;
  background: transparent;
  outline: none;
  box-shadow: none;
  width: 100%;
}

.main-row .form-control:focus {
  color: #181E4B;
}

.input-icon-wrapper {
  display: flex;
  align-items: center;
}

.input-icon-wrapper .input-icon {
  position: static;
  transform: none;
  margin-right: 10px;
  font-size: 16px;
  color: #DF6951;
}

/* The Generate Button inside the pill */
.main-row .generate-btn {
  background: #DF6951;
  color: #fff;
  padding: 0 35px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  height: 52px;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(223, 105, 81, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.main-row .generate-btn:hover {
  background: #c95540;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(223, 105, 81, 0.4);
}

/* Preferences Row (Below Pill) */
.prefs-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
  align-items: flex-start;
  gap: 30px;
}

.prefs-row .form-group {
  display: flex;
  flex-direction: column;
}

.prefs-row .form-label {
  font-size: 11px;
  color: #8C92B1;
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Budget Selector */
.budget-selector {
  display: flex;
  gap: 12px;
}

.budget-option input {
  display: none;
}

.budget-card {
  padding: 10px 18px;
  border: 1px solid #E5E7EB;
  background: #FAFAFB;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #5E6282;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.budget-card i {
  font-size: 15px;
  color: #8C92B1;
  transition: 0.3s;
}

.budget-option input:checked+.budget-card {
  border-color: #DF6951;
  background: #fff;
  color: #181E4B;
  box-shadow: 0 8px 20px rgba(223, 105, 81, 0.15);
}

.budget-option input:checked+.budget-card i {
  color: #DF6951;
}

/* Chips */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 18px;
  border-radius: 20px;
  background: #FAFAFB;
  border: 1px solid #E5E7EB;
  color: #5E6282;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chip:hover {
  background: #fff;
  border-color: #8C92B1;
}

.chip.selected {
  background: #181E4B;
  color: #fff;
  border-color: #181E4B;
  box-shadow: 0 8px 20px rgba(24, 30, 75, 0.2);
}

/* Range Slider */
.range-slider {
  width: 100%;
  accent-color: #DF6951;
  height: 6px;
  background: #E5E7EB;
  border-radius: 10px;
  outline: none;
  -webkit-appearance: none;
  margin-top: 5px;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #DF6951;
  cursor: pointer;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(223, 105, 81, 0.2);
  transition: 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: #8C92B1;
  margin-top: 15px;
}

/* Main Area */
.planner-main-full {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 80px;
}

/* Empty State Horizontal */
.empty-state-horizontal {
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.05);
  position: relative;
  text-align: center;
}

.empty-hero {
  height: 450px;
  background-image: url('https://images.unsplash.com/photo-1506012787146-f92b2d7d6d96?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  position: relative;
}

.empty-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

.empty-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px 60px 20px;
  margin-top: -150px;
}

.empty-hero-content h2 {
  font-family: 'Volkhov', serif;
  color: #181E4B;
  font-size: 54px;
  margin-bottom: 15px;
}

.empty-hero-content p {
  color: #5E6282;
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.feature-hints {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.hint {
  background: #FAFAFB;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 15px;
  color: #181E4B;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.hint:hover {
  transform: translateY(-5px);
}

/* Loading State */
.loading-state {
  background: #fff;
  border-radius: 40px;
  padding: 100px 50px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.ai-pulse-visual {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: rgba(223, 105, 81, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.ai-pulse-visual i {
  font-size: 40px;
  color: #DF6951;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(223, 105, 81, 0.4);
  }

  70% {
    box-shadow: 0 0 0 30px rgba(223, 105, 81, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(223, 105, 81, 0);
  }
}

.loading-state h2 {
  font-family: 'Volkhov', serif;
  color: #181E4B;
  font-size: 32px;
  margin-bottom: 10px;
}

.loading-state p {
  color: #8C92B1;
  font-size: 16px;
}

/* Result State */
.result-state {
  background: transparent;
}

.result-header {
  background: #fff;
  border-radius: 40px;
  padding: 50px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.04);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.result-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(223, 105, 81, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -50%);
}

.result-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 30px;
  position: relative;
  z-index: 2;
}

.section-badge {
  display: inline-block;
  background: rgba(241, 165, 1, 0.1);
  color: #F1A501;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}

.result-dest {
  font-family: 'Volkhov', serif;
  color: #181E4B;
  font-size: 48px;
  margin: 0 0 10px 0;
}

.result-meta {
  color: #5E6282;
  font-size: 16px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.trip-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

.summary-card {
  background: #FAFAFB;
  border: 1px solid #E5E7EB;
  border-radius: 24px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: 0.3s;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.sc-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.sc-info {
  display: flex;
  flex-direction: column;
}

.sc-label {
  font-size: 13px;
  color: #8C92B1;
  margin-bottom: 4px;
}

.sc-val {
  font-size: 18px;
  font-weight: 700;
  color: #181E4B;
}

/* Itinerary Timeline */
.itinerary-container {
  background: #fff;
  border-radius: 40px;
  padding: 60px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.04);
}

.itinerary-day {
  margin-bottom: 60px;
  position: relative;
  padding-left: 50px;
}

.itinerary-day::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 15px;
  bottom: -60px;
  width: 2px;
  background: #E5E7EB;
}

.itinerary-day:last-child::before {
  display: none;
}

.day-header {
  position: relative;
  margin-bottom: 30px;
}

.day-header::before {
  content: '';
  position: absolute;
  left: -52px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: #181E4B;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px rgba(24, 30, 75, 0.2);
}

.day-header h3 {
  font-family: 'Volkhov', serif;
  color: #181E4B;
  font-size: 28px;
}

.activity-card {
  background: #FAFAFB;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  gap: 25px;
  transition: 0.3s;
}

.activity-card:hover {
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.activity-time {
  font-size: 15px;
  font-weight: 700;
  color: #DF6951;
  min-width: 80px;
  padding-top: 2px;
}

.activity-details h4 {
  color: #181E4B;
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
}

.activity-details p {
  color: #5E6282;
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

@media (max-width: 992px) {
  .main-row {
    flex-direction: column;
    border-radius: 24px;
    padding: 20px;
    gap: 15px;
  }

  .main-row .form-group {
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
    padding: 10px 0;
    width: 100%;
  }

  .main-row .form-group.btn-wrapper {
    padding-bottom: 0;
    border-bottom: none;
  }

  .prefs-row {
    flex-direction: column;
  }

  .trip-summary-cards {
    grid-template-columns: 1fr;
  }

  .empty-hero {
    height: 250px;
  }

  .empty-hero-content {
    margin-top: -80px;
  }

  .itinerary-container {
    padding: 30px 20px;
  }
  
  .itinerary-day {
    padding-left: 20px;
  }
  
  .itinerary-day::before {
    left: 2px;
  }
  
  .day-header::before {
    left: -24px;
    width: 12px;
    height: 12px;
    top: 8px;
  }

  .activity-card {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  
  .activity-time {
    font-size: 13px;
    color: #DF6951;
  }
}

@media (max-width: 768px) {
  .result-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .result-actions {
    flex-wrap: wrap;
  }
  .result-dest {
    font-size: 32px;
  }
  .budget-selector {
    flex-wrap: wrap;
  }
  .feature-hints {
    flex-direction: column;
    align-items: center;
  }
}