/* ==========================================================================
   RACHEL'S PALM BEACH - FULL-SCREEN BOTTLE SERVICE TAKEOVER
   Modern Mobile Discover Layout - Clean White Theme with Black Typography
   ========================================================================== */

.bottle-takeover-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: #FFFFFF;
  z-index: 100050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.32s;
  color: #111317;
  font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bottle-takeover-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* --- HEADER CONTAINER --- */
.bt-header {
  flex-shrink: 0;
  background-color: #FFFFFF;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
}

/* Navigation & Title Row */
.bt-nav-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(22px, env(safe-area-inset-top)) 20px 24px 20px;
  box-sizing: border-box;
}

/* Bare 'X' in Top-Left Corner (Zero container, zero box, clean black glyph) */
.bt-close-btn {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none;
  cursor: pointer;
  color: #111317;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  z-index: 25;
}

.bt-close-btn svg {
  display: block;
  overflow: visible;
}

.bt-close-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.bt-close-btn:active {
  transform: translateY(-50%) scale(0.92);
}

/* Centered Title + Dropdown Group */
.bt-center-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  max-width: calc(100% - 110px);
}

.bt-title {
  margin: 0;
  padding: 0;
  font-size: 1.68rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #111317;
  line-height: 1.15;
}

/* Dropdown trigger */
.bt-dropdown-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.bt-dropdown-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  cursor: pointer;
  color: #111317;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.bt-dropdown-trigger:hover {
  opacity: 0.8;
}

.bt-chevron-svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  stroke: #111317;
}

.bt-dropdown-wrap.open .bt-chevron-svg {
  transform: rotate(180deg);
}

/* Dropdown popover menu (Centered under Bottles ⌵) */
.bt-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 230px;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px) scale(0.96);
  transform-origin: top center;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  z-index: 50;
}

.bt-dropdown-wrap.open .bt-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.bt-dropdown-item {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(17, 19, 23, 0.8);
  transition: background-color 0.18s ease, color 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-tap-highlight-color: transparent;
}

.bt-dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: #111317;
}

.bt-dropdown-item.active {
  background-color: rgba(30, 96, 213, 0.08);
  color: #1E60D5;
  font-weight: 700;
}

/* Search button on right */
.bt-search-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none;
  cursor: pointer;
  color: #111317;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  z-index: 25;
}

.bt-search-btn svg {
  display: block;
}

.bt-search-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* --- TABS (BOTTLE SERVICE & EXPERIENCES) --- */
/* Stretches 100% edge-to-edge across screen with 50/50 division */
.bt-tabs-nav {
  width: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.bt-tab-btn {
  flex: 1;
  width: 50%;
  background: none;
  border: none;
  padding: 14px 0 16px 0;
  margin: 0;
  outline: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.bt-tab-btn span {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(17, 19, 23, 0.45);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.bt-tab-btn:hover span {
  color: rgba(17, 19, 23, 0.75);
}

.bt-tab-btn.active span {
  color: #111317;
}

/* Sliding Solid Blue Bar across full 50% width of active tab */
.bt-tab-slider-line {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50%;
  height: 3.5px;
  background-color: #1E60D5;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.bt-tabs-nav[data-active="bottle"] .bt-tab-slider-line {
  transform: translateX(0%);
}

.bt-tabs-nav[data-active="experiences"] .bt-tab-slider-line {
  transform: translateX(100%);
}

/* --- BLANK BODY CANVAS --- */
.bt-content-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #FFFFFF;
  padding: 24px 20px;
  position: relative;
}
