/* ============================================
   VIAGGIANOW HOMEPAGE STYLES v2
   Modern, premium design with Glassmorphism
   ============================================ */

:root {
  --primary-color: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #22d3ee;
  --secondary-color: #1e3a5f;
  --accent-color: #f97316;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* ============================================
   HERO SECTION WITH SLIDER
   ============================================ */

.hero-section {
  position: relative;
  height: 90vh;
  min-height: 700px;
  max-height: 950px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(8, 145, 178, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 15px;
  max-width: 1320px;
  margin: 0 auto;
}

.hero-subtitle {
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.hero-title span {
  color: var(--primary-light);
}

/* ============================================
   GLASSMORPHISM SEARCH BOX
   ============================================ */

.hero-search-box {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 20px 25px 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  width: 100%;
  max-width: 1200px;
  margin-top: 1.25rem;
}

/* Hero Nav Tabs */
.hero-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 15px;
}

.hero-nav-tabs .nav-item {
  margin: 0;
}

.hero-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: inherit;
}

.hero-nav-link:hover {
  color: var(--primary-color);
  background: rgba(8, 145, 178, 0.08);
}

.hero-nav-link.active {
  color: #fff;
  background: var(--primary-color);
}

.hero-nav-link svg {
  width: 18px;
  height: 18px;
}

/* Hero Tab Content */
.hero-search-content {
  min-height: 60px;
}

.hero-tab-pane {
  display: none;
}

.hero-tab-pane.active {
  display: block;
}

/* Fix internal search forms */
.hero-search-box .tab-content {
  padding: 0;
}

.hero-search-box .tab-pane {
  padding: 0;
}

.hero-search-box .row {
  margin: 0 -8px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}

.hero-search-box [class*="col-"] {
  padding: 0 8px;
  margin-bottom: 0;
}

.hero-search-box .form-floating,
.hero-search-box .form-group {
  margin-bottom: 0;
  width: 100%;
}

.hero-search-box .form-control,
.hero-search-box .form-select,
.hero-search-box select,
.hero-search-box input[type="text"],
.hero-search-box input[type="date"] {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius-sm) !important;
  height: 52px !important;
  font-size: 0.9rem !important;
  padding: 12px 15px !important;
  transition: var(--transition);
  width: 100% !important;
}

/* Labels above form fields */
.hero-search-box label {
  font-size: 0.7rem !important;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  display: block;
}

/* Search button styling */
.hero-search-box .btn-primary,
.hero-search-box button[type="submit"],
.hero-search-box .btn-search {
  background: var(--primary-color) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  height: 52px !important;
  min-width: 52px;
  font-weight: 600 !important;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-search-box .form-control:focus,
.hero-search-box .form-select:focus,
.hero-search-box select:focus,
.hero-search-box input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15) !important;
  outline: none !important;
}

.hero-search-box label {
  font-size: 0.75rem !important;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-search-box .btn-primary,
.hero-search-box button[type="submit"] {
  background: var(--primary-color) !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  height: 50px !important;
  font-weight: 600 !important;
  padding: 0 25px !important;
  transition: var(--transition);
}

.hero-search-box .btn-primary:hover,
.hero-search-box button[type="submit"]:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 2.5rem;
}

.hero-stat {
  text-align: left;
  position: relative;
}

.hero-stat::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-stat:last-child::after {
  display: none;
}

.hero-stat-number {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 600;
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Slider Navigation */
.hero-slider-nav {
  position: absolute;
  bottom: 40px;
  right: 5%;
  z-index: 20;
  display: flex;
  gap: 12px;
}

.hero-slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.hero-slider-dot.active {
  background: var(--primary-light);
  border-color: #fff;
  transform: scale(1.2);
}

/* ============================================
   COLORIZED FEATURES SECTION
   ============================================ */

.stats-section {
  background: var(--bg-white);
  /* padding: 80px 0; */
  border-bottom: 1px solid #e2e8f0;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-8px);
}

.stat-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
  position: relative;
}

/* Colorized icons - each feature gets unique color */
.stat-item:nth-child(1) .stat-icon {
  background: linear-gradient(
    135deg,
    rgba(8, 145, 178, 0.15) 0%,
    rgba(34, 211, 238, 0.15) 100%
  );
}
.stat-item:nth-child(1) .stat-icon svg {
  color: var(--primary-color);
  stroke: var(--primary-color);
}

.stat-item:nth-child(2) .stat-icon {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.15) 0%,
    rgba(251, 146, 60, 0.15) 100%
  );
}
.stat-item:nth-child(2) .stat-icon svg {
  color: var(--accent-color);
  stroke: var(--accent-color);
}

.stat-item:nth-child(3) .stat-icon {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15) 0%,
    rgba(52, 211, 153, 0.15) 100%
  );
}
.stat-item:nth-child(3) .stat-icon svg {
  color: var(--accent-green);
  stroke: var(--accent-green);
}

.stat-item:nth-child(4) .stat-icon {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(167, 139, 250, 0.15) 100%
  );
}
.stat-item:nth-child(4) .stat-icon svg {
  color: var(--accent-purple);
  stroke: var(--accent-purple);
}

.stat-item:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon svg {
  width: 36px;
  height: 36px;
}

.stat-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   DESTINATIONS SECTION - ENHANCED
   ============================================ */

.destinations-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: inline-block;
  padding: 5px 15px;
  background: rgba(8, 145, 178, 0.1);
  border-radius: 20px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.section-title span {
  color: var(--primary-color);
}

/* Destination Cards */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.dest-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 350px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
  display: block;
  text-decoration: none;
}

.dest-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.dest-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.dest-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  transition: var(--transition);
}

.dest-card:hover .dest-card-overlay {
  padding-bottom: 25px;
}

.dest-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.dest-card-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.dest-card-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.dest-card:hover .dest-card-price {
  background: var(--primary-light);
  transform: translateX(5px);
}

.dest-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-color);
  color: #fff;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* ============================================
   ABOUT SECTION - ENHANCED
   ============================================ */

.about-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.03)'%3E%3Cpath d='M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-subtitle {
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: inline-block;
  padding: 5px 15px;
  background: rgba(34, 211, 238, 0.15);
  border-radius: 20px;
}

.about-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
}

.about-title span {
  color: var(--primary-light);
}

.about-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 35px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.about-feature:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-feature-text {
  font-size: 0.95rem;
  font-weight: 600;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-color);
  color: #fff;
  padding: 16px 35px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}

.about-btn:hover {
  background: var(--primary-light);
  color: var(--secondary-color);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(34, 211, 238, 0.35);
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .destination-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-search-box {
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 25px;
  }

  .destination-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .section-title,
  .about-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-stat::after {
    display: none;
  }

  .hero-search-tabs {
    flex-wrap: wrap;
  }

  .hero-search-box {
    padding: 15px;
  }

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

  .section-title {
    font-size: 1.75rem;
  }

  .about-title {
    font-size: 1.75rem;
  }

  .stats-section {
    /* padding: 50px 0; */
  }

  .stat-item {
    padding: 20px 10px;
  }

  .hero-content {
    margin-top: 80px;
  }
  h1.hero-title {
    text-align: center !important;
    width: 100%;
    max-width: 100%;
  }
  p.hero-subtitle {
    text-align: center;
  }
  .hero-stats {
    display: flex;
    justify-content: center;
  }
}

.glass-search {
  border: none !important;
}
