.guest-page {
  width: min(1040px,100%);
  margin: auto;
  padding: 48px max(4vw,20px) 80px;
  font: 16px/1.55 Arial,sans-serif;
  color: var(--deep);
}

.guest-page h1 {
  font: 500 clamp(32px,3.67vw,44px)/1.02 Futura,Arial,sans-serif;
  margin-bottom: 32px;
}

.guest-summary {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  align-items: center;
}

.guest-summary img {
  width: 120px;
  height: 88px;
  object-fit: cover;
  border-radius: 4px;
}

.guest-summary p {
  margin: .2rem 0;
  color: var(--olive);
  font-size: 14px;
}

.scenario-control {
  display: block;
  margin: 8px 0 16px;
  font-size: 13px;
  font-weight: 700;
}

.scenario-control select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid var(--sand);
  border-radius: 8px;
  background: var(--paper);
  font: 16px Arial,sans-serif;
  color: var(--deep);
  padding: 10px 12px;
  max-width: 360px;
}

.guest-next {
  padding: 28px;
  border-bottom: 1px solid var(--line);
  max-width: 720px;
  margin-top: 32px;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 12px;
}

.guest-next h2 {
  font: 500 clamp(28px,3vw,36px)/1.05 Futura,Arial,sans-serif;
  max-width: 540px;
  margin: 16px 0;
  letter-spacing: -.035em;
}

.guest-lines {
  display: grid;
  gap: 0;
  margin-top: 24px;
  max-width: 720px;
}

.guest-lines .text-button {
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.guest-page dialog {
  border: 0;
  border-radius: 12px;
  padding: 32px;
  width: min(520px,calc(100vw - 40px));
  max-height: calc(100svh - 48px);
  overflow: auto;
  background: var(--paper);
  color: var(--deep);
  animation: guest-dialog 240ms ease;
  overscroll-behavior: contain;
}

.guest-page dialog::backdrop {
  background: rgba(48,55,43,.5);
}

.guest-page dialog label {
  display: block;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 700;
}

.guest-page dialog input,.guest-page dialog select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  font: 16px Arial,sans-serif;
  border: 1px solid var(--sand);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--ivory);
  color: var(--deep);
}

.dialog-error {
  color: #8a3220;
}

.modal-open {
  overflow: hidden;
}

.guest-next p:not(.guest-status) {
  max-width: 540px;
  color: var(--olive);
}

.guest-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.guest-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
}

.guest-next .button {
  margin-top: 8px;
}

.guest-line {
  font: 16px/1.5 Arial,sans-serif;
  border: 0;
  border-bottom: 1px solid var(--sand);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--deep);
  text-align: left;
  cursor: pointer;
}

.guest-line strong {
  font-weight: 600;
}

.guest-line small {
  display: block;
  font-size: 14px;
  color: var(--olive);
  margin-top: 4px;
}

.guest-line:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guest-line>span:last-child {
  font-size: 22px;
}

.guest-access {
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--sand);
}

.guest-access h2 {
  font: 600 16px/1.5 Arial,sans-serif;
  letter-spacing: 0;
  margin: 0;
}

.guest-access p {
  font-size: 14px;
  color: var(--olive);
  margin: 4px 0 0;
}

.guest-request {
  max-width: 720px;
  margin-top: 24px;
  padding: 24px;
  border-left: 3px solid var(--olive);
  background: var(--paper);
}

.guest-request h2 {
  font-size: 28px;
  margin: 12px 0;
}

.guest-feedback {
  color: var(--olive);
  font-size: 14px;
  padding: 16px 0;
}

.scenario-details {
  max-width: 720px;
  margin-top: 32px;
  border-top: 1px solid var(--sand);
  padding: 12px 0;
}

.scenario-details summary {
  font-size: 13px;
  color: var(--olive);
  cursor: pointer;
  min-height: 44px;
  padding-block: 12px;
}

.guest-mobile-nav {
  display: none;
}

.guest-page dialog h2 {
  font-size: 32px;
  margin: 12px 0 20px;
  line-height: 1.12;
}

.guest-page dialog h3 {
  font-size: 26px;
}

.guest-page dialog p {
  font-size: 16px;
  color: var(--olive);
}

.guest-page dialog .subtle {
  font-size: 13px;
}

.guest-page dialog .eyebrow {
  font-size: 13px;
}

.guest-page dialog .guest-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 400;
  min-height: 44px;
  margin-block: 20px;
}

.guest-page dialog .guest-check input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  flex: none;
  accent-color: var(--olive);
}

.guest-page dialog .dialog-error {
  color: #8a3220;
  font-size: 14px;
}

.guest-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.guest-dialog-actions .text-button {
  min-height: 44px;
  padding: 8px;
}

.guest-page dialog details {
  border-bottom: 1px solid var(--sand);
  padding: 12px 0;
}

.guest-page dialog summary {
  font-size: 16px;
  font-weight: 600;
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
}

.guest-page dialog details p {
  font-size: 15px;
  line-height: 1.6;
}

.guest-page dialog> .text-button {
  min-height: 44px;
  margin-top: 16px;
}

.guest-page [tabindex="-1"]:focus {
  outline: 0;
}

@keyframes guest-dialog {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  .guest-page dialog {
    animation: none;
  }
}

@media(max-width:760px) {
  .guest-page {
    padding: 32px 20px 48px;
  }

  .guest-summary img {
    width: 80px;
    height: 80px;
  }

  .guest-page h1 {
    margin-top: 10px;
    margin-bottom: 24px;
  }

  .guest-next {
    padding: 20px;
    margin-top: 24px;
  }

  .guest-summary {
    gap: 16px;
    padding-block: 16px;
    align-items: flex-start;
  }

  .guest-summary p {
    font-size: 13px;
  }

  .guest-next h2 {
    font-size: 28px;
  }

  .guest-line {
    padding-block: 18px;
  }

  .guest-page dialog {
    padding: 24px;
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
  }

  .guest-page dialog h2 {
    font-size: 28px;
  }

  .guest-dialog-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .guest-dialog-actions .text-button {
    text-align: center;
  }

  .guest-request {
    padding: 20px;
  }

  .guest-request h2 {
    font-size: 26px;
  }

  .guest-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--sand);
    background: var(--paper);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    z-index: 4;
  }

  .guest-mobile-nav a,.guest-mobile-nav button {
    font: 14px Arial,sans-serif;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--olive);
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
  }

  .guest-mobile-nav [aria-current] {
    background: var(--ivory);
    font-weight: 700;
    color: var(--deep);
  }

  body[data-route="estadia"] .site-footer {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }
}
