/* ===== PROGRESS STEPPER ===== */

.booking__stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 360px;
  margin: 0 auto 20px;
}

.stepper__step {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
  transition: opacity 0.3s;
}

.stepper__step--active {
  opacity: 1;
}

.stepper__step--done {
  opacity: 0.6;
}

.stepper__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.stepper__step--active .stepper__num {
  background: var(--color-accent);
  color: #fff;
}

.stepper__step--done .stepper__num {
  background: var(--color-accent);
  color: #fff;
}

.stepper__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.stepper__step--active .stepper__label {
  color: var(--color-text);
}

.stepper__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  margin: 0 10px;
  min-width: 24px;
  transition: background 0.3s;
}

.stepper__line--done {
  background: var(--color-accent);
}

/* ===== BACK BUTTONS ===== */

.summary__back,
.guest-form__back {
  all: unset;
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.summary__back:hover,
.guest-form__back:hover {
  color: var(--color-accent);
}

/* ===== INLINE ERROR ===== */

.booking__error {
  max-width: 520px;
  margin: 0 auto 16px;
  padding: 14px 40px 14px 16px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  position: relative;
  animation: errorIn 0.3s ease;
}

@keyframes errorIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.booking__error p {
  font-size: 0.9rem;
  color: #991B1B;
  line-height: 1.5;
}

.booking__error-dismiss {
  all: unset;
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.2rem;
  color: #991B1B;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.booking__error-dismiss:hover {
  opacity: 1;
}

/* ===== EXIT-INTENT POPUP ===== */

.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.exit-popup--open {
  opacity: 1;
  visibility: visible;
}

.exit-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.exit-popup__dialog {
  position: relative;
  width: 90vw;
  max-width: 420px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.exit-popup--open .exit-popup__dialog {
  transform: translateY(0) scale(1);
}

.exit-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.exit-popup__close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.exit-popup__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.exit-popup__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 10px;
}

.exit-popup__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.exit-popup__form {
  display: flex;
  gap: 8px;
  max-width: 340px;
  margin: 0 auto;
}

.exit-popup__form input {
  flex: 1;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s;
  min-width: 0;
}

.exit-popup__form input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.exit-popup__form button {
  padding: 12px 20px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.exit-popup__form button:hover {
  background: var(--color-accent-hover);
}

.exit-popup__form button:disabled {
  background: var(--color-border);
  cursor: not-allowed;
}

.exit-popup__fine {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 12px;
  opacity: 0.7;
}

.exit-popup__success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.4rem;
  line-height: 48px;
  border-radius: 50%;
}

.exit-popup__cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}

.exit-popup__cta:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 480px) {
  .exit-popup__form {
    flex-direction: column;
  }
}

/* ===== V2 PREVIEW BANNER ===== */

.v2-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #2C2C2C;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.v2-banner a {
  color: var(--color-brand-yellow);
  margin-left: 8px;
}

/* ===== TWO-MONTH CALENDAR ===== */

.cal {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 auto 24px;
  max-width: 820px;
}

.cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal__nav-btn {
  all: unset;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text);
  transition: background 0.2s;
  flex-shrink: 0;
}

.cal__nav-btn:hover {
  background: var(--color-bg);
}

.cal__nav-titles {
  display: none;
}

.cal__months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.cal__panel-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 12px;
}

.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  min-height: 240px;
}

.cal__day {
  all: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  position: relative;
  min-height: 44px;
}

.cal__day:hover:not(.cal__day--disabled):not(.cal__day--empty) {
  background: var(--color-bg);
}

.cal__day--empty {
  cursor: default;
}

.cal__day--disabled {
  color: var(--color-border);
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal__day--today {
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--color-accent);
}

.cal__day--selected {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
}

.cal__day--selected.cal__day--today {
  box-shadow: none;
}

.cal__day--in-range {
  background: rgba(184, 134, 11, 0.12);
  color: var(--color-text);
  border-radius: 0;
}

.cal__day--checkin {
  border-radius: 8px 0 0 8px;
}

.cal__day--checkout {
  border-radius: 0 8px 8px 0;
}

.cal__day--min-stay-blocked {
  color: var(--color-border);
  cursor: not-allowed;
}

.cal__day-price {
  font-size: 0.55rem;
  color: var(--color-text-muted);
  margin-top: 1px;
  line-height: 1;
}

.cal__day--selected .cal__day-price {
  color: rgba(255, 255, 255, 0.8);
}

.cal__day--in-range .cal__day-price {
  color: var(--color-text-muted);
}

/* Popular date indicator */
.cal__day-popular {
  font-size: 0.45rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #D4820A;
  margin-top: 0;
  line-height: 1;
}

.cal__day--popular {
  background: #FFFBF0;
}

.cal__day--selected .cal__day-popular,
.cal__day--in-range .cal__day-popular {
  color: rgba(255, 255, 255, 0.7);
}

.cal__day--selected.cal__day--popular {
  background: var(--color-accent);
}

/* Min-stay bubble (positioned above selected check-in cell) */
.cal__months {
  position: relative;
}

.cal__bubble {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  transform: translateX(-50%);
}

.cal__bubble span {
  display: inline-block;
  background: #2C2C2C;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  position: relative;
  animation: calBubbleIn 0.15s ease;
}

.cal__bubble span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #2C2C2C;
}

@keyframes calBubbleIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Calendar footer */
.cal__footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.cal__legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.cal__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.cal__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cal__legend-dot--available {
  background: var(--color-white);
  border: 1px solid var(--color-text-muted);
}

.cal__legend-dot--booked {
  background: var(--color-border);
}

.cal__legend-dot--selected {
  background: var(--color-accent);
}

.cal__selection {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.cal__min-stay-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.cal__min-stay-note strong {
  color: var(--color-text);
}

/* ===== PRICE SUMMARY ===== */

.summary {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 auto 24px;
  max-width: 520px;
}

.summary__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.summary__dates {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

.summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.summary__row--total {
  border-bottom: none;
  padding-top: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.summary__row--tax {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.summary__row--error {
  color: #b43b3b;
  font-size: 0.85rem;
}

.summary__row--loading {
  align-items: center;
}

.summary__skeleton {
  display: inline-block;
  width: 60px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.05) 100%);
  background-size: 200% 100%;
  animation: summary-shimmer 1.2s ease-in-out infinite;
}

.summary__skeleton--wide {
  width: 140px;
}

@keyframes summary-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.summary__taxes-note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

.summary__savings {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f4efe2;
  border: 1px solid #e8dcc1;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.summary__savings-label {
  font-size: 0.88rem;
  color: #6b5826;
  line-height: 1.45;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.summary__savings-label strong {
  color: #4a3d16;
  font-weight: 700;
}

.summary__savings-info {
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 0.95rem;
  color: #8a7a45;
  cursor: pointer;
  line-height: 1;
}

.summary__savings-info:hover,
.summary__savings-info:focus {
  color: #4a3d16;
  outline: none;
}

.summary__savings-tooltip {
  margin-top: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e8dcc1;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  text-align: left;
}

.summary__continue {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px 24px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.summary__continue:hover {
  background: var(--color-accent-hover);
}

/* ===== GUEST FORM ===== */

.guest-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 auto 24px;
  max-width: 520px;
}

.guest-form__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.guest-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guest-form__field {
  margin-bottom: 14px;
}

.guest-form__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.guest-form__field input,
.guest-form__field select {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.guest-form__field input:focus,
.guest-form__field select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.guest-form__submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.guest-form__submit:hover {
  background: var(--color-accent-hover);
}

.guest-form__submit:disabled {
  background: var(--color-border);
  cursor: not-allowed;
}

.guest-form__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ===== CONFIRMATION ===== */

.confirmation {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 24px;
  margin: 0 auto 24px;
  max-width: 520px;
  text-align: center;
}

.confirmation__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.6rem;
  line-height: 56px;
  border-radius: 50%;
}

.confirmation__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.confirmation__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.confirmation__payment {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 100px;
  transition: background 0.2s;
  text-decoration: none;
}

.confirmation__payment:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

.confirmation__note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ===== LOADING STATE ===== */

.cal--loading .cal__months {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== MOBILE: STACKED MONTHS ===== */

@media (max-width: 767px) {
  .cal {
    padding: 16px;
  }

  .cal__months {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cal__day {
    font-size: 0.8rem;
    min-height: 40px;
  }

  .cal__day-price {
    font-size: 0.5rem;
  }

  .cal__grid {
    min-height: 200px;
  }

  .summary,
  .guest-form,
  .confirmation {
    max-width: 100%;
  }
}

/* ===== NATIVE CONTACT FORM (replaces iframe) ===== */

.contact-modal__dialog {
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
}

.contact-modal__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.contact-modal__subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form__field {
  margin-bottom: 14px;
}

.contact-form__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form__submit {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form__submit:hover {
  background: var(--color-accent-hover);
}

.contact-form__submit:disabled {
  background: var(--color-border);
  cursor: not-allowed;
}

.contact-form__success {
  text-align: center;
  padding: 20px 0;
}

.contact-form__success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.4rem;
  line-height: 48px;
  border-radius: 50%;
}

.contact-form__success p {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 8px;
}

.contact-form__alt {
  font-size: 0.8rem;
  color: var(--color-text-muted) !important;
  font-weight: 400 !important;
}

@media (max-width: 767px) {
  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
