/* ============================================
   HOMEPAGE STYLES
   Hero, offers, parks, hotels, features, CTA
   ============================================ */

/* ===========================================
   HEADER OVERRIDES (Transparent to White)
   Same pattern as hotels-index.css
   =========================================== */
body:has(.homepage-hero) .header {
  background: transparent;
  box-shadow: none;
  border-bottom: none;
  backdrop-filter: none;
}

body:has(.homepage-hero) .header .logo {
  color: white;
}

body:has(.homepage-hero) .header .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

body:has(.homepage-hero) .header .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

body:has(.homepage-hero) .header .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
}

body:has(.homepage-hero) .header .btn-primary {
  background: white;
  color: var(--disney-blue);
}

body:has(.homepage-hero) .header .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Scrolled state - white header */
body:has(.homepage-hero) .header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-color);
}

body:has(.homepage-hero) .header.scrolled .logo {
  color: var(--disney-blue);
}

body:has(.homepage-hero) .header.scrolled .nav-link {
  color: var(--text-primary);
}

body:has(.homepage-hero) .header.scrolled .nav-link:hover {
  background: var(--magic-gradient-soft);
  color: var(--disney-blue);
}

body:has(.homepage-hero) .header.scrolled .nav-link.active {
  background: var(--magic-gradient-soft);
  color: var(--disney-blue);
}

body:has(.homepage-hero) .header.scrolled .btn-primary {
  background: var(--magic-gradient);
  color: white;
}

/* Mobile header buttons - transparent state */
body:has(.homepage-hero) .header .booking-toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

body:has(.homepage-hero) .header .booking-toggle-btn:hover,
body:has(.homepage-hero) .header .booking-toggle-btn.active {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

body:has(.homepage-hero) .header .mobile-menu-btn span {
  background: white;
}

/* Mobile header buttons - scrolled state */
body:has(.homepage-hero) .header.scrolled .booking-toggle-btn {
  background: var(--magic-gradient-soft);
  color: #6a11cb;
}

body:has(.homepage-hero) .header.scrolled .booking-toggle-btn:hover,
body:has(.homepage-hero) .header.scrolled .booking-toggle-btn.active {
  background: var(--magic-gradient);
  color: white;
}

body:has(.homepage-hero) .header.scrolled .mobile-menu-btn span {
  background: var(--text-primary);
}

/* Dropdown menu styling adjustments for transparent header */
body:has(.homepage-hero) .header .dropdown-menu,
body:has(.homepage-hero) .header .mega-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
}

body:has(.homepage-hero) .header .dropdown-link,
body:has(.homepage-hero) .header .mega-menu-link {
  color: var(--text-primary);
}

body:has(.homepage-hero) .header .mega-menu h4 {
  color: var(--text-primary);
}

/* Booking bar transparent state */
body:has(.homepage-hero) .booking-bar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

body:has(.homepage-hero) .booking-bar .booking-bar-title {
  color: white;
}

body:has(.homepage-hero) .booking-bar .booking-field-label {
  color: rgba(255, 255, 255, 0.8);
}

body:has(.homepage-hero) .booking-bar .booking-field-input {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

body:has(.homepage-hero) .booking-bar .booking-field-input i {
  color: rgba(255, 255, 255, 0.7);
}

body:has(.homepage-hero) .booking-bar .booking-field-input input,
body:has(.homepage-hero) .booking-bar .booking-field-input select {
  color: white;
}

body:has(.homepage-hero) .booking-bar .booking-field-input input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Scrolled booking bar */
body:has(.homepage-hero) .booking-bar.scrolled {
  background: white;
  backdrop-filter: none;
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

body:has(.homepage-hero) .booking-bar.scrolled .booking-bar-title {
  color: var(--disney-blue);
}

body:has(.homepage-hero) .booking-bar.scrolled .booking-field-label {
  color: var(--text-secondary);
}

body:has(.homepage-hero) .booking-bar.scrolled .booking-field-input {
  background: var(--background-color);
  border-color: var(--border-color);
  color: var(--text-color);
}

body:has(.homepage-hero) .booking-bar.scrolled .booking-field-input i {
  color: var(--text-secondary);
}

body:has(.homepage-hero) .booking-bar.scrolled .booking-field-input input,
body:has(.homepage-hero) .booking-bar.scrolled .booking-field-input select {
  color: var(--text-color);
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  padding: var(--spacing-10) 0;
  overflow: hidden;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Homepage hero extends behind header */
.homepage-hero {
  margin-top: calc(-1 * var(--header-height));
  min-height: calc(100vh + var(--header-height));
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(106, 17, 203, 0.9) 0%,
    rgba(106, 17, 203, 0.7) 30%,
    rgba(237, 2, 130, 0.4) 60%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: white;
  margin-bottom: var(--spacing-5);
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge i {
  color: var(--disney-gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-5);
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-6);
  max-width: 550px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-8);
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
}

/* Hero Promo Cards */
.hero-promo-cards {
  display: flex;
  gap: var(--spacing-4);
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.hero-promo-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-3) var(--spacing-4);
  transition: all var(--transition-base);
}

.hero-promo-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

.promo-icon-success {
  background: var(--success-color);
}

.promo-icon-pink {
  background: var(--disney-pink);
}

.promo-title {
  font-weight: var(--font-weight-semibold);
  color: white;
  font-size: var(--font-size-sm);
}

.promo-subtitle {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.7);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===========================================
   OFFERS SECTION
   =========================================== */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--spacing-6);
}

.offer-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
  position: relative;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.offer-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.offer-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.offer-card:hover .offer-card-image img {
  transform: scale(1.05);
}

.offer-badge {
  position: absolute;
  top: var(--spacing-4);
  left: var(--spacing-4);
  padding: var(--spacing-2) var(--spacing-4);
  background: var(--disney-pink);
  color: white;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
}

.offer-card-content {
  padding: var(--spacing-5);
}

.offer-card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-3);
}

.offer-card-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-4);
  line-height: var(--line-height-relaxed);
}

.offer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offer-price {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.offer-price strong {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--disney-pink);
}

/* ===========================================
   PARKS SHOWCASE
   =========================================== */
.parks-showcase {
  background: var(--magic-gradient);
  border-radius: var(--radius-xl);
  padding: var(--spacing-10);
  position: relative;
  overflow: hidden;
}

.parks-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.parks-showcase-content {
  position: relative;
  z-index: 1;
  color: white;
}

.parks-showcase-header {
  text-align: center;
  margin-bottom: var(--spacing-8);
}

.parks-showcase-title {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-3);
  color: #ffffff;
}

.parks-showcase-subtitle {
  opacity: 0.9;
  font-size: var(--font-size-lg);
}

.parks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-4);
}

@media (max-width: 768px) {
  .parks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.park-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-5);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.park-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  color: white;
}

.park-item-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-3);
  font-size: var(--font-size-xl);
}

.park-item-title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-1);
}

.park-item-subtitle {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

/* ===========================================
   HOTELS SECTION
   =========================================== */
.hotels-section {
  background: white;
}

.hotels-scroll {
  overflow-x: auto;
  margin: 0 calc(var(--spacing-5) * -1);
  padding: var(--spacing-5);
  padding-top: var(--spacing-6);
  padding-bottom: var(--spacing-8);
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.hotels-scroll::-webkit-scrollbar {
  display: none;
}

.hotels-scroll:active {
  cursor: grabbing;
}

.hotels-track {
  display: flex;
  gap: var(--spacing-5);
  width: max-content;
}

.hotel-card {
  width: 320px;
  flex-shrink: 0;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
}

.hotel-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.hotel-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.hotel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hotel-card:hover .hotel-card-image img {
  transform: scale(1.05);
}

.hotel-stars {
  position: absolute;
  bottom: var(--spacing-3);
  left: var(--spacing-3);
  display: flex;
  gap: 2px;
  color: var(--disney-gold);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hotel-card-content {
  padding: var(--spacing-5);
}

.hotel-card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-2);
}

.hotel-card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-3);
}

.hotel-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
}

.hotel-tag {
  padding: var(--spacing-1) var(--spacing-3);
  background: var(--background-color);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* ===========================================
   FEATURES SECTION
   =========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-6);
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-6);
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--magic-gradient);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition-base);
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--magic-gradient-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  color: #6a11cb;
  margin-bottom: var(--spacing-4);
}

.feature-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-3);
}

.feature-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
  background: linear-gradient(135deg, var(--disney-blue) 0%, #1a365d 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(237, 2, 130, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(106, 17, 203, 0.2) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 1;
  color: white;
}

.cta-title {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-4);
  color: #ffffff;
}

.cta-description {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: var(--spacing-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  margin-top: var(--spacing-6);
  flex-wrap: wrap;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.cta-contact-item i {
  font-size: var(--font-size-lg);
  color: var(--disney-pink);
}

/* ===========================================
   RESPONSIVE - TABLET
   =========================================== */
@media (max-width: 1024px) {
  .hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-promo-cards {
    justify-content: center;
  }
}

/* ===========================================
   RESPONSIVE - MOBILE
   =========================================== */
@media (max-width: 768px) {
  .hero {
    padding: var(--spacing-8) 0;
    min-height: 100vh;
    background-position: center top;
    background-attachment: scroll; /* Fixed attachment breaks on iOS/mobile */
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-actions {
    flex-direction: column;
    margin-bottom: var(--spacing-6);
  }

  .hero-promo-cards {
    flex-direction: column;
    gap: var(--spacing-3);
  }

  .hero-promo-card {
    justify-content: flex-start;
  }

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

  .parks-showcase {
    padding: var(--spacing-6);
  }

  .cta-section {
    padding: var(--spacing-8) var(--spacing-5);
  }

  .cta-title {
    font-size: var(--font-size-2xl);
  }
}
