﻿/* Package detail pages: server-safe styles layered on top of root style.css/st.css */
.top-bar-social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.top-bar-social-icons a {
  color: inherit;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.top-bar-social-icons a:hover {
  opacity: 1;
}

.floating-cta-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 9999;
}

.floating-cta-stack .whatsapp-bubble,
.floating-cta-stack .call-bubble,
.floating-cta-stack .callback-bubble {
  position: relative !important;
  inset: auto !important;
  box-sizing: border-box !important;
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.3rem !important;
  line-height: 1 !important;
  color: #fff !important;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  flex-shrink: 0;
}

.floating-cta-stack .whatsapp-bubble { background: #25d366 !important; }
.floating-cta-stack .call-bubble { background: #2563eb !important; }
.floating-cta-stack .callback-bubble { background: #d97706 !important; }
.floating-cta-stack .whatsapp-bubble::before { display: none; }

.floating-cta-stack .whatsapp-tooltip {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: #222;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.floating-cta-stack .whatsapp-bubble:hover .whatsapp-tooltip,
.floating-cta-stack .call-bubble:hover .whatsapp-tooltip,
.floating-cta-stack .callback-bubble:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

.package-hero {
  min-height: 460px;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(18px, 5vw, 68px) 62px;
  color: #fff;
  background: #003679;
}

.package-hero-video,
.package-hero-video iframe,
.package-hero-shade {
  position: absolute;
  inset: 0;
}

.package-hero-video {
  z-index: 0;
  overflow: hidden;
  background: #003679;
}

.package-hero-video iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.package-hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 30, 70, 0.9), rgba(0, 54, 121, 0.58) 58%, rgba(0, 30, 70, 0.25)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.65), transparent 58%);
}

.package-hero > div:not(.package-hero-video):not(.package-hero-shade) {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #f1ab00;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.package-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  color: #fff;
}

.package-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 68px);
}

.package-detail-page {
  display: grid;
  grid-template-columns: minmax(240px, 0.3fr) minmax(0, 1fr);
  gap: 24px;
  background: #f8fafc;
}

.package-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 54, 121, 0.07);
}

.package-selector {
  display: grid;
  gap: 8px;
  max-height: 70vh;
  overflow: auto;
}

.package-selector a {
  display: grid;
  gap: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  text-decoration: none;
}

.package-selector a.active,
.package-selector a:hover {
  border-color: #e03a11;
  background: #fff7f4;
}

.package-selector span {
  color: #003679;
  font-weight: 800;
  line-height: 1.3;
}

.package-selector small {
  color: #64748b;
  font-weight: 700;
}

.package-full-detail,
.tour-content,
.itinerary-list {
  display: grid;
  gap: 20px;
}

.tour-product,
.detail-block,
.booking-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 54, 121, 0.07);
}

.tour-product {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  overflow: hidden;
}

.tour-gallery {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 38px);
  color: #fff;
  background:
    linear-gradient(0deg, rgba(0, 30, 70, 0.76), rgba(0, 30, 70, 0.12)),
    var(--package-bg);
  background-position: center;
  background-size: cover;
}

.sale-badge {
  width: max-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #e03a11;
  color: #fff;
}

.tour-gallery h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  color: #fff;
}

.tour-gallery span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.tour-summary {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
}

.tour-summary h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  color: #1e293b;
}

.tour-summary p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.breadcrumb {
  color: #e03a11;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-price {
  display: grid;
  gap: 4px;
}

.product-price small {
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
}

.product-price strong {
  color: #e03a11;
  font-size: 1.9rem;
}

.full-detail-meta,
.summary-actions,
.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.full-detail-meta span {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 9px 12px;
  color: #003679;
  background: #f8fafc;
  font-weight: 800;
}

.deal-btn,
.text-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
}

.deal-btn {
  background: #e03a11;
  color: #fff;
}

.text-btn {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #003679;
}

.detail-block {
  padding: clamp(22px, 4vw, 34px);
}

.tour-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 20px;
  align-items: start;
}

.tour-tabs {
  margin-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.tour-tabs span {
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  background: #003679;
  font-weight: 900;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.highlight-grid span {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 13px;
  color: #003679;
  background: #f8fafc;
  font-weight: 800;
}

.itinerary-list article {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.itinerary-list strong {
  color: #e03a11;
}

.itinerary-list p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.split-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.split-detail ul {
  margin: 0;
  padding-left: 18px;
  color: #64748b;
  line-height: 1.7;
}

.booking-card {
  position: sticky;
  top: 96px;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
}

.booking-card p {
  color: #64748b;
  line-height: 1.65;
}

.booking-card form,
.booking-card label {
  display: grid;
  min-width: 0;
}

.booking-card form { gap: 12px; }
.booking-card label {
  gap: 7px;
  color: #003679;
  font-weight: 900;
}

.booking-card input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.booking-card .deal-btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 992px) {
  .top-bar-container {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .top-bar-social-icons,
  .quick-contact-links {
    display: none;
  }

  .nav-container {
    padding: 0.65rem 1rem;
  }

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

  .logo-text {
    font-size: 1.15rem;
  }

  .package-detail-page,
  .tour-product,
  .tour-page-grid,
  .split-detail {
    grid-template-columns: 1fr;
  }

  .package-sidebar,
  .booking-card {
    position: static;
  }

  .package-sidebar {
    order: -1;
  }

  .package-selector {
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 70vw);
    grid-template-columns: none;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .package-selector a {
    scroll-snap-align: start;
  }

  .highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .floating-cta-stack {
    right: 12px;
    bottom: 12px;
    gap: 9px;
  }

  .floating-cta-stack .whatsapp-bubble,
  .floating-cta-stack .call-bubble,
  .floating-cta-stack .callback-bubble {
    width: 46px !important;
    height: 46px !important;
    font-size: 1.1rem !important;
  }

  .floating-cta-stack .whatsapp-tooltip {
    display: none;
  }

  .package-hero {
    min-height: 360px;
    padding: 86px 18px 34px;
  }

  .package-hero h1 {
    font-size: clamp(2.25rem, 14vw, 4.4rem);
    line-height: 1;
    margin-bottom: 12px;
  }

  .package-hero p:not(.eyebrow) {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .section {
    padding: 26px 12px;
  }

  .package-sidebar,
  .tour-product,
  .detail-block,
  .booking-card {
    border-radius: 10px;
  }

  .package-sidebar,
  .tour-summary,
  .detail-block,
  .booking-card {
    padding: 16px;
  }

  .tour-gallery {
    min-height: 260px;
    padding: 18px;
  }

  .tour-gallery h2 {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .tour-summary {
    gap: 13px;
  }

  .tour-summary h2 {
    font-size: 1.7rem;
  }

  .product-price strong {
    font-size: 1.55rem;
  }

  .full-detail-meta {
    gap: 7px;
  }

  .full-detail-meta span,
  .tour-tabs span,
  .highlight-grid span {
    font-size: 0.84rem;
    padding: 8px 10px;
  }

  .summary-actions,
  .deal-btn,
  .text-btn {
    width: 100%;
  }

  .highlight-grid,
  .itinerary-list article {
    grid-template-columns: 1fr;
  }

  .itinerary-list article {
    gap: 8px;
    padding: 14px;
  }

  .split-detail ul {
    line-height: 1.6;
  }

  .booking-card input {
    min-height: 46px;
    font-size: 16px;
  }

  .footer-grid-container {
    gap: 2rem;
  }
}

@media (max-width: 380px) {
  .logo-text {
    font-size: 1rem;
  }

  .main-logo-img {
    height: 36px;
  }

  .package-hero h1 {
    font-size: clamp(2rem, 13vw, 3.4rem);
  }

  .package-selector {
    grid-auto-columns: minmax(190px, 82vw);
  }
}
