.fh-booking {
  --fh-primary: #2f6fed;
  --fh-primary-hover: #2459c7;
  --fh-border: #e2e8f0;
  --fh-text: #374151;
  --fh-muted: #9ca3af;
  --fh-radius: 16px;
  --fh-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fh-text);
  margin: 1.5rem 0;
}

/* —— Modern search bar (glass pill) —— */
.fh-search-bar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.fh-search-bar__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.fh-search-bar__field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 54px;
  min-height: 54px;
  padding: 0 0.85rem;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
}

.fh-search-bar__field--dates {
  flex: 1 1 auto;
  min-width: 0;
}

.fh-search-bar__field--guests {
  flex: 0 0 auto;
  min-width: max-content;
  justify-content: flex-start;
  gap: 0.5rem;
}

.fh-search-bar__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--fh-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.fh-search-bar__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.fh-search-bar__content {
  min-width: 0;
  flex: 1 1 auto;
}

.fh-search-bar__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fh-muted);
  margin-bottom: 0.15rem;
}

.fh-search-bar__value {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 22px;
  height: 22px;
  display: flex;
  align-items: center;
}

.fh-booking button.fh-search-bar__dates-btn,
.fh-cal button.fh-cal__nav,
.fh-cal button.fh-cal__day {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  margin: 0;
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  font-family: inherit;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
}

.fh-booking button.fh-search-bar__dates-btn {
  display: flex !important;
  align-items: center;
  width: 100%;
  height: 22px;
  min-height: 22px;
  padding: 0 !important;
  background: transparent !important;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  line-height: 22px !important;
  color: inherit;
  cursor: pointer;
  outline: none;
}

.fh-booking button.fh-step {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d5dbe3 !important;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: none !important;
  color: #374151;
  font-size: 1.15rem;
  line-height: 1 !important;
  cursor: pointer;
  flex: 0 0 auto;
}

.fh-step__value {
  min-width: 1.4rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.fh-booking button.fh-search-bar__dates-btn:focus,
.fh-booking button.fh-search-bar__dates-btn:focus-visible {
  outline: none;
  box-shadow: none !important;
}

.fh-search-bar__placeholder,
.fh-search-bar__range {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fh-search-bar__placeholder {
  color: #6b7280;
}

.fh-search-bar__range {
  color: var(--fh-text);
}

.fh-search-bar__value--dates.has-value .fh-search-bar__placeholder {
  display: none;
}

.fh-cal {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.55rem);
  left: 0;
  width: min(46rem, calc(100vw - 1.5rem));
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fh-cal__months {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fh-cal__month {
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 12px 12px 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.fh-cal__head {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 10px;
}

.fh-cal__title {
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  text-transform: capitalize;
  color: #1f2937;
}

.fh-cal__nav-spacer {
  width: 34px;
  height: 34px;
}

.fh-cal button.fh-cal__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50% !important;
  background: #2f6fed !important;
  color: #fff !important;
  cursor: pointer;
}

.fh-cal button.fh-cal__nav svg {
  display: block;
}

.fh-cal__hint {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 12px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f2937;
}

.fh-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.fh-cal__dow {
  background: #f4f7fb;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 7px 0;
  border-radius: 8px;
}

.fh-cal__pad,
.fh-cal__tail {
  min-height: 40px;
}

.fh-cal button.fh-cal__day {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  background: #fff !important;
  border: 1px solid #e6ebf2 !important;
  border-radius: 10px !important;
  cursor: pointer;
  color: #334155 !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.fh-cal button.fh-cal__day:hover:not(:disabled):not(.is-in):not(.is-start):not(.is-end) {
  background: #f3f8ff !important;
  border-color: #c5ddf8 !important;
}

.fh-cal button.fh-cal__day:disabled {
  color: #c5cad3 !important;
  background: #f8fafc !important;
  border-color: #f1f4f8 !important;
  cursor: default;
}

.fh-cal button.fh-cal__day.is-in {
  background: #d7ebff !important;
  border-color: #8ec5f6 !important;
  color: #0b3d73 !important;
}

.fh-cal button.fh-cal__day.is-start,
.fh-cal button.fh-cal__day.is-end {
  background: #3b9df0 !important;
  border-color: #2b8adf !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(59, 157, 240, 0.28) !important;
}

.fh-cal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  z-index: 2147483646;
}

.fh-cal.is-fixed {
  position: fixed;
  right: auto;
  width: min(46rem, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 2147483647;
}

.fh-search-bar__select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: var(--fh-text);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0 1.4rem 0 0;
  margin: 0;
  width: 100%;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.fh-search-bar__select:focus {
  outline: none;
}

.fh-search-bar__divider {
  width: 1px;
  align-self: stretch;
  background: rgba(156, 163, 175, 0.45);
  margin: 0.5rem 0.25rem;
  flex: 0 0 1px;
}

.fh-booking button.fh-search-bar__cta {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  max-width: none;
  box-sizing: border-box;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  margin: 0 !important;
  padding: 0 1.25rem !important;
  border: 0 !important;
  border-radius: 12px;
  background: #2f6fed !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fh-booking button.fh-search-bar__cta:hover {
  background: #2459c7 !important;
  color: #fff !important;
}

.fh-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow);
}

.fh-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.fh-field span {
  font-weight: 600;
  color: var(--fh-muted);
}

.fh-field input,
.fh-field select,
.fh-booking-form input,
.fh-booking-form select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--fh-border);
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.fh-btn--primary {
  background: var(--fh-primary);
  color: #fff;
  width: 100%;
}

.fh-btn--primary:hover {
  background: var(--fh-primary-hover);
  color: #fff;
}

.fh-results,
.fh-property-root {
  margin-top: 1.5rem;
}

.fh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.fh-card {
  background: #fff;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  overflow: hidden;
  box-shadow: var(--fh-shadow);
  display: flex;
  flex-direction: column;
}

.fh-card__img {
  aspect-ratio: 3 / 2;
  background: #f1f5f9;
  object-fit: cover;
  width: 100%;
}

.fh-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.fh-card__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.fh-card__meta {
  color: var(--fh-muted);
  font-size: 0.875rem;
}

.fh-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: auto;
}

.fh-card__price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fh-muted);
}

.fh-property {
  display: grid;
  gap: 1.5rem;
}

.fh-property__gallery-wrap { position: relative; }
.fh-gallery-open { position: absolute; bottom: 1rem; right: 1rem; background: #fff; color: #222; border: 1px solid #ccc; box-shadow: 0 2px 8px #0003; }
.fh-photo-dialog { width: min(1100px, 96vw); max-width: 96vw; max-height: 94dvh; padding: 1rem; border: 0; border-radius: 12px; background: #171717; color: #fff; box-sizing: border-box; }
.fh-photo-dialog::backdrop { background: #000d; }
.fh-photo-dialog__toolbar { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.fh-photo-dialog button { background: #fff; color: #222; border: 0; border-radius: 6px; padding: .6rem 1rem; cursor: pointer; font: inherit; }
.fh-photo-dialog button:focus-visible { outline: 3px solid #62b5ff; outline-offset: 3px; }
.fh-photo-dialog__stage { display: flex; align-items: center; justify-content: center; height: min(65dvh, 700px); }
.fh-photo-dialog__stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.fh-photo-dialog__nav { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: .75rem; }

.fh-property__gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.5rem;
  border-radius: var(--fh-radius);
  overflow: hidden;
}

.fh-property__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 180px;
}

.fh-property__gallery-main {
  grid-row: span 2;
  min-height: 320px;
}

.fh-property__thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.fh-property__header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.fh-booking--landing,
.fh-booking--property {
  container-type: inline-size;
  container-name: fhbooking;
}

.fh-property__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.fh-property__layout > * {
  min-width: 0;
}

.fh-panel h2 {
  margin-top: 0;
  overflow-wrap: break-word;
}

@container fhbooking (min-width: 820px) {
  .fh-property__layout {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  }
}

.fh-property__book {
  background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 46%);
  border-color: #d5e3fb;
  box-shadow: 0 18px 40px rgba(47, 111, 237, 0.14);
}

.fh-book__kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fh-primary);
}

.fh-book__stay {
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.fh-property__book .fh-btn--primary {
  min-height: 48px;
  border-radius: 12px;
  font-size: 1.05rem;
  box-shadow: 0 10px 20px rgba(47, 111, 237, 0.28);
}

.fh-panel {
  background: #fff;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.25rem;
  box-shadow: var(--fh-shadow);
}

.fh-rates {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.fh-rate {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fh-rate:hover {
  border-color: #93b4f5;
}

.fh-rate.is-selected {
  border-color: var(--fh-primary);
  background: #eef4ff;
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.16);
}

.fh-rate input {
  margin: 0;
  flex: 0 0 auto;
}

.fh-rate__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.fh-rate__name {
  line-height: 1.3;
}

.fh-rate__meta {
  color: var(--fh-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.fh-rate__proposal {
  color: var(--fh-primary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.fh-rate__cancellation {
  color: var(--fh-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.fh-rate__price {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  margin: -0.9rem -1rem -0.9rem 0;
  padding: 0.9rem 1rem;
  border-radius: 0 13px 13px 0;
  background: var(--fh-primary);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.fh-rate.is-selected .fh-rate__price {
  color: #fff;
  font-size: 1.35rem;
}

.fh-booking-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.fh-booking-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.fh-amenities {
  display: grid;
  gap: 1rem;
}

.fh-amenity-group h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.fh-amenity-group ul {
  margin: 0;
  padding-left: 1.1rem;
}

.fh-message {
  padding: 1rem;
  border-radius: 8px;
}

.fh-message--error {
  background: #fef2f2;
  color: #991b1b;
}

.fh-message--success {
  background: #ecfdf5;
  color: #065f46;
}

.fh-loading,
.fh-hint {
  color: var(--fh-muted);
}

@media (max-width: 900px) {
  .fh-search-bar__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.55rem;
    gap: 0.5rem;
  }

  .fh-search-bar__field,
  .fh-search-bar__field--dates,
  .fh-search-bar__field--guests,
  .fh-booking button.fh-search-bar__cta {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .fh-search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fh-field--action {
    grid-column: span 2;
  }

  .fh-property__layout {
    grid-template-columns: 1fr;
  }

  .fh-property__gallery {
    grid-template-columns: 1fr;
  }

  .fh-property__gallery-main {
    grid-row: auto;
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .fh-search-grid {
    grid-template-columns: 1fr;
  }

  .fh-field--action {
    grid-column: auto;
  }

  .fh-rate__meta > span:not(.fh-rate__date-separator) {
    display: block;
  }

  .fh-rate__date-separator {
    display: none;
  }
}

.fh-legal-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.fh-booking .fh-legal-links button {
  appearance: none; background: transparent; border: 0; box-shadow: none;
  padding: 0; margin: 0; font: inherit; font-size: .85rem;
  color: #2459c7; text-decoration: underline; cursor: pointer;
}
.fh-legal-dialog {
  box-sizing: border-box; width: min(780px, calc(100vw - 32px));
  max-width: calc(100vw - 32px); max-height: 85dvh;
  padding: 0; border: 0; border-radius: 16px; color: #0f172a; background: #fff;
}
.fh-legal-dialog::backdrop { background: #031b3cb3; }
.fh-legal-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-bottom: 1px solid #e2e8f0; }
.fh-legal-dialog__header h2 { margin: 0; font: 700 1.2rem/1.4 system-ui, sans-serif; }
.fh-legal-dialog__footer { display: flex; justify-content: flex-end; padding: 1rem; border-top: 1px solid #e2e8f0; }
.fh-legal-dialog .fh-legal-dialog__close {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  box-sizing: border-box; margin: 0; padding: 0; border: 1px solid #e2e8f0;
  border-radius: 50%; background: #fff; color: #0f172a;
  font: 400 1.75rem/1 system-ui, sans-serif; cursor: pointer;
}
.fh-legal-dialog .fh-legal-dialog__close:focus-visible { outline: 3px solid #2f6fed; outline-offset: 2px; }
.fh-legal-dialog__body { padding: 1rem; overflow-wrap: anywhere; font: 1rem/1.6 system-ui, sans-serif; }
.fh-legal-dialog__body .page-content { width: auto; max-width: 100%; margin: 0; padding: 0; }

.fh-booking--rtl .fh-search-bar__segment {
  padding: 0.35rem 0 0.35rem 1rem;
}

.fh-booking--rtl .fh-search-bar__select {
  background-position: left 0 center;
  padding: 0 0 0 1.4rem;
}

.fh-booking--rtl .fh-search-bar__cta {
  margin-left: 0;
  margin-right: 0.35rem;
}

.fh-booking--rtl {
  direction: rtl;
  text-align: right;
}

.fh-booking--rtl .fh-rate input {
  margin-right: 0;
  margin-left: 0.5rem;
}

.fh-booking--rtl .fh-rate__price {
  margin: -0.9rem 0 -0.9rem -1rem;
  border-radius: 13px 0 0 13px;
}

.fh-booking--rtl .fh-amenity-group ul {
  padding-left: 0;
  padding-right: 1.1rem;
}

.fh-confirm {
  background: #fff;
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  box-shadow: var(--fh-shadow);
  padding: 1.5rem 1.4rem;
  max-width: 40rem;
}

.fh-confirm__kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fh-primary);
}

.fh-confirm__title {
  margin: 0.35rem 0 0.6rem;
  font-size: 1.6rem;
}

.fh-confirm__facts {
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0;
}

.fh-confirm__facts dt {
  font-size: 0.75rem;
  color: var(--fh-muted);
  font-weight: 700;
}

.fh-confirm__facts dd {
  margin: 0.15rem 0 0;
}

/* ForHost public booking design system */
.fh-booking {
  --fh-primary: #ff007f;
  --fh-primary-hover: #d4006a;
  --fh-border: #e2e8f0;
  --fh-text: #0f172a;
  --fh-muted: #64748b;
  --fh-navy: #031b3c;
  --fh-navy-soft: #0a2a52;
  --fh-surface: #f4f7fb;
  --fh-radius: 18px;
  --fh-shadow: 0 18px 50px rgba(3, 27, 60, 0.10);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  color: var(--fh-text);
  line-height: 1.55;
}

.fh-booking h1,
.fh-booking h2,
.fh-booking h3 {
  font-family: "Sora", system-ui, sans-serif;
  color: var(--fh-navy);
  letter-spacing: -0.025em;
}

.fh-booking--search {
  /* Constrain width itself: WordPress constrained layouts can override max-width. */
  width: min(650px, 100%);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: fhsearch;
}

.fh-booking--search .fh-search-bar {
  margin: 0;
  padding: 0;
}

.fh-booking--search .fh-search-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem max-content;
  grid-template-areas: "dates guests action";
  gap: 1rem 1.1rem;
  align-items: end;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--fh-border);
  border-radius: 21px;
  box-shadow: var(--fh-shadow);
}

/* WordPress/content builders may wrap inline labels and buttons in paragraphs.
   Those wrappers must not become extra grid/flex items or add line breaks. */
.fh-booking--search .fh-search-bar__inner p {
  display: contents;
  margin: 0;
  padding: 0;
}

.fh-booking--search .fh-search-bar__inner br { display: none; }
.fh-booking--search .fh-search-bar__field--dates { grid-area: dates; }
.fh-booking--search .fh-search-bar__field--guests { grid-area: guests; }
.fh-booking--search .fh-search-bar__cta { grid-area: action; }

.fh-search-bar__field,
.fh-search-bar__field--dates,
.fh-search-bar__field--guests {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: .45rem;
  height: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  width: 100%;
  min-width: 0;
}

.fh-search-bar__label {
  display: block;
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fh-muted);
}

.fh-search-bar__value {
  display: flex;
  flex: none;
  width: 100%;
  height: 54px;
  min-height: 54px;
  box-sizing: border-box;
  border: 1px solid var(--fh-border);
  border-radius: 14px;
  padding: .65rem .85rem;
  background: #fff;
}

.fh-booking button.fh-search-bar__dates-btn {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  line-height: 1.3 !important;
  color: var(--fh-text);
}

.fh-search-bar__field--guests input {
  width: 100%;
  height: 54px;
  min-height: 54px;
  margin: 0;
  padding: .65rem .85rem;
  border: 1px solid var(--fh-border);
  border-radius: 14px;
  background: #fff;
  color: var(--fh-text);
  font: inherit;
  font-weight: 600;
  box-sizing: border-box;
}

.fh-booking button.fh-search-bar__cta {
  align-self: end;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: .7rem 1.35rem;
  border-radius: 14px;
  background: var(--fh-primary);
  box-shadow: 0 10px 24px rgba(255, 0, 127, .25);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
}

.fh-booking--search button.fh-search-bar__cta {
  box-sizing: border-box;
  max-width: 100%;
  height: auto;
  max-height: none;
  padding-block: .7rem !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

.fh-booking button.fh-search-bar__cta:hover { background: var(--fh-primary-hover); }
.fh-cal__day.is-start,
.fh-cal__day.is-end { background: var(--fh-primary) !important; }
.fh-cal__day.is-in { background: #ffe4f2; }

.fh-results,
.fh-property-root { margin-top: 2rem; }

.fh-grid {
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.35rem;
}

.fh-card {
  color: inherit;
  text-decoration: none;
  border-radius: var(--fh-radius);
  border: 1px solid var(--fh-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.fh-card:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: var(--fh-shadow);
}

.fh-card__media { position: relative; overflow: hidden; }
.fh-card__img { aspect-ratio: 16 / 10; transition: transform .35s ease; }
.fh-card:hover .fh-card__img { transform: scale(1.025); }
.fh-card__badge {
  position: absolute;
  right: .85rem;
  bottom: .85rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  color: var(--fh-navy);
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 18px rgba(3,27,60,.15);
  font-size: .78rem;
  font-weight: 800;
}

.fh-card__body { padding: 1.15rem 1.2rem 1.25rem; gap: .7rem; }
.fh-card__title { font-size: 1.08rem; }
.fh-card__footer { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: auto; }
.fh-card__price { display: flex; flex-direction: column; font-size: .76rem; color: var(--fh-muted); }
.fh-card__price strong { font-size: 1.2rem; color: var(--fh-navy); }
.fh-card__price small { display: block; }
.fh-card__footer .fh-btn { width: auto; padding: .6rem 1rem; border-radius: 12px; }

.fh-property { gap: 1.35rem; }
.fh-property__header h1 { margin: 0 0 .35rem; font-size: clamp(1.7rem, 4vw, 2.65rem); }
.fh-property__header .fh-card__meta { margin: 0; color: var(--fh-muted); }
.fh-property__facts { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.fh-property__fact {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .68rem;
  border: 1px solid var(--fh-border);
  border-radius: 999px;
  background: #fff;
  color: var(--fh-navy);
  font-size: .8rem;
  font-weight: 700;
}
.fh-property__fact b { color: var(--fh-primary); font-size: .7rem; }

.fh-property__gallery { grid-template-columns: 2fr 1fr; border-radius: var(--fh-radius); }
.fh-gallery-open { border-radius: 999px; font-weight: 800; }

@container fhbooking (min-width: 820px) {
  .fh-property__layout { grid-template-columns: minmax(0, 1fr) minmax(21rem, 25rem); }
}

.fh-property__main { display: grid; gap: 1rem; }
.fh-panel {
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 1.3rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.fh-content-section h2,
.fh-panel h2 { margin: 0 0 .8rem; font-size: 1.05rem; }
.fh-content-section > div { color: #334155; }
.fh-preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.fh-accordion-grid { display: grid; gap: .65rem; }
.fh-accordion {
  border: 1px solid var(--fh-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 5px 16px rgba(15,23,42,.04);
}
.fh-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1rem;
  font-weight: 700;
  color: var(--fh-navy);
}
.fh-accordion summary::-webkit-details-marker { display: none; }
.fh-accordion__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--fh-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}
.fh-accordion summary > span:nth-child(2) { flex: 1; min-width: 0; }
.fh-accordion summary::after {
  content: "";
  width: .55rem;
  height: .55rem;
  margin-left: auto;
  border-right: 2px solid var(--fh-muted);
  border-bottom: 2px solid var(--fh-muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
  flex-shrink: 0;
}
.fh-accordion[open] summary::after { transform: rotate(-135deg); }
.fh-accordion__content {
  border-top: 1px solid var(--fh-border);
  padding: .85rem 1rem 1rem;
  color: #334155;
  line-height: 1.65;
}
.fh-property__book {
  position: sticky;
  top: 1.25rem;
  background: #fff;
  border-color: var(--fh-border);
  box-shadow: var(--fh-shadow);
}
.fh-book__kicker { color: var(--fh-navy); font-family: "Sora", system-ui, sans-serif; font-size: 1rem; letter-spacing: -.01em; }
.fh-rates { margin: 1rem 0 1.2rem; }
.fh-rate { border-radius: 14px; padding: .9rem; }
.fh-rate:hover { border-color: rgba(255,0,127,.45); }
.fh-rate.is-selected { border-color: var(--fh-primary); background: #fff5fa; box-shadow: 0 0 0 3px rgba(255,0,127,.10); }
.fh-rate__meta { color: var(--fh-muted); }
.fh-rate__cancellation { color: #166534; }
.fh-rate__price,
.fh-rate.is-selected .fh-rate__price {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  margin: -.9rem -.9rem -.9rem 0;
  padding: .9rem 1rem;
  border-radius: 0 13px 13px 0;
  background: #2f80ed;
  color: #fff;
  font-size: 1.12rem;
}
.fh-property__book .fh-btn--primary { background: var(--fh-primary); box-shadow: 0 10px 20px rgba(255,0,127,.23); }
.fh-property__book .fh-btn--primary:hover { background: var(--fh-primary-hover); }
.fh-booking-legal { display: grid; gap: .65rem; padding: .8rem 0; border-top: 1px solid var(--fh-border); border-bottom: 1px solid var(--fh-border); }
.fh-booking-form .fh-check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .55rem; font-size: .78rem; font-weight: 500; color: #475569; }
.fh-booking-form .fh-check input { width: 1rem; height: 1rem; margin: .15rem 0 0; accent-color: var(--fh-primary); }

.fh-confirm {
  border-radius: var(--fh-radius);
  border-color: var(--fh-border);
  box-shadow: var(--fh-shadow);
}
.fh-confirm__kicker { color: var(--fh-primary); }
.fh-confirm__title { color: var(--fh-navy); }

@media (max-width: 900px) {
  .fh-booking button.fh-search-bar__cta { width: 100%; }
  .fh-property__book { position: static; }
  .fh-property__layout { display: flex; flex-direction: column; }
  .fh-property__book { order: -1; width: 100%; box-sizing: border-box; }
  .fh-property__main { width: 100%; }
}

@media (max-width: 520px) {
  .fh-card__footer { align-items: stretch; flex-direction: column; }
  .fh-card__footer .fh-btn { width: 100%; }
  .fh-property__facts { gap: .4rem; }
  .fh-rate { gap: .55rem; padding: .8rem; }
  .fh-rate__price, .fh-rate.is-selected .fh-rate__price { min-width: 5.8rem; padding: .8rem .7rem; margin: -.8rem -.8rem -.8rem 0; font-size: 1rem; }
}

.fh-booking--rtl .fh-rate__price,
.fh-booking--rtl .fh-rate.is-selected .fh-rate__price { margin: -.9rem 0 -.9rem -.9rem; border-radius: 13px 0 0 13px; }

/* Respond to the shortcode column, including narrow columns on desktop. */
@container fhsearch (max-width: 560px) {
  .fh-booking--search .fh-search-bar__inner {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-areas: "dates dates" "guests action";
    padding: 1rem;
    gap: .85rem;
  }
}

@container fhsearch (max-width: 300px) {
  .fh-booking--search .fh-search-bar__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "dates" "guests" "action";
  }
}
