.prenest-booking {
  --pb-ink: #1c1917;
  --pb-muted: #44403c;
  --pb-line: #e7e5e4;
  --pb-ok: #166534;
  --pb-ok-bg: #dcfce7;
  --pb-bad: #991b1b;
  --pb-bad-bg: #fee2e2;
  --pb-sel: #1d4ed8;
  --pb-sel-bg: #dbeafe;
  --pb-touch: 48px;
  --pb-text: 1.05rem;
  max-width: 820px;
  margin: 1.5rem auto;
  padding: 1.35rem 1.4rem 1.9rem;
  background:
    radial-gradient(1200px 400px at 10% -10%, #e7f0ea 0%, transparent 55%),
    linear-gradient(180deg, #fbfaf7 0%, #ffffff 45%);
  border: 1px solid #e4ddd2;
  color: var(--pb-ink);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: var(--pb-text);
  line-height: 1.5;
  box-sizing: border-box;
}

.prenest-booking *,
.prenest-booking *::before,
.prenest-booking *::after {
  box-sizing: border-box;
}

.prenest-booking__alert {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.prenest-booking__alert.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.prenest-booking__alert.is-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.prenest-booking__alert.is-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.prenest-booking__header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.1rem;
  flex-wrap: wrap;
}

.prenest-booking__heading {
  flex: 1 1 220px;
  min-width: 0;
}

.prenest-booking__lang-dd {
  position: relative;
  flex-shrink: 0;
  z-index: 20;
}

.prenest-booking__lang-trigger {
  appearance: none;
  border: 1px solid #d6d3d1;
  background: #fff;
  border-radius: 999px;
  min-height: 48px;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pb-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.prenest-booking__lang-dd.is-open .prenest-booking__lang-trigger {
  border-color: #1c1917;
}

.prenest-booking__lang-caret {
  font-size: 0.85rem;
  opacity: 0.7;
}

.prenest-booking__lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 100%;
  background: #fff;
  border: 1px solid #d6d3d1;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.prenest-booking__lang-menu[hidden] {
  display: none !important;
}

.prenest-booking__lang-option {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pb-ink);
  text-align: left;
}

.prenest-booking__lang-option:hover,
.prenest-booking__lang-option.is-active {
  background: #f5f5f4;
}

.prenest-booking__lang-option.is-active {
  background: #1c1917;
  color: #fff;
}

.prenest-booking__flag {
  font-size: 1.25rem;
  line-height: 1;
}

.prenest-booking__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prenest-booking__location {
  margin: 0;
  color: var(--pb-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

.prenest-booking__hint {
  margin: 0.85rem 0 0;
  color: var(--pb-muted);
  font-size: 1.08rem;
  line-height: 1.45;
}

.prenest-booking__calendar-wrap {
  margin: 1.35rem 0 1.6rem;
}

.prenest-booking__cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.prenest-booking__cal-label {
  flex: 1;
  text-align: center;
  text-transform: capitalize;
  font-size: 1.25rem;
  font-weight: 700;
}

.prenest-booking__cal-nav button {
  border: 1px solid #d6d3d1;
  background: #fff;
  border-radius: 12px;
  min-width: 52px;
  min-height: 52px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 600;
}

.prenest-booking__cal-loading,
.prenest-booking__cal-error {
  margin: 1rem 0;
  padding: 1.1rem;
  background: #fafaf9;
  border: 1px dashed #d6d3d1;
  text-align: center;
  font-size: 1.05rem;
}

.prenest-booking__cal-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.prenest-booking__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.prenest-booking__legend .is-available::before,
.prenest-booking__legend .is-unavailable::before,
.prenest-booking__legend .is-selected::before,
.prenest-booking__legend .is-past::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.4rem;
  border-radius: 3px;
  vertical-align: middle;
}

.prenest-booking__legend .is-available::before { background: var(--pb-ok); }
.prenest-booking__legend .is-unavailable::before { background: #b91c1c; }
.prenest-booking__legend .is-selected::before { background: var(--pb-sel); }
.prenest-booking__legend .is-past::before { background: #a8a29e; }

.prenest-booking__dow,
.prenest-booking__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.prenest-booking__dow span {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pb-muted);
  padding: 0.4rem 0;
}

.prenest-booking__day {
  appearance: none;
  border: 1px solid transparent;
  min-height: 78px;
  min-width: 0;
  padding: 0.45rem 0.25rem;
  border-radius: 10px;
  background: #f5f5f4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.prenest-booking__day.is-empty {
  background: transparent;
  cursor: default;
  min-height: 0;
  border: 0;
  padding: 0;
}

.prenest-booking__day.is-available {
  background: var(--pb-ok-bg);
  border-color: #86efac;
  color: #14532d;
}

.prenest-booking__day.is-unavailable {
  background: var(--pb-bad-bg);
  border-color: #fecaca;
  color: #7f1d1d;
  cursor: not-allowed;
  opacity: 0.9;
}

.prenest-booking__day.is-past {
  background: #e7e5e4;
  border-color: #d6d3d1;
  color: #a8a29e;
  cursor: not-allowed;
  opacity: 0.8;
}

.prenest-booking__day.is-past .prenest-booking__num {
  font-weight: 500;
}

.prenest-booking__day.is-checkin,
.prenest-booking__day.is-checkout,
.prenest-booking__day.is-inrange {
  background: var(--pb-sel-bg);
  border-color: #93c5fd;
  color: #1e3a8a;
}

.prenest-booking__num {
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.2;
}

.prenest-booking__price {
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  word-break: break-word;
}

.prenest-booking__range-label {
  margin: 1rem 0 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.prenest-booking__row,
.prenest-booking__guest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.prenest-booking label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.prenest-booking input,
.prenest-booking select {
  padding: 0.8rem 0.85rem;
  min-height: var(--pb-touch);
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}

.prenest-booking__plans {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.prenest-booking__plan {
  text-align: left;
  border: 1px solid #d6d3d1;
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  font: inherit;
  font-size: 1.02rem;
}

.prenest-booking__plan.is-active {
  border-color: #0f766e;
  box-shadow: inset 0 0 0 1px #0f766e;
}

.prenest-booking__plan span {
  color: var(--pb-muted);
  font-size: 0.98rem;
  font-weight: 500;
}

.prenest-booking__plan em {
  font-style: normal;
  font-weight: 700;
}

.prenest-booking__quote {
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

.prenest-booking__breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prenest-booking__breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f5f5f4;
  font-size: 1.02rem;
}

.prenest-booking__total {
  margin: 0.9rem 0 0.2rem;
  font-size: 1.25rem;
}

.prenest-booking__per {
  margin: 0;
  color: var(--pb-muted);
  font-size: 1.02rem;
}

.prenest-booking__upsell {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  padding: 1rem 1.1rem;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  font-size: 1.05rem;
}

.prenest-booking__upsell p {
  margin: 0 0 0.55rem;
}

.prenest-booking__upsell-meta {
  color: #065f46;
  font-size: 1.02rem;
}

.prenest-booking__upsell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--pb-touch);
  margin-top: 0.35rem;
  border: 0;
  background: #047857;
  color: #fff;
  padding: 0.6rem 1.05rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
}

.prenest-booking__policy,
.prenest-booking__rules {
  margin: 1.1rem 0;
  padding: 1.05rem 1.15rem;
  background: #fff7ed;
  border-left: 3px solid #c2410c;
  border-radius: 0 10px 10px 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.prenest-booking__policy-text {
  margin: 0.35rem 0 0.75rem;
  white-space: normal;
}

.prenest-booking__accept {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.prenest-booking__accept input {
  min-height: auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.prenest-booking__pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.prenest-booking__btn {
  appearance: none;
  border: 0;
  background: #1c1917;
  color: #fff;
  min-height: 56px;
  padding: 0.95rem 1.3rem;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  flex: 1 1 220px;
}

.prenest-booking__btn--secondary {
  background: #0f766e;
}

.prenest-booking__btn:disabled,
.prenest-booking__btn.is-loading {
  opacity: 0.55;
  cursor: not-allowed;
}

.prenest-booking__status[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .prenest-booking {
    margin: 0;
    padding: 1.1rem 0.85rem 1.6rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    width: 100%;
    font-size: 1.02rem;
  }

  .prenest-booking__header-top {
    align-items: center;
  }

  .prenest-booking__lang-dd {
    margin-left: auto;
  }

  .prenest-booking__lang-menu {
    right: 0;
    left: auto;
    min-width: 150px;
  }

  .prenest-booking__location,
  .prenest-booking__hint,
  .prenest-booking__legend,
  .prenest-booking__accept {
    font-size: 1.02rem;
  }

  .prenest-booking__cal-nav button {
    min-width: 48px;
    min-height: 48px;
    font-size: 1.35rem;
  }

  .prenest-booking__cal-label {
    font-size: 1.12rem;
  }

  .prenest-booking__dow,
  .prenest-booking__grid {
    gap: 4px;
  }

  .prenest-booking__day {
    min-height: 64px;
    padding: 0.35rem 0.15rem;
    border-radius: 8px;
  }

  .prenest-booking__num {
    font-size: 1rem;
  }

  .prenest-booking__price {
    font-size: 0.78rem;
  }

  .prenest-booking__btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 380px) {
  .prenest-booking__day {
    min-height: 56px;
  }

  .prenest-booking__price {
    font-size: 0.7rem;
  }
}
