.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 99999;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 4px;
  background: #fff;
  color: #123f6b;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #ffd15c;
}

.tour360-section {
  padding: 76px 0;
  background: #f5f7fa;
  color: #1d2939;
}

.tour360-section * {
  box-sizing: border-box;
}

.tour360-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.tour360-heading .eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: #174a7e;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tour360-heading h1,
.tour360-heading h2 {
  margin: 0 0 13px;
  color: #152f4f;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
}

.tour360-heading p {
  margin: 0;
  color: #425466;
  font-size: 1.05rem;
  line-height: 1.75;
}

.tour360-preview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 14px;
}

.tour360-preview-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 14px;
  background: #183b61;
  box-shadow: 0 12px 30px rgba(18, 48, 77, 0.14);
}

.tour360-preview-card:first-child {
  grid-row: 1 / span 2;
}

.tour360-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tour360-preview-card:hover img,
.tour360-preview-card:focus-within img {
  transform: scale(1.045);
}

.tour360-preview-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 34px 18px 16px;
  color: #fff;
  background: linear-gradient(transparent, rgba(7, 25, 44, 0.92));
}

.tour360-preview-overlay strong {
  color: #fff;
  font-size: 1rem;
}

.tour360-badge {
  display: inline-flex;
  min-width: 48px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(9, 38, 68, 0.68);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.tour360-cta {
  margin-top: 30px;
  text-align: center;
}

.tour360-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 27px;
  border: 2px solid #174a7e;
  border-radius: 4px;
  background: #174a7e;
  color: #fff !important;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.tour360-button:hover,
.tour360-button:focus {
  background: #fff;
  color: #174a7e !important;
  outline: 3px solid rgba(23, 74, 126, 0.3);
  outline-offset: 2px;
}

.tour360-page {
  padding: 145px 0 80px;
  background: #f5f7fa;
}

.tour360-shell {
  overflow: hidden;
  border-radius: 16px;
  background: #081827;
  box-shadow: 0 20px 55px rgba(13, 38, 62, 0.2);
}

.tour360-viewer {
  position: relative;
  width: 100%;
  height: clamp(360px, 66vh, 720px);
  min-height: 360px;
  overflow: hidden;
  background: #081827;
  touch-action: none;
}

.tour360-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: 0;
}

.tour360-canvas:active {
  cursor: grabbing;
}

.tour360-canvas:focus-visible {
  outline: 4px solid #ffd15c;
  outline-offset: -4px;
}

.tour360-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 19, 33, 0.88);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.tour360-loading[hidden] {
  display: none;
}

.tour360-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.tour360-control {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(7, 31, 55, 0.88);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}

.tour360-control:hover,
.tour360-control:focus-visible {
  background: #fff;
  color: #123f6b;
  outline: 3px solid #ffd15c;
  outline-offset: 2px;
}

.tour360-instructions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  color: #fff;
  background: #123f6b;
  font-size: 0.92rem;
}

.tour360-instructions p {
  margin: 0;
  color: #fff;
}

.tour360-scene-title {
  color: #fff;
  font-weight: 700;
}

.tour360-scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.tour360-scene {
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: #17324f;
  box-shadow: 0 8px 23px rgba(18, 48, 77, 0.11);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tour360-scene:hover,
.tour360-scene:focus-visible {
  transform: translateY(-3px);
  border-color: #2b6aa3;
  outline: 3px solid rgba(43, 106, 163, 0.24);
  outline-offset: 2px;
}

.tour360-scene[aria-pressed="true"] {
  border-color: #174a7e;
}

.tour360-scene img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tour360-scene span {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 13px;
  color: #17324f;
  font-weight: 700;
  line-height: 1.3;
}

.tour360-scene span::after {
  content: "360°";
  flex: 0 0 auto;
  color: #174a7e;
  font-size: 0.76rem;
}

.tour360-video-note {
  margin-top: 42px;
  padding: 25px;
  border-left: 5px solid #174a7e;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 23px rgba(18, 48, 77, 0.08);
}

.tour360-video-note h2 {
  margin: 0 0 8px;
  color: #17324f;
  font-size: 1.55rem;
}

.tour360-video-note p {
  margin: 0;
}

.tour360-additional {
  margin-top: 58px;
}

.tour360-additional-heading {
  margin-bottom: 24px;
  text-align: center;
}

.tour360-additional-heading h2 {
  margin-bottom: 9px;
  color: #17324f;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.tour360-additional-heading p {
  margin: 0;
  color: #425466;
}

.tour360-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tour360-photo {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #17324f;
  box-shadow: 0 8px 23px rgba(18, 48, 77, 0.12);
  cursor: zoom-in;
}

.tour360-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tour360-photo span {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 13px 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(7, 25, 44, 0.92));
  font-weight: 700;
  text-align: left;
}

.tour360-photo:hover img,
.tour360-photo:focus-visible img {
  transform: scale(1.05);
}

.tour360-photo:focus-visible {
  outline: 4px solid #174a7e;
  outline-offset: 3px;
}

.tour360-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(4, 16, 28, 0.94);
}

.tour360-lightbox[hidden] {
  display: none;
}

.tour360-lightbox-figure {
  max-width: min(1100px, 92vw);
  margin: 0;
  text-align: center;
}

.tour360-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 8px;
}

.tour360-lightbox-caption {
  margin-top: 10px;
  color: #fff;
  font-weight: 700;
}

.tour360-lightbox-close,
.tour360-lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(12, 48, 79, 0.92);
  color: #fff;
  font-size: 1.55rem;
  cursor: pointer;
}

.tour360-lightbox-close {
  top: 16px;
  right: 16px;
}

.tour360-lightbox-prev {
  left: 16px;
  top: 50%;
}

.tour360-lightbox-next {
  right: 16px;
  top: 50%;
}

.tour360-lightbox-close:focus-visible,
.tour360-lightbox-nav:focus-visible {
  outline: 3px solid #ffd15c;
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .tour360-preview-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 210px;
  }

  .tour360-preview-card:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .tour360-scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tour360-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tour360-section {
    padding: 55px 0;
  }

  .tour360-page {
    padding-top: 110px;
  }

  .tour360-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .tour360-preview-card,
  .tour360-preview-card:first-child {
    grid-column: auto;
    grid-row: auto;
    height: 230px;
  }

  .tour360-viewer {
    height: 58vh;
    min-height: 390px;
  }

  .tour360-instructions {
    display: block;
  }

  .tour360-instructions p + p {
    margin-top: 5px;
  }

  .tour360-scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tour360-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .tour360-page {
    padding-top: 95px;
  }

  .tour360-viewer {
    height: 55vh;
    min-height: 340px;
  }

  .tour360-scene-grid {
    grid-template-columns: 1fr;
  }

  .tour360-photo-grid {
    grid-template-columns: 1fr;
  }

  .tour360-lightbox {
    padding: 58px 8px 70px;
  }

  .tour360-lightbox-prev,
  .tour360-lightbox-next {
    top: auto;
    bottom: 12px;
  }

  .tour360-controls {
    right: 9px;
    bottom: 9px;
  }

  .tour360-control {
    width: 43px;
    height: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour360-preview-card img,
  .tour360-button,
  .tour360-scene {
    transition: none;
  }
}
