/* Keyboard focus: !important is needed over .btn:focus and .close from the themes */
:focus-visible {
  outline: 2px solid #b37931 !important;
  outline-offset: 2px !important;
}

/* Booking layout and counters */
.booking-page--form-wrap {
  max-width: 1240px;
  padding-bottom: 60px;
}

.booking-page .modal-book--inline .modal-dialog {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto;
  transform: none;
}

.booking-page--dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 48px;
  align-items: start;
  width: 100%;
}

.booking-page--field {
  position: relative;
  min-width: 0;
}

.booking-page--field p {
  min-height: 56px;
}

.booking-page .booking-page--dates .bookline--input {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: clamp(38px, 3.8vw, 54px);
  letter-spacing: .01em;
  white-space: nowrap;
}

.booking-page--guest-note {
  margin: 14px 0 0;
  color: #b37931;
  font-size: 14px;
}

.guest-counter {
  position: relative;
}

.guest-counter--input {
  cursor: pointer;
}

.guest-count {
  position: absolute;
  z-index: 10020;
  left: 0;
  top: calc(100% + 10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 160px;
  padding: 10px;
  border: 1px solid rgba(179, 121, 49, .45);
  background: #fbfaf5;
  box-shadow: 0 8px 24px rgba(35, 31, 32, .18);
}

.guest-count--button {
  width: 42px;
  height: 42px;
  border: 1px solid #b37931;
  border-radius: 50%;
  color: #231f20;
  background: #fff;
  font-size: 26px;
  line-height: 36px;
  cursor: pointer;
}

.guest-count--button:hover,
.guest-count--button:focus-visible {
  color: #fff;
  background: #b37931;
  outline: none;
}

.guest-count--value {
  min-width: 36px;
  text-align: center;
  font-size: 24px;
}

.guest-limit-error {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 4px;
  color: #b00020;
  font-size: 14px;
}

.booking-page--apart {
  padding: 0 0 20px;
}

.booking-page--apart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.booking-page--apart-option input:checked + .booking-page--apart-card::after {
  content: "✓" !important;
}

.booking-page .booking-page--apart-option {
  position: relative;
  cursor: default !important;
}

.booking-page .booking-page--apart-radio {
  position: absolute !important;
  z-index: 5;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  margin: 0;
  opacity: 0;
  pointer-events: auto !important;
  cursor: pointer;
}

.booking-page .booking-page--apart-option input:checked + .booking-page--apart-card::after {
  display: none !important;
  content: none !important;
}

.booking-page--apart-select {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 2px solid #b37931;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 2px 8px rgba(35, 31, 32, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.booking-page--apart-radio:focus-visible ~ .booking-page--apart-select {
  outline: 3px solid #231f20;
  outline-offset: 3px;
}

.booking-page--apart-radio:checked ~ .booking-page--apart-select {
  color: #fff;
  background: #b37931;
}

.booking-page--apart-radio:checked ~ .booking-page--apart-select::after {
  display: none;
}

.booking-page--apart-radio:checked ~ .booking-page--apart-select::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "✓";
  color: #fff;
  font-size: 22px;
  line-height: 1;
  transform: translate(-50%, -54%);
}

.booking-page--apart-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.booking-page--apart-preview:focus-visible {
  outline: 3px solid #b37931 !important;
  outline-offset: -3px !important;
}

.booking-page--apart-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 4px 18px rgba(35, 31, 32, .12);
}

.booking-page--apart-radio:checked ~ .booking-page--apart-card {
  border-color: #b37931;
}

.booking-page--apart-image {
  display: block;
  height: 190px;
  background: #eee;
}

.booking-page--apart-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-page--apart-name,
.booking-page--apart-meta {
  display: block;
  padding: 0 14px;
}

.booking-page--apart-name {
  padding-top: 13px;
  color: #231f20;
  font-size: 17px;
  font-weight: 500;
}

.booking-page--apart-meta {
  padding-top: 5px;
  padding-bottom: 14px;
  color: #777;
  font-size: 13px;
}

.booking-page--quantity,
.booking-unit--counter,
.booking-garage--count {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-page--quantity {
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid #ead9c2;
}

.booking-page--quantity[hidden],
.booking-garage--count[hidden] {
  display: none;
}

.booking-page--quantity button,
.booking-unit button,
.booking-garage button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #b37931;
  color: #231f20;
  background: #fff;
  cursor: pointer;
}

.booking-page--units {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.booking-unit,
.booking-price,
.booking-garage {
  padding: 20px;
  border: 1px solid rgba(179, 121, 49, .4);
  background: #fbfaf5;
}

.booking-unit h3,
.booking-price h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.booking-unit--controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.booking-unit--counter {
  display: inline-flex;
  margin-left: 10px;
}

.booking-unit--child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.booking-unit--child select {
  min-width: 80px;
  margin-left: 8px;
  padding: 8px;
}

.booking-unit--error,
.booking-form-error {
  margin: 12px 0;
  color: #b00020;
}

.booking-garage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.booking-garage legend {
  width: 100%;
  font-size: 22px;
}

.booking-price {
  margin: 24px 0;
}

.booking-price dl,
.booking-price dl div {
  margin: 0;
}

.booking-price dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(179, 121, 49, .2);
}

.booking-price dd {
  margin: 0;
  white-space: nowrap;
}

.booking-price--total {
  font-size: 20px;
  font-weight: 700;
}

#apartment .modal-apartments--photo .slider-for,
#apartment .modal-apartments--photo .slider-for .slick-list,
#apartment .modal-apartments--photo .slider-for .slick-track,
#apartment .modal-apartments--photo .slider-for .slick-slide,
#apartment .modal-apartments--photo .slider-for .slick-slide > div,
#apartment .modal-apartments--photo .slider-for img {
  opacity: 1 !important;
  visibility: visible !important;
}

#apartment .modal-apartments--photo .slider-for .slick-slide > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

#apartment .modal-apartments--photo .slider-for img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(490px, calc(100vh - 330px));
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 991px) {
  #apartment .modal-apartments--photo .slider-for img {
    max-height: min(490px, 70vh);
  }
}

/* Consent and delayed map */
.consent-map {
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  background: #eee9de;
}

.consent-map--placeholder {
  width: min(440px, calc(100% - 40px));
  padding: 32px;
  text-align: center;
  color: #231f20;
  background: rgba(251, 250, 245, .96);
  box-shadow: 0 7px 28px rgba(35, 31, 32, .15);
}

.consent-map--placeholder p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.consent-map--frame {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.consent-map--allow {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  color: #fff;
  background: #231f20;
}

.consent-map--link {
  color: #8d5d23;
  text-decoration: underline;
}

.consent-banner {
  position: fixed;
  z-index: 11000;
  right: 28px;
  bottom: 28px;
  width: min(480px, calc(100vw - 40px));
  padding: 28px;
  color: #231f20;
  background: #d8b283;
  box-shadow: 0 12px 40px rgba(35, 31, 32, .3);
}

.consent-banner[hidden],
.consent-dialog[hidden] {
  display: none !important;
}

.consent-banner--text {
  margin-bottom: 8px;
  line-height: 1.55;
}

.consent-banner a {
  color: #231f20;
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.consent-action {
  flex: 1 1 145px;
  min-height: 48px;
  padding: 10px 14px;
  color: #fff;
  background: #231f20;
}

.consent-action:hover,
.consent-action:focus-visible {
  color: #231f20;
  background: #fbfaf5;
}

.consent-settings-link,
.footer--consent-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}

.consent-dialog {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(35, 31, 32, .68);
}

.consent-dialog--panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 32px;
  color: #231f20;
  background: #fbfaf5;
}

.consent-dialog--panel h2 {
  margin-bottom: 22px;
  font-size: 32px;
}

.consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(179, 121, 49, .35);
}

.consent-category p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.consent-category input {
  width: 24px;
  height: 24px;
  accent-color: #b37931;
}

.footer--consent-link {
  font-family: inherit;
  font-size: inherit;
}

/* Privacy page */
.privacy-page {
  padding-bottom: 90px;
}

.privacy-page h1,
.events-page:not(.booking-page) h1 {
  margin-bottom: 36px;
}

.privacy-page h2 {
  margin: 42px 0 14px;
  font-family: Georgia, serif;
  font-size: 30px;
}

.privacy-page p,
.privacy-table {
  font-size: 16px;
  line-height: 1.75;
}

.box-block .page-lead {
  max-width: 780px;
  margin-bottom: 48px;
  font-size: 20px;
}

.privacy-table-wrap {
  overflow-x: auto;
}

.privacy-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.privacy-table th,
.privacy-table td {
  padding: 14px;
  border: 1px solid rgba(179, 121, 49, .35);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 1100px) {
  .booking-page--dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 28px;
  }

  .booking-page .booking-page--dates .bookline--input {
    font-size: clamp(42px, 7vw, 54px);
  }
}

@media (max-width: 600px) {
  .booking-page--dates {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .booking-page--field p {
    min-height: 0;
    margin-bottom: 8px;
  }

  .booking-page .booking-page--dates .bookline--input {
    width: 100% !important;
    font-size: clamp(40px, 14vw, 52px);
  }

  .consent-banner {
    right: 20px;
    bottom: 20px;
    padding: 20px;
  }

  .consent-dialog--panel {
    padding: 22px;
  }
}
