/*======================================================================
  ColourQ Holidays - Main Stylesheet
  Version: 1.0
======================================================================*/

/*-----------------------------------------------------
  1. CSS Variables (Root)
-----------------------------------------------------*/
:root {
  --primary-color: #ea6721;
  --primary-dark: #d35400;
  --secondary-color: #1f2937;
  --text-dark: #111827;
  --text-light: #4b5563;
  --background-light: #f8fafc;
  --background-white: #ffffff;
  --font-family: 'Inter', sans-serif;
}

/*-----------------------------------------------------
  2. General & Body Styles
-----------------------------------------------------*/
body {
  font-family: var(--font-family);
  background-color: var(--background-light);
  color: var(--text-light);
}

.hero-placeholder {
  height: 90px;
}

/*-----------------------------------------------------
  3. Header Styles
-----------------------------------------------------*/
#main-header {
  height: 90px;
  background: var(--primary-color);
  position: fixed;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#main-header.scrolled {
  height: 75px;
  background: var(--background-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-img {
  height: 50px;
  transition: height 0.3s ease-in-out;
}

#main-header.scrolled .logo-img {
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--background-white);
  transition: all 0.3s ease-in-out;
}

#main-header.scrolled .logo-text {
  color: var(--primary-color);
}

.nav-link {
  font-weight: 600;
  color: var(--background-white);
  transition: color 0.3s ease-in-out;
  position: relative;
  padding-bottom: 6px;
}

#main-header.scrolled .nav-link {
  color: var(--secondary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  display: block;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #000 !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

#main-header.scrolled .nav-link:hover,
#main-header.scrolled .nav-link.active {
  color: var(--primary-color) !important;
}

.book-now-btn {
  background-color: var(--background-white);
  color: var(--primary-color);
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#main-header.scrolled .book-now-btn {
  background-color: var(--secondary-color);
  color: var(--background-white);
}

#mobile-menu-btn {
  color: var(--background-white);
  transition: color 0.3s ease;
}

#main-header.scrolled #mobile-menu-btn {
  color: var(--secondary-color);
}

/*-----------------------------------------------------
  4. Hero Section & Search Box
-----------------------------------------------------*/
#hero-section {
  height: 70vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  animation: bg-zoom 20s ease-in-out infinite alternate;
}

@keyframes bg-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

#hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.7) 0%, rgba(16, 185, 129, 0.6) 100%);
  z-index: 2;
}

.hero-animation-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.hero-plane {
  position: absolute;
  width: 700px;
  opacity: 0;
  top: 54%;
  left: 50%;
  animation: simple-zoom-landing 2.5s ease-out forwards 0.1s;
}

@keyframes simple-zoom-landing {
  from { transform: translateX(-50%) translateY(-80vh) scale(0.1); opacity: 0.3; }
  to { transform: translateX(-50%) translateY(-100%) scale(1); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
}

.search-box-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  top: 60px;
}

.search-tabs {
  display: flex;
  gap: 0.4rem;
  margin-left: 1.25rem;
}

.tab {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tab:hover { background-color: var(--background-white); }
.tab.active {
  color: var(--background-white);
  border-bottom-color: var(--primary-color);
  background-color: #000;
}

.filter-body-wrapper {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 0 8px 8px 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.filter-body { display: none; }
.filter-body.active { display: block; }

.filter-input,
.filter-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: var(--background-white);
  color: var(--secondary-color);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(234, 103, 33, 0.2);
}

.search-submit-btn {
  background-color: var(--primary-color);
  color: var(--background-white);
  padding: 0.8rem 2rem;
  border-radius: 0.375rem;
  font-weight: bold;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.search-submit-btn:hover { background-color: var(--primary-dark); }

/*-----------------------------------------------------
  5. Content Cards & Common Components
-----------------------------------------------------*/
.package-card {
  background: var(--background-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.package-image {
  position: relative;
  height: 220px;
}

.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--background-white);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.tour-tag { background-color: #8b5cf6; }
.hotel-tag { background-color: #10b981; }
.visa-tag { background-color: #ef4444; }
.airticket-tag { background-color: #3b82f6; }

.package-content {
  padding: 1.5rem;
  flex-grow: 1;
}
.package-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.package-subtitle {
  font-size: 0.875rem;
  color: var(--text-light);
  min-height: 40px;
}

.package-footer {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d4ed8;
}

.details-btn {
  background-color: #000;
  color: var(--primary-color);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.details-btn:hover {
  background-color: var(--primary-color);
  color: var(--background-white);
}

/*-----------------------------------------------------
  6. Sliders & Carousels
-----------------------------------------------------*/
.logo-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}
.logo-slide-track {
  display: flex;
  width: calc(250px * 14);
  animation: scroll 40s linear infinite;
}
.slide {
  width: 250px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}
.slide img {
  max-width: 100%;
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}
.slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-250px * 7)); }
}

.tour-moments-slider,
.tour-moments-slider-reverse {
  width: 100%;
  height: 300px;
  padding-bottom: 40px !important;
}

.tour-moments-slider .swiper-slide,
.tour-moments-slider-reverse .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: var(--background-white);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.tour-moments-slider .swiper-slide img,
.tour-moments-slider-reverse .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-moments-slider .swiper-button-next,
.tour-moments-slider .swiper-button-prev {
  color: var(--primary-color);
}
.tour-moments-slider .swiper-pagination-bullet-active {
  background-color: var(--primary-color);
}

.destinations-slider {
  width: 100%;
  height: 55vh;
  max-height: 500px;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.destinations-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.destinations-slider .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.7);
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.destinations-slider .swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  width: 25px;
  border-radius: 5px;
}

/*-----------------------------------------------------
  7. Section-specific Styles
-----------------------------------------------------*/
.why-us-image-container img {
  height: 100%;
  min-height: 450px;
}

.feature-icon-modern {
  flex-shrink: 0;
  margin-right: 1.25rem;
  width: 60px;
  height: 60px;
  background-color: #fdf2e9;
  color: var(--primary-color);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.flex:hover .feature-icon-modern {
  background-color: var(--primary-color);
  color: var(--background-white);
  transform: scale(1.1) rotate(10deg);
}

.feature-icon-modern svg {
  width: 28px;
  height: 28px;
}

/*-----------------------------------------------------
  8. Responsive Design (Media Queries)
-----------------------------------------------------*/
@media (max-width: 768px) {
  .hero-placeholder { height: 70px; }
  
  #main-header,
  #main-header.scrolled {
    height: 70px;
  }

  #main-header.scrolled .nav-link { color: var(--secondary-color); }
  #main-header.scrolled #mobile-menu-btn { color: var(--secondary-color); }

  .hero-plane { display: none; }
  
  #hero-section {
    height: auto;
    padding: 5rem 0;
  }

  .search-box-container { top: 1rem; }
  #packages-grid { grid-template-columns: 1fr; }
  .why-us-image-container { display: none; }
}

/*-----------------------------------------------------
  9. Page-specific Styles
-----------------------------------------------------*/
.page-banner {
  padding: 6rem 0;
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  z-index: 1;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.banner-title {
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.banner-subtitle {
  font-size: 1.125rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}
/* ===================================================================== */
/* Specific banner image for the flights page */
.banner-flights {
  background-image: url('/assets/images/flight_banner.jpg');
}

/*-----------------------------------------------------
  10. Hotel & Tour Specific Styles (Additions)
-----------------------------------------------------*/
.star-rating {
  font-size: 0.875rem; /* 14px */
}

.price-per-night {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
}

/* Specific banner image for the hotels page */
.banner-hotels {
  background-image: url('/assets/images/hotel_banner.jpg');
}
/* Specific banner image for the tours page */
.banner-tours {
  background-image: url('/assets/images/tour_banner.jpg');
}
/* Specific banner image for the visa page */
.banner-visa {
  background-image: url('/assets/images/visa_banner.jpg');
  background-position: center bottom; /* Adjust banner position if needed */
}

