/* ===== Home Page Styles ===== */

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero-swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-swiper .swiper-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
}

.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(26, 115, 232, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 40px;
}

/* Search Bar */
.hero-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  padding: 6px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.search-field {
  flex: 1;
  padding: 0 16px;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 12px 0;
  border: none;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: transparent;
}

.search-field input::placeholder {
  color: var(--text-light);
}

.search-btn {
  border-radius: 50px;
  padding: 12px 32px;
  flex-shrink: 0;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Card enhancements for home */
.card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  margin-top: auto;
  display: inline-block;
  width: 121px;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* Featured Tours Cards - Button fixed at bottom */
.featured-tours .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-tours .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-tours .card-text {
  flex: 1;
}


/* Spot Cards */
.spot-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.spot-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.spot-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.spot-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.spot-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.spot-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* City Cards */
.city-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  display: block;
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.city-card:hover img {
  transform: scale(1.08);
}

.city-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.city-overlay h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Testimonial Cards */
.testimonial-swiper {
  padding: 20px 0 50px;
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: auto;
  display: flex;
  flex-direction: column;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-header h4 {
  font-size: 1rem;
  font-weight: 600;
}

.testimonial-header time {
  font-size: 0.8rem;
  color: var(--text-light);
}

.testimonial-tour {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin: 8px 0;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* Swiper Navigation for Testimonials */
.testimonial-swiper .swiper-pagination {
  bottom: 0;
}

.testimonial-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--border-color);
  opacity: 1;
}

.testimonial-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

.testimonial-swiper .swiper-button-prev,
.testimonial-swiper .swiper-button-next {
  color: var(--primary);
  background: var(--bg-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.testimonial-swiper .swiper-button-prev::after,
.testimonial-swiper .swiper-button-next::after {
  font-size: 18px;
  font-weight: bold;
}

.testimonial-swiper .swiper-button-prev:hover,
.testimonial-swiper .swiper-button-next:hover {
  background: var(--primary);
  color: #fff;
}

/* Why Choose Us */
.why-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  background: var(--bg-light);
}

.contact-box {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.expert-avatars.expert-avatars {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.expert {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.expert-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 8px;
}

.expert-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.expert-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-word;
  max-width: 100px;
  line-height: 1.4;
}

.expert span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Home Responsive */
@media (max-width: 768px) {
  .hero {
    height: 480px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 8px;
  }

  .search-field {
    width: 100%;
    padding: 0;
  }

  .search-field input,
  .search-field select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
  }

  .search-btn {
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .city-card {
    height: 160px;
  }

  .expert-avatars {
    gap: 20px;
    justify-content: center;
  }

  .expert {
    min-width: 70px;
  }

  .expert-avatar,
  .expert-avatar-img {
    width: 48px;
    height: 48px;
  }

  .expert-name {
    font-size: 0.8rem;
    max-width: 90px;
  }
}
