/**
 * GHA Cross-Brand Search Widget styles.
 * All rules scoped to #gha_cross_brand_widgit to avoid affecting any other
 * part of the site.
 */

/* ── Dropdown container ─────────────────────────────────────────────────── */
#gha_cross_brand_widgit .cbs-dropdown-menu {
  width: 360px;
  padding: 0;
  max-height: calc(75vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b8974a #f5f5f5;
}
#gha_cross_brand_widgit .cbs-dropdown-menu::-webkit-scrollbar {
  width: 6px;
  background: #f5f5f5;
}
#gha_cross_brand_widgit .cbs-dropdown-menu::-webkit-scrollbar-thumb {
  background: #b8974a;
}

/* ── Search row ─────────────────────────────────────────────────────────── */
#gha_cross_brand_widgit .cbs-search-row {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  z-index: 10;
  list-style: none;
}
#gha_cross_brand_widgit .cbs-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 18px;
  font-size: .875rem;
  font-family: inherit;
  color: #545554;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}
#gha_cross_brand_widgit .cbs-search-input:focus {
  border-color: #b8974a;
}

/* ── Accordion item (li wrapper) ────────────────────────────────────────── */
#gha_cross_brand_widgit .cbs-accordion-item {
  list-style: none;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* ── Accordion trigger button ───────────────────────────────────────────── */
#gha_cross_brand_widgit .cbs-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 16px;
  background: rgba(245,242,236,.9);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #545554;
  font-family: inherit;
}
#gha_cross_brand_widgit .cbs-accordion-trigger strong {
  font-weight: 600;
}
#gha_cross_brand_widgit .cbs-accordion-trigger:hover {
  background: rgba(184,151,74,.12);
}

/* ── Chevron icon ───────────────────────────────────────────────────────── */
#gha_cross_brand_widgit .cbs-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #b8974a;
  border-bottom: 2px solid #b8974a;
  transform: rotate(45deg);
  transition: transform .25s ease;
  flex-shrink: 0;
  margin-left: 8px;
}
#gha_cross_brand_widgit .cbs-accordion-item.is-open .cbs-chevron {
  transform: rotate(-135deg);
}

/* ── Accordion panel ────────────────────────────────────────────────────── */
#gha_cross_brand_widgit .cbs-accordion-panel {
  display: none;
  padding: 4px 0 8px;
}
#gha_cross_brand_widgit .cbs-accordion-item.is-open .cbs-accordion-panel {
  display: block;
}

/* ── Country accordion inside GHA panel ─────────────────────────────────── */
#gha_cross_brand_widgit .cbs-country-item {
  border-bottom: 1px solid rgba(0,0,0,.06);
}
#gha_cross_brand_widgit .cbs-country-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: rgba(245,242,236,.9);
  padding: 10px 16px;
  cursor: pointer;
  text-align: left;
  color: #545554;
}
#gha_cross_brand_widgit .cbs-country-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
#gha_cross_brand_widgit .cbs-country-trigger strong {
  font-weight: 600;
}
#gha_cross_brand_widgit .cbs-country-count {
  margin-left: 8px;
  color: #888;
  font-size: .85rem;
}
#gha_cross_brand_widgit .cbs-country-panel {
  display: none;
  padding: 4px 0 8px;
}
#gha_cross_brand_widgit .cbs-country-item.is-open .cbs-country-panel {
  display: block;
}
#gha_cross_brand_widgit .cbs-country-toggle {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: #b8974a;
  font-size: 22px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
  margin-left: 8px;
}
#gha_cross_brand_widgit .cbs-country-toggle::before {
  content: '+';
}
#gha_cross_brand_widgit .cbs-country-item.is-open .cbs-country-trigger .cbs-country-toggle::before {
  content: '-';
}

/* ── City label (inside panel) ──────────────────────────────────────────── */
#gha_cross_brand_widgit .cbs-city-label,
#gha_cross_brand_widgit .cbs-country-label {
  font-size: 1rem;
  margin: 8px 16px 2px;
  color: #b8974a;
  font-family: "Playfair Display", Georgia, serif;
  border-bottom: 1px solid rgba(184,151,74,.2);
  padding-bottom: 3px;
}

/* ── Hotel / property rows ───────────────────────────────────────────────── */
#gha_cross_brand_widgit .cbs-leela-hotel,
#gha_cross_brand_widgit .cbs-gha-hotel {
  display: block;
  padding: 6px 20px;
  font-size: .9375rem;
  color: #545554;
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1.35;
}
#gha_cross_brand_widgit .cbs-gha-hotel__name {
  display: block;
}
#gha_cross_brand_widgit .cbs-gha-hotel__brand {
  display: block;
  font-size: .72rem;
  color: #aaa;
  font-style: normal;
  margin-top: 2px;
}
#gha_cross_brand_widgit .cbs-leela-hotel:hover,
#gha_cross_brand_widgit .cbs-gha-hotel:hover {
  background: rgba(184,151,74,.1);
  color: #1a1a1a;
}
#gha_cross_brand_widgit .cbs-leela-hotel.is-selected,
#gha_cross_brand_widgit .cbs-gha-hotel.is-selected {
  background: rgba(184,151,74,.18);
  color: #1a1a1a;
  font-weight: 600;
}

/* ── GHA brand sub-label ────────────────────────────────────────────────── */
#gha_cross_brand_widgit .cbs-brand-label {
  font-size: .72rem;
  color: #999;
  display: block;
  padding: 4px 20px 0;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ── No-results message ─────────────────────────────────────────────────── */
#gha_cross_brand_widgit .cbs-no-results {
  padding: 16px 18px;
  color: #999;
  font-size: .875rem;
  font-style: italic;
}

/* ── GHA loading placeholder ────────────────────────────────────────────── */
#gha_cross_brand_widgit .cbs-gha-loading {
  padding: 12px 18px;
  color: #aaa;
  font-size: .85rem;
  font-style: italic;
}

/* ── Promo-locked note (shows when GHA selected) ────────────────────────── */
#gha_cross_brand_widgit ~ .form-item-destination.promo .cbs-promo-gha-note,
.cbs-promo-gha-note {
  display: none;
  font-size: .75rem;
  color: #999;
  font-style: italic;
  padding: 4px 0 0;
  line-height: 1.4;
}

/* ── Hidden helper ──────────────────────────────────────────────────────── */
.cbs-hidden {
  display: none !important;
}

/* ── Promo hard-disabled state for non-Leela selection ─────────────────── */
#block-leela-bookingblock .form-item-destination.promo.cbs-promo-disabled,
#block-leela-bookingblock .promo.cbs-promo-disabled {
  pointer-events: none !important;
  user-select: none;
  opacity: .55;
}

#block-leela-bookingblock .form-item-destination.promo.cbs-promo-disabled .dropdown-toggle,
#block-leela-bookingblock .promo.cbs-promo-disabled input,
#block-leela-bookingblock .promo.cbs-promo-disabled button,
#block-leela-bookingblock .promo.cbs-promo-disabled a {
  cursor: not-allowed !important;
}
