.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 {
  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-property__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}

.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 {
  border: 1px solid var(--fh-border);
  border-radius: 8px;
  padding: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fh-rate:hover {
  border-color: #94a3b8;
}

.fh-rate.is-selected {
  border-color: var(--fh-primary);
  box-shadow: 0 0 0 2px rgba(26, 95, 74, 0.15);
}

.fh-rate input {
  margin-right: 0.5rem;
}

.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-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-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;
}
