/* css/concierge/bottle-detail.css */
/* Clean White + Black Full-Screen Bottle Detail Modal with Horizontal Swiper */

.bt-detail-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: #FFFFFF;
  z-index: 100100;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              visibility 0.32s;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

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

.bd-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
}

/* Floating Clean Top Navigation Bar */
.bd-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  padding: max(16px, env(safe-area-inset-top)) 16px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 70%, rgba(255, 255, 255, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20;
  box-sizing: border-box;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Dynamic styling for top bar when in full-bleed experience mode */
.bt-detail-overlay.is-exp-view .bd-top-bar {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bt-detail-overlay.is-exp-view .bd-top-title {
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.bt-detail-overlay.is-exp-view .bd-back-btn,
.bt-detail-overlay.is-exp-view .bd-search-btn {
  color: #FFFFFF;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bt-detail-overlay.is-exp-view .bd-back-btn:hover,
.bt-detail-overlay.is-exp-view .bd-search-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.bd-back-btn,
.bd-search-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #111317;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
  border-radius: 50%;
  transition: transform 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.bd-back-btn:hover,
.bd-search-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.bd-top-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 60%;
}

.bd-top-title {
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #111317;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Scrollable Container with space for anchored bottom bar */
.bd-scroll-body {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: max(60px, env(safe-area-inset-top));
  padding-bottom: 24px;
  box-sizing: border-box;
}

/* For full-bleed Experience View: image goes all the way to very top edge of screen */
.bt-detail-overlay.is-exp-view .bd-scroll-body {
  padding-top: 0;
}

/* Hero Presentation Stage (Swiper Area) */
.bd-hero-stage {
  position: relative;
  width: 100%;
  height: 320px;
  background: radial-gradient(circle at 50% 65%, #F4F5F7 0%, #FFFFFF 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
  overflow: hidden;
}

/* Heart Button */
.bd-heart-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #8E929B;
  transition: transform 0.15s ease, color 0.15s ease;
  z-index: 5;
  outline: none;
  padding: 0;
}

.bd-heart-btn:hover {
  transform: scale(1.15);
  color: #111317;
}

.bd-heart-btn.active {
  color: #E02424;
}

.bd-heart-btn.active svg {
  fill: #E02424;
}

/* Pinned Badge */
.bd-badge {
  position: absolute;
  top: 16px;
  left: 20px;
  background-color: #FFE600;
  color: #111317;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* In Experience Full-Bleed View: pin badge cleanly at bottom left of image, clear of the top back arrow */
.bd-hero-stage.is-experience-stage .bd-badge {
  top: auto;
  bottom: 20px;
  left: 20px;
  background-color: #111317;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Media Canvas */
.bd-media-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

/* Hero Presentation Stage for Experiences: edge-to-edge full bleed */
.bd-hero-stage.is-experience-stage {
  height: 380px;
  background: #0B0D12;
}

@media (min-width: 768px) {
  .bd-hero-stage.is-experience-stage {
    height: 440px;
  }
}

.bd-exp-full-bleed {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bd-exp-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bd-exp-image-scrim {
  position: absolute;
  inset: 0;
  /* Top vignette for back-button contrast + tight, subtle bottom fade confined to the lower 12% */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.20) 18%,
    rgba(0, 0, 0, 0) 45%,
    rgba(255, 255, 255, 0) 86%,
    rgba(255, 255, 255, 0.45) 94%,
    rgba(255, 255, 255, 0.85) 98%,
    #FFFFFF 100%
  );
  pointer-events: none;
}

/* Experience Square Image Presentation in Modal (Deprecated in favor of full-bleed) */
.bd-exp-image-wrap {
  width: 100%;
  height: 100%;
}

.bd-bottle-img {
  max-height: 85%;
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

/* Staggered Dual-Bottle Canvas */
.bd-duo-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bd-duo-primary {
  position: relative;
  z-index: 2;
  transform: translateX(-16%) translateY(2%) scale(0.92);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.18));
}

.bd-duo-secondary {
  position: absolute;
  z-index: 1;
  transform: translateX(18%) translateY(-4%) scale(0.85);
  opacity: 0.95;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.14));
}

/* Swipe Left/Right Visual Slide Physics */
.slide-in-next {
  animation: bdSlideNext 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-in-prev {
  animation: bdSlidePrev 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bdSlideNext {
  0% { opacity: 0; transform: translateX(60px) scale(0.95); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes bdSlidePrev {
  0% { opacity: 0; transform: translateX(-60px) scale(0.95); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Desktop Arrow Nav */
.bd-swipe-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111317;
  z-index: 6;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bd-swipe-nav-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.bd-arrow-left { left: 16px; }
.bd-arrow-right { right: 16px; }

/* Info Card Block */
.bd-info-card {
  padding: 24px 20px 24px 20px;
  box-sizing: border-box;
}

.bd-title-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bd-title {
  margin: 0;
  padding: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #111317;
  letter-spacing: -0.025em;
  line-height: 1.2;
  flex: 1;
}

/* Price Box on page */
.bd-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  flex-shrink: 0;
}

.bd-price-was {
  text-decoration: line-through;
  font-size: 0.95rem;
  color: #9CA3AF;
  font-weight: 600;
  margin-bottom: 4px;
}

.bd-price-now {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111317;
  letter-spacing: -0.02em;
}

.bd-venue-location {
  margin: 8px 0 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4B5563;
}

.bd-datetime {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: #6B7280;
}

/* Action Row (Share Button) */
.bd-actions-row {
  margin-top: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.bd-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #111317;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #111317;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  outline: none;
}

.bd-share-btn:hover {
  background-color: #111317;
  color: #FFFFFF;
}

.bd-share-btn:active {
  transform: scale(0.96);
}

/* Details Section */
.bd-details-section {
  margin-top: 24px;
}

.bd-section-heading {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111317;
}

.bd-description-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4B5563;
}

.bd-perks-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bd-perk-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bd-perk-icon-wrap {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111317;
}

.bd-perk-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111317;
  line-height: 1.35;
}

/* VIP Table Policy & Logistics Grid */
.bd-policy-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #F3F4F6;
}

.bd-policy-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bd-policy-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bd-policy-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  margin-top: 1px;
}

.bd-policy-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bd-policy-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111317;
}

.bd-policy-val {
  font-size: 0.82rem;
  font-weight: 400;
  color: #6B7280;
  line-height: 1.35;
}

/* Optional Add-On Pairs Section */
.bd-addons-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #F3F4F6;
}

.bd-addons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bd-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #F9FAFB;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bd-addon-row:hover {
  border-color: #111317;
}

.bd-addon-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bd-addon-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid #D1D5DB;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.bd-addon-check.checked {
  background: #111317;
  border-color: #111317;
}

.bd-addon-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bd-addon-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111317;
}

.bd-addon-sub {
  font-size: 0.76rem;
  font-weight: 400;
  color: #6B7280;
}

.bd-addon-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: #111317;
}

.bd-bottom-pad {
  height: 30px;
  width: 100%;
}

/* Anchored Bottom Sticky Book Now Bar (Full Width) */
.bd-bottom-bar {
  flex-shrink: 0;
  width: 100%;
  background: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  padding: 14px 20px max(18px, env(safe-area-inset-bottom)) 20px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  z-index: 30;
}

.bd-bottom-bar-inner {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.bd-book-btn {
  width: 100%;
  padding: 16px 24px;
  background-color: #111317;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, background-color 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.bd-book-btn:hover {
  background-color: #24292F;
  transform: translateY(-1px);
}

.bd-book-btn:active {
  transform: scale(0.98);
}

/* Responsive Desktop Container */
@media (min-width: 640px) {
  .bd-viewport {
    max-width: 580px;
    margin: 0 auto;
    border-left: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
  }
}
