:root {
  --fha-card-bg: #fff;
  --fha-card-border: rgba(25, 29, 32, .12);
  --fha-card-shadow: 0 8px 24px rgba(25, 29, 32, .055);
  --fha-text: #303437;
  --fha-muted: #73797d;
  --fha-icon: #8b9195;
  --fha-rule: rgba(25, 29, 32, .09);
  --fha-radius: 14px;
  --fha-gap: 20px;
  --fha-cta-bg: var(--e-global-color-primary, #303437);
  --fha-cta-text: #fff;
}

.fha-offers-ui {
  width: 100%;
  margin: 14px 0 30px;
  position: relative;
}

.fha-offers-ui__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, calc((100% - var(--fha-gap)) / 2));
  gap: var(--fha-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 86, 90, .24) transparent;
  padding: 2px 2px 12px;
  -webkit-overflow-scrolling: touch;
}

.fha-offers-ui__track::-webkit-scrollbar { height: 6px; }
.fha-offers-ui__track::-webkit-scrollbar-track { background: transparent; }
.fha-offers-ui__track::-webkit-scrollbar-thumb {
  background: rgba(80, 86, 90, .22);
  border-radius: 99px;
}

.fha-offer-card {
  scroll-snap-align: start;
  background: var(--fha-card-bg);
  border: 1px solid var(--fha-card-border);
  border-radius: var(--fha-radius);
  box-shadow: var(--fha-card-shadow);
  padding: clamp(22px, 2.2vw, 30px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fha-offer-card__content {
  color: var(--fha-text);
  font: inherit;
  min-width: 0;
}

.fha-offer-card__content > h2:first-child,
.fha-offer-card__content > h3:first-child,
.fha-offer-card__content > h4:first-child {
  margin: 0 0 13px !important;
  font-size: clamp(1.34rem, 1.75vw, 1.62rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -.024em;
  font-weight: 680 !important;
  color: #272c2f;
  text-wrap: balance;
}

.fha-offer-card__content h2,
.fha-offer-card__content h3,
.fha-offer-card__content h4 {
  color: inherit;
}

.fha-offer-card__content p {
  margin: 0 0 13px;
  line-height: 1.55;
}

.fha-offer-card__content > :last-child { margin-bottom: 0; }


.fha-offer-card__price {
  margin-top: 18px;
  padding: 17px 0 1px;
  border-top: 1px solid var(--fha-rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 18px;
  row-gap: 4px;
  color: #555b5f;
}

.fha-price-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.fha-price-old {
  color: #8a8f92;
  font-size: .82rem;
  font-weight: 450;
  line-height: 1.2;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: #8a8f92;
}

.fha-current-price {
  color: #24292c;
  font-size: clamp(1.48rem, 2vw, 1.72rem);
  line-height: 1.04;
  font-weight: 720;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.fha-price-stay {
  min-width: 86px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding-left: 18px;
  border-left: 1px solid rgba(25, 29, 32, .12);
  color: #666c70;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.fha-price-stay strong {
  display: block;
  color: #2f3437;
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.015em;
}

.fha-price-stay span {
  display: block;
  margin: 0 !important;
  color: #73797d;
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
}

@media (max-width: 540px) {
  .fha-offer-card__price {
    grid-template-columns: minmax(0, 1fr) 78px;
    column-gap: 14px;
  }

  .fha-price-stay {
    min-width: 78px;
    padding-left: 14px;
  }

  .fha-price-stay strong {
    font-size: 1.28rem;
  }
}

.fha-offer-card__cta {
  margin-top: 14px;
  width: 100%;
}

.fha-offer-card__cta a {
  display: flex !important;
  width: 100% !important;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: var(--fha-cta-bg) !important;
  color: var(--fha-cta-text) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: .005em;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(25, 29, 32, .11);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.fha-offer-card__cta a:hover,
.fha-offer-card__cta a:focus-visible {
  color: var(--fha-cta-text) !important;
  opacity: .94;
  box-shadow: 0 6px 16px rgba(25, 29, 32, .14);
}

.fha-offer-card__cta a:active {
  transform: translateY(1px);
  box-shadow: 0 3px 9px rgba(25, 29, 32, .11);
}

.fha-nearby {
  margin: 17px 0 0;
  border-top: 1px solid var(--fha-rule);
  border-bottom: 1px solid var(--fha-rule);
  padding: 4px 0;
  background: transparent !important;
  border-radius: 0 !important;
}

.fha-nearby > summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 12px 0 8px;
  color: #555b5f;
  user-select: none;
}

.fha-nearby > summary::-webkit-details-marker { display: none; }

.fha-nearby__summary-title {
  display: block;
  font-size: .91rem;
  font-weight: 650;
  line-height: 1.25;
}

.fha-nearby__summary-sub {
  grid-column: 1;
  display: block;
  margin-top: 1px;
  color: #8a9094;
  font-size: .78rem;
  line-height: 1.35;
  font-weight: 400;
}

.fha-nearby > summary::after {
  content: '';
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--fha-icon);
  border-bottom: 1.5px solid var(--fha-icon);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
  flex: 0 0 auto;
}

.fha-nearby[open] > summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.fha-nearby__body {
  padding: 8px 0 5px;
  color: #4f5559;
  font-size: .88rem;
}

.fha-nearby__body > * {
  max-width: 100%;
}

.fha-nearby__body > div,
.fha-nearby__body > section {
  margin: 0 !important;
}

.fha-nearby__body h2,
.fha-nearby__body h3,
.fha-nearby__body h4,
.fha-nearby__body h5,
.fha-nearby__body h6 {
  font-size: .98rem !important;
  line-height: 1.3 !important;
  margin: 15px 0 5px !important;
  color: #3f4549;
  font-weight: 650;
}

.fha-nearby__body p {
  margin-bottom: 8px;
  line-height: 1.48;
}

.fha-nearby__body a {
  color: #42484c;
  text-decoration: underline;
  text-decoration-color: rgba(85, 92, 96, .34);
  text-underline-offset: 2px;
}

.fha-nearby__body .fha-meta-line {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: flex-start;
  color: #5f666a;
  font-size: .84rem;
  line-height: 1.45;
}

.fha-nearby__body .fha-meta-line .fha-inline-icon {
  margin-top: .13em;
  margin-right: 3px;
}

.fha-inline-icon {
  width: 15px;
  height: 15px;
  color: var(--fha-icon);
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
  flex: 0 0 auto;
}

.fha-icon-link {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}

.fha-offers-ui__hint {
  display: none;
  margin: 2px 2px 0;
  font-size: .77rem;
  color: #8b9194;
}

.fha-offers-source--enhanced { display: none !important; }

@media (max-width: 900px) {
  .fha-offers-ui__track {
    grid-auto-columns: minmax(78%, 1fr);
    gap: 14px;
    padding-right: 10%;
  }
  .fha-offers-ui__hint { display: block; }
}

@media (max-width: 600px) {
  .fha-offers-ui {
    margin-top: 10px;
    margin-bottom: 24px;
  }
  .fha-offers-ui__track {
    grid-auto-columns: minmax(91%, 1fr);
    gap: 12px;
    padding: 1px 7% 10px 1px;
  }
  .fha-offer-card {
    padding: 20px 17px 18px;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(25, 29, 32, .045);
  }
  .fha-offer-card__content > h2:first-child,
  .fha-offer-card__content > h3:first-child,
  .fha-offer-card__content > h4:first-child {
    font-size: 1.34rem !important;
    line-height: 1.2 !important;
    margin-bottom: 12px !important;
  }
  .fha-offer-card__content p { font-size: .94rem; }
  .fha-offer-card__price { margin-top: 18px; }
  .fha-offer-card__cta a {
    min-height: 54px;
    font-size: 1.01rem !important;
  }
  .fha-nearby { margin-top: 15px; }
  .fha-nearby > summary { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .fha-offers-ui__track { scroll-behavior: auto; }
  .fha-nearby > summary::after,
  .fha-offer-card__cta a { transition: none; }
}


/* Normalize source-plugin event wrappers once moved into the disclosure. */
.fha-nearby__body [style*="background"],
.fha-nearby__body [class*="event"] {
  box-shadow: none;
}

.fha-nearby__body > :first-child { margin-top: 0 !important; }
.fha-nearby__body > :last-child { margin-bottom: 0 !important; }


.fha-nearby__body,
.fha-nearby__body p,
.fha-nearby__body li,
.fha-nearby__body span:not(.fha-nearby__summary-title):not(.fha-nearby__summary-sub) {
  color: #4f5559;
}

@media (max-width: 560px) {
  .fha-offer-card__price {
    column-gap: 14px;
  }

  .fha-price-stay {
    padding-left: 14px;
    font-size: .86rem;
  }

  .fha-current-price {
    font-size: 1.5rem;
  }
}
