/* Routed views occupy normal document flow. No backdrop or fixed dialog shell. */
body.page-view-active { overflow: auto !important; }
.page-view-suspended, .page-view-inactive { display: none !important; }
.page-view { width: min(1184px, calc(100% - 96px)); margin: 0 auto; padding: 45px 0 85px; min-height: 65vh; }
.page-view__navigation { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--ecla-border); margin-bottom: 32px; }
.page-view__back { font: 600 .85rem var(--ecla-body); min-height: 44px; padding: 8px 0; color: var(--ecla-emerald); background: none; border: 0; cursor: pointer; text-align: left; }
.page-view__back:hover { color: var(--ecla-terracotta); }
.page-view__eyebrow { font: 500 .65rem var(--ecla-body); text-transform: uppercase; letter-spacing: .2em; color: var(--ecla-muted); }
.page-view__title { font: 400 clamp(2rem, 4vw, 3.5rem)/1.2 var(--ecla-heading); color: var(--ecla-emerald); letter-spacing: -.025em; margin: 0 0 34px; overflow-wrap: anywhere; }
.page-view__title, .page-view__title:focus, .page-view__title:focus-visible {
  outline: none !important; border: 0 !important; box-shadow: none !important;
}
.page-view__body { min-width: 0; }
.page-view .routed-page,
.page-view #staffFormPanel.routed-page,
.page-view #heroFormPanel.routed-page {
  position: static !important; inset: auto !important; transform: none !important;
  width: 100% !important; max-width: none !important; height: auto !important; max-height: none !important;
  min-height: 0; display: block; overflow: visible !important; opacity: 1 !important; visibility: visible !important;
  padding: 0; margin: 0; z-index: auto; background: transparent; border: 0; border-radius: 0;
  box-shadow: none !important; animation: none !important; transition: none;
}
.page-view .routed-page > [class$="__backdrop"],
.page-view .routed-page > [class$="-backdrop"] { display: none !important; }
.page-view .routed-page > .admin-modal__dialog,
.page-view .routed-page > .tour-modal__panel,
.page-view .routed-page > .dest-modal__panel,
.page-view .routed-page > .stay-modal__panel,
.page-view .routed-page > .booking-form-panel,
.page-view .routed-page > .stay-booking-panel,
.page-view .routed-page > .admin-confirm,
.page-view .routed-page > .hb-more-card,
.page-view .routed-page > .payment-detail,
.page-view .routed-page > .cust-history-modal {
  position: static !important; inset: auto !important; transform: none !important;
  width: 100% !important; max-width: none !important; max-height: none !important; height: auto;
  overflow: visible; margin: 0; opacity: 1; visibility: visible; border-radius: var(--ecla-radius);
  box-shadow: none; background: var(--ecla-paper); border: 1px solid var(--ecla-border);
}
.page-view .routed-page .admin-modal__body,
.page-view .routed-page .invoice-payment-panel__body,
.page-view .routed-page .payment-detail__body { max-height: none !important; height: auto; overflow: visible; }
.page-view .routed-page .admin-modal__close,
.page-view .routed-page .tour-modal__close,
.page-view .routed-page .dest-modal__close,
.page-view .routed-page .stay-modal__close,
.page-view .routed-page .booking-close,
.page-view .routed-page .sbk-close,
.page-view .routed-page .gallery-lightbox__close,
.page-view .routed-page .payment-detail__close { display: none; }
.page-view .routed-page .modal-title { font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.page-view .routed-page .modal-hero { width: 100%; height: clamp(220px, 40vw, 520px); object-fit: cover; border-radius: var(--ecla-radius) var(--ecla-radius) 0 0; }
.page-view .routed-page .modal-content { padding: 36px; }
.page-view .routed-page .modal-desc { font-size: .97rem; line-height: 1.9; }
.page-view .routed-page .modal-footer { position: static; padding: 28px 36px; gap: 20px; flex-wrap: wrap; }
.page-view .routed-page .booking-form-panel,
.page-view .routed-page .stay-booking-panel { padding: 36px; max-width: 820px !important; margin: auto; }
.page-view .routed-page input:not([type="checkbox"]):not([type="radio"]),
.page-view .routed-page textarea, .page-view .routed-page select { font-size: 16px; }
.page-view .routed-page .inv-preview-frame { height: 85vh; min-height: 600px; width: 100%; }
.page-view .routed-page .admin-confirm { padding: 32px; }
.page-view .routed-page .admin-confirm__msg { text-align: left; }
.page-view .routed-page .admin-confirm__actions { justify-content: flex-start; flex-wrap: wrap; }
.page-view .gallery-lightbox.routed-page { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 20px; align-items: center; color: var(--ecla-ink); }
.page-view .gallery-lightbox__img { position: static; width: 100%; height: auto; max-height: none; max-width: 100%; grid-column: 2; grid-row: 1; object-fit: contain; }
.page-view .gallery-lightbox__nav { position: static; transform: none; width: 44px; height: 44px; color: var(--ecla-emerald); background: var(--ecla-linen); }
.page-view .gallery-lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.page-view .gallery-lightbox__nav--next { grid-column: 3; grid-row: 1; }
.page-view .gallery-lightbox__caption { position: static; transform: none; grid-column: 2; text-align: center; color: var(--ecla-muted); padding: 15px; }
.ecla-admin .page-view { width: 100%; padding: 8px 0 60px; }
.ecla-admin .page-view__title { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.ecla-admin .page-view .table-wrap { overflow-x: auto; }
.ecla-admin .page-view .payment-detail__head { border-radius: 0; }
@media (max-width: 768px) {
  .page-view { width: calc(100% - 40px); padding: 26px 0 55px; }
  .page-view__eyebrow { display: none; }
  .page-view__title { margin-bottom: 24px; }
  .page-view .routed-page .modal-content,
  .page-view .routed-page .modal-footer,
  .page-view .routed-page .booking-form-panel,
  .page-view .routed-page .stay-booking-panel,
  .page-view .routed-page .admin-confirm { padding: 24px 20px; }
  .page-view .gallery-lightbox.routed-page { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; }
  .page-view .gallery-lightbox__img { grid-column: 1 / -1; }
  .page-view .gallery-lightbox__nav { grid-row: 2; }
  .page-view .gallery-lightbox__caption { grid-row: 2; padding: 10px 0; }
  .page-view .routed-page .inv-preview-frame { min-height: 450px; }
}
