/* 
 * Pesona Kreasi Tour and Travel - Main CSS 
 * Premium Design System 
 */

/* ==========================================================================
   CSS Variables (Design Tokens)
   ========================================================================== */
:root {
  /* Color Palette */
  --primary-color: #0B2D5E; /* Deep Navy Blue */
  --secondary-color: #E8A020; /* Rich Gold */
  --accent-color: #00B4D8; /* Sky Cyan */
  
  /* Utilities */
  --success-color: #2ECC71;
  --danger-color: #E74C3C;
  --dark-bg: #0A1628;
  --light-bg: #F0F4F8;
  --white: #FFFFFF;
  --text-dark: #333333;
  --text-muted: #6C757D;
  --border-color: #E5E7EB;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Effects */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(11, 45, 94, 0.15);
  --shadow-hover: 0 15px 35px rgba(11, 45, 94, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary-custom {
  background-color: var(--secondary-color);
  color: var(--white);
  border: 2px solid var(--secondary-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary-custom:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* ==========================================================================
   Navbar â€” Mobile Hamburger & Toggle Fixes
   ========================================================================== */

/* Tombol toggler â€” hilangkan border default Bootstrap */
.navbar-custom .navbar-toggler {
  border: none;
  padding: 0.4rem 0.6rem;
  outline: none;
  box-shadow: none !important;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: var(--transition);
}

.navbar-custom .navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Icon hamburger: putih saat navbar transparent (di atas hero) */
.navbar-custom .navbar-toggler-icon-custom {
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
}

/* Icon hamburger: gelap saat navbar sudah scrolled (background putih) */
.navbar-custom.scrolled .navbar-toggler {
  background: rgba(0, 0, 0, 0.06);
}

.navbar-custom.scrolled .navbar-toggler:hover {
  background: rgba(0, 0, 0, 0.1);
}

.navbar-custom.scrolled .navbar-toggler-icon-custom {
  color: var(--primary-color);
}

/* Sembunyikan tombol toggler saat panel sudah terbuka (ada âœ• di dalam panel) */
.navbar-custom #navbarToggler[aria-expanded="true"] {
  opacity: 0;
  pointer-events: none;
}


.navbar-custom {
  transition: var(--transition);
  padding: 1.25rem 0;
  background: transparent;
  z-index: 1000;
}

.navbar-custom.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.navbar-custom .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--white);
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.navbar-custom.scrolled .nav-link {
  color: var(--text-dark);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--secondary-color);
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo-subtext {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 4px;
  transition: var(--transition);
}

.navbar-custom.scrolled .logo-text {
  color: var(--primary-color);
}

.navbar-custom.scrolled .logo-subtext {
  color: var(--text-muted);
}

.footer-logo .logo-text {
  font-size: 2.25rem;
}

.footer-logo .logo-subtext {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 100px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(11, 45, 94, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
}

/* ==========================================================================
   Search Widget
   ========================================================================== */
.search-widget {
  background: var(--white);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
  margin-top: -80px;
}

.search-tabs .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  padding: 1rem 1.5rem;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.search-tabs .nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: transparent;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.custom-card {
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
  background: var(--white);
  height: 100%;
}

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

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

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

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

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--dark-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  margin-right: 10px;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */
.lang-switcher .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  transition: var(--transition);
}

.scrolled .lang-switcher .dropdown-toggle {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-dark);
}

.lang-switcher .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Utilities & Animations
   ========================================================================== */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--success-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.floating-wa:hover {
  background: #27ae60;
  color: white;
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .search-widget {
    margin-top: 2rem;
  }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
#backToTop {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* ==========================================================================
   Mobile Navbar Overlay Backdrop
   ========================================================================== */
.navbar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-backdrop.active {
  opacity: 1;
}

/* ==========================================================================
   Parallax Fix â€” Mobile & iOS
   (background-attachment: fixed tidak didukung di iOS Safari & sebagian Android)
   ========================================================================== */
@media (max-width: 991px), (hover: none) {
  .hero-section,
  section[style*="background-attachment: fixed"],
  .hero-image {
    background-attachment: scroll !important;
  }
}

/* ==========================================================================
   Search Widget â€” Mobile Improvements
   ========================================================================== */
@media (max-width: 576px) {
  .search-widget {
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
  }

  .search-tabs .nav-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }

  .search-tabs .nav-link i {
    display: none; /* Sembunyikan ikon di layar sangat kecil agar teks tidak wrap */
  }
}

/* ==========================================================================
   Navbar â€” Mobile Improvements
   ========================================================================== */
@media (max-width: 991px) {
  .navbar-custom .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--dark-bg);
    padding: 5rem 1.5rem 2rem;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
  }

  .navbar-custom .navbar-collapse.show {
    transform: translateX(0);
  }

  .navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }

  .navbar-custom .nav-link:hover,
  .navbar-custom .nav-link.active {
    color: var(--secondary-color) !important;
  }

  .navbar-custom .d-flex.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-top: 1rem;
  }

  .navbar-custom .btn-outline-custom {
    width: 100%;
    text-align: center;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
  }

  .navbar-backdrop {
    display: block;
  }

  /* Tombol close (Ã—) di dalam panel navbar mobile */
  .navbar-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
  }

  .navbar-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

@media (min-width: 992px) {
  .navbar-close-btn {
    display: none;
  }
}

/* ==========================================================================
   Responsive â€” General Utilities
   ========================================================================== */
@media (max-width: 576px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .floating-wa {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }

  #backToTop {
    bottom: 80px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}


/* ==========================================================================
   Page: Packages List — Mobile Filter Sidebar Toggle
   ========================================================================== */
.filter-toggle-btn { display: none; }

@media (max-width: 991px) {
  .filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.75rem;
  }
  .filter-panel-collapse {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }
  .filter-panel-collapse.open { max-height: 900px; }
}
@media (min-width: 992px) {
  .filter-panel-collapse { max-height: none !important; overflow: visible !important; }
}

/* ==========================================================================
   Page: Package Detail — Responsive Hero Title & Nav Pills
   ========================================================================== */
@media (max-width: 767px) {
  .package-hero-title { font-size: 1.75rem !important; }
  #packageTabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.25rem;
  }
  #packageTabs::-webkit-scrollbar { display: none; }
  #packageTabs .nav-link {
    font-size: 0.82rem;
    padding: 0.45rem 0.8rem !important;
    white-space: nowrap;
  }
  .booking-card-full { display: none; }
  .booking-card-sticky {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    padding: 1rem;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

/* ==========================================================================
   Page Inner Header (halaman packages, hotels, umroh, dll.)
   ========================================================================== */
@media (max-width: 576px) {
  .page-header-section h1 { font-size: 1.75rem; }
  .page-header-section p.lead { font-size: 0.95rem; }
}
