/* =============================================
   TRAVELINDO - MAIN STYLESHEET
   ============================================= */

:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-deeper: #084298;
  --primary-bg: #0a1f5c;
  --warning: #ffc107;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden !important; /* tetap cegah horizontal scroll */
}
body {
  /* HAPUS overflow-x: hidden dari body! */
  /* Ganti dengan wrapper supaya position:fixed tetap bekerja */
  overflow-x: clip; /* lebih aman dari hidden untuk fixed */
  max-width: 100% !important;
}

.fw-500 {
  font-weight: 500 !important;
}
.fw-600 {
  font-weight: 600 !important;
}
.section-padding {
  padding: 80px 0;
}

/* ---- Section Label & Title ---- */
.section-label {
  display: inline-block;
  background: #e7f0ff;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-label-light {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 0;
}

/* =============================================
   NAVBAR
   ============================================= */
#mainNavbar {
  background: rgba(8, 30, 90, 0.85) !important;
  transition: all 0.4s ease;
  padding: 14px 0;
  z-index: 1050;
}
#mainNavbar.scrolled {
  background: var(--primary-bg) !important;
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--warning);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1rem;
}
.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 12px !important;
  border-radius: 6px;
  transition: all 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
}

/* =============================================
   HERO — Pure CSS gradient
   ============================================= */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #0a1f5c 0%,
    #0d47a1 30%,
    #1565c0 55%,
    #0288d1 80%,
    #0a1f5c 100%
  );
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  top: -150px;
  right: -150px;
}
.hero-section::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  bottom: 60px;
  left: -100px;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
/* Fix hero row overflow */
.hero-section .row {
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.5);
  color: var(--warning);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  line-height: 1.7;
}

/* Hero floating card kanan */
.hero-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
}
.hero-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}
.hero-card-item:last-child {
  border-bottom: none;
}
.hero-card-item i {
  color: var(--warning);
  font-size: 1.1rem;
  width: 20px;
}

/* Hero Stats */
.hero-stats {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}
.stat-item {
  text-align: center;
  padding: 20px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item:last-child {
  border-right: none;
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--warning);
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

/* =============================================
   ABOUT
   ============================================= */
.about-img-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.about-img-wrapper img {
  width: 100%;
  border-radius: 16px;
}
.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.4);
}
.about-badge i {
  font-size: 1.4rem;
  color: var(--warning);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f6ff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}
.feature-item i {
  font-size: 1.1rem;
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  height: 100%;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(13, 110, 253, 0.15);
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 12px;
}

/* =============================================
   TOUR CARDS
   ============================================= */
.tour-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13, 110, 253, 0.18);
}
.tour-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}
.tour-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.tour-card:hover .tour-img {
  transform: scale(1.08);
}
.tour-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.tour-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tour-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.tour-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 12px;
}
.tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: auto;
}
.tour-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

/* =============================================
   DESTINATION CARDS
   ============================================= */
.dest-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 220px;
  cursor: pointer;
  background: #1565c0;
}
.dest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.dest-card:hover .dest-img {
  transform: scale(1.1);
}
.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.3s;
}
.dest-card:hover .dest-overlay {
  background: linear-gradient(
    to top,
    rgba(13, 110, 253, 0.75) 0%,
    transparent 70%
  );
}
.dest-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
}
.dest-count {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

/* =============================================
   HOTEL SEARCH
   ============================================= */
.hotel-search-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 8px 40px rgba(13, 110, 253, 0.12);
  border: 1px solid #dce8ff;
}
.form-control,
.form-select {
  border-radius: 8px;
  border: 1.5px solid #dee2e6;
  padding: 10px 14px;
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

/* =============================================
   TESTIMONIAL
   ============================================= */
.testi-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
}
.testi-stars {
  color: var(--warning);
  font-size: 0.85rem;
}
.testi-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  background: var(--warning);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #e7f0ff;
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-form-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 8px 40px rgba(13, 110, 253, 0.1);
  border: 1px solid #dce8ff;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #0a1628;
  color: rgba(255, 255, 255, 0.8);
}
.footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.footer-desc {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}
.footer-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer-links a:hover {
  color: var(--warning);
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.87rem;
}
.footer-contact i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.footer-contact a:hover {
  color: var(--warning);
}
.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover {
  background: var(--primary);
  color: #fff;
}
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--warning);
}

/* =============================================
   LANGUAGE DROPDOWN
   ============================================= */
.dropdown-menu {
  min-width: 140px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
}
.dropdown-item {
  border-radius: 6px;
  font-size: 0.88rem;
  padding: 8px 12px;
  transition: background 0.2s;
}
.dropdown-item.active,
.dropdown-item:active {
  background: var(--primary);
  color: #fff;
}
.dropdown-item:hover:not(.active) {
  background: #f0f6ff;
  color: var(--primary);
}

/* =============================================
   RESPONSIVE — TABLET (≤991px)
   ============================================= */
@media (max-width: 991px) {
  .section-padding {
    padding: 60px 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .about-badge {
    bottom: -10px;
    right: -10px;
  }

  /* ---- Hero card kanan: sembunyikan di mobile ---- */
  .hero-section .col-lg-5 {
    display: none !important;
  }
  .hero-section .col-lg-7 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* ---- Navbar container: no wrap ---- */
  #mainNavbar .container {
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 8px;
  }

  /* ---- Navbar collapse: dropdown ke bawah ---- */
  #mainNavbar .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
    background: #0a1f5c;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 12px 12px;
    z-index: 1049;
  }

  /* ---- Nav items: vertikal, full width ---- */
  #mainNavbar .navbar-nav {
    flex-direction: column !important;
    width: 100%;
    gap: 2px !important;
    margin-left: 0 !important;
  }
  #mainNavbar .navbar-nav .nav-link {
    padding: 10px 14px !important;
    border-radius: 8px;
    width: 100%;
  }
  #mainNavbar .navbar-nav .btn {
    width: 100% !important;
    text-align: center;
    padding: 10px 14px !important;
    border-radius: 8px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤767px)
   ============================================= */
@media (max-width: 767px) {
  .section-padding {
    padding: 48px 0;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hotel-search-box {
    padding: 20px;
  }
  .contact-form-box {
    padding: 20px;
  }
  .dest-card {
    height: 180px;
  }
  .stat-number {
    font-size: 1.4rem;
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤575px)
   ============================================= */
@media (max-width: 575px) {
  .hero-section {
    padding-top: 70px;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .about-badge {
    display: none;
  }
}

/* =============================================
   SCROLL TO TOP BUTTON — FINAL FIX
   ============================================= */
#scrollTopBtn {
  /* === POSISI — wajib ada semua ini === */
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  left: auto !important; /* ← reset left supaya tidak geser kiri */
  top: auto !important; /* ← reset top */

  /* === UKURAN & TAMPILAN === */
  width: 44px !important;
  height: 44px !important;
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;

  /* === LAYOUT === */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.1rem !important;

  /* === LAYER === */
  z-index: 99999 !important;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.4) !important;

  /* === ANIMASI === */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.3s,
    background 0.2s;
}

#scrollTopBtn.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

#scrollTopBtn:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.55) !important;
}

@media (max-width: 767px) {
  #scrollTopBtn {
    bottom: 20px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
  }
}
