/* ==========================================================================
   MODERN TRAVEL HEADER & PREHEADER STYLESHEET
   Trilha Salkantay - Modern Travel Agency Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --st-primary: #db5f15;
  --st-primary-dark: #b84516;
  --st-primary-light: #d56825;
  --st-primary-bg: #eef6f0;

  --st-accent: #f07c28;
  --st-accent-hover: #d86616;
  --st-accent-glow: rgba(240, 124, 40, 0.35);

  --st-topbar-bg: #8b3d0f;
  --st-topbar-text: #fffbf6;
  --st-topbar-hover: #ffffff;

  --st-header-bg: #ffffff;
  --st-header-text: #54524c;
  --st-header-muted: #5e6164;

  --st-whatsapp: #25D366;
  --st-whatsapp-hover: #1ebd5a;

  --st-radius-sm: 6px;
  --st-radius-md: 10px;
  --st-radius-lg: 16px;
  --st-radius-full: 9999px;

  --st-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --st-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.09);
  --st-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);

  --st-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Scoped reset for header component */
.st-header-wrapper,
.st-header-wrapper * {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  font-family: var(--st-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.st-header-wrapper {
  position: relative;
  width: 100%;
  z-index: 1000;
  display: block;
}

/* ==========================================================================
   1. TOPBAR / PREHEADER
   ========================================================================== */
.st-topbar {
  background-color: var(--st-topbar-bg);
  color: var(--st-topbar-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1002;
  display: block;
  width: 100%;
}

.st-topbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.st-topbar-left,
.st-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* WhatsApp Badge Link */
.st-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(37, 211, 102, 0.14);
  color: #38e47a !important;
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 4px 11px;
  border-radius: var(--st-radius-full);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
}

.st-whatsapp-pill:hover {
  background: rgba(37, 211, 102, 0.25);
  color: #ffffff !important;
  border-color: rgba(37, 211, 102, 0.6);
  transform: translateY(-1px);
}

.st-live-dot {
  width: 7px;
  height: 7px;
  background-color: var(--st-whatsapp);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: st-pulse 1.8s infinite;
}

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

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
  }

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

/* Info Items (24/7, Location) */
.st-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--st-topbar-text);
  font-size: 12px;
}

.st-info-item svg {
  color: #7bb589;
  flex-shrink: 0;
}

.st-info-item strong {
  color: #ffffff;
  font-weight: 600;
}

/* TripAdvisor Rating Badge */
.st-tripadvisor-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f1f7f3 !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--st-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.st-tripadvisor-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
}

.st-ta-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.st-ta-star {
  width: 8px;
  height: 8px;
  background-color: #00aa6c;
  border-radius: 50%;
  display: inline-block;
}

/* Topbar Links */
.st-topbar-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.st-topbar-links li {
  list-style: none !important;
  display: inline-flex;
}

.st-topbar-links li a {
  color: var(--st-topbar-text) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.st-topbar-links li a:hover {
  color: var(--st-topbar-hover) !important;
}

.st-topbar-divider {
  width: 1px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.18);
  display: inline-block;
}

/* ==========================================================================
   2. MAIN NAVIGATION HEADER
   ========================================================================== */
.st-main-header {
  background-color: var(--st-header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--st-shadow-sm);
  position: relative;
  z-index: 1001;
  display: block;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Sticky Header Modifier */
.st-main-header.st-is-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  animation: st-slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes st-slideDown {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

.st-header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 72px;
}

/* Brand Logo */
.st-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
  background: transparent !important;
}

.st-logo img {
  height: 50px;
  width: auto;
  max-width: 270px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
  border: 0 !important;
}

.st-logo:hover img {
  transform: scale(1.02);
}

/* Desktop Navigation Menu */
.st-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.st-nav-item {
  position: relative;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.st-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  font-family: var(--st-font);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--st-header-text) !important;
  text-decoration: none !important;
  border-radius: var(--st-radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  background: transparent;
}

.st-nav-link:hover,
.st-nav-item:hover>.st-nav-link,
.st-nav-item.st-active>.st-nav-link {
  color: var(--st-primary) !important;
  background-color: var(--st-primary-bg) !important;
  text-decoration: none !important;
}

.st-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
  color: #7b8e82;
  flex-shrink: 0;
}

.st-nav-item:hover .st-chevron {
  transform: rotate(180deg);
  color: var(--st-primary);
}

/* ==========================================================================
   3. DROPDOWN MENUS
   ========================================================================== */
.st-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 290px;
  background: #ffffff;
  border-radius: var(--st-radius-md);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 1010;
  list-style: none !important;
  pointer-events: none;
  margin: 0 !important;
}

/* Invisible bridge so hover doesn't drop */
.st-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.st-nav-item:hover>.st-dropdown,
.st-nav-item:focus-within>.st-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.st-dropdown-wide {
  min-width: 330px;
}

.st-dropdown-item {
  list-style: none !important;
  margin-bottom: 2px !important;
  padding: 0 !important;
}

.st-dropdown-item:last-child {
  margin-bottom: 0 !important;
}

.st-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--st-radius-sm);
  text-decoration: none !important;
  color: #2a382e !important;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  transition: all 0.2s ease;
  background: transparent;
}

.st-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.st-dropdown-title {
  font-weight: 600;
  color: #1a2920;
  display: flex;
  align-items: center;
  gap: 6px;
}

.st-dropdown-subtitle {
  font-size: 11.5px;
  color: #697d70;
  font-weight: 400;
}

.st-dropdown-link:hover {
  background-color: var(--st-primary-bg) !important;
  color: var(--st-primary) !important;
  transform: translateX(3px);
  text-decoration: none !important;
}

.st-dropdown-link:hover .st-dropdown-title {
  color: var(--st-primary);
}

.st-dropdown-link:hover .st-dropdown-subtitle {
  color: #386144;
}

/* Dropdown Badges */
.st-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: var(--st-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.st-badge-mais-vendido {
  background: linear-gradient(135deg, #f07c28 0%, #d86616 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(240, 124, 40, 0.3);
}

.st-badge-recomendavel {
  background: linear-gradient(135deg, #004e14 0%, #055423 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(43, 110, 4, 0.3);
}

.st-badge-tendencia {
  background: linear-gradient(135deg, #710eaa 0%, #7c28da 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(67, 6, 92, 0.3);
}

.st-badge-featured {
  background: #e8f5e9;
  color: #1e7e34 !important;
  border: 1px solid #c3e6cb;
}

.st-dropdown-divider {
  height: 1px;
  background-color: #eef2ef;
  margin: 6px 4px !important;
  list-style: none !important;
}

.st-dropdown-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f7faf8;
  border-radius: var(--st-radius-sm);
  color: var(--st-primary) !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.st-dropdown-footer-link:hover {
  background: var(--st-primary) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ==========================================================================
   4. HEADER ACTIONS & CTA BUTTONS
   ========================================================================== */
.st-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Call / WhatsApp Icon Button for Desktop */
.st-action-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  color: #179b47 !important;
  text-decoration: none !important;
  transition: all 0.25s ease;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.st-action-whatsapp:hover {
  background: var(--st-whatsapp) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Main CTA Button: Reservar Agora */
.st-btn-reserve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f07c28 0%, #e05e10 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 20px;
  border-radius: var(--st-radius-full);
  text-decoration: none !important;
  box-shadow: 0 4px 14px var(--st-accent-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.st-btn-reserve:hover {
  background: linear-gradient(135deg, #e05e10 0%, #c94f09 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 124, 40, 0.45);
  color: #ffffff !important;
  text-decoration: none !important;
}

.st-btn-reserve svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.st-btn-reserve:hover svg {
  transform: scale(1.1);
}

/* ==========================================================================
   5. MOBILE HAMBURGER TOGGLE & DRAWER
   ========================================================================== */
.st-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #f0f5f2;
  border: 1px solid #d8e5dc;
  border-radius: var(--st-radius-sm);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.st-mobile-toggle:hover {
  background: #e2ede6;
}

.st-hamburger-icon {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.st-hamburger-icon span {
  display: block;
  height: 2.2px;
  width: 100%;
  background: #24342b;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

.st-mobile-toggle.st-is-open .st-hamburger-icon span:nth-child(1) {
  transform: rotate(45deg);
  top: -1px;
}

.st-mobile-toggle.st-is-open .st-hamburger-icon span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

.st-mobile-toggle.st-is-open .st-hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg);
  top: 1px;
}

/* Mobile Drawer Overlay */
.st-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 18, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.st-drawer-overlay.st-is-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer Container */
.st-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 380px;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.st-mobile-drawer.st-is-active {
  transform: translateX(0);
}

/* Drawer Header */
.st-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid #edf2ee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafcfa;
}

.st-drawer-header .st-logo img {
  height: 42px;
}

.st-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf3ef;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #384d40;
  transition: all 0.2s ease;
}

.st-drawer-close:hover {
  background: #dde8e1;
  color: #1b2920;
}

/* Drawer Body (Navigation) */
.st-drawer-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.st-mobile-nav {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.st-mobile-nav-item {
  border-bottom: 1px solid #f0f4f1;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.st-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 4px;
}

.st-mobile-nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: #24342b !important;
  text-decoration: none !important;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-mobile-arrow-btn {
  background: #f2f7f4;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--st-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b6153;
  transition: all 0.25s ease;
}

.st-mobile-arrow-btn svg {
  transition: transform 0.25s ease;
}

.st-mobile-nav-item.st-open .st-mobile-arrow-btn {
  background: var(--st-primary-bg);
  color: var(--st-primary);
}

.st-mobile-nav-item.st-open .st-mobile-arrow-btn svg {
  transform: rotate(180deg);
}

/* Mobile Submenu Accordion */
.st-mobile-submenu {
  display: none;
  padding: 4px 0 12px 14px;
  list-style: none !important;
  background: #fbfdfb;
  border-radius: var(--st-radius-sm);
  margin: 0 0 8px 0 !important;
}

.st-mobile-nav-item.st-open .st-mobile-submenu {
  display: block;
  animation: st-fadeIn 0.2s ease;
}

@keyframes st-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.st-mobile-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: #405246 !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--st-radius-sm);
  transition: all 0.15s ease;
}

.st-mobile-sublink:hover {
  background: var(--st-primary-bg) !important;
  color: var(--st-primary) !important;
  text-decoration: none !important;
}

/* Drawer Footer (Actions) */
.st-drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid #edf2ee;
  background: #fafcfa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-mobile-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px;
  border-radius: var(--st-radius-md);
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.st-mobile-reserve-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f07c28 0%, #e05e10 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--st-radius-md);
  text-decoration: none !important;
  box-shadow: 0 4px 14px var(--st-accent-glow);
}

.st-mobile-tripadvisor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #495e51 !important;
  text-decoration: none !important;
  padding-top: 4px;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1140px) {
  .st-nav-link {
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .st-logo img {
    height: 46px;
    max-width: 230px;
  }

  .st-btn-reserve {
    padding: 9px 15px;
    font-size: 12.5px;
  }
}

@media (max-width: 992px) {

  .st-nav,
  .st-action-whatsapp {
    display: none !important;
  }

  .st-mobile-toggle {
    display: flex;
  }

  .st-header-container {
    padding: 8px 16px;
    min-height: 64px;
  }

  .st-logo img {
    height: 44px;
  }

  .st-btn-reserve {
    padding: 8px 16px;
    font-size: 12.5px;
  }
}

@media (max-width: 768px) {

  .st-topbar-left .st-info-item:not(.st-whatsapp-item),
  .st-topbar-right .st-topbar-links {
    display: none !important;
  }

  .st-topbar-container {
    justify-content: space-between;
    padding: 6px 14px;
  }

  .st-btn-reserve span.st-btn-text-full {
    display: none;
  }

  .st-btn-reserve::after {
    content: 'Reservar';
  }
}

@media (max-width: 480px) {
  .st-logo img {
    height: 38px;
    max-width: 190px;
  }

  .st-tripadvisor-badge span.st-ta-text-full {
    display: none;
  }
}