:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #10b981;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --light: #f8fafc;
  --light-gray: #e2e8f0;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-primary {
  color: var(--primary);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.5);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 30px);
  max-width: 1500px;
  background: #ffffff24;
  border-radius: 10px;
  box-shadow: none;
  z-index: 50;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  transition: transform 0.4s ease, background 0.3s ease;
}

.navbar.header-hidden {
  transform: translateY(calc(-100% - 20px));
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 100px;
  width: auto;
  display: block;
  border-radius: 12px;
}

.navbar-collapse {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  margin-left: 2rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 10%;
  cursor: pointer;
  color: #ffffff;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a,
.nav-item>a {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-item>a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/cittco-kyoto.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.6;
  animation: bgZoom 20s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

/* Cards */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.tour-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .tour-details-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

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

.card-img-wrapper {
  height: 400px;
  overflow: hidden;
  position: relative;
}

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

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

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--light-gray);
  padding-top: 1rem;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Destinations */
.destination-card {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  height: 420px;
  box-shadow: var(--shadow);
}

.destination-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.destination-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover .destination-img {
  transform: scale(1.1);
}

.destination-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 10;
  color: var(--white);
}

/* Offers */
.offer-banner {
  background: linear-gradient(135deg, var(--dark-light), var(--dark));
  border-radius: 1rem;
  padding: 3rem;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.offer-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
}

/* Footer */
.footer {
  background: var(--dark);
  background-image: url('/images/world_map.png');
  background-size: 80%;
  background-position: center;
  /* background-repeat: no-repeat; */
  color: var(--white);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(23, 41, 87, 0.85);
  /* Overlay to ensure text readability */
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

/* Animated Header Backgrounds */
@keyframes bgZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

.contact_header,
.tours_header,
.offers_header,
.gallery_header,
.about_header,
.destinations_header {
  background: linear-gradient(135deg, var(--dark-light), var(--dark));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 15rem 0 4rem;

}

.contact_header::before,
.tours_header::before,
.offers_header::before,
.gallery_header::before,
.about_header::before,
.destinations_header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  /* overlay to make text readable */
  z-index: 1;
}

.contact_header::after,
.tours_header::after,
.offers_header::after,
.gallery_header::after,
.about_header::after,
.destinations_header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: bgZoom 20s ease-in-out infinite alternate;
}

.contact_header::after {
  background-image: url('/images/contact_header_img.png');
}

.tours_header::after {
  background-image: url('/images/tours_header_img.png');
}

.offers_header::after {
  background-image: url('/images/offers_header_img.png');
}

.destinations_header::after {
  background-image: url('/images/destinations_header_img.png');
}

.gallery_header::after {
  background-image: url('/images/destinations_header_img.png');
}

.about_header::after {
  background-image: url('/images/about_header_img.jpg');
}

.contact_header .container,
.tours_header .container,
.offers_header .container,
.gallery_header .container,
.about_header .container,
.destinations_header .container {
  position: relative;
  z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
  .header-contact-icon {
    color: #ff0000;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-logo-img {
    height: 40px;
    border-radius: 8px;
  }

  .navbar-collapse {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #cbd6e0 0%, #eef2ff 50%, #e0e7ff 100%);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    z-index: 1000;
  }

  .navbar-collapse.active {
    display: flex;
  }

  .mobile-menu-header {
    display: flex !important;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    padding: 0 2rem;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-text {
    display: inline !important;
  }

  .mobile-only {
    display: block !important;
  }

  .mobile-social-row {
    display: flex !important;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-start !important;
    width: 100%;
    padding: 2rem;
    padding-bottom: 6rem !important;
    margin-top: auto;
    gap: 1.5rem !important;
  }

  .login-icon-link {
    display: none !important;
  }

  .contact-social-icons {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    border-right: none !important;
    padding-right: 0 !important;
    justify-content: flex-start;
    width: 100%;
    gap: 1.5rem !important;
  }

  .contact-btn {
    width: 100%;
    text-align: center;
    padding: 1rem !important;
    font-size: 1.1rem !important;
  }

  .offer-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

/* Header Contact & Social */
.header-contact-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.header-contact-icon:hover {
  color: var(--primary);
}

.social-hover-container {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.social-hover-container .social-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.social-hover-container:hover .social-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.social-link {
  color: var(--dark);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: var(--light);
}

.social-link:hover {
  color: white;
  transform: translateY(-2px);
}

.social-link.facebook:hover {
  background: #1877F2;
}

.social-link.instagram:hover {
  background: #E4405F;
}

.social-link.whatsapp:hover {
  background: #25D366;
}

.mobile-text,
.mobile-only {
  display: none;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
  color: white;
  animation: none;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Fixed Left Social Media Tray */
.fixed-social-tray {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.fixed-social-item {
  display: flex;
  align-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0 8px 8px 0;
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  position: relative;
}

.fixed-social-item .icon-wrapper {
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fixed-social-item .social-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  padding-right: 16px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
}

.fixed-social-item:hover {
  width: 145px;
  box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.25);
  transform: translateX(2px);
  color: #ffffff;
}

.fixed-social-item:hover .social-name {
  opacity: 1;
  transform: translateX(0);
}

.fixed-social-item.facebook {
  background: #1877F2;
}

.fixed-social-item.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.fixed-social-item.whatsapp {
  background: #25D366;
}

@media (max-width: 768px) {
  .fixed-social-tray {
    display: none !important;
  }
}

/* Footer Social Links */
.footer-social-link {
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social-link:hover {
  color: #ffffff;
  transform: translateY(-3px);
  border-color: transparent;
}

.footer-social-link.facebook:hover {
  background: #1877F2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.5);
}

.footer-social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 12px rgba(228, 64, 95, 0.5);
}

.footer-social-link.whatsapp:hover {
  background: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

/* Homepage Offer Ticker */
.ticker-move {
  animation: ticker 25s linear infinite;
}
@keyframes ticker {
  0% { transform: translate3d(100vw, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
.ticker-wrap:hover .ticker-move {
  animation-play-state: paused !important;
}

/* Homepage Poster Slider */
.poster-slider::-webkit-scrollbar {
  display: none;
}
.poster-item {
  flex: 0 0 100%;
}
@media (min-width: 768px) {
  .poster-item {
    flex: 0 0 calc(50% - 0.5rem);
  }
}
@media (min-width: 1024px) {
  .poster-item {
    flex: 0 0 calc(33.333% - 0.667rem);
  }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  z-index: 10;
  color: #64748b;
  transition: all 0.3s ease;
}
.slider-arrow:hover {
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
#prev-poster { left: -24px; }
#next-poster { right: -24px; }
@media (max-width: 768px) {
  #prev-poster { left: 10px; }
  #next-poster { right: 10px; }
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-dot.active {
  background: #1e3a8a;
  width: 24px;
  border-radius: 12px;
}

/* Homepage Destinations Marquee Slider Section */
.dest-slider-section {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #184470 55%, #162650 100%);
  border-top: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.dest-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.25rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.dest-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: infiniteScroll 90s linear infinite;
}

.dest-marquee-container:hover .dest-marquee-track {
  animation-play-state: paused;
}

.dest-marquee-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  flex-shrink: 0;
}

.dest-marquee-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--primary, #dd3535);
  background: #fef2f2;
  box-shadow: 0 12px 20px -5px rgba(221, 53, 53, 0.15);
}

.dest-marquee-img-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

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

.dest-marquee-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.dest-marquee-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  transition: color 0.2s;
}

.dest-marquee-card:hover .dest-marquee-name {
  color: var(--primary, #dd3535);
}

.dest-marquee-region {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

@keyframes infiniteScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .dest-marquee-track {
    gap: 1rem;
    animation-duration: 75s;
  }
}