.booking-photo-tour {
  --tour-surface: #fff;
  --tour-ink: #173227;
  --tour-muted: #536358;
  --tour-border: #25493426;
  --tour-focus: #2e7859;
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--tour-surface); color: var(--tour-ink);
}
.booking-photo-tour[open] { display: flex; flex-direction: column; }
.booking-photo-tour [hidden] { display: none !important; }
body:has(.booking-photo-tour[open]) { overflow: hidden; }
.booking-photo-tour button { cursor: pointer; }
.booking-photo-tour button:focus-visible { outline: 2px solid var(--tour-focus); outline-offset: 3px; }

.booking-photo-tour[data-tour-view=photo] {
  --tour-surface: #111614;
  --tour-ink: #fff;
  --tour-muted: #cbd5cd;
  --tour-border: #ffffff32;
  --tour-focus: #88c4a0;
}
.booking-photo-tour-header {
  display: grid; grid-template-columns: minmax(0,1fr) auto 44px; align-items: center;
  flex: none; gap: clamp(10px, 2vw, 26px); min-height: 72px; padding: 8px clamp(16px, 4vw, 64px);
  border-bottom: 1px solid var(--tour-border);
}
.booking-photo-tour-heading {
  margin: 0; color: var(--tour-ink); font-size: clamp(22px, 2.25vw, 32px);
  font-weight: 700; line-height: 1.15; letter-spacing: -.032em; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.booking-photo-tour-counter { color: var(--tour-muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.booking-photo-tour[data-tour-view=photo] .booking-photo-tour-header { grid-template-columns: 1fr auto 1fr; }
.booking-photo-tour[data-tour-view=photo] .booking-photo-tour-heading { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.booking-photo-tour[data-tour-view=photo] .booking-photo-tour-counter { grid-column: 2; }
.booking-photo-tour[data-tour-view=photo] .booking-photo-tour-close { grid-column: 3; justify-self: end; }
.booking-photo-tour-close, .booking-photo-tour-arrows button {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--tour-ink); background: var(--tour-surface); border: 1px solid var(--tour-border);
}
.booking-photo-tour-close:hover, .booking-photo-tour-arrows button:hover { border-color: var(--tour-focus); }
.booking-photo-tour-close::before, .booking-photo-tour-close::after {
  content: ""; grid-area: 1/1; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transform: rotate(45deg);
}
.booking-photo-tour-close::after { transform: rotate(-45deg); }

.booking-photo-tour-browse { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.booking-photo-tour-content { width: min(1000px, 100%); margin: 0 auto; padding: 0 clamp(12px, 4vw, 32px) 52px; }
.booking-photo-tour-nav {
  position: sticky; top: 0; z-index: 1; display: flex; gap: 12px; overflow-x: auto;
  padding: 18px 5px 13px; background: var(--tour-surface); border-bottom: 1px solid var(--tour-border); scrollbar-width: thin;
}
.booking-photo-tour-nav button {
  flex: 0 0 96px; padding: 5px; border-radius: 8px; color: var(--tour-ink);
  text-align: center; font-size: 13px; font-weight: 650; line-height: 1.25;
}
.booking-photo-tour-nav button:hover, .booking-photo-tour-nav button[aria-current] { background: #eaf1eb; }
.booking-photo-tour-nav span { display: block; margin-top: 7px; }
.booking-photo-tour-nav img { display: block; width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; border-radius: 6px; background: #e9ede9; }
.booking-photo-tour-room { padding: 26px 0 31px; border-bottom: 1px solid var(--tour-border); }
.booking-photo-tour-room-heading { display: flex; align-items: baseline; gap: 12px; margin: 0 0 13px; }
.booking-photo-tour-room-heading h3 { margin: 0; color: var(--tour-ink); font-size: clamp(20px, 2.4vw, 29px); font-weight: 700; letter-spacing: -.025em; }
.booking-photo-tour-room-heading h3:focus { outline: none; }
.booking-photo-tour-room-heading span { color: var(--tour-muted); font-size: 13px; white-space: nowrap; }
.booking-photo-tour-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.booking-photo-tour-grid button { display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #e9ede9; aspect-ratio: 1.5; }
.booking-photo-tour-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .18s; }
.booking-photo-tour-grid button:hover img { filter: brightness(.92); }
.booking-photo-tour-grid[data-count="1"] button { grid-column: 1/-1; aspect-ratio: 2; }

.booking-photo-tour-viewer { flex: 1; min-height: 0; width: min(1560px,100%); margin: 0 auto; padding: 12px clamp(10px,4vw,52px) 16px; }
.booking-photo-tour-stage { position: relative; width: 100%; height: 100%; overflow: hidden; background: #080c0a; border-radius: 8px; touch-action: pan-y; }
.booking-photo-tour-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.booking-photo-tour-arrows { position: absolute; inset: 0 14px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.booking-photo-tour-arrows button { background: #17231dec; border-color: #ffffff42; pointer-events: auto; }
.booking-photo-tour-arrows button:last-child { margin-left: auto; }
.booking-photo-tour-arrows button::before {
  content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateX(-2px) rotate(-45deg);
}
.booking-photo-tour-arrows button:first-child::before { transform: translateX(2px) rotate(135deg); }

@media (max-width: 560px) {
  .booking-photo-tour-header { min-height: 58px; padding: 4px 12px; gap: 8px; }
  .booking-photo-tour-heading { font-size: 20px; }
  .booking-photo-tour-nav { gap: 7px; padding: 9px 3px 8px; }
  .booking-photo-tour-nav button { flex-basis: 91px; font-size: 12px; }
  .booking-photo-tour-room { padding: 16px 0 19px; }
  .booking-photo-tour-room-heading { margin-bottom: 8px; }
  .booking-photo-tour-grid { gap: 8px; }
  .booking-photo-tour-arrows { inset: 0 7px; }
}
@media (prefers-reduced-motion: reduce) { .booking-photo-tour-grid img { transition: none; } }
