/* =========================================================
   Private Compass — Mobile Bottom Navigation + Sticky Tabs
   Mobile-only: max-width 768px
   ========================================================= */

/* ---- Bottom Nav Bar ---- */
.pc-mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .pc-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #0f1d16;
    height: 64px;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    box-shadow: 0 -1px 0 rgba(255,255,255,.07), 0 -8px 24px rgba(0,0,0,.35);
    /* Safe area for notched phones */
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(64px + env(safe-area-inset-bottom));
  }

  /* Push page content up so footer isn't hidden behind nav */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .pc-mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px 10px;
    color: #80a88d;
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .2s;
    min-width: 48px;
    flex: 1;
  }

  .pc-mobile-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }

  .pc-mobile-nav-btn:hover,
  .pc-mobile-nav-btn.is-active {
    color: #c8a96e;
  }

  /* Centre Compass CTA Button */
  .pc-mobile-nav-compass {
    position: relative;
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    gap: 3px;
  }

  .pc-mobile-nav-compass-ring {
    width: 52px;
    height: 52px;
    background: #14241c;
    border: 1.5px solid #c8a96e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform .22s cubic-bezier(.22,1,.36,1), background .2s;
  }

  .pc-mobile-nav-compass-ring svg {
    width: 28px;
    height: 28px;
    color: #c8a96e;
  }

  .pc-mobile-nav-compass:hover .pc-mobile-nav-compass-ring,
  .pc-mobile-nav-compass:active .pc-mobile-nav-compass-ring {
    transform: scale(1.08);
    background: #172f23;
  }

  .pc-mobile-nav-compass-label {
    font-family: 'Manrope', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #c8a96e;
  }

  /* Booking bubble tooltip above compass */
  .pc-compass-bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #c8a96e;
    color: #0f1d16;
    font-family: 'Manrope', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 5px 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid #b7c4ad;
    border-radius: 0 !important;
    animation: pcFloatBubble 2.5s ease-in-out infinite alternate;
  }

  @keyframes pcFloatBubble {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-4px); }
  }

  .pc-compass-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #c8a96e;
  }

  /* ---- Booking Panel (slide up) ---- */
  .pc-booking-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9100;
    background: #e8e1d3;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -4px 32px rgba(0,0,0,.18);
    border-top: 1.5px solid #c8a96e;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .pc-booking-panel.is-open {
    transform: translateY(0);
  }

  .pc-booking-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #becab5;
    position: sticky;
    top: 0;
    background: #e8e1d3;
    z-index: 1;
  }

  .pc-booking-panel-title {
    font-family: Mouris, Georgia, serif;
    font-size: 15px;
    color: #14241c;
    margin: 0;
  }

  .pc-booking-panel-close {
    background: none;
    border: 0;
    cursor: pointer;
    color: #3b5e4d;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pc-booking-panel-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .pc-booking-panel-body {
    padding: 0;
  }

  /* Overlay backdrop */
  .pc-booking-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9050;
    background: rgba(0,0,0,.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .32s;
  }

  .pc-booking-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
  }
}

/* =====================================================
   Sticky Icon Tabs (Overview / Itinerary / The details)
   ===================================================== */
.detail-tabs {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  border-bottom: 1px solid #c1ccb9 !important;
  margin-bottom: 28px !important;
  padding: 0 0 4px 0 !important;
  overflow-x: auto !important;
}

.detail-tabs a {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: #4d6e58 !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: all .2s ease !important;
  white-space: nowrap !important;
}

.detail-tabs a svg {
  width: 17px !important;
  height: 17px !important;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 1.6 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  opacity: .8 !important;
}

.detail-tabs a.is-active {
  color: #0f1d16 !important;
  border-bottom-color: #947c55 !important;
  background: rgba(148, 124, 85, 0.08) !important;
}

.detail-tabs a.is-active svg {
  opacity: 1 !important;
  stroke: #947c55 !important;
}

@media (max-width: 768px) {
  /* Sticky tabs on mobile when scrolling */
  .detail-tabs {
    position: sticky !important;
    top: 0 !important;
    z-index: 500 !important;
    background: #f5eee3 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    margin: 0 0 20px 0 !important;
    padding: 6px 4px !important;
    border-bottom: 1.5px solid #b7c4ae !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06) !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .detail-tabs a {
    flex: 1 !important;
    padding: 9px 6px !important;
    font-size: 10px !important;
    gap: 5px !important;
    letter-spacing: .03em !important;
  }

  .detail-tabs a svg {
    width: 15px !important;
    height: 15px !important;
  }
}
