/**
 * Home V2 - Styles
 */

.home-v2 {
  font-family: 'Nunito', sans-serif;
}

/* Promo Banner */
.promo-banner-link {
  text-decoration: none;
  display: block;
  position: sticky;
  top: var(--navbar-height, 56px);
  z-index: 990;
}

.promo-banner {
  background: linear-gradient(90deg,
    #0f0c29 0%,
    #302b63 30%,
    #24243e 60%,
    #302b63 80%,
    #0f0c29 100%
  );
  background-size: 300% auto;
  animation: promo-shimmer 8s linear infinite;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
  background-size: 200% auto;
  animation: promo-gloss 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes promo-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

@keyframes promo-gloss {
  0%, 100% { background-position: -100% center; }
  50%       { background-position: 200% center; }
}

.promo-carousel {
  display: flex;
  animation: promo-scroll 15s linear infinite;
}

.promo-banner:hover .promo-carousel {
  animation-play-state: paused;
}

.promo-slide {
  flex-shrink: 0;
  width: 100%;
  padding: 9px 20px;
  text-align: center;
  color: rgba(255,255,255,0.92);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.promo-slide__icon {
  font-size: 0.7rem;
  opacity: 0.7;
}

.promo-slide__sep {
  opacity: 0.3;
  font-weight: 300;
}

.promo-slide__highlight {
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.2px;
}

.promo-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 20px;
  padding: 1px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c4b5fd;
  margin-left: 4px;
  transition: background 0.2s;
}

.promo-banner:hover .promo-slide__cta {
  background: rgba(167,139,250,0.25);
}

@media (max-width: 767px) {
  .promo-slide {
    padding: 6px 16px;
    font-size: 0.7rem;
    gap: 6px;
  }
  .promo-slide__sep,
  .promo-slide__highlight,
  .promo-slide__cta {
    display: none;
  }
}

@keyframes promo-scroll {
  0%, 28%   { transform: translateX(0); }
  33%, 61%  { transform: translateX(-100%); }
  66%, 94%  { transform: translateX(-200%); }
  99%, 100% { transform: translateX(0); }
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: visible;
  z-index: 1;
  min-height: 75vh; /* Reduced from 100dvh */
  max-height: 850px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center; /* Back to center but with controlled total height */
  padding: 80px 0;
}

@media (min-width: 992px) {
  .hero-section {
    min-height: 650px;
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      120% 100% at 50% 40%,
      rgba(17, 12, 26, 0.62) 0%,
      rgba(17, 12, 26, 0.4) 40%,
      rgba(17, 12, 26, 0.12) 68%,
      rgba(17, 12, 26, 0) 85%
    ),
    linear-gradient(
      135deg,
      rgba(233, 30, 99, 0.28) 0%,
      rgba(123, 104, 238, 0.24) 50%,
      rgba(0, 206, 209, 0.18) 100%
    );
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-search-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .hero-search-title h1 {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }

  .hero-search-title p {
    font-size: 0.95rem;
  }

  .hero-search-wrapper {
    gap: 0.85rem;
  }

  .hero-section {
    min-height: auto;
    padding: 20px 0 24px;
  }

  .featured-place-badge {
    display: none;
  }
}

.hero-search-title {
  text-align: center;
  margin-bottom: 30px;
  width: 100%;
}

.hero-search-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 8px 30px rgba(0, 0, 0, 0.55);
}

.hero-search-title p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Featured Place Badge */
.featured-place-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
  max-width: 300px;
}

.featured-place-badge .place-name {
  font-weight: 700;
  font-size: 1rem;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.featured-place-badge .place-location {
  font-size: 0.875rem;
  color: #666;
  margin: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Search Container */
.search-container {
  position: relative;
  z-index: 100;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
}

/* Text Colors */
.text-gradient {
  color: #E91E63 !important;
  font-weight: 700;
}

.text-gradient-secondary {
  color: #7B68EE !important;
  font-weight: 700;
}

/* Category Cards - Airbnb Style */
.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #1f2937;
}

.category-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.category-card:hover .category-card-image {
  transform: scale(1.08);
}

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
  transition: background 0.3s ease;
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: white;
  z-index: 2;
}

.category-card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.category-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-card-count {
  font-size: 0.875rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.category-card-count i {
  font-size: 0.75rem;
}

/* City Cards - Professional & Fun */
.city-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  border: 2px solid #f3f4f6;
  height: 100%;
}

.city-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #E91E63;
}

.city-card-body {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.city-emoji-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.city-card:hover .city-emoji-wrapper {
  background: #E91E63;
  transform: scale(1.1) rotate(-8deg);
}

.city-card:nth-child(4n+1) .city-emoji-wrapper i { color: #E91E63 !important; }
.city-card:nth-child(4n+2) .city-emoji-wrapper i { color: #00CED1 !important; }
.city-card:nth-child(4n+3) .city-emoji-wrapper i { color: #8b5cf6 !important; }
.city-card:nth-child(4n+4) .city-emoji-wrapper i { color: #f59e0b !important; }

.city-card:hover .city-emoji-wrapper i {
  color: white !important;
}

.city-info {
  flex: 1;
  min-width: 0;
}

.city-name {
  font-size: 1.125rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.125rem;
}

.city-count {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
}

.city-arrow {
  color: #e2e8f0;
  transition: all 0.3s ease;
}

.city-card:hover .city-arrow {
  color: #E91E63;
  transform: translateX(4px);
}

/* How It Works Section - Modern & Dynamic */
.how-it-works {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 110px; /* clears the sticky navbar (61px) + promo banner (41px) */
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  max-width: 1100px;
  margin: 4rem auto 0;
  padding: 0 1rem;
}

@media (min-width: 992px) {
  .steps-container::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: #f1f5f9;
    z-index: 0;
    border-radius: 2px;
  }
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.step-number {
  width: 90px;
  height: 90px;
  border-radius: 32px;
  background: white;
  border: 4px solid #f1f5f9;
  color: #1f2937;
  font-family: 'Fredoka', cursive;
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.step-item:nth-child(1) .step-number { border-color: #ffdeeb; color: #E91E63; }
.step-item:nth-child(2) .step-number { border-color: #d1f7f7; color: #00CED1; }
.step-item:nth-child(3) .step-number { border-color: #fef3c7; color: #f59e0b; }

.step-item:hover .step-number {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.step-icon {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  border: 1px solid #f1f5f9;
}

.step-item:nth-child(1) .step-icon { color: #E91E63; }
.step-item:nth-child(2) .step-icon { color: #00CED1; }
.step-item:nth-child(3) .step-icon { color: #f59e0b; }

.step-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1f2937;
}

.step-description {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: #f8fafc;
  border-radius: 24px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: white;
  border-color: #f1f5f9;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.benefit-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #334155;
}

/* SEO Section */
.seo-tag {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  margin: 6px;
}

.seo-tag:hover {
  background: white;
  border-color: #E91E63;
  color: #E91E63;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(233, 30, 99, 0.12);
}

/* Litepicker Custom Styles */
.litepicker {
  font-family: 'Nunito', sans-serif;
  border-radius: 12px;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
  border: none;
}

.litepicker .month-item-header {
  background: #E91E63;
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 1rem;
}

.litepicker .month-item-header .month-item-name { color: white; font-weight: 600; }
.litepicker .month-item-header .button-previous-month,
.litepicker .month-item-header .button-next-month { color: white; }

.litepicker .day-item.is-start-date,
.litepicker .day-item.is-end-date {
  background: #E91E63;
  color: white;
  font-weight: 600;
}

.litepicker .day-item.is-in-range {
  background: rgba(233, 30, 99, 0.15);
  color: #E91E63;
}

/* FAQ section (prefixed home-faq-* to avoid colliding with the unrelated
   .faq-item card component already defined in main.css) */
.home-faq {
  background: #ffffff;
  scroll-margin-top: 110px;
}

.home-faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.home-faq-item {
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #f1f5f9;
  padding: 1.5rem 0;
  transition: none;
}

.home-faq-item:hover {
  transform: none;
  box-shadow: none;
}

.home-faq-item:first-child {
  padding-top: 0;
}

.home-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
}

.home-faq-question::marker,
.home-faq-question::-webkit-details-marker {
  display: none;
}

.home-faq-chevron {
  color: #94a3b8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.home-faq-item[open] .home-faq-chevron {
  transform: rotate(180deg);
}

.home-faq-item[open] .home-faq-question {
  color: #E91E63;
}

.home-faq-answer {
  padding-top: 0.9rem;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 65ch;
}

.home-faq-answer a {
  color: #E91E63;
  font-weight: 600;
}

/* Button improvements */
.btn-primary {
  background: #E91E63;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
  background: #C2185B;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}
