.hr-booking {
  --hr-color-primary: #3b454b;
  --hr-color-primary-dark: #252b2e;
  --hr-color-accent: #a1a2a2;
  --hr-color-special: #a87624;
  --hr-color-special-soft: #fff7e6;
  --hr-color-text: #242729;
  --hr-color-muted: #6c7377;
  --hr-color-line: #dfe2e3;
  --hr-color-soft: #f3f4f4;
  --hr-color-success: #246c47;
  --hr-color-danger: #a32d2d;
  --hr-shadow: 0 10px 32px rgba(37, 43, 46, 0.08);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(12px, 2.5vw, 28px) 64px;
  color: var(--hr-color-text);
  font: inherit;
}

.hr-booking *,
.hr-booking *::before,
.hr-booking *::after {
  box-sizing: border-box;
}

.hr-booking [hidden] {
  display: none !important;
}

.hr-booking button,
.hr-booking input,
.hr-booking textarea {
  font: inherit;
}

.hr-booking button:focus-visible,
.hr-booking input:focus-visible,
.hr-booking textarea:focus-visible,
.hr-booking a:focus-visible {
  outline: 3px solid rgba(59, 69, 75, 0.28);
  outline-offset: 2px;
}

.hr-booking__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hr-color-line);
}

.hr-booking__intro-copy {
  max-width: 780px;
}

.hr-booking__eyebrow {
  margin: 0 0 7px;
  color: var(--hr-color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hr-booking__intro h1 {
  margin: 0;
  color: var(--hr-color-primary);
  font-size: clamp(2rem, 4.3vw, 3.4rem);
  font-weight: 300;
  line-height: 1.08;
}

.hr-booking__intro-copy > p:last-child {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--hr-color-muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.hr-booking__language {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--hr-color-line);
  border-radius: 3px;
  background: #fff;
}

.hr-booking__language .uk-button {
  min-width: 46px;
  border: 0;
  background: transparent;
  color: var(--hr-color-muted);
}

.hr-booking__language .uk-button.is-active {
  background: var(--hr-color-primary);
  color: #fff;
}

.hr-booking__app {
  display: grid;
  gap: 24px;
}

.hr-booking__loading,
.hr-booking__noscript {
  padding: 16px 18px;
  border: 1px solid var(--hr-color-line);
  background: #fff;
}

.hr-booking__panel,
.hr-booking__request,
.hr-booking__summary,
.hr-room-card {
  border: 1px solid var(--hr-color-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--hr-shadow);
}

.hr-booking__panel,
.hr-booking__request {
  padding: clamp(16px, 3vw, 30px);
}

.hr-booking h2,
.hr-booking h3,
.hr-booking p {
  overflow-wrap: anywhere;
}

.hr-booking__panel h2,
.hr-booking__request h2,
.hr-booking__summary h2,
.hr-booking__rooms-section h2 {
  margin: 0;
  color: var(--hr-color-primary);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.25;
}

.hr-booking__section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.hr-booking__section-heading p {
  margin: 6px 0 0;
  color: var(--hr-color-muted);
}

.hr-booking__date-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hr-booking__date-summary span {
  display: inline-flex;
  flex-direction: column;
  min-width: 132px;
  padding: 7px 11px;
  border-left: 2px solid var(--hr-color-primary);
  background: var(--hr-color-soft);
  color: var(--hr-color-muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.hr-booking__date-summary strong {
  color: var(--hr-color-text);
  font-size: 0.94rem;
}

.hr-calendar__header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hr-calendar__header h3 {
  margin: 0;
  color: var(--hr-color-primary);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  text-transform: capitalize;
}

.hr-calendar__nav.uk-button {
  width: 44px;
  min-width: 44px;
  height: 42px;
  padding: 0;
  border-color: var(--hr-color-line);
  color: var(--hr-color-primary);
  font-size: 1.65rem;
  line-height: 1;
}

.hr-calendar__nav:disabled,
.hr-counter button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.hr-calendar__table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--hr-color-line);
}

.hr-calendar__table {
  width: 100%;
  min-width: 620px;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

.hr-calendar__table th {
  height: 38px;
  padding: 6px;
  border-bottom: 1px solid var(--hr-color-line);
  background: var(--hr-color-soft);
  color: var(--hr-color-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.hr-calendar__table td {
  height: 90px;
  padding: 0;
  border: 1px solid var(--hr-color-line);
  vertical-align: top;
}

.hr-calendar__day {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 9px;
  border: 0;
  background: #fff;
  color: var(--hr-color-text);
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.hr-calendar__day:hover:not(:disabled) {
  z-index: 1;
  background: #f8f9f9;
  box-shadow: inset 0 0 0 2px var(--hr-color-primary);
}

.hr-calendar__day:disabled {
  background: #fafafa;
  color: #b6b9bb;
  cursor: not-allowed;
}

.hr-calendar__day-number {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.hr-calendar__day-price {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--hr-color-primary);
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.1;
}

.hr-calendar__day-price small {
  color: var(--hr-color-muted);
  font-size: 0.62rem;
  font-weight: 500;
}

.hr-calendar__day.is-today {
  box-shadow: inset 0 0 0 1px var(--hr-color-accent);
}

.hr-calendar__day.is-in-range {
  background: #e9ecee;
}

.hr-calendar__day.is-arrival,
.hr-calendar__day.is-departure {
  background: var(--hr-color-primary);
  color: #fff;
}

.hr-calendar__day.is-arrival .hr-calendar__day-price,
.hr-calendar__day.is-departure .hr-calendar__day-price,
.hr-calendar__day.is-arrival .hr-calendar__day-price small,
.hr-calendar__day.is-departure .hr-calendar__day-price small {
  color: #fff;
}

.hr-calendar__special {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hr-color-special);
}

.hr-calendar__day.has-special-rate:not(.is-arrival):not(.is-departure) {
  background: var(--hr-color-special-soft);
}

.hr-calendar__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--hr-color-muted);
  font-size: 0.78rem;
}

.hr-calendar__legend > span:first-child {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--hr-color-special);
}

.hr-booking__preferences {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
}

.hr-booking__preference {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 54px;
}

.hr-booking__control-label {
  min-width: 76px;
  color: var(--hr-color-primary);
  font-weight: 700;
}

.hr-booking__preference small {
  width: 100%;
  margin-left: 0;
  color: var(--hr-color-muted);
}

.hr-counter {
  display: inline-grid;
  grid-template-columns: 38px 46px 38px;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--hr-color-line);
  border-radius: 3px;
  background: #fff;
}

.hr-counter button {
  height: 40px;
  padding: 0;
  border: 0;
  background: var(--hr-color-soft);
  color: var(--hr-color-primary);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
}

.hr-counter button:hover:not(:disabled) {
  background: var(--hr-color-primary);
  color: #fff;
}

.hr-counter output {
  color: var(--hr-color-text);
  font-weight: 700;
  text-align: center;
}

.hr-segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--hr-color-line);
  border-radius: 3px;
  background: var(--hr-color-soft);
}

.hr-segmented button {
  min-height: 38px;
  padding: 7px 15px;
  border: 0;
  background: transparent;
  color: var(--hr-color-muted);
  cursor: pointer;
}

.hr-segmented button.is-active {
  background: var(--hr-color-primary);
  color: #fff;
}

.hr-booking__rooms-section {
  padding-top: 8px;
}

.hr-booking__rooms {
  display: grid;
  gap: 22px;
}

.hr-room-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  overflow: hidden;
}

.hr-room-card__gallery {
  min-width: 0;
  padding: 16px;
  background: var(--hr-color-soft);
}

.hr-room-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e5e7e8;
}

.hr-room-card__image > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hr-room-card__image > button {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(37, 43, 46, 0.74);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
}

.hr-room-card__image > button:first-of-type {
  left: 10px;
}

.hr-room-card__image > button:last-of-type {
  right: 10px;
}

.hr-room-card__thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.hr-room-card__thumbnails button {
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
}

.hr-room-card__thumbnails button.is-active {
  border-color: var(--hr-color-primary);
}

.hr-room-card__thumbnails img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hr-room-card__body {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vw, 30px);
}

.hr-room-card__body h3 {
  margin: 0;
  color: var(--hr-color-primary);
  font-size: 1.55rem;
  font-weight: 500;
}

.hr-room-card__body > p {
  margin: 8px 0 14px;
  color: var(--hr-color-muted);
  line-height: 1.55;
}

.hr-room-card__body > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.hr-room-card__body > ul li {
  padding: 5px 9px;
  border-radius: 2px;
  background: var(--hr-color-soft);
  color: var(--hr-color-primary);
  font-size: 0.78rem;
}

.hr-room-card__tariffs {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.hr-booking__tariff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--hr-color-line);
  border-radius: 3px;
  transition: border-color 150ms ease, background 150ms ease;
}

.hr-booking__tariff.is-selected {
  border-color: var(--hr-color-primary);
  background: #f1f3f4;
}

.hr-booking__tariff > div:first-child {
  display: grid;
  gap: 3px;
}

.hr-booking__tariff strong {
  color: var(--hr-color-primary);
  font-size: 0.92rem;
}

.hr-booking__tariff span {
  color: var(--hr-color-muted);
  font-size: 0.76rem;
}

.hr-booking__tariff span b {
  color: var(--hr-color-text);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.hr-counter--rooms {
  flex: 0 0 auto;
}

.hr-booking__summary {
  position: static;
  z-index: 10;
  bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 28px;
  padding: 20px;
  border-top: 3px solid var(--hr-color-primary);
}

.hr-booking[data-hr-form-open="true"] .hr-booking__summary {
  position: static;
}

.hr-booking__summary-main h2 {
  margin-bottom: 12px;
}

.hr-booking__summary-meta,
.hr-booking__summary-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
}

.hr-booking__summary-meta div,
.hr-booking__summary-totals div {
  display: flex;
  gap: 7px;
}

.hr-booking__summary dt {
  color: var(--hr-color-muted);
  font-weight: 400;
}

.hr-booking__summary dd {
  margin: 0;
  color: var(--hr-color-text);
  font-weight: 700;
}

.hr-booking__summary-rooms {
  display: grid;
  gap: 4px;
  max-width: 650px;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid var(--hr-color-line);
  border-bottom: 1px solid var(--hr-color-line);
  list-style: none;
}

.hr-booking__summary-rooms li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.hr-booking__notice {
  margin: 12px 0 0;
  color: var(--hr-color-muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.hr-booking__summary-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.hr-booking__summary-action > strong {
  color: var(--hr-color-primary);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-align: right;
}

.hr-booking .uk-button-primary {
  border-color: var(--hr-color-primary);
  background: var(--hr-color-primary);
  color: #fff;
}

.hr-booking .uk-button-primary:hover:not(:disabled) {
  background: var(--hr-color-primary-dark);
}

.hr-booking .uk-button-primary:disabled,
.hr-booking .uk-button-primary[aria-disabled="true"] {
  border-color: var(--hr-color-line);
  background: var(--hr-color-soft);
  color: #9a9fa2;
  cursor: not-allowed;
  pointer-events: none;
}

.hr-booking__selection-error {
  min-height: 1.2em;
  margin: 0;
  color: var(--hr-color-danger);
  font-size: 0.78rem;
  line-height: 1.35;
}

.hr-booking__request-only {
  margin: 16px 0 0;
}

.hr-booking__request-only p {
  margin: 4px 0 0;
}

.hr-booking .hr-booking__summary-action .uk-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  min-height: 48px;
  font-size: 1rem;
  line-height: 1.35;
  border-radius: 6px;
  white-space: normal;
  text-align: center;
}

.hr-booking .hr-booking__summary-main h2 { font-size: 1.5rem; line-height: 1.3; }
.hr-booking__summary-rooms small { display: block; font-size: 0.85rem; color: var(--hr-color-muted); }
.hr-booking__occupancies { display: grid; gap: 10px; margin-top: 12px; }
.hr-booking__occupancies label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9rem; }
.hr-booking__occupancies select { max-width: 100%; min-height: 42px; padding: 6px 10px; border: 1px solid var(--hr-color-line); border-radius: 4px; background: #fff; color: var(--hr-color-text); font: inherit; }
.hr-booking__occupancies p { margin: 0; font-size: 0.9rem; }
.hr-booking__rates { margin-top: 32px; }
.hr-booking__rates table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hr-booking__rates th, .hr-booking__rates td { padding: 10px 6px; text-align: left; border-bottom: 1px solid var(--hr-color-line); }
.hr-booking__rates caption { text-align: left; font-weight: 700; margin-bottom: 12px; }
.hr-booking__rates p { font-size: 0.9rem; }

.hr-booking__request {
  scroll-margin-top: 24px;
}

.hr-booking__request-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--hr-color-primary);
  background: var(--hr-color-soft);
}

.hr-booking__request form label > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--hr-color-primary);
  font-weight: 700;
}

.hr-booking__request .uk-grid-small {
  display: flex;
  flex-wrap: wrap;
  margin: -8px 0 0 -8px;
}

.hr-booking__request .uk-grid-small > * {
  width: 50%;
  padding: 8px 0 0 8px;
}

.hr-booking__request .uk-grid-small > .uk-width-1-1 {
  width: 100%;
}

.hr-booking__request .uk-input,
.hr-booking__request .uk-textarea {
  border-color: var(--hr-color-line);
  background: #fff;
  color: var(--hr-color-text);
}

.hr-booking__request [data-hr-field-error] {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: var(--hr-color-danger);
  font-size: 0.76rem;
}

.hr-booking__field-help {
  display: block;
  margin-top: 5px;
  color: var(--hr-color-muted);
  font-size: 0.76rem;
}

.hr-booking__privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--hr-color-text);
}

.hr-booking__privacy .uk-checkbox {
  flex: 0 0 auto;
  margin-top: 3px;
}

.hr-booking__privacy [data-hr-privacy-copy] {
  display: inline;
  margin: 0;
  font-weight: 400;
}

.hr-booking__form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.hr-booking__form-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  padding: 0;
  font-weight: 600;
}

.hr-booking__form-status.is-info,
.hr-booking__form-status.is-error,
.hr-booking__form-status.is-success {
  padding: 12px 14px;
  border: 1px solid currentColor;
}

.hr-booking__form-status.is-info {
  color: var(--hr-color-primary);
  background: var(--hr-color-soft);
}

.hr-booking__form-status.is-error {
  color: var(--hr-color-danger);
  background: #fff2f2;
}

.hr-booking__form-status.is-success {
  color: var(--hr-color-success);
  background: #f0f8f3;
}

@media (max-width: 800px) {
  .hr-booking__preferences,
  .hr-room-card,
  .hr-booking__summary {
    grid-template-columns: 1fr;
  }

  .hr-booking__summary {
    position: static;
  }

  .hr-booking__summary-action > strong {
    text-align: left;
  }

  .hr-booking__summary-action .uk-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hr-booking {
    padding-inline: 8px;
  }

  .hr-booking__intro,
  .hr-booking__section-heading {
    flex-direction: column;
  }

  .hr-booking__language {
    align-self: flex-start;
  }

  .hr-booking__date-summary {
    width: 100%;
    justify-content: stretch;
  }

  .hr-booking__date-summary span {
    flex: 1;
  }

  .hr-calendar__table {
    min-width: 0;
  }

  .hr-calendar__table th {
    height: 32px;
    padding: 3px;
    font-size: 0.63rem;
  }

  .hr-calendar__table td {
    height: 68px;
  }

  .hr-calendar__day {
    padding: 6px 4px;
  }

  .hr-calendar__day-number {
    font-size: 0.76rem;
  }

  .hr-calendar__day-price {
    right: 4px;
    bottom: 5px;
    font-size: 0.63rem;
  }

  .hr-calendar__day-price small {
    display: none;
  }

  .hr-calendar__special {
    top: 7px;
    right: 6px;
    width: 6px;
    height: 6px;
  }

  .hr-booking__preferences {
    grid-template-columns: 1fr;
  }

  .hr-booking__preference {
    align-items: flex-start;
  }

  .hr-booking__preference small {
    margin-left: 0;
  }

  .hr-room-card__gallery {
    padding: 10px;
  }

  .hr-booking__tariff {
    align-items: flex-start;
    flex-direction: column;
  }

  .hr-counter--rooms {
    align-self: stretch;
    grid-template-columns: 42px 1fr 42px;
  }

  .hr-booking__summary-meta,
  .hr-booking__summary-totals,
  .hr-booking__request-summary,
  .hr-booking__form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hr-booking__form-actions .uk-button {
    width: 100%;
  }

  .hr-booking__request .uk-grid-small > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hr-booking *,
  .hr-booking *::before,
  .hr-booking *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
