/* VERSION: BOOKING_FLOW_CSS_014_IDENTITY_LIMITS_DISPLAY */

.booking-page {
  background: var(--bg);
}

.booking-main {
  background: var(--bg);
}

.booking-hero {
  padding: 54px 0 12px;
}

.booking-hero-compact {
  padding-bottom: 0;
}

.booking-shell {
  padding-top: 18px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 420px);
  gap: 34px;
  align-items: start;
}

.booking-content,
.booking-sidebar {
  min-width: 0;
}

.booking-content {
  display: grid;
  gap: 18px;
}

.booking-sticky {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
}

.booking-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}


/* BOOKING SUMMARY PAGE REPAIR */
.booking-gallery-card {
  padding: 14px;
}

.booking-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.booking-gallery-grid img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  object-fit: cover;
  border-radius: 20px;
  background: #ece6de;
}

.booking-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 600;
}

.booking-back-link:hover {
  color: var(--accent);
}

.booking-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    ". price"
    "title title"
    "address address";
  gap: 10px 18px;
  margin-bottom: 18px;
  align-items: start;
}


.booking-property-title {
  grid-area: title;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: clamp(2.05rem, 3.7vw, 3.35rem);
  line-height: 0.96;
}


.booking-property-title-main {
  display: block;
  font-size: 1.08em;
}

.booking-property-title-sub {
  display: grid;
  gap: 4px;
  font-size: 0.74em;
  line-height: 1.02;
}

.booking-property-title-sub-line {
  display: block;
}

.booking-address {
  grid-area: address;
  margin: 0;
  color: var(--muted);
}

.booking-price-from {
  grid-area: price;
  justify-self: end;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-weight: 700;
  white-space: nowrap;
}


.booking-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.booking-highlight {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #faf7f2;
  font-weight: 600;
}

.booking-description p:last-child {
  margin-bottom: 0;
}

.booking-services-card,
.booking-map-card,
.booking-faq-card {
  padding: 26px 28px;
}

.booking-section-lead {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.booking-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.booking-service-item {
  min-height: 92px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #faf7f2;
}


.booking-service-icon,
.booking-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(162,70,52,.16);
  background: rgba(255,255,255,.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
}

.booking-service-icon svg,
.booking-info-icon svg {
  width: 28px;
  height: 28px;
}

.booking-service-title {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

.booking-info-stack {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.booking-info-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #faf7f2;
}

.booking-info-copy h4 {
  margin: 2px 0 8px;
  font-size: 1.04rem;
  font-family: inherit;
}

.booking-info-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}


.booking-map-frame {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #ece6de;
}

.booking-map-frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.booking-faq-item + .booking-faq-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.booking-faq-item h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-family: inherit;
}

.footer-brand-name {
  color: #fff;
  margin-bottom: 14px;
}

.booking-copy-card,
.booking-summary-card,
.booking-urgency-card,
.booking-confirm-card {
  padding: 28px;
}

.booking-confirm-card {
  text-align: center;
}

.booking-summary-kicker {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.booking-summary-subtitle,
.booking-summary-address {
  color: var(--muted);
  margin-bottom: 10px;
}

.booking-pill-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 0;
}

.booking-pill {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  font-weight: 600;
  text-align: center;
}

.booking-breakdown {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.booking-breakdown-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.booking-breakdown-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.booking-breakdown-deposit {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--accent-dark);
}

.booking-continue-btn {
  margin-top: 24px;
}

.booking-urgency-card {
  background: rgba(255,255,255,.72);
}

.booking-traffic-card {
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(246,239,232,0.94));
  box-shadow: var(--shadow);
}

.booking-traffic-line {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
}

.booking-traffic-line strong {
  font-size: 1.6rem;
  color: var(--accent-dark);
  margin-right: 8px;
}

.booking-traffic-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.booking-alert {
  padding: 16px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 1px solid #d6b1aa;
  background: #f8e8e5;
  color: #8a3a2b;
  font-weight: 600;
}

.booking-inline-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
  border: 1px solid transparent;
}

.booking-inline-message.is-error {
  background: #f8e8e5;
  border-color: #e6c1b8;
  color: #8a3a2b;
}

.booking-inline-message.is-success {
  background: #ebf5ed;
  border-color: #cce2d0;
  color: #235b33;
}

.booking-form-intro {
  color: var(--muted);
  margin-bottom: 24px;
}

.traveler-form {
  margin-top: 18px;
}

.booking-form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.booking-field {
  display: grid;
  gap: 8px;
}

.booking-field-full {
  grid-column: 1 / -1;
}

.booking-field span {
  font-weight: 600;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f7f3ed;
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.booking-field textarea {
  min-height: 140px;
  padding: 16px;
  resize: vertical;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(162,70,52,.08);
}

.booking-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.booking-checkbox input {
  margin-top: 4px;
}

.booking-legal-box {
  margin-top: 24px;
  padding: 18px 18px 6px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.contract-teaser-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: 20px;
  border: 1px dashed rgba(162,70,52,.32);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(243,237,230,.9));
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  transition: opacity 240ms ease, transform 240ms ease, max-height 260ms ease, margin 260ms ease, padding 260ms ease;
  overflow: hidden;
  max-height: 180px;
}

.contract-teaser-card.is-collapsed {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

.contract-teaser-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(162,70,52,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.contract-teaser-copy h3 {
  margin: 0 0 8px;
}

.contract-teaser-copy p {
  margin: 0;
  color: var(--muted);
}

.contract-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  transition: max-height 420ms ease, opacity 260ms ease, transform 260ms ease;
}

.contract-panel.is-visible {
  max-height: 4200px;
  opacity: 1;
  transform: translateY(0);
}

.contract-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fcfaf7);
}

.contract-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(162,70,52,.18);
  background: rgba(162,70,52,.08);
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}

.contract-badge.is-unlocked {
  border-color: rgba(39,125,78,.22);
  background: rgba(39,125,78,.10);
  color: #1f6a42;
}

.contract-scroll-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .96rem;
}

.contract-render {
  padding: 24px;
  max-height: 680px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(252,250,247,.96), rgba(255,255,255,.98));
}

.contract-document {
  color: var(--text);
  line-height: 1.72;
}

.contract-document-premium {
  display: grid;
  gap: 18px;
}

.contract-hero-ui {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.contract-hero-ui-stacked {
  padding-bottom: 4px;
  border-bottom: 1px solid #efe6dd;
}

.contract-document h4 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.2;
}

.contract-hero-subtitle-ui {
  margin: 0;
  color: var(--muted);
}

.contract-status-badge-ui {
  border-radius: 999px;
  border: 1px solid rgba(162,70,52,.18);
  background: rgba(162,70,52,.08);
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent-dark);
  white-space: nowrap;
}

.contract-card-ui,
.contract-note-ui,
.contract-closing-ui,
.contract-article-ui,
.contract-main-card-ui {
  border: 1px solid #e8ddd2;
  border-radius: 22px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(30,24,20,.04);
}

.contract-card-ui-stacked {
  display: block;
}

.contract-card-ui-alt {
  background: linear-gradient(180deg, rgba(255,249,244,.96), rgba(252,246,240,.96));
}

.contract-card-kicker-ui,
.contract-article-index-ui {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}

.contract-card-ui p,
.contract-note-ui p,
.contract-closing-ui p,
.contract-article-ui p,
.contract-main-card-ui p,
.contract-article-section-ui p,
.contract-closing-ui-inline p {
  margin: 0 0 10px;
}

.contract-summary-ui {
  display: grid;
  gap: 10px;
}

.contract-summary-row-ui {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #efe6dd;
}

.contract-summary-row-ui:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contract-document h5 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.contract-main-card-ui {
  display: grid;
  gap: 0;
}

.contract-article-section-ui {
  display: block;
}

.contract-article-section-ui-divider {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #efe6dd;
}

.vp-signature-grid-ui {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.vp-signature-box-ui {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #faf8f5;
  padding: 18px;
  min-height: 136px;
}

.vp-signature-label-ui {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.vp-signature-name-ui {
  font-family: "Brush Script MT","Segoe Script","Lucida Handwriting",cursive;
  font-size: 34px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
}

.vp-signature-subtitle-ui {
  font-size: 13px;
  color: #6a6058;
  margin-bottom: 8px;
}

.vp-signature-meta-ui {
  font-size: 13px;
  color: #555;
}

.contract-closing-ui-inline {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #efe6dd;
}

.contract-read-hint {
  display: inline-block;
  margin-top: 4px;
  color: #8f4632;
  font-size: .92rem;
}

.contract-read-hint.is-unlocked {
  color: #48684f;
}

.payment-step-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.payment-step-card.is-below-contract {
  transform: translateY(0);
  box-shadow: 0 18px 45px rgba(30,24,20,.06);
}

.payment-step-header h3 {
  margin-bottom: 8px;
}

#payment-element {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.payment-actions-final {
  margin-top: 22px;
}


.booking-summary-card > .booking-summary-kicker {
  color: var(--accent-dark);
}

.booking-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.booking-continue-btn.is-loading {
  pointer-events: none;
  opacity: .88;
}

.identity-upload-card {
  margin-top: 22px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,243,237,.96));
}

.identity-upload-copy h3 {
  margin: 0 0 8px;
}

.identity-upload-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.identity-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.identity-upload-trigger {
  cursor: pointer;
}

.identity-upload-limit {
  font-size: 13px;
  color: #6f655d;
}

.identity-upload-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.identity-upload-meta em {
  display: block;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-upload-meta small {
  display: block;
  font-size: 12px;
  color: #7b726b;
}

.identity-upload-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.identity-upload-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.identity-upload-item.is-uploaded {
  border-color: rgba(35,91,51,.25);
  background: #f5faf6;
}

.identity-upload-item span {
  overflow: hidden;
  min-width: 0;
}

.identity-upload-item strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-dark);
}
.identity-upload-actions-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.identity-upload-remove {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.identity-upload-remove:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

#payment-element-placeholder {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  gap: 14px;
}

.payment-element-placeholder-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(162,70,52,.10) 0%,
    rgba(162,70,52,.18) 50%,
    rgba(162,70,52,.10) 100%
  );
}

.payment-element-placeholder-line-lg {
  width: 100%;
  height: 18px;
}

.payment-element-placeholder-line-sm {
  width: 42%;
}

#payment-loading-box {
  margin-top: 16px;
}

.booking-confirm-actions {
  margin-top: 24px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.booking-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border: 4px solid rgba(162,70,52,.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: booking-spin 0.8s linear infinite;
}

.booking-failure-box {
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.booking-failure-box a {
  color: inherit;
  text-decoration: underline;
}

@keyframes booking-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      ". price"
      "title title"
      "address address";
    gap: 10px 18px;
    margin-bottom: 18px;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .booking-gallery-grid {
    grid-template-columns: 1fr;
  }

  .booking-gallery-grid img {
    min-height: 200px;
  }

  .booking-promo-inline {
    grid-template-columns: 1fr;
  }

  .booking-copy-card,
  .booking-summary-card,
  .booking-urgency-card,
  .booking-confirm-card,
  .booking-services-card,
  .booking-map-card,
  .booking-faq-card,
  .booking-traffic-card {
    padding: 20px;
  }

  .booking-form-grid,
  .booking-pill-row,
  .vp-signature-grid-ui,
  .booking-services-grid {
    grid-template-columns: 1fr;
  }

  .contract-teaser-card {
    grid-template-columns: 1fr;
  }

  .identity-upload-actions {
    align-items: stretch;
  }

  .identity-upload-trigger {
    width: 100%;
    justify-content: center;
  }

  .identity-upload-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .contract-render {
    max-height: 420px;
  }

  .booking-confirm-actions {
    display: grid;
  }

  .booking-confirm-actions .btn {
    width: 100%;
  }
}

.booking-summary-card .booking-promo-field {
  margin: 34px 0 18px;
  gap: 0;
}

.booking-summary-card .booking-promo-field > span {
  display: block;
  margin: 0 0 20px;
}

.booking-summary-card .booking-promo-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.booking-summary-card .booking-promo-inline input {
  width: 100%;
  min-width: 0;
}

.booking-summary-card .booking-promo-inline .btn {
  align-self: center;
  min-width: 132px;
  white-space: nowrap;
  margin: 0;
}

.booking-summary-card .booking-field-help {
  margin: 14px 0 0;
  font-size: 13px;
  color: #6f655d;
}

.booking-summary-card .booking-promo-field #advantage-message {
  margin-top: 12px;
}

@media (max-width: 1024px) {
  .booking-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .booking-heading-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "price"
      "title"
      "address";
  }

  .booking-price-from {
    justify-self: start;
  }

  .booking-services-grid {
    grid-template-columns: 1fr;
  }

  .booking-service-item,
  .booking-info-item {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 16px;
  }
}
