/* ============================================================
   TripToOdisha — Global Stylesheet
   Premium travel aesthetic · Minimalist · Dark & Rich
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --primary: #0d6efd;
  --primary-dark: #0b5ed7;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --glass: rgba(255, 255, 255, 0.92);
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.18);
  --transition: 0.28s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  background: #f8fafc;
  padding-top: 70px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Utilities ---------- */
.shadow-soft {
  box-shadow: var(--shadow-card) !important;
}

.rounded-xl {
  border-radius: var(--radius-xl) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.text-gradient {
  background: linear-gradient(135deg, #0d6efd, #00c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Navbar ---------- */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.97) !important;
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  background-color: #0f172a;
  /* Fallback color */
  background-image:
    linear-gradient(to bottom,
      rgba(10, 20, 40, 0.60) 0%,
      rgba(10, 20, 40, 0.30) 50%,
      rgba(10, 20, 40, 0.80) 100%),
    url('/images/konark.png') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  color: #fff;
  padding: 120px 0 80px;
  margin-top: -20px;
  overflow: hidden;
}


.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: #f8fafc;
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  opacity: 0.88;
  max-width: 600px;
}

/* ---------- Planner Card ---------- */
.planner-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.planner-card .form-select,
.planner-card .form-control {
  border-radius: 50px;
  border: 1.5px solid #e2e8f0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.planner-card .form-select:focus,
.planner-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* ---------- Section Headings ---------- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

/* ---------- Destination Cards ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 991px) {
  .dest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .dest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .dest-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.dest-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  display: block;
  border: none;
  padding: 0;
  width: 100%;
}

.dest-card:hover,
.dest-card:focus-visible {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.dest-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.dest-card:hover .dest-card-img {
  transform: scale(1.06);
}

.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(5, 10, 25, 0.80) 0%,
      rgba(5, 10, 25, 0.20) 55%,
      transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
}

.dest-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.dest-card-type {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  margin-top: 2px;
}

.dest-card-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  transition: background var(--transition);
}

.dest-card:hover .dest-card-icon {
  background: var(--accent);
}

/* Loading shimmer on card click */
.dest-card.loading .dest-card-overlay {
  background: rgba(13, 110, 253, 0.55);
}

.dest-card.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  animation: shimmer 1s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ---------- How It Works ---------- */
.how-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid #f1f5f9;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.step-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
}

.step-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

/* ---------- Why Odisha (SEO) ---------- */
.why-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #e2e8f0;
  border-radius: 2rem;
  padding: 60px 50px;
}

.why-section h2 {
  color: #fff;
}

.why-section p {
  color: #94a3b8;
  line-height: 1.85;
}

.why-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 1rem;
}

/* ---------- Stats Bar ---------- */
.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ---------- Attraction Cards (existing) ---------- */
.attraction-card {
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.attraction-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.attraction-img {
  height: 180px;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 56px 0 32px;
  border-radius: 2rem 2rem 0 0;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color var(--transition);
}

.footer-link:hover {
  color: #fff;
}

/* ---------- Choices.js theme ---------- */
.choices__inner {
  border-radius: 50px !important;
  background-color: #fff;
  border: 1.5px solid #e2e8f0 !important;
  padding: 6px 12px !important;
  min-height: 46px;
  font-family: 'Outfit', sans-serif;
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15) !important;
}

.choices__input {
  background-color: transparent !important;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  margin-bottom: 0 !important;
}

.choices__list--multiple .choices__item {
  background-color: var(--primary);
  border: none;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  padding: 3px 10px;
}

.choices__list--multiple .choices__item.is-highlighted {
  background-color: var(--primary-dark);
}

.choices__list--dropdown {
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  font-family: 'Outfit', sans-serif;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #eff6ff;
  color: var(--primary);
}

.choices__placeholder {
  opacity: 0.55;
}

/* ---------- Map Placeholder ---------- */
.map-placeholder {
  background-color: #e9ecef;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-weight: 500;
}

/* ---------- Auto-Styled Content Tables ---------- */
.main-content table:not(.table) {
  width: 100%;
  margin-bottom: 2.5rem;
  color: var(--text-dark);
  vertical-align: top;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: var(--radius-lg);
  border-style: hidden;
  /* hides external borders to allow border-radius */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.main-content table:not(.table) thead th,
.main-content table:not(.table) tr:first-child th,
.main-content table:not(.table) tr:first-child td {
  background-color: #f1f5f9;
  border-bottom: 2px solid #cbd5e1;
  font-weight: 700;
  color: var(--surface-2);
  padding: 1rem 1.25rem;
  text-align: left;
}

.main-content table:not(.table) tbody td,
.main-content table:not(.table) tr td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  vertical-align: middle;
}

.main-content table:not(.table) tr td:last-child,
.main-content table:not(.table) tr th:last-child {
  border-right: none;
}

.main-content table:not(.table) tbody tr:hover,
.main-content table:not(.table) tr:nth-child(n+2):hover {
  background-color: #f8fafc;
}