/* --- FIXED LAYOUT & VIEWPORT LOCK (Destination Details context only) --- */
html:has(.boh-destination-detail),
body:has(.boh-destination-detail) {
  height: 100%;
  overflow: hidden;
}

body:has(.boh-destination-detail) .boh-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body:has(.boh-destination-detail) .boh-shell__header {
  display: none; /* Hide global header since detail page has its own absolute actions */
}

body:has(.boh-destination-detail) .boh-shell__main {
  flex: 1;
  overflow-y: auto;
  padding-left: 0;
  padding-right: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body:has(.boh-destination-detail) .boh-shell__main::-webkit-scrollbar {
  display: none;
}

body:has(.boh-destination-detail) .boh-shell__bottom {
  flex-shrink: 0;
  position: static;
  background-color: var(--boh-semantic-background);
}

/* --- DETAIL PAGE FLOW --- */
.boh-destination-detail {
  display: flex;
  flex-direction: column;
  background-color: var(--boh-semantic-background);
  font-family: var(--boh-font-sans);
  color: var(--boh-semantic-text-primary);
  min-height: 100%;
}

/* --- BANNER HERO IMAGE --- */
.boh-dest-hero {
  position: relative;
  width: 100%;
  height: 320px;
  flex-shrink: 0;
}

.boh-dest-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boh-dest-hero__img.boh-image-fallback--active {
  background: linear-gradient(145deg, #f7f4ed 0%, #ece5d8 100%);
}

.boh-dest-hero__img.boh-image-fallback--placeholder {
  object-fit: contain;
  padding: 1rem;
  background: linear-gradient(145deg, #f7f4ed 0%, #ece5d8 100%);
}

.boh-dest-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 40%, transparent 100%);
  pointer-events: none;
}

.boh-dest-hero__actions {
  position: absolute;
  top: 2rem; /* pt-8 equivalent = 32px */
  left: 0;
  right: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.boh-dest-hero__action-btn {
  width: 2.5rem; /* w-10 = 40px */
  height: 2.5rem; /* h-10 = 40px */
  border-radius: 50%;
  border: none;
  background-color: rgba(0, 0, 0, 0.2); /* bg-black/20 */
  backdrop-filter: blur(12px); /* backdrop-blur-md */
  -webkit-backdrop-filter: blur(12px);
  color: var(--boh-color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  text-decoration: none;
}

.boh-dest-hero__action-btn:active {
  transform: scale(0.95);
}

.boh-dest-hero__action-btn svg {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  stroke-width: 2.2;
}

.boh-dest-hero__action-btn .icon-left,
.boh-dest-hero__action-btn .icon-close {
  width: 1.5rem; /* 24px */
  height: 1.5rem; /* 24px */
}

.boh-dest-hero__right-group {
  display: flex;
  gap: 0.5rem; /* gap-2 = 8px */
}

/* --- CONTENT CARD --- */
.boh-dest-content {
  position: relative;
  margin-top: -1.5rem; /* -mt-6 */
  background-color: var(--boh-semantic-background);
  border-top-left-radius: 24px; /* rounded-t-[24px] */
  border-top-right-radius: 24px;
  padding: 1.25rem var(--boh-space-screen) 0 var(--boh-space-screen); /* pt-5, px-screen */
  display: flex;
  flex-direction: column;
}

/* vertical spacing matching space-y-4 */
.boh-dest-content > * + * {
  margin-top: 1rem;
}

.boh-dest-header__subtitle {
  font-family: var(--boh-font-sans);
  color: var(--boh-color-gold); /* text-boh-gold */
  font-size: var(--boh-font-size-eyebrow); /* text-eyebrow */
  font-weight: var(--boh-font-weight-700); /* font-bold */
  letter-spacing: var(--boh-letter-spacing-eyebrow); /* tracking-widest */
  text-transform: uppercase;
}

.boh-dest-header__title {
  font-family: var(--boh-font-serif);
  color: var(--boh-color-primary); /* text-boh-primary */
  font-size: var(--boh-font-size-display); /* text-display */
  font-weight: var(--boh-font-weight-600); /* font-semibold */
  line-height: var(--boh-line-height-display);
  margin: 0.25rem 0 0 0; /* mt-1 = 4px */
}

.boh-dest-header__metadata {
  display: flex;
  align-items: center;
  gap: 1rem; /* gap-4 = 16px */
  margin-top: 0.75rem; /* mt-3 = 12px */
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-body);
}

.boh-dest-metadata__item {
  display: flex;
  align-items: center;
  gap: 0.25rem; /* gap-1 = 4px */
}

.boh-dest-metadata__item--gold {
  color: var(--boh-color-gold);
}

.boh-dest-metadata__item--gold svg {
  color: var(--boh-color-gold);
  fill: var(--boh-color-gold);
}

.boh-dest-metadata__item--muted {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent); /* text-boh-muted/70 */
}

.boh-dest-metadata__item svg {
  width: 1rem; /* 16px */
  height: 1rem; /* 16px */
  flex-shrink: 0;
}

.boh-dest-description {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent); /* text-boh-muted/70 */
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-body);
  line-height: var(--boh-line-height-body);
  margin: 0;
}

/* --- AMENITIES --- */
.boh-dest-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* gap-2 = 8px */
}

.boh-dest-amenities__chip {
  background-color: var(--boh-color-surface); /* bg-boh-surface */
  padding: 0.5rem 1rem; /* py-2 px-4 */
  border-radius: var(--boh-radius-chip); /* rounded-chip */
  display: flex;
  align-items: center;
  gap: 0.5rem; /* gap-2 = 8px */
  box-shadow: 0 2px 6px rgba(38, 86, 77, 0.04); /* shadow-sm */
  font-family: var(--boh-font-sans);
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: var(--boh-font-size-label);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 4%, transparent);
}

.boh-dest-amenities__chip svg {
  width: 1rem; /* 16px */
  height: 1rem; /* 16px */
  flex-shrink: 0;
}

/* --- GALLERY --- */
.boh-dest-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* mb-2 = 8px */
}

.boh-dest-gallery__title {
  font-family: var(--boh-font-sans);
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: var(--boh-font-size-label);
  margin: 0;
}

.boh-dest-gallery__track {
  display: flex;
  gap: 0.75rem; /* gap-3 = 12px */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Bleeds to edges */
  margin-left: calc(-1 * var(--boh-space-screen));
  margin-right: calc(-1 * var(--boh-space-screen));
  padding-left: var(--boh-space-screen);
  padding-right: var(--boh-space-screen);
  padding-bottom: 0.25rem;
}

.boh-dest-gallery__item {
  width: 7rem; /* w-28 = 112px */
  height: 5rem; /* h-20 = 80px */
  border-radius: var(--boh-radius-chip);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  scroll-snap-align: start;
}

.boh-dest-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boh-dest-gallery__img.boh-image-fallback--active {
  background: linear-gradient(145deg, #f7f4ed 0%, #ece5d8 100%);
}

.boh-dest-gallery__img.boh-image-fallback--placeholder {
  object-fit: contain;
  padding: 0.35rem;
  background: linear-gradient(145deg, #f7f4ed 0%, #ece5d8 100%);
}

.boh-dest-gallery__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4); /* bg-black/40 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--boh-color-surface);
  font-family: var(--boh-font-sans);
  font-weight: var(--boh-font-weight-700);
  font-size: var(--boh-font-size-label);
}

/* --- PAGE BOTTOM BAR (CUSTOM FOR DETAIL PAGE) --- */
.boh-dest-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--boh-space-screen); /* py-4, px-screen */
  background-color: var(--boh-semantic-background);
  border-top: 1px solid color-mix(in srgb, var(--boh-color-border) 10%, transparent);
}

.boh-dest-bottom-bar__price-lbl {
  font-family: var(--boh-font-sans);
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent); /* text-boh-muted/70 */
  font-size: var(--boh-font-size-eyebrow); /* text-eyebrow */
  font-weight: var(--boh-font-weight-700); /* font-bold */
  text-transform: uppercase;
  letter-spacing: var(--boh-letter-spacing-eyebrow);
  margin: 0;
}

.boh-dest-bottom-bar__price-group {
  display: flex;
  align-items: baseline;
  gap: 0.125rem; /* gap-1 = 4px */
}

.boh-dest-bottom-bar__price-val {
  font-family: var(--boh-font-sans);
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-800); /* font-extrabold */
  font-size: var(--boh-font-size-navtitle); /* text-navtitle */
}

.boh-dest-bottom-bar__price-unit {
  font-family: var(--boh-font-sans);
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  font-size: 10px; /* text-[10px] */
}

.boh-dest-bottom-bar__cta {
  background-color: var(--boh-color-primary); /* bg-boh-primary */
  color: var(--boh-color-surface);
  font-family: var(--boh-font-sans);
  font-weight: var(--boh-font-weight-700); /* font-bold */
  font-size: var(--boh-font-size-btn); /* text-btn */
  padding: 0.875rem 1.5rem; /* py-3.5 px-6 */
  border-radius: var(--boh-radius-button); /* rounded-button */
  box-shadow: var(--boh-shadow-card);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.boh-dest-bottom-bar__cta:active {
  transform: scale(0.95);
}

/* --- DESTINATIONS LIST CONTEXT (Viewport Lock) --- */
html:has(.boh-destinations-list),
body:has(.boh-destinations-list) {
  height: 100%;
  overflow: hidden;
}

body:has(.boh-destinations-list) .boh-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body:has(.boh-destinations-list) .boh-shell__header {
  display: none; /* Hide global header since Destinations page has its own custom back action header */
}

body:has(.boh-destinations-list) .boh-shell__main {
  flex: 1;
  overflow-y: auto;
  padding-left: 0;
  padding-right: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body:has(.boh-destinations-list) .boh-shell__main::-webkit-scrollbar {
  display: none;
}

body:has(.boh-destinations-list) .boh-shell__bottom {
  flex-shrink: 0;
  position: static;
  background-color: var(--boh-semantic-background);
}

/* --- DESTINATIONS LIST STYLING --- */
.boh-destinations-list {
  display: flex;
  flex-direction: column;
  background-color: var(--boh-semantic-background);
  font-family: var(--boh-font-sans);
  color: var(--boh-semantic-text-primary);
  min-height: 100%;
  padding-bottom: 2rem;
}

/* Header Area */
.boh-dest-list-header {
  padding: 2.5rem var(--boh-space-screen) 0.625rem var(--boh-space-screen); /* pt-10 pb-2.5 px-screen */
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.boh-dest-list-header__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.boh-dest-list-header__back {
  position: absolute;
  left: calc(-1 * var(--boh-space-screen) + 0.5rem);
  padding: 0.5rem;
  color: var(--boh-color-primary);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  text-decoration: none;
}

.boh-dest-list-header__back:active {
  transform: scale(0.9);
}

.boh-dest-list-header__back svg {
  width: 1.5rem; /* 24px */
  height: 1.5rem; /* 24px */
  stroke-width: 2.2;
}

.boh-dest-list-header__center {
  text-align: center;
}

.boh-dest-list-header__title {
  font-family: var(--boh-font-sans);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
  font-size: var(--boh-font-size-navtitle); /* text-navtitle */
  margin: 0;
}

.boh-dest-list-header__subtitle {
  font-family: var(--boh-font-sans);
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent); /* text-boh-muted/70 */
  font-size: 13px; /* text-[13px] */
  margin: 0.125rem 0 0 0; /* mt-0.5 */
}

/* Scroll Container Content */
.boh-dest-list-content {
  padding-left: var(--boh-space-screen);
  padding-right: var(--boh-space-screen);
  display: flex;
  flex-direction: column;
}

.boh-dest-list-content > * + * {
  margin-top: 1rem; /* space-y-4 = 16px */
}

/* Active Destination Card */
.boh-dest-card {
  width: 100%;
  background-color: var(--boh-color-surface); /* bg-boh-surface */
  border-radius: var(--boh-radius-card); /* rounded-card */
  padding: 0.75rem; /* p-3 = 12px */
  display: flex;
  align-items: center;
  gap: 1rem; /* gap-4 = 16px */
  box-shadow: var(--boh-shadow-card);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 4%, transparent);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.boh-dest-card:active {
  transform: scale(0.98);
}

.boh-dest-card__img-wrap {
  width: 5rem; /* w-20 = 80px */
  height: 5rem; /* h-20 = 80px */
  border-radius: var(--boh-radius-chip); /* rounded-chip */
  overflow: hidden;
  flex-shrink: 0;
}

.boh-dest-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boh-dest-card__info {
  flex: 1;
  min-width: 0;
}

.boh-dest-card__title {
  font-family: var(--boh-font-sans);
  color: var(--boh-color-primary);
  font-weight: var(--boh-font-weight-700);
  font-size: var(--boh-font-size-label); /* text-label */
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boh-dest-card__subtitle {
  font-family: var(--boh-font-sans);
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent); /* text-boh-muted/70 */
  font-size: var(--boh-font-size-body);
  margin: 0.125rem 0 0 0; /* mt-0.5 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boh-dest-card__arrow {
  width: 1.25rem; /* w-5 = 20px */
  height: 1.25rem; /* h-5 = 20px */
  color: color-mix(in srgb, var(--boh-color-muted) 30%, transparent);
  flex-shrink: 0;
  stroke-width: 2.2;
}

/* Locked Coming Soon Card */
.boh-dest-card--locked {
  background-color: color-mix(in srgb, var(--boh-color-surface) 50%, transparent); /* bg-boh-surface/50 */
  opacity: 0.7; /* opacity-70 */
  cursor: default;
  pointer-events: none; /* locked, no interaction */
}

.boh-dest-card__img--grayscale {
  filter: grayscale(100%);
}

.boh-dest-card__img-wrap--locked {
  position: relative;
}

.boh-dest-card__img-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2); /* bg-white/20 */
}

.boh-dest-card__coming-soon {
  font-family: var(--boh-font-sans);
  color: var(--boh-color-gold); /* text-boh-gold */
  font-weight: var(--boh-font-weight-700); /* font-bold */
  font-size: var(--boh-font-size-eyebrow); /* text-eyebrow */
  letter-spacing: var(--boh-letter-spacing-eyebrow);
  text-transform: uppercase;
  margin: 0.25rem 0 0 0; /* mt-1 */
}

.boh-dest-card__lock-icon {
  width: 1rem; /* w-4 = 16px */
  height: 1rem; /* h-4 = 16px */
  color: color-mix(in srgb, var(--boh-color-muted) 30%, transparent);
  flex-shrink: 0;
}
