/* 
 * JelajahIndo - Design System & Styles
 * A premium, responsive, glassmorphic design for Indonesian tourism.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-dark: #070b13;
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-hover: rgba(20, 30, 54, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(14, 165, 233, 0.3);
  
  --primary: #0ea5e9;
  --primary-glow: rgba(14, 165, 233, 0.15);
  --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  --secondary-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --dark-gradient: linear-gradient(180deg, #070b13 0%, #0c1524 100%);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --success: #10b981;
  --warning: #f59e0b;
  --accent: #d946ef;

  /* Font */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Glassmorphism */
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --glass-blur: blur(12px);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-dark);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(14, 165, 233, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-sec {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 11, 19, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

header.scrolled {
  background: rgba(7, 11, 19, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

header.scrolled .container {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--success);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  outline: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(rgba(7, 11, 19, 0.4), var(--bg-dark)), url('https://images.unsplash.com/photo-1501179691627-eeaa65ea017c?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: zoomHero 20s infinite alternate ease-in-out;
}

@keyframes zoomHero {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-content {
  max-width: 750px;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.05);
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .hero-btns {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-btns .btn {
    width: 100%;
  }
}

/* Features Section */
.features {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4.5rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition-normal);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: rgba(14, 165, 233, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
  border: 1px solid rgba(14, 165, 233, 0.15);
}

.feature-card:nth-child(2) .feature-icon {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.15);
}

.feature-card:nth-child(3) .feature-icon {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.15);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Popular Destinations Section */
.popular {
  padding-bottom: 8rem;
}

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

.place-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.place-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.place-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.place-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.place-card:hover .place-img {
  transform: scale(1.1);
}

.place-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0.3rem 0.8rem;
  background: rgba(7, 11, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  backdrop-filter: blur(4px);
}

.place-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.place-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.place-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.place-price span {
  font-weight: 700;
  color: var(--success);
  font-size: 1rem;
}

/* AI Travel Planner (Form Wizard) */
.planner-section {
  padding: 8rem 0;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.03) 50%, transparent 100%);
}

.planner-container {
  max-width: 850px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .planner-container {
    padding: 2rem 1.25rem;
  }
}

.planner-container::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.wizard-step-progress {
  position: absolute;
  top: 20px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-gradient);
  z-index: 1;
  transition: width var(--transition-normal);
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
  cursor: pointer;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.step-indicator.active .step-num {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--text-dark);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.step-indicator.completed .step-num {
  border-color: var(--success);
  background: var(--success);
  color: var(--text-dark);
}

.step-title {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.step-indicator.active .step-title {
  color: var(--primary);
}
.step-indicator.completed .step-title {
  color: var(--success);
}

@media (max-width: 576px) {
  .step-title {
    display: none;
  }
}

/* Wizard Panels */
.wizard-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.wizard-panel.active {
  display: block;
}

.panel-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.panel-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Grid Selections */
.grid-select {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.custom-card-input {
  position: relative;
  cursor: pointer;
}

.custom-card-input input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.card-input-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
}

.card-input-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  transition: var(--transition-fast);
}

.card-input-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
}

.card-input-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.custom-card-input:hover .card-input-content {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.custom-card-input input:checked + .card-input-content {
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--primary);
  box-shadow: inset 0 0 10px rgba(14, 165, 233, 0.1), 0 0 15px rgba(14, 165, 233, 0.1);
}

.custom-card-input input:checked + .card-input-content .card-input-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--primary));
}

/* Multi-select interest and transports */
.interest-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.transport-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* Inputs & Forms controls */
.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.input-num-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 200px;
}

.input-num-btn {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.input-num-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.input-number {
  width: 60px;
  height: 45px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--text-main);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
}

.input-number::-webkit-inner-spin-button, 
.input-number::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-budget:focus {
  border-color: var(--primary) !important;
  background: rgba(14, 165, 233, 0.08) !important;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.2) !important;
}

.input-budget::-webkit-inner-spin-button,
.input-budget::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Wizard Navigation */
.wizard-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

.wizard-footer .btn {
  min-width: 120px;
}

/* Simulated AI Loading Overlay */
.ai-loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 11, 19, 0.95);
  z-index: 10;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}

.ai-loader.active {
  display: flex;
}

.ai-sparkle {
  position: relative;
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 2rem;
  animation: pulseGlow 1.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.7; filter: drop-shadow(0 0 5px var(--primary)); }
  50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 20px var(--primary)); }
  100% { transform: scale(0.9); opacity: 0.7; filter: drop-shadow(0 0 5px var(--primary)); }
}

.ai-loader-text {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ai-loader-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 400px;
  height: 1.5rem;
  overflow: hidden;
  position: relative;
}

.typewriter {
  display: inline-block;
  white-space: nowrap;
  border-right: 2px solid var(--primary);
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--primary); }
}

/* AI Recommendation Results Section */
.results-section {
  display: none;
  padding-bottom: 8rem;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.results-section.active {
  display: block;
}

.results-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.results-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.results-header p {
  color: var(--text-muted);
}

/* Multi Recommendations Tabs/Split */
.results-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
}

@media (max-width: 992px) {
  .results-layout {
    grid-template-columns: 1fr;
  }
}

.recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.recommendation-tab:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.15);
}

.recommendation-tab.active {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
}

.tab-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.recommendation-tab.active .tab-rank {
  background: var(--primary);
  color: var(--text-dark);
}

.tab-meta h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.tab-match {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Recommendation Detail Content */
.recommendation-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
}

.detail-hero {
  position: relative;
  height: 300px;
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(7, 11, 19, 0.2) 0%, rgba(7, 11, 19, 0.9) 100%);
}

.detail-title-block {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
}

.detail-region {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.detail-title {
  font-size: 2.25rem;
  font-weight: 800;
}

@media (max-width: 576px) {
  .detail-title-block {
    padding: 1.5rem;
  }
  .detail-title {
    font-size: 1.75rem;
  }
}

.detail-body {
  padding: 2.5rem;
}

@media (max-width: 576px) {
  .detail-body {
    padding: 1.5rem;
  }
}

.detail-grid-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.meta-value {
  font-weight: 600;
  font-size: 1rem;
}

.meta-value.price {
  color: var(--success);
  font-weight: 700;
}

.detail-desc-block {
  margin-bottom: 2.5rem;
}

.detail-desc-block h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.detail-desc-block p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Spot Highlights */
.detail-highlights {
  margin-bottom: 2.5rem;
}

.detail-highlights h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.highlights-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.highlight-pill {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlight-pill::before {
  content: '✦';
  color: var(--primary);
}

/* Itinerary Area */
.detail-itinerary {
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
}

.detail-itinerary h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.itinerary-timeline {
  position: relative;
  padding-left: 2rem;
}

.itinerary-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 6px;
  width: 2px;
  height: calc(100% - 24px);
  background: var(--primary-gradient);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: -2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  border: 3px solid #0f172a;
  box-shadow: 0 0 10px var(--success);
}

.timeline-item:nth-child(even) .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.timeline-day {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Results action buttons */
.results-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3.5rem;
}

/* Footer Section */
footer {
  background: #04070c;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 250px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  color: var(--text-dark);
  border-color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* General Utilities */
.hidden {
  display: none !important;
}

/* Quick Budget Chips & Formatted Display */
.budget-formatted-preview {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.budget-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.budget-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-main);
}

.budget-chip:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.budget-chip.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

