@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Manrope:wght@200..800&display=swap");

/* --- FIXED LAYOUT & VIEWPORT LOCK (Home Page context only) --- */
html:has(.boh-home),
body:has(.boh-home) {
  height: 100%;
  overflow: hidden;
}

body:has(.boh-home) .boh-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body:has(.boh-home) .boh-shell__header {
  flex-shrink: 0;
  position: static; /* Managed by shell flexbox */
  background-color: var(--boh-semantic-background);
}

body:has(.boh-home) .boh-shell__main {
  flex: 1;
  overflow-y: auto;
  padding-left: 0;
  padding-right: 0;
  background-color: var(--boh-semantic-background);
  -ms-overflow-style: none;
  scrollbar-width: none;
  z-index: 1;
}

body:has(.boh-home) .boh-shell__main::-webkit-scrollbar {
  display: none;
}

body:has(.boh-home) .boh-shell__bottom {
  flex-shrink: 0;
  position: static; /* Managed by shell flexbox */
  background-color: var(--boh-semantic-background);
}

/* --- MAIN CONTAINER FLOW --- */
.boh-home {
  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-left: var(--boh-space-screen);
  padding-right: var(--boh-space-screen);
  padding-bottom: 6rem;
}

/* vertical spacing between child sections */
.boh-home > * + * {
  margin-top: 0.25rem;
}

/* Spacer block to reserve layout space for the absolute quick-link category cards */
.boh-home-quick-links-spacer {
  height: 3.5rem;
}

/* --- HEADER --- */
.boh-home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--boh-space-screen) 0.375rem var(--boh-space-screen);
  background-color: var(--boh-semantic-background);
  position: relative;
  z-index: 30;
}

.boh-home-header__col {
  display: flex;
  align-items: center;
}

.boh-home-header__col:nth-child(1) {
  flex: 1;
  justify-content: flex-start;
}

.boh-home-header__col:nth-child(2) {
  flex: 1;
  justify-content: center;
}

.boh-home-header__col:nth-child(3) {
  flex: 1;
  justify-content: flex-end;
  gap: 0.375rem;
}

.boh-home-header__lang {
  border: none;
  background: transparent;
  color: var(--boh-color-primary);
  font-family: var(--boh-font-sans);
  font-size: 14px;
  font-weight: var(--boh-font-weight-700);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.boh-home-header__lang:active {
  opacity: 0.7;
}

.boh-home-header__logo {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.boh-home-header__btn {
  position: relative;
  border: none;
  background: transparent;
  color: var(--boh-color-primary);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.boh-home-header__btn svg {
  width: 18px;
  height: 18px;
}

.boh-home-header__btn:active {
  transform: scale(0.92);
  opacity: 0.8;
}

.boh-home-header__badge-dot {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: #e53935;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.boh-home-header__badge-dot[data-count] {
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  right: 2px;
  top: 2px;
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  font-weight: var(--boh-font-weight-700);
  color: #ffffff;
  background-color: #e53935;
}

.boh-home-header__badge-dot[data-count]::before {
  content: attr(data-count);
}

/* --- WELCOME CARD & HERO BANNER --- */
.boh-home-welcome-wrapper {
  position: relative;
  z-index: 20;
}

.boh-home-hero {
  background-color: var(--boh-color-secondary);
  border-radius: var(--boh-radius-card);
  padding: 1.25rem;
  color: var(--boh-color-surface);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Decorative blurred circle inside Welcome Card matching React */
.boh-home-hero__deco {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.boh-home-hero__deco-circle {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform: translate(33%, -50%);
  filter: blur(40px);
}

.boh-home-hero__title {
  font-family: var(--boh-font-serif);
  font-size: var(--boh-font-size-heading);
  line-height: var(--boh-line-height-heading);
  font-weight: var(--boh-font-weight-600);
  color: var(--boh-color-surface);
  margin: 0 0 1rem 0;
  position: relative;
  z-index: 10;
}

.boh-home-hero__search-box {
  position: relative;
  z-index: 30;
  color: var(--boh-color-primary);
  width: 100%;
  display: flex;
  align-items: center;
  background-color: var(--boh-color-surface);
  padding: 0.6rem 1rem;
  border-radius: var(--boh-radius-button);
  box-shadow: 0 4px 12px rgba(38, 86, 77, 0.06);
}

.boh-home-hero__search-icon {
  margin-right: 0.75rem;
}

.boh-home-hero__search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-label);
  color: var(--boh-color-primary);
  outline: none;
  padding: 0;
}

.boh-home-hero__search-input::placeholder {
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
}

.boh-home-hero__spacer {
  height: 1.5rem;
}

/* --- QUICK ACTIONS (CATEGORY CARDS) --- */
.boh-home-actions-absolute {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -54px;
  padding-left: var(--boh-space-screen);
  padding-right: var(--boh-space-screen);
  z-index: 20;
}

.boh-home-actions {
  display: flex;
  justify-content: space-between;
  overflow: visible;
}

.boh-home-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.boh-home-action-item__card {
  width: 56px;
  height: 56px;
  background-color: var(--boh-color-surface);
  border-radius: var(--boh-radius-16);
  box-shadow: var(--boh-shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--boh-color-primary);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 6%, transparent);
  transition: transform 0.15s ease;
}

.boh-home-action-item:active .boh-home-action-item__card {
  transform: scale(0.95);
}

.boh-home-action-item__card svg {
  width: 24px;
  height: 24px;
}

.boh-home-action-item__label {
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-label);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
  margin-top: 0.375rem;
  line-height: 1.3;
}

/* --- SECTION HEADER & VIEWS --- */
.boh-home-section {
  display: flex;
  flex-direction: column;
  margin: 0.875rem 0;
}

.boh-home-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.125rem;
}

.boh-home-section__title {
  font-family: var(--boh-font-serif);
  font-size: var(--boh-font-size-heading);
  line-height: var(--boh-line-height-heading);
  font-weight: var(--boh-font-weight-600);
  color: var(--boh-color-primary);
  margin: 0;
}

.boh-home-section__view-all {
  display: inline-flex;
  align-items: center;
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-label);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.boh-home-section__view-all:active {
  opacity: 0.7;
}

.boh-home-section__view-all-arrow {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  stroke-width: 2.5;
}

/* --- DESTINATIONS TRACK --- */
.boh-home-destinations {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
}

/* SPA previous card (commented — had extra bg/border/padding + different size vs Web)
.boh-home-destinations-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 148px;
  min-width: 148px;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-decoration: none;
  transition: transform 0.2s ease;
  background: color-mix(in srgb, var(--boh-color-surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 14%, transparent);
  border-radius: calc(var(--boh-radius-card) + 2px);
  padding: 0.375rem;
  box-sizing: border-box;
}

.boh-home-destinations-card:active {
  transform: scale(0.97);
}

.boh-home-destinations-card__img-wrapper {
  width: 100%;
  height: 132px;
  border-radius: var(--boh-radius-card);
  overflow: hidden;
  background-color: color-mix(in srgb, var(--boh-color-primary) 6%, #fff);
}

.boh-home-destinations-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boh-home-destinations-card__title {
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-label);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
  margin: 0;
  line-height: 1.25;
  padding: 0 0.125rem;
}

.boh-home-destinations-card__subtitle {
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-body);
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  margin: 0.125rem 0 0.125rem 0;
  line-height: 1.25;
  padding: 0 0.125rem;
}
*/

/* Matched to BOH.Web wwwroot/css/pages/home.css */
.boh-home-destinations-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 140px;
  min-width: 140px;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.boh-home-destinations-card:active {
  transform: scale(0.97);
}

.boh-home-destinations-card__img-wrapper {
  width: 100%;
  height: 140px;
  border-radius: var(--boh-radius-card);
  overflow: hidden;
}

.boh-home-destinations-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boh-home-destinations-card__title {
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-label);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
  margin: 0;
  line-height: 1.25;
}

.boh-home-destinations-card__subtitle {
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-body);
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
  margin: 0.125rem 0 0 0;
  line-height: 1.25;
}

/* --- PROMOTIONS & OFFERS --- */
.boh-home-promotions {
  display: flex;
  flex-direction: column;
}

.boh-home-promo-card {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--boh-radius-card);
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: var(--boh-shadow-card);
  border: 1px solid color-mix(in srgb, var(--boh-color-border) 6%, transparent);
  transition: transform 0.2s ease;
}

.boh-home-promo-card:active {
  transform: scale(0.98);
}

.boh-home-promo-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.boh-home-promo-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  z-index: 2;
}

.boh-home-promo-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  background-color: var(--boh-color-gold);
  color: var(--boh-color-surface);
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-eyebrow);
  font-weight: var(--boh-font-weight-700);
  letter-spacing: var(--boh-letter-spacing-eyebrow);
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: var(--boh-radius-chip);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.boh-home-promo-card__content {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 3;
  color: var(--boh-color-surface);
}

.boh-home-promo-card__title {
  font-family: var(--boh-font-serif);
  font-size: var(--boh-font-size-heading);
  line-height: var(--boh-line-height-heading);
  font-weight: var(--boh-font-weight-600);
  margin: 0 0 0.25rem 0;
}

.boh-home-promo-card__subtitle {
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-body);
  opacity: 0.9;
  margin: 0;
  line-height: 1.3;
}

/* --- FLOATING CHAT BUTTON --- */
.boh-home-chat-fab-container {
  position: relative;
  height: 0;
  width: 0;
  margin: 0;
}

.boh-home-chat-fab {
  position: fixed;
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  right: calc(50% - (var(--boh-container-max-width) / 2) + 1.25rem);
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--boh-color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--boh-color-surface);
  box-shadow: 0 6px 20px rgba(38, 86, 77, 0.25);
  border: none;
  cursor: pointer;
  z-index: 8;
  transition: transform 0.2s ease;
}

@media (max-width: 28rem) {
  .boh-home-chat-fab {
    right: 1.25rem;
  }
}

.boh-home-chat-fab:active {
  transform: scale(0.92);
}

.boh-home-chat-fab__badge {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background-color: #ef4444;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
}

.boh-home-chat-fab__badge[hidden] {
  display: none !important;
}

.boh-home-chat-fab svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2;
}

/* --- SECONDARY BOOKING ACTION BUTTON --- */
.boh-booking-detail-footer-btn-secondary {
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  font-family: var(--boh-font-sans);
  font-weight: var(--boh-font-weight-700);
  font-size: 13px;
  color: var(--boh-color-primary);
  padding: 0.5rem;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: opacity 0.2s;
}

.boh-booking-detail-footer-btn-secondary:active {
  opacity: 0.7;
}
