@font-face {
  font-family: "LT Wave";
  src:
    url("/assets/fonts/LTWave-Regular.woff2") format("woff2"),
    url("/assets/fonts/LTWave-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LT Wave";
  src:
    url("/assets/fonts/LTWave-Bold.woff2") format("woff2"),
    url("/assets/fonts/LTWave-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* vietnamese */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/work-sans-vietnamese.woff2") format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/work-sans-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/work-sans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* custom scrollbar design */
* {
  scrollbar-width: thin;
  scrollbar-color: #999 rgba(255, 255, 255, 0.08);
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Work Sans", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "LT Wave", sans-serif;
}

/* Visual headings & titles */
.sw-info-title,
.sw-welcome-title,
.sw-linked-tours-title,
.sw-index-section-title,
.sw-detail-title,
.sw-scene-label {
  font-family: "LT Wave", sans-serif;
}

body {
  background-color: lightgray;
}

.hide {
  display: none !important;
}

.image-name {
  display: block;
}

.walk-hotspot,
.info-hotspot,
.youtube-hotspot,
.video-hotspot,
.panoramic-hotspot {
  width: 48px;
  height: 48px;
  border: none;
  cursor: pointer;
}

.walk-hotspot {
  background: url("/assets/images/hotspot.svg?v=1") center center no-repeat;
  background-size: contain;
  animation: hotspotBlink 1s ease-in-out infinite;
}
.youtube-hotspot {
  background: url("/assets/images/youtube.svg?v=1") center center no-repeat;
  background-size: contain;
  width: 48px;
  height: 48px;
}
.video-hotspot {
  background: url("/assets/images/video.svg?v=1") center center no-repeat;
  background-size: contain;
  width: 48px;
  height: 48px;
}
.panoramic-hotspot {
  background: url("/assets/images/360-degree.svg?v=1") center center no-repeat;
  background-size: contain;
  width: 48px;
  height: 48px;
}

.location-link-hotspot {
  background: url("/assets/images/location-link.svg?v=1") center center
    no-repeat;
  background-size: contain;
  width: 48px;
  height: 48px;
}
.info-hotspot {
  background: url("/assets/images/info.svg?v=1") center center no-repeat;
  background-size: contain;
  width: 48px;
  height: 48px;
}
.image-hotspot {
  background: url("/assets/images/image.svg?v=1") center center no-repeat;
  background-size: contain;
  width: 48px;
  height: 48px;
}
.file-hotspot {
  background: url("/assets/images/file.svg?v=1") center center no-repeat;
  background-size: contain;
  width: 48px;
  height: 48px;
}
.menu-hotspot {
  background: url("/assets/images/menu.svg?v=1") center center no-repeat;
  background-size: contain;
  width: 48px;
  height: 48px;
}
.location-hotspot {
  width: 30px;
  height: 30px;
  background: url("/assets/images/location.svg?v=1") center center no-repeat;
  background-size: contain;
  border: none;
  cursor: pointer;
}

.arrow-hotspot {
  background: url("/assets/images/arrow.svg") center center no-repeat;
  background-size: contain;
  width: 48px;
  height: 48px;
}

.smwk-load-box,
.smwk-loading,
.smwk-load-button,
.smwk-about-msg,
.smwk-orientation-button {
  z-index: -999;
  opacity: 0;
  display: none !important;
}

#iframeBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none;
  /* backdrop-filter: blur(5px) saturate(140%); */
}

.iframe-wrapper {
  position: relative;
  width: 60vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;

  border-radius: 22px;
  padding: 12px;

  background: radial-gradient(
    circle at top left,
    rgba(6, 7, 10, 0.9),
    rgba(255, 255, 255, 0.18)
  );
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.iframe-loading {
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  z-index: 2;
}

#iframeBackdrop iframe {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border: none;
  border-radius: 18px;
  background: transparent;
}

#close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
}

#close-modal:hover {
  transform: scale(1.1);
}

@keyframes hotspotBlink {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
  }
  50% {
    opacity: 0.6;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1));
  }
}

/* -------------------------------------------------
   SmartWalk menu panel (glass effect, responsive)
   ------------------------------------------------- */

.sw-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: auto;
  width: 340px;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;

  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.18),
    rgba(6, 7, 10, 0.85)
  );
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  color: #fff;

  /* off-canvas by default */
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 260ms ease,
    opacity 260ms ease;
}

/* when open */
.sw-menu-panel.sw-menu-panel--open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* close button inside sidebar */
.sw-menu-close {
  position: absolute;
  top: 10px;
  right: 16px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 120ms ease;
}

/* only visible when panel is open */
.sw-menu-panel.sw-menu-panel--open .sw-menu-close {
  opacity: 1;
  pointer-events: auto;
}

.sw-menu-close:hover,
.sw-info-close:hover {
  transform: scale(1.05);
}

.sw-explore-text {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 900;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--sw-secondary), var(--sw-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  cursor: pointer;
  user-select: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sw-explore-text:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* dark line beside Explore text */
.sw-explore-line {
  width: 8px;
  height: 38px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

/* Fixed logo at top-left corner */
.sw-logo-fixed {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

/* .sw-logo-fixed img {
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
} */

.sw-logo-fixed img:hover {
  opacity: 1;
  transform: scale(1.02);
}

/* social icons row */
.sw-social-row {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap; /* keeps it neat on small screens */
  justify-content: center;
  width: 100%;
}

.sw-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;

  /* Glassmorphic background */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);

  /* Smooth animation */
  transition: all 0.25s ease-in-out;
}

.sw-social-link svg {
  width: 16px;
  height: 16px;
  fill: #0000008c;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

/* Hover effect */
.sw-social-link:hover {
  transform: scale(1.05);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.25)
  );
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.35);
}

.sw-social-link:hover svg {
  opacity: 1;
}

/* mobile tweak */
@media (max-width: 768px) {
  .sw-logo-fixed {
    top: 8px;
    left: 8px;
    gap: 6px;
  }

  .sw-logo-fixed img {
    width: 120px;
  }

  .sw-social-link {
    width: 24px;
    height: 24px;
  }

  .sw-social-link svg {
    width: 14px;
    height: 14px;
  }
}

/* Book Now button (bottom-left corner) */
.sw-book-btn {
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 900;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--sw-secondary) 0%,
    var(--sw-primary) 100%
  );
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.sw-book-btn:hover {
  filter: brightness(0.85);
  transition: filter 0.3s ease;
}

/* Adjust for mobile */
@media (max-width: 768px) {
  .sw-book-btn {
    bottom: 10px;
    left: 10px;
    padding: 10px 18px;
    font-size: 12px;
  }

  .sw-explore-text {
    font-size: 22px;
    right: 10px;
    top: 10px;
    gap: 4px;
  }

  .sw-explore-line {
    height: 22px;
    width: 2px;
    background: rgba(0, 0, 0, 0.65);
  }
}

.sw-menu-body {
  flex: 1;
  min-height: 0;
  position: relative;
  /* margin-bottom: 25px; */
  margin-bottom: 10px;
}

.sw-menu-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.sw-menu-view--active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.sw-menu-header {
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 12px 0; */
}

.sw-menu-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-logo-only {
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Top-level category list */

.sw-category-list {
  list-style: none;
  margin: 0;
  padding: 2px 2px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.sw-category-btn {
  width: 100%;
  border-radius: 999px;
  border: none;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 25, 0.9),
    rgba(255, 255, 255, 0.08)
  );
  color: #fff;
  padding: 18px 18px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

.sw-category-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(34, 34, 42, 0.98),
    rgba(255, 255, 255, 0.18)
  );
  /* border-color: rgba(255, 255, 255, 0.6); */
  /* transform: translateY(-1px); */
}

.sw-category-btn-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.sw-category-btn-chevron {
  font-size: 16px;
  opacity: 0.75;
}

/* Detail view */

.sw-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.sw-back-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 10, 14, 0.3);
  color: #fff;
  padding: 6px 11px;
  cursor: pointer;
  /* font-size: 11px; */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.sw-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sw-detail-title {
  flex: 1;
  text-align: right;
  /* font-size: 14px; */
  font-weight: 600;
}

/* Subcategories + thumbnails */

.sw-detail-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sw-subcat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* max-height: 120px; */
  overflow-y: auto;
  padding-right: 2px;
}

.sw-subcat-btn {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 8, 12, 0.4);
  color: #fff;
  padding: 14px 14px;
  text-align: left;
  cursor: pointer;
  /* font-size: 13px; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 120ms ease;
}

.sw-subcat-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sw-subcat-btn.sw-subcat-btn--active {
  border: 2px solid #fff;
  /* background: radial-gradient(
    circle at top left,
    rgba(10, 10, 18, 0.9),
    rgba(255, 255, 255, 0.12)
  ); */
  /* box-shadow: 0 0 14px rgba(0, 0, 0, 0.7); */
}

.sw-thumb-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw-thumb-card {
  border-radius: 14px;
  /* border: 1px solid rgba(255, 255, 255, 0.16); */
  background: radial-gradient(
    circle at top left,
    rgba(10, 10, 16, 0.9),
    rgba(255, 255, 255, 0.12)
  );
  padding: 7px;
  display: flex;
  gap: 9px;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 120ms ease,
    box-shadow 120ms ease;
}

.sw-thumb-card:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: radial-gradient(
    circle at top left,
    rgba(18, 18, 25, 0.96),
    rgba(255, 255, 255, 0.24)
  );
  /* transform: translateY(-1px); */
  /* box-shadow: 0 10px 5px rgba(0, 0, 0, 0.75); */
}
.sw-thumb-card.active {
  border: 2px #fff solid;
}

.sw-thumb-image {
  width: 96px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.sw-thumb-image img {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: cover;
}

.sw-thumb-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  /* font-size: 12px; */
}

.sw-thumb-title {
  font-weight: 500;
}

.sw-thumb-subtitle {
  /* font-size: 11px; */
  opacity: 0.7;
}

/* -------------------------------------------------
   Current Scene Name - under Explore text (simple style)
   ------------------------------------------------- */

.sw-scene-label {
  position: fixed;
  top: 58px;
  right: 14px;
  z-index: 900;
  font-size: 20px;
  font-style: italic;
  background: linear-gradient(135deg, var(--sw-primary), var(--sw-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* subtle glow when hovered over (optional aesthetic) */
/* .sw-scene-label:hover {
  opacity: 1;
  transform: scale(1.05);
} */

@keyframes swInfoBlink {
  0% {
    background-color: rgba(39, 32, 18, 0.4); /* #D2AC67 with opacity */
    transform: scale(1);
  }
  100% {
    background-color: #272012; /* solid gold */
    transform: scale(1.05);
  }
}

/* Container for both buttons */
.sw-bottom-controls {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Shared base look */
.sw-info-btn,
.sw-audio-btn,
.sw-settings-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  /* box-shadow: 0 0px 4px rgba(0, 0, 0, 0.35); */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  transition: all 0.25s ease-in-out;
}

.sw-info-btn svg,
.sw-audio-btn svg,
.sw-settings-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  opacity: 0.9;
}

/* Info has blink animation */
#swInfoBtn {
  animation: swInfoBlink 1s ease-in-out infinite alternate;
}

/* Audio: no animation, only hover */
.sw-audio-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
}

/* Optional: pause info animation on hover */
.sw-info-btn:hover {
  animation-play-state: paused;
  transform: scale(1.05);
}

/* Settings panel (vertical) */
.sw-settings-panel {
  position: fixed;
  bottom: 70px; /* just above the buttons */
  right: 15px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 125px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.sw-settings-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sw-settings-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 15px;
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.sw-settings-icon {
  width: 18px;
  display: inline-flex;
  justify-content: center;
}

.sw-settings-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

/* Day / Night toggle under social icons */
.sw-daynight-toggle {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);

  color: #fff;
  cursor: pointer;

  align-self: center !important;
  justify-content: center;
  margin: 0 auto;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.sw-daynight-toggle:hover {
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}

#swDayNightToggle {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#swDayNightToggle.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* day / night labels + icons */
.sw-dn-side {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.6;
}

.sw-dn-side--day {
  color: var(--sw-secondary_color); /* soft warm tone for day */
}

.sw-dn-side--night {
  color: var(--sw-primary); /* ITC-gold tone for night */
}

/* switch pill + knob */
.sw-dn-switch {
  position: relative;
  width: 36px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.sw-dn-knob {
  position: absolute;
  top: 2px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, #6f5529, #8a6d36, var(--sw-primary)); */
  background: linear-gradient(
    135deg,
    var(--sw-secondary) 0%,
    var(--sw-primary) 100%
  );
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease;
}

/* Night state */
.sw-daynight-toggle.is-night .sw-dn-knob {
  transform: translateX(16px);
}

.sw-daynight-toggle.is-night .sw-dn-side--night {
  opacity: 1;
}

.sw-daynight-toggle.is-night .sw-dn-side--day {
  opacity: 0.4;
}

/* default: highlight day a bit more */
.sw-daynight-toggle:not(.is-night) .sw-dn-side--day {
  opacity: 1;
}

/* BACKDROP: always in DOM, just fade in/out */
.sw-info-backdrop {
  position: fixed;
  inset: 0;
  display: flex; /* always flex now */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  backdrop-filter: blur(5px) saturate(140%);

  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

/* visible state */
.sw-info-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* MODAL: simple scale + slide animation via transition */
.sw-info-modal {
  max-width: 880px;
  /* width: 30%; */
  min-width: 20%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 2rem 2.25rem;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  backdrop-filter: blur(6px);
  border-radius: 18px;
  color: rgba(0, 0, 0, 0.9);

  /* animation via transition */
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.sw-index-modal {
  max-width: 880px;
  /* width: 30%; */
  min-width: 50%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 2rem 2.25rem;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  backdrop-filter: blur(6px);
  border-radius: 18px;
  color: rgba(0, 0, 0, 0.9);

  /* animation via transition */
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

/* when backdrop is visible, animate modal in */
.sw-info-backdrop.is-visible .sw-info-modal {
  animation: bounceIn 0.45s ease forwards;
  opacity: 1;
}

/* when hiding, play bounce out */
.sw-info-backdrop:not(.is-visible) .sw-info-modal {
  animation: bounceOut 0.35s ease forwards;
}

/* when backdrop is visible, animate modal in */
.sw-info-backdrop.is-visible .sw-index-modal {
  animation: bounceIn 0.45s ease forwards;
  opacity: 1;
}

/* when hiding, play bounce out */
.sw-info-backdrop:not(.is-visible) .sw-index-modal {
  animation: bounceOut 0.35s ease forwards;
}

/* ------------------------------------
   Scene Menu Body (no scroll, no overflow)
------------------------------------- */

.sw-menu-body {
  padding: 18px 20px;
  box-sizing: border-box;

  /* kill all scroll behavior */
  /* overflow: auto; */
}

/* Ensure list never triggers scrollbars */
.sw-menu-list {
  overflow: visible;
}

/* Safety: never allow horizontal scroll */
.sw-menu-modal {
  overflow: hidden;
}

/* BOUNCE keyframes */
@keyframes bounceIn {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bounceOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  20% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(0.7);
    opacity: 0;
  }
}

/* header + close button row */
.sw-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* body is the scrollable area */
.sw-info-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.35rem; /* a little room so scrollbar doesn't hug text */
}
.sw-info-body::-webkit-scrollbar {
  width: 6px;
}
.sw-info-body::-webkit-scrollbar-track {
  background: transparent;
}
.sw-info-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
}

.sw-info-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: #000;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.sw-info-title {
  font-size: 1.3rem; /* was 1.1rem */
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: 0.3px;
}

/* .sw-info-body {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.95;
  margin: 0;
} */

/* -------------------------------------------
   Welcome Screen - full background + glass card
------------------------------------------- */

.sw-welcome-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200; /* above pano + UI */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Full-screen background image */
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75)),
    var(--sw-hero-image);
  background-position:
    center center,
    center center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-color: darkgray;

  transition: opacity 260ms ease;
}

/* hidden state (after clicking Start Experience) */
.sw-welcome-backdrop.sw-welcome-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Glass / card */
.sw-welcome-modal {
  max-width: 720px;
  width: min(720px, 92vw);
  padding: 2rem;
  border-radius: 22px;

  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.9)
  );
  /* box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65); */
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);

  text-align: center;
  color: #000;
}

/* Logo */
.sw-welcome-logo img {
  margin-bottom: 1.6rem;
}

/* Heading + text */
.sw-welcome-title {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sw-welcome-text {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 48rem;
  margin-inline: auto;
  opacity: 0.9;
}

/* Button */
.sw-welcome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  padding: 0.9rem 2.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, #272012 0%, var(--sw-primary) 100%);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.9rem;

  /* box-shadow: 0 10px 16px rgba(0, 0, 0, 0.45); */
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.sw-welcome-btn:hover {
  /* transform: translateY(-1px); */
  /* box-shadow: 0 14px 16px rgba(0, 0, 0, 0.6); */
  /* background: linear-gradient(135deg, #3a2f19 0%, #d5b874 100%); */

  filter: brightness(0.85);
  transition: filter 0.3s ease;
}

.sw-welcome-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.4);
  transition:
    opacity 0.3s ease,
    filter 0.3s ease;
}

/* Powered by row */
.sw-welcome-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.75rem;
  font-size: 1rem;
  opacity: 0.8;
}

.sw-welcome-powered img {
  height: 25px;
  width: auto;
  object-fit: contain;

  vertical-align: middle; /* Align with text baseline */
  display: inline-block;
  transform: translateY(1px); /* Fine-tune vertical centering */
}

.sw-bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
}

/* Fullscreen video (hidden initially) */
.sw-bg-video {
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

/* visible when activated */
.sw-bg-video.active {
  opacity: 1;
  pointer-events: auto;
}

/* Audio Toggle (minimal, aligned above button) */
.sw-audio-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px) saturate(140%);
  cursor: pointer;
  margin: 0 auto 1.4rem;
  width: fit-content;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.sw-audio-label {
  font-size: 0.9rem;
  color: #272012;
  letter-spacing: 0.02em;
  user-select: none;
}

.sw-audio-switch {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.sw-audio-knob {
  position: absolute;
  top: 1.8px;
  left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, #6f5529, #8a6d36, var(--sw-primary)); */
  background: linear-gradient(
    135deg,
    var(--sw-secondary) 0%,
    var(--sw-primary) 100%
  );
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

/* On State */
.sw-audio-toggle.is-on .sw-audio-knob {
  transform: translateX(18px);
}

/* Center align in modal */
.sw-audio-toggle {
  display: flex;
  justify-content: center;
}

/* ------------------------------
   Skeleton placeholders
   ------------------------------ */
.sw-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: transparent; /* hide text while loading */
}

/* shimmer animation */
.sw-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0) 80%
  );
  animation: swShimmer 1.4s infinite;
}

@keyframes swShimmer {
  100% {
    transform: translateX(100%);
  }
}

/* heading skeleton – one thick bar */
.sw-skeleton-title {
  display: inline-block;
  width: 60%;
  height: 28px;
  margin: 12px auto 8px;
}

/* paragraph skeleton – 3–4 lines look */
.sw-skeleton-paragraph {
  display: block;
  border-radius: 16px;
  height: auto;
  min-height: 72px;
  margin-top: 4px;
}

/* optional subtle “lines” feel */
.sw-skeleton-paragraph::after {
  content: "";
  display: block;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 10px,
    rgba(255, 255, 255, 0.5) 11px,
    transparent 12px
  );
  opacity: 0.3;
}

/* Grid layout for Index Modal */
.sw-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /* gap: 2rem 2.5rem; */
  align-items: flex-start;
  margin-top: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sw-index-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sw-index-section-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sw-index-item {
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-radius: 6px;
  transition: background 0.2s;
  width: fit-content;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sw-index-item.active,
.sw-index-section-title.active {
  color: #5095fa;
  font-weight: 600;
}

.sw-index-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sw-index-item--has-video .sw-index-video-icon {
  margin-left: 0.45rem;
  font-size: 0.7rem;
  opacity: 0.75;
  display: inline-block;
  transform: translateY(-1px);
}

.sw-help-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* Language row below header */
.sw-info-lang-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* Small “Language” label */
.sw-info-lang-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* Compact pill dropdown */
.sw-lang-select {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f5f5f5;
  color: #333;
  outline: none;
  cursor: pointer;
  width: auto; /* important: don’t stretch full width */
  appearance: none; /* optional: cleaner look */
}

/* Optional: hover/focus state */
.sw-lang-select:focus,
.sw-lang-select:hover {
  border-color: rgba(0, 0, 0, 0.25);
  background: #ffffff;
}

/* Gallery layout: main image + sidebar */
.sw-info-gallery-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.sw-info-gallery-main {
  position: relative;
  flex: 1 1 65%;
  border-radius: 12px;
  overflow: hidden;
}

.sw-info-gallery-main-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.sw-info-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.sw-info-gallery-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.sw-info-gallery-nav--prev {
  left: 10px;
}

.sw-info-gallery-nav--next {
  right: 10px;
}

/* Sidebar on the right */
/* Sidebar on the right */
.sw-info-gallery-sidebar {
  flex: 0 0 32%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* The container for all thumbs */
.sw-info-gallery-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px; /* tiny room for scrollbar */
}

/* Individual category cards */

.sw-info-cat-card {
  position: relative;
  border: none;
  width: 100%;
  aspect-ratio: 4 / 3; /* nicer ratio than a long strip */
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.sw-info-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.sw-info-cat-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.9);
}

/* If you keep labels, overlay them; if not, you can delete this block */
.sw-info-cat-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: 8px;
  z-index: 1;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.sw-gallery-empty {
  text-align: center;
  font-size: 1rem;
  margin: 40px 0;
}

/* Image-only modal: auto-height instead of filling the whole viewport */
.sw-image-modal {
  max-width: 520px;
  width: 92%;
  max-height: none; /* let content decide height */
}

/* For image modal, don't force the body to flex and scroll */
.sw-image-modal .sw-info-body {
  flex: 0;
  overflow: visible;
  padding-right: 0;
}

/* Make the image responsive and centered */
.sw-image-modal .sw-info-body img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  object-fit: contain;
}

/* ===== FIX SCENES MODAL LAYOUT ===== */

/* Kill bullets completely */
.sw-menu-list,
.sw-menu-item {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Proper vertical spacing */
.sw-menu-item {
  margin-bottom: 12px;
}

/* Fix modal inner alignment */
.sw-menu-modal .sw-info-body {
  padding: 18px 20px;
  box-sizing: border-box;
}

/* Pill – dark, clean, no overlap */
.sw-menu-text {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: auto;
  padding: 12px 20px;
  border-radius: 999px;

  background: linear-gradient(135deg, #3a3a3f, #6a6a6f);

  color: #ffffff;
  font-weight: 600;
  font-size: 14px;

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);

  /* IMPORTANT */
  margin: 0;
}

/* Hover – subtle like sidebar */
.sw-menu-text:hover {
  background: linear-gradient(135deg, #44444a, #7a7a80);
}

/* Chevron (clean, optional) */
.sw-menu-text::after {
  content: "›";
  opacity: 0.6;
  margin-left: 12px;
}

/* Map modal only */
.sw-map-modal .sw-info-body {
  overflow: hidden;
  padding: 0;
}

/* Leaflet container */
#map {
  width: 100%;
  height: 70vh;
  max-height: 620px;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
}

/* =========================================================
   Linked Tours — Glass Card Design
   ========================================================= */

.sw-linked-tours {
  margin: 1.4rem auto;
  max-width: 520px;
  text-align: center;
}

.sw-linked-tours.hide {
  display: none;
}

.sw-linked-tours-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  opacity: 0.65;
  margin-bottom: 0.7rem;
}

/* container for the cards */
.sw-linked-tours-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* individual glass card */
.sw-linked-tour-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.8rem 1.3rem;
  min-width: 180px;
  max-width: 220px;
  color: var(--sw-primary);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
}

/* hover animation */
.sw-linked-tour-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

/* subtle variant coloring using brand vars if available */
.sw-linked-tour-card[data-type="Internal"] {
  border-color: rgba(80, 149, 250, 0.3);
  background: linear-gradient(
    145deg,
    rgba(80, 149, 250, 0.1),
    rgba(140, 45, 225, 0.15)
  );
}

.sw-linked-tour-card[data-type="External"] {
  border-color: rgba(249, 147, 49, 0.25);
  background: linear-gradient(
    145deg,
    rgba(249, 147, 49, 0.08),
    rgba(80, 149, 250, 0.12)
  );
}

.sw-client-logo {
  height: 90px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 200ms ease;
}

.sw-client-logo[src] {
  opacity: 1;
}

/* Logo skeleton block (reserves space, prevents jerk) */
.sw-skeleton-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 90px;
  border-radius: 16px;
  margin-bottom: 1.6rem;
}

/* show when ready */
.sw-client-logo.is-loaded {
  opacity: 1;
}

#swVideoModalVid {
  max-height: 70vh;
  height: auto;
  width: 100%;
}

/* --------------------------------
   Powered by SmartWalk (menu footer)
--------------------------------- */

.sw-menu-powered {
  position: absolute;
  bottom: 0;
  text-align: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  width: inherit;
}

.sw-menu-powered span {
  white-space: nowrap;
}

.sw-menu-powered img {
  height: 22px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.sw-menu-powered a:hover img {
  opacity: 1;
  transform: scale(1.05);
} 

/* Remove browser default clear (X) from search inputs */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Firefox */
input[type="search"] {
  appearance: textfield;
}

/* -------------------------
   Menu Search
   ------------------------- */

#swMenuSearchWrap.sw-menu-search{
  padding: 0;               
  margin: 0px 2px;   
  box-sizing: border-box;
}

/* row */
#swMenuSearchWrap .sw-menu-search-row{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* input */
#swMenuSearchInput.sw-menu-search-input{
  flex: 1;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.28);
  background: rgba(255,255,255,0.78);
  color: #1b1b1b;
  font-size: 16px;             
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* placeholder */
#swMenuSearchInput.sw-menu-search-input::placeholder{
  color: rgba(0,0,0,0.45);
}

/* focus */
#swMenuSearchInput.sw-menu-search-input:focus{
  border-color: rgba(80,149,250,0.95);
  box-shadow: 0 0 0 3px rgba(80,149,250,0.18), 0 1px 2px rgba(0,0,0,0.08);
}

/* remove native clear icons (Safari/Chrome) */
#swMenuSearchInput.sw-menu-search-input::-webkit-search-cancel-button,
#swMenuSearchInput.sw-menu-search-input::-webkit-search-decoration{
  -webkit-appearance: none;
  appearance: none;
}

/* clear button */
#swMenuSearchClear.sw-menu-search-clear{
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.28);
  background: rgba(255,255,255,0.78);
  color: rgba(0,0,0,0.72);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

#swMenuSearchClear.sw-menu-search-clear:hover{
  background: rgba(255,255,255,0.92);
  border-color: rgba(0,0,0,0.36);
}

#swMenuSearchClear.sw-menu-search-clear:active{
  transform: scale(0.98);
}

#swMenuSearchHint.sw-menu-search-hint{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  opacity: 0.9;
}

/* =========================
   Mobile tweaks
   ========================= */
@media (max-width: 520px){
  #swMenuSearchWrap.sw-menu-search{
    padding: 10px 12px 6px;
  }

  #swMenuSearchWrap .sw-menu-search-row{
    gap: 8px;
  }

  #swMenuSearchInput.sw-menu-search-input{
    height: 42px;
    border-radius: 12px;
    padding: 0 12px;
  }

  #swMenuSearchClear.sw-menu-search-clear{
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

/* Map Dropdown */
.sw-map-select {
    height:34px;
    margin-top: -5px;
    margin-right: 15px; 
    padding:0 10px;
    font-size:13px;
    font-weight:600;
    line-height:34px;

    color:#111;
    background:rgba(255,255,255,0.95);

    border:1px solid rgba(0,0,0,.18);
    border-radius:8px;   

    box-shadow:0 6px 18px rgba(0,0,0,.10);
    backdrop-filter:blur(6px);

    cursor:pointer;
    outline:none;

    transition:
      border-color .15s ease,
      box-shadow .15s ease,
      background-color .15s ease;   
}

/* hover – change box colour */
.sw-map-select:hover {
  border-color: rgba(0, 0, 0, 0.28);
}

/* focus */
.sw-map-select:focus {
  border-color: rgba(40, 42, 45, 0.8);
  box-shadow: 0 0 0 3px rgba(38, 40, 43, 0.25), 0 6px 18px rgba(0, 0, 0, 0.10);
}

/* active click */
.sw-map-select:active {
  transform: translateY(1px);
}

/* custom arrow */
.sw-map-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid rgba(0, 0, 0, 0.55);
  border-bottom: 2px solid rgba(0, 0, 0, 0.55);
  pointer-events: none; 
}

.sw-map-select option {
  font-weight: 600;
  border:1px solid rgba(0,0,0,.18);
  border-radius:8px;
}

.sw-map-select option:hover {
  background: black;
  color: white;
}

/* small screens */
@media (max-width: 520px) {
  .sw-map-select {
    height: 32px;
    line-height: 32px;
    font-size: 12.5px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .sw-linked-tours {
    margin: 1rem auto 1.2rem;
    max-width: 100%;
  }

  .sw-linked-tours-list {
    gap: 0.7rem;
  }

  .sw-linked-tour-card {
    min-width: 140px;
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
  }

  .sw-settings-panel {
    bottom: 60px;
    right: 10px;
  }

  .sw-menu-powered {
    width: 340px;
  }

  /* tiny planet fix for mobile device */
  .sw-bg-video {
    object-fit: cover;
    height: 100%;
  }
}

/* Base: desktop & normal screens – behave as before */
.sw-welcome-content {
  /* no special sizing on large screens */
}

/* Small screens: allow inner content to scroll */
@media (max-width: 768px), (max-height: 740px) {
  .sw-welcome-modal {
    /* keep your existing glass look, just slightly tighter padding */
    padding: 1.5rem 1.2rem;
  }

  .sw-welcome-content {
    max-height: calc(100vh - 80px); /* leave room for modal radius/shadow */
    overflow-y: auto;
    padding-right: 0.2rem; /* tiny pad so text doesn't touch edge */
  }

  /* hide scrollbar visually (content still scrolls) */
  .sw-welcome-content::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  .sw-welcome-content {
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
  }

  /* optional: tighten vertical spacing a bit for small screens */
  .sw-linked-tours {
    margin: 0.9rem auto 1.1rem;
  }
  .sw-welcome-text {
    margin-bottom: 1.4rem;
  }
}

/* Slightly tighter padding on small screens */
@media (max-width: 768px) {
  .sw-image-modal {
    width: 90%;
    padding: 1.25rem 1.25rem 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Make modal full-width on small devices */
  .sw-gallery-modal {
    width: 92%;
    max-width: none;
    margin: 0 auto;
  }

  /* Stack layout vertically */
  .sw-info-gallery-layout {
    flex-direction: column;
    gap: 16px;
  }

  /* Main image full width */
  .sw-info-gallery-main {
    flex: none;
    width: 100%;
  }

  /* .sw-info-gallery-main-img {
    aspect-ratio: 16/9;
    width: 100%;
    object-fit: contain;
  } */

  /* Thumbnails in 3-column grid */
  .sw-info-gallery-sidebar {
    flex: none;
    width: 100%;
  }

  .sw-info-gallery-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    overflow: visible;
    max-height: none;
  }

  .sw-info-cat-card {
    aspect-ratio: 1 / 1; /* Square tiles */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .sw-info-cat-thumb {
    filter: brightness(0.95);
    background-size: cover;
    background-position: center;
  }

  .sw-info-cat-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  /* Reduce nav arrow size a bit */
  .sw-info-gallery-nav {
    font-size: 1.5rem;
    padding: 0 8px;
  }
}

@media (max-width: 768px) {
  .sw-menu-modal .sw-info-body {
    display: block;
    width: 100%;
  }

  .sw-menu-list {
    width: auto;
  }

  .sw-menu-item {
    margin-left: 0; /* remove negative pull on mobile */
  }

  .sw-menu-text {
    display: block; /* full-width pill */
    width: 90%;
    box-sizing: border-box;
    padding: 10px 16px; /* adjust as you like */
  }
}

@media (max-width: 768px) {
  .sw-menu-body {
    padding: 14px 14px 12px;
  }
  .sw-menu-text {
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
  }
  .sw-menu-list {
    gap: 12px;
  }
}

/* Responsive single column for mobile */
@media (max-width: 768px) {
  .sw-index-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------
   Mobile tweaks
------------------------ */
@media (max-width: 768px) {
  .sw-welcome-modal {
    width: 80vw;
    padding: 1.5rem;
    border-radius: 18px;
  }

  .sw-welcome-logo img {
    height: 70px;
    margin-bottom: 1.2rem;
  }

  .sw-welcome-title {
    font-size: 1.5rem;
  }

  .sw-welcome-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.6rem;
  }

  .sw-welcome-btn {
    width: 100%;
    justify-content: center;
  }

  .sw-welcome-powered {
    flex-direction: row;
    /* font-size: 0.75rem; */
  }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .sw-daynight-toggle {
    padding: 3px 8px;
    gap: 6px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .sw-dn-switch {
    width: 30px;
    height: 16px;
  }

  .sw-dn-knob {
    width: 12px;
    height: 12px;
  }

  .sw-daynight-toggle.is-night .sw-dn-knob {
    transform: translateX(12px);
  }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .sw-bottom-controls {
    bottom: 6px;
    right: 10px;
    gap: 8px;
  }
  .sw-info-btn,
  .sw-audio-btn,
  .sw-settings-btn {
    width: 36px;
    height: 36px;
  }
  .sw-info-btn svg,
  .sw-audio-btn svg {
    width: 16px;
    height: 16px;
  }

  .sw-scene-label {
    top: 42px;
    right: 10px;
    font-size: 14px;
  }

  .sw-menu-panel {
    left: 0;
    right: 0;
    width: auto;
    padding: 14px 14px 12px;
    border-radius: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8);
    background: radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.22),
      rgba(5, 6, 10, 0.96)
    );
  }

  .sw-thumb-image {
    width: 88px;
  }

  .sw-thumb-image img {
    height: 60px;
  }

  .iframe-wrapper {
    width: 90vw;
    max-width: 90vw;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    padding: 10px;
  }

  .iframe-loading,
  #iframeBackdrop iframe {
    inset: 10px;
    border-radius: 14px;
  }
}

/* Fix for landscape rotation and small screen overflow */
@media (max-height: 600px) {
  .sw-welcome-backdrop {
    align-items: flex-start;
    overflow-y: auto;
    padding: 2rem 0;
  }

  .sw-welcome-modal {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: unset;
  }
}

/* Extra safety for iPhone SE and very small devices */
@media screen and (max-width: 700px) and (orientation: landscape) {
  .sw-welcome-backdrop {
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 1.5rem 0;
  }

  .sw-welcome-modal {
    width: 90vw;
    padding: 1.2rem;
    border-radius: 16px;
    transform: none;
  }
}

/* -------------------------------------------------
   Fix: Thumbnail list collapsing in landscape mode
   ------------------------------------------------- */
@media screen and (orientation: landscape) {
  .sw-menu-panel {
    display: flex;
    flex-direction: column;
    /* height: 100vh; */
    max-height: 100vh;
  }

  .sw-menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .sw-detail-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sw-thumb-list {
    flex: 1;
    min-height: 150px; /* keeps visible area */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Mobile: modal becomes almost full screen so list feels like a sheet */
@media (max-width: 768px) {
  .sw-info-modal {
    max-width: none;
    width: 94%;
    height: auto;
    max-height: 88vh;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 16px;
  }

  .sw-index-modal {
    max-width: none;
    width: 94%;
    height: auto;
    max-height: 88vh;
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 16px;
  }

  .sw-info-title {
    font-size: 1.1rem;
  }

  .sw-info-body {
    font-size: 0.95rem;
  }
}
