.tphpb-booking,
.tphpb-result {
    --tphpb-ink: #111827;
    --tphpb-muted: #667085;
    --tphpb-border: #d9dee7;
    --tphpb-surface: #f6f7f9;
    --tphpb-accent: #790000;
    --tphpb-accent-dark: #560000;
    --tphpb-success: #087a55;
    position: relative;
    width: min(1180px, 100%);
    margin-inline: auto;
    padding: clamp(24px, 5vw, 64px);
    color: var(--tphpb-ink);
    background: #fff;
    border: 1px solid var(--tphpb-border);
    font-family: inherit;
}

.tphpb-booking * { box-sizing: border-box; }
.tphpb-booking__intro { max-width: 760px; margin-bottom: 32px; }
.tphpb-booking__intro h2,
.tphpb-panel-heading h3,
.tphpb-result h2 { margin: 0 0 12px; color: var(--tphpb-ink); line-height: 1.08; }
.tphpb-booking__intro h2 { font-size: clamp(32px, 5vw, 58px); }
.tphpb-booking__intro p:last-child { max-width: 650px; margin: 0; color: var(--tphpb-muted); font-size: 17px; line-height: 1.7; }
.tphpb-eyebrow { margin: 0 0 8px; color: var(--tphpb-accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.tphpb-demo-banner { display: grid; gap: 5px; margin: -12px 0 28px; padding: 15px 17px; color: #5f3b00; background: #fff7e0; border: 1px solid #f2cc73; border-left: 5px solid #d99100; }
.tphpb-demo-banner strong { font-size: 15px; }
.tphpb-demo-banner span { font-size: 13px; line-height: 1.55; }

.tphpb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.tphpb-steps li { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 13px 15px; color: var(--tphpb-muted); background: var(--tphpb-surface); border-top: 3px solid transparent; font-size: 14px; font-weight: 700; }
.tphpb-steps span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--tphpb-border); border-radius: 50%; background: #fff; font-size: 12px; }
.tphpb-steps li.is-active { color: var(--tphpb-accent); border-color: var(--tphpb-accent); }
.tphpb-steps li.is-complete { color: var(--tphpb-success); }
.tphpb-steps li.is-complete span { color: #fff; border-color: var(--tphpb-success); background: var(--tphpb-success); }
.tphpb-steps--five { grid-template-columns: repeat(5, 1fr); }

.tphpb-panel { min-height: 240px; padding: clamp(22px, 4vw, 42px); background: var(--tphpb-surface); }
.tphpb-panel[hidden] { display: none !important; }
.tphpb-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.tphpb-panel-heading h3 { font-size: clamp(26px, 3vw, 38px); }

.tphpb-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.tphpb-field-grid--details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tphpb-field { display: grid; gap: 8px; color: var(--tphpb-ink); font-size: 14px; font-weight: 750; }
.tphpb-field--wide { grid-column: 1 / -1; }
.tphpb-field input,
.tphpb-field textarea,
.tphpb-field select { width: 100%; min-height: 52px; padding: 13px 15px; color: var(--tphpb-ink); background: #fff; border: 1px solid var(--tphpb-border); border-radius: 0; font: inherit; font-weight: 500; outline: none; }
.tphpb-field textarea { min-height: 92px; resize: vertical; }
.tphpb-field input:focus,
.tphpb-field textarea:focus { border-color: var(--tphpb-accent); box-shadow: 0 0 0 3px rgba(121,0,0,.09); }

.tphpb-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 14px; padding: 12px 19px; color: var(--tphpb-ink); background: #fff; border: 1px solid var(--tphpb-border); border-radius: 0; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.tphpb-button:hover { transform: translateY(-1px); border-color: #aeb6c3; }
.tphpb-button--primary { color: #fff; border-color: var(--tphpb-accent); background: var(--tphpb-accent); }
.tphpb-button--primary:hover { color: #fff; border-color: var(--tphpb-accent-dark); background: var(--tphpb-accent-dark); }
.tphpb-button:disabled { opacity: .55; cursor: wait; transform: none; }
.tphpb-text-button { padding: 0; color: var(--tphpb-accent); background: none; border: 0; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }

.tphpb-house-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tphpb-house-card { overflow: hidden; background: #fff; border: 1px solid var(--tphpb-border); }
.tphpb-house-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e5e7eb; }
.tphpb-house-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tphpb-house-card:hover .tphpb-house-card__media img { transform: scale(1.035); }
.tphpb-house-card__media > span { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; color: #fff; background: rgba(17,24,39,.82); font-size: 12px; font-weight: 800; }
.tphpb-house-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e8eaee, #cdd3dc); }
.tphpb-house-card__body { padding: 22px; }
.tphpb-house-card__heading { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.tphpb-house-card h4 { margin: 0; font-size: 24px; line-height: 1.15; }
.tphpb-house-card__heading strong { color: var(--tphpb-accent); white-space: nowrap; }
.tphpb-house-card__body > p { min-height: 48px; margin: 0 0 16px; color: var(--tphpb-muted); line-height: 1.6; }
.tphpb-house-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 15px; border-top: 1px solid var(--tphpb-border); color: var(--tphpb-muted); font-size: 13px; }
.tphpb-house-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.tphpb-house-card__actions a { color: var(--tphpb-ink); font-size: 14px; font-weight: 800; }

.tphpb-review-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 30px; padding: 24px; background: #fff; border: 1px solid var(--tphpb-border); }
.tphpb-review-card__house { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 22px; }
.tphpb-review-card__house img { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; }
.tphpb-review-card__house h4 { margin: 0 0 8px; font-size: 28px; }
.tphpb-review-card__house p:last-child { margin: 0; color: var(--tphpb-muted); }
.tphpb-costs { margin: 0; padding: 0; }
.tphpb-costs > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--tphpb-border); }
.tphpb-costs dt { color: var(--tphpb-muted); }
.tphpb-costs dd { margin: 0; font-weight: 800; }
.tphpb-costs__total { padding-top: 18px !important; border: 0 !important; font-size: 19px; }
.tphpb-costs__total dt,
.tphpb-costs__total dd { color: var(--tphpb-ink); font-weight: 900; }

.tphpb-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 24px; }
.tphpb-check { display: flex; align-items: flex-start; gap: 11px; margin: 18px 0; color: var(--tphpb-muted); line-height: 1.55; cursor: pointer; }
.tphpb-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--tphpb-accent); }
.tphpb-payment-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 17px 19px; color: #fff; background: var(--tphpb-ink); }
.tphpb-payment-summary strong { font-size: 21px; }
.tphpb-hold-note { margin: 15px 0 0; color: var(--tphpb-muted); font-size: 13px; }
.tphpb-secure { color: var(--tphpb-success); font-size: 13px; font-weight: 800; }
.tphpb-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.tphpb-panel--payment { padding-inline: clamp(14px, 3vw, 30px); }
.tphpb-embedded-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 16px 18px; color: #fff; background: var(--tphpb-ink); }
.tphpb-embedded-summary span { line-height: 1.5; }
.tphpb-embedded-summary strong { font-size: 20px; white-space: nowrap; }
.tphpb-embedded-shell { min-height: 420px; padding: 10px; background: #fff; border: 1px solid var(--tphpb-border); }
.tphpb-embedded-shell > div { min-height: 400px; }
.tphpb-embedded-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
.tphpb-embedded-footer p { margin: 0; color: var(--tphpb-muted); font-size: 13px; line-height: 1.6; }


.tphpb-alert { margin-bottom: 18px; padding: 14px 16px; border-left: 4px solid #b42318; background: #fff1f0; color: #7a271a; font-weight: 700; }
.tphpb-alert[data-type="info"] { border-color: #175cd3; background: #eff8ff; color: #1849a9; }
.tphpb-loading { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--tphpb-ink); background: rgba(255,255,255,.86); font-weight: 800; backdrop-filter: blur(2px); }
.tphpb-loading[hidden] { display: none; }
.tphpb-spinner { width: 25px; height: 25px; border: 3px solid #d0d5dd; border-top-color: var(--tphpb-accent); border-radius: 50%; animation: tphb-spin .75s linear infinite; }
@keyframes tphb-spin { to { transform: rotate(360deg); } }

.tphpb-result { text-align: center; }
.tphpb-result__icon { display: grid; width: 72px; height: 72px; margin: 0 auto 20px; place-items: center; color: #fff; background: var(--tphpb-success); border-radius: 50%; font-size: 34px; font-weight: 900; }
.tphpb-result h2 { font-size: clamp(30px, 4vw, 48px); }
.tphpb-result > p { color: var(--tphpb-muted); }
.tphpb-confirmation-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; margin: 30px 0; background: var(--tphpb-border); border: 1px solid var(--tphpb-border); text-align: left; }
.tphpb-confirmation-grid > div { display: grid; gap: 7px; padding: 18px; background: #fff; }
.tphpb-confirmation-grid span { color: var(--tphpb-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 820px) {
    .tphpb-steps,
    .tphpb-steps--five { grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); }
    .tphpb-steps li { justify-content: center; padding-inline: 8px; font-size: 0; }
    .tphpb-steps span { font-size: 12px; }
    .tphpb-field-grid,
    .tphpb-field-grid--details,
    .tphpb-house-grid,
    .tphpb-review-card { grid-template-columns: 1fr; }
    .tphpb-review-card__house { grid-template-columns: 110px 1fr; }
    .tphpb-review-card__house img { width: 110px; }
    .tphpb-confirmation-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 520px) {
    .tphpb-booking,
    .tphpb-result { padding: 22px 16px; border-inline: 0; }
    .tphpb-panel { padding: 20px 14px; }
    .tphpb-panel-heading { display: grid; }
    .tphpb-house-card__heading,
    .tphpb-house-card__actions,
    .tphpb-actions,
    .tphpb-payment-summary,
    .tphpb-embedded-summary,
    .tphpb-embedded-footer { align-items: stretch; flex-direction: column; }
    .tphpb-actions .tphpb-button { width: 100%; }
    .tphpb-review-card__house { grid-template-columns: 1fr; }
    .tphpb-review-card__house img { width: 100%; }
    .tphpb-confirmation-grid { grid-template-columns: 1fr; }
}


/* Live availability calendar */
.tphpb-calendar { margin-bottom: 28px; padding: clamp(18px, 3vw, 28px); background: #fff; border: 1px solid var(--tphpb-border); }
.tphpb-calendar__toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.tphpb-calendar__toolbar h3 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.tphpb-calendar__house { display: grid; min-width: min(320px, 100%); gap: 7px; color: var(--tphpb-ink); font-size: 13px; font-weight: 800; }
.tphpb-calendar__house select { min-height: 48px; padding: 10px 42px 10px 13px; color: var(--tphpb-ink); background: #fff; border: 1px solid var(--tphpb-border); border-radius: 0; font: inherit; }
.tphpb-calendar__navigation { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; margin-bottom: 16px; }
.tphpb-calendar__navigation p { margin: 0; text-align: center; font-weight: 850; }
.tphpb-calendar__nav { display: grid; width: 44px; height: 44px; place-items: center; color: var(--tphpb-ink); background: #fff; border: 1px solid var(--tphpb-border); cursor: pointer; font-size: 18px; }
.tphpb-calendar__nav:hover:not(:disabled) { border-color: var(--tphpb-accent); color: var(--tphpb-accent); }
.tphpb-calendar__nav:disabled { opacity: .35; cursor: default; }
.tphpb-calendar__months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tphpb-calendar__month { padding: 16px; background: var(--tphpb-surface); border: 1px solid var(--tphpb-border); }
.tphpb-calendar__month h4 { margin: 0 0 14px; text-align: center; font-size: 18px; }
.tphpb-calendar__weekdays,
.tphpb-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tphpb-calendar__weekdays { margin-bottom: 5px; }
.tphpb-calendar__weekdays span { padding: 4px 0; color: var(--tphpb-muted); text-align: center; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.tphpb-calendar__blank { aspect-ratio: 1; }
.tphpb-calendar__day { position: relative; display: grid; min-width: 0; aspect-ratio: 1; place-items: center; padding: 0; color: var(--tphpb-ink); background: #fff; border: 1px solid transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }
.tphpb-calendar__day.is-available:hover { border-color: var(--tphpb-accent); color: var(--tphpb-accent); }
.tphpb-calendar__day.is-booked { color: #8b3b3b; background: repeating-linear-gradient(135deg, #fff0f0, #fff0f0 5px, #f8dada 5px, #f8dada 10px); }
.tphpb-calendar__day.is-past { color: #a4a9b1; background: #eef0f3; cursor: not-allowed; }
.tphpb-calendar__day.is-selected { color: #fff; background: var(--tphpb-accent); border-color: var(--tphpb-accent); }
.tphpb-calendar__day.is-endpoint::after { position: absolute; right: 4px; bottom: 3px; width: 5px; height: 5px; content: ''; background: currentColor; border-radius: 50%; }
.tphpb-calendar__legend { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 17px; color: var(--tphpb-muted); font-size: 12px; font-weight: 750; }
.tphpb-calendar__legend span { display: inline-flex; align-items: center; gap: 7px; }
.tphpb-calendar__legend i { width: 16px; height: 16px; border: 1px solid var(--tphpb-border); }
.tphpb-calendar__legend i.is-available { background: #fff; }
.tphpb-calendar__legend i.is-booked { background: repeating-linear-gradient(135deg, #fff0f0, #fff0f0 4px, #f8dada 4px, #f8dada 8px); }
.tphpb-calendar__legend i.is-selected { border-color: var(--tphpb-accent); background: var(--tphpb-accent); }
.tphpb-calendar__hint { margin: 14px 0 0; color: var(--tphpb-muted); font-size: 13px; line-height: 1.6; }
.tphpb-calendar__sync { margin: 7px 0 0; color: var(--tphpb-muted); font-size: 11px; }
.tphpb-calendar__error { grid-column: 1 / -1; margin: 0; padding: 18px; color: #7a271a; background: #fff1f0; border-left: 4px solid #b42318; }

@media (max-width: 820px) {
    .tphpb-calendar__toolbar { display: grid; align-items: stretch; }
    .tphpb-calendar__house { min-width: 0; }
    .tphpb-calendar__months { grid-template-columns: 1fr; }
    .tphpb-calendar__months .tphpb-calendar__month:nth-child(2) { display: none; }
}
