/* /tour: the dark full-screen slideshow viewer. */

body.tour {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #f8f9fa;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tour-shell { display: flex; flex-direction: column; height: 100%; }

.tour-top {
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: #000;
}
.tour-actions { display: flex; gap: .5rem; }
.tour-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: 4px 8px;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  background: transparent;
  color: #f8f9fa;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tour-btn:hover, .tour-btn:focus-visible { background: #f8f9fa; color: #000; }
.tour-btn svg { width: 16px; height: 16px; }
.tour-btn .wide { display: none; }
@media (min-width: 992px) { .tour-btn .wide { display: inline; } }

.tour-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 300;
  text-transform: uppercase;
  cursor: pointer;
}
.tour-toggle > span:first-child { opacity: .4; }
@media (min-width: 768px) { .tour-toggle { display: flex; } }
.tour-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tour-toggle .switch {
  position: relative;
  width: 46px;
  height: 23px;
  border-radius: 12px;
  background: #555;
  transition: background-color .2s;
}
.tour-toggle .switch::before {
  content: "OFF";
  position: absolute;
  right: 6px;
  top: 5px;
  font-size: 8px;
  font-weight: 700;
  color: #ddd;
}
.tour-toggle .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.tour-toggle input:checked + .switch { background: #4cd964; }
.tour-toggle input:checked + .switch::before { content: "ON"; left: 7px; right: auto; color: #fff; }
.tour-toggle input:checked + .switch::after { transform: translateX(23px); }
.tour-toggle input:focus-visible + .switch { outline: 2px solid #fff; outline-offset: 2px; }

.tour-address {
  padding: 12px 10px;
  background: #111;
  text-align: center;
}
.tour-address h1 { margin: 0 0 .5rem; font-size: 1.8rem; font-weight: 300; line-height: 1.2; }
.tour-address p { margin: 0; font-size: 1.1rem; opacity: .7; }
.tour-address .divider { margin-inline: .5rem; }
@media (max-width: 575.98px) {
  .tour-top { flex-basis: 60px; }
  .tour-address h1 { font-size: 1.3rem; }
  .tour-address p { font-size: .95rem; }
}

.tour-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #181818;
  touch-action: pan-y pinch-zoom;
}
.tour-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .25s;
}
.tour-stage img.loading { opacity: .4; }
.tour-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  cursor: pointer;
  opacity: .7;
}
.tour-arrow:hover, .tour-arrow:focus-visible { opacity: 1; background: rgba(0, 0, 0, .6); }
.tour-arrow svg { width: 22px; height: 22px; }
.tour-arrow.prev { left: 16px; }
.tour-arrow.next { right: 16px; }
@media (hover: none) { .tour-arrow { display: none; } }
.tour-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  margin: 0;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .5);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.tour-thumbs {
  flex: 0 0 110px;
  display: flex;
  align-items: center;
  background: #000;
}
.thumb-scroll {
  flex: 0 0 34px;
  height: 100%;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.thumb-scroll svg { width: 20px; height: 20px; }
.thumb-strip {
  flex: 1;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.thumb-strip::-webkit-scrollbar { display: none; }
.thumb-strip button {
  display: block;
  width: 94px;
  height: 94px;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
}
.thumb-strip img { display: block; width: 90px; height: 90px; object-fit: cover; }
.thumb-strip button[aria-current="true"] { border-color: #fafafa; }
@media (max-width: 575.98px) {
  .tour-thumbs { flex-basis: 80px; }
  .thumb-scroll { display: none; }
  .thumb-strip { gap: 8px; }
  .thumb-strip button { width: 64px; height: 64px; }
  .thumb-strip img { width: 60px; height: 60px; }
}

.contact-panel {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 300px;
  max-width: 100%;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  background: #111;
  box-shadow: 4px 0 24px rgba(0, 0, 0, .5);
}
.contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.contact-head h2 { margin: 0; font-size: 1rem; font-weight: 400; text-transform: uppercase; }
.contact-panel form { display: flex; flex-direction: column; gap: 1rem; }
.contact-panel input,
.contact-panel textarea {
  width: 100%;
  padding: .45rem .5rem;
  border: 1px solid #444;
  border-radius: 3px;
  background: #1d1d1d;
  color: #f8f9fa;
  font: inherit;
  font-size: 1rem;
}
.contact-panel textarea { height: 80px; resize: vertical; }
.contact-panel input:focus,
.contact-panel textarea:focus { outline: none; border-color: #bbb; }
.contact-panel .send { justify-content: center; margin-top: 1rem; padding: .5rem; text-transform: uppercase; }
.form-error { margin: 0; padding: .5rem .75rem; border-radius: 3px; background: #664d03; color: #fff3cd; font-size: .875rem; }
.form-note { margin: 0; font-size: .75rem; opacity: .6; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
