/* --- Base Layout --- */
body {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  text-size-adjust: 100%;
  overflow: hidden;
  backface-visibility: hidden;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Yu Gothic", YuGothic, sans-serif;
}

#showcase_iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: none;
}

.vr360_hide {
  display: none;
}

.cvbtn__container {
  position: absolute;
  top: 0;
  left: 250px;
  display: flex;
  font-size: 1rem;
  gap: 12px;
}

.cvbtn__outer {
  width: 190px;
  height: 50px;
  background-color: rgb(245, 162, 0, 0.8);
  text-align: center;
  border-radius: 0 0 8px 8px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-top: none;
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease;
  cursor: pointer;
}

.cvbtn__outer:hover {
  background-color: rgb(245, 162, 0, 1);
}

.cvbtn__item {
  width: 100%;
  height: 100%;
  display: flex;
  color: #fff;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  user-select: none;
  gap: 0;
}

.cvbtn__item img {
  height: 26px;
  width: auto;
  position: relative;
  top: -1px;
  display: block;
  flex-shrink: 0;
}

.vr360_highlight_container {
  position: absolute;
  bottom: 44px;
  left: 232px;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  pointer-events: none;
}

.vr360_highlight_container.is-ready {
  visibility: visible;
  opacity: 1;
}

.main-category-row,
.sub-category-row,
.vr360_highlight_area {
  overflow-x: auto;
  display: flex;
  white-space: nowrap;
}

.main-category-row::-webkit-scrollbar,
.sub-category-row::-webkit-scrollbar,
.vr360_highlight_area::-webkit-scrollbar {
  display: block;
  height: 12px; 
}

.main-category-row::-webkit-scrollbar-track,
.sub-category-row::-webkit-scrollbar-track,
.vr360_highlight_area::-webkit-scrollbar-track {
  background: #ffffff; 
  border-radius: 0;
}

.main-category-row::-webkit-scrollbar-thumb,
.sub-category-row::-webkit-scrollbar-thumb,
.vr360_highlight_area::-webkit-scrollbar-thumb {
  background: #888888; 
  border-radius: 10px;
  border: 2px solid #ffffff; 
} 

.main-category-row::-webkit-scrollbar-button,
.sub-category-row::-webkit-scrollbar-button,
.vr360_highlight_area::-webkit-scrollbar-button {
  display: block;
  background-repeat: no-repeat;
  background-size: 96%; 
  background-position: center;
  background-color: #ffffff; 
  width: 16px; 
}

.main-category-row::-webkit-scrollbar-button:horizontal:decrement,
.sub-category-row::-webkit-scrollbar-button:horizontal:decrement,
.vr360_highlight_area::-webkit-scrollbar-button:horizontal:decrement {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M70 20 L30 50 L70 80 Z' fill='%23888888'/></svg>");
}

.main-category-row::-webkit-scrollbar-button:horizontal:increment,
.sub-category-row::-webkit-scrollbar-button:horizontal:increment,
.vr360_highlight_area::-webkit-scrollbar-button:horizontal:increment {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M30 20 L70 50 L30 80 Z' fill='%23888888'/></svg>");
}

.main-category-row::-webkit-scrollbar-button:start:increment,
.main-category-row::-webkit-scrollbar-button:end:decrement,
.sub-category-row::-webkit-scrollbar-button:start:increment,
.sub-category-row::-webkit-scrollbar-button:end:decrement,
.vr360_highlight_area::-webkit-scrollbar-button:start:increment,
.vr360_highlight_area::-webkit-scrollbar-button:end:decrement {
  display: none;
}

.highlight-base {
  display: flex;
  flex-direction: column;
  pointer-events: none;
  align-items: flex-start;
}

.vr360_highlight_menu {
  position: relative;
  display: inline-flex;
  background: #f2f2f2ab;
  min-height: 54px;
  transition:
    width 0.3s ease,
    padding-bottom 0.2s ease;
  pointer-events: none;
  z-index: 10000;
  padding-right: 15px;
}

.vr360_highlight_menu.has-sub-open {
  padding-bottom: 45px;
  min-width: calc(100% - 300px);
}

.vr360_highlight_icon {
  display: flex;
  width: 50px;
  color: #222;
  margin-top: 6px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 24px;
  pointer-events: auto;
}

.btn-open,
.btn-close {
  display: none;
  pointer-events: auto;
}

.highlight-base.is-collapsed .btn-open {
  display: inline-block;
}

.highlight-base:not(.is-collapsed) .btn-close {
  display: inline-block;
}
.vr360_highlight_category {
  padding: 10px 0px 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-category-row {
  display: none;
  gap: 8px;
  position: absolute;
  left: 50px;
  bottom: 10px;
  white-space: nowrap;
}

.sub-category-row.is-open {
  display: flex;
}

.category-vertical-stack {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}
.category-group {
  display: flex;
  flex-direction: column;
  width: max-content;
}

.sub-group {
  display: none;
}

.sub-group.is-open {
  display: flex;
}


.vr360_highlight_category span {
  background-color: #777;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 2px;
  width: 90px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.5s ease;
  margin-bottom: 4px;
  border-radius: 50px;
  pointer-events: auto;
  text-align: center;
}

.vr360_highlight_category span.select_on {
  background-color: #f5a200;
  color: #222;
}

.vr360_highlight_category span:hover {
  opacity: 0.9;
}

.vr360_highlight_area {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 80vw;
  max-width: 900px;
  padding: 16px;
  gap: 12px;
  background: #f2f2f2ab;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.highlight-base.is-collapsed .vr360_highlight_area {
  max-height: 0;
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
}

.vr360_highlight_area > div {
  display: none;
}

.vr360_highlight_area.bath > div.Offlora-subcat,
.vr360_highlight_area.bath > div.MR-subcat,
.vr360_highlight_area.bath > div.Vivas-subcat,
.vr360_highlight_area.bath > div.L-Class-subcat {
  display: block;
}

.vr360_highlight_area.vanity > div.Utsukushizu-subcat,
.vr360_highlight_area.vanity > div.Sealine-subcat,
.vr360_highlight_area.vanity > div.Lasis-subcat,
.vr360_highlight_area.bath > div.bath {
  display: block;
}

.vr360_highlight_area.other-area > div.other-area {
  display: block;
}

.vr360_highlight_area.Offlora-subcat > div:not(.Offlora-subcat),
.vr360_highlight_area.MR-subcat > div:not(.MR-subcat),
.vr360_highlight_area.Vivas-subcat > div:not(.Vivas-subcat),
.vr360_highlight_area.L-Class-subcat > div:not(.L-Class-subcat),
.vr360_highlight_area.Utsukushizu-subcat > div:not(.Utsukushizu-subcat),
.vr360_highlight_area.Sealine-subcat > div:not(.Sealine-subcat),
.vr360_highlight_area.Lasis-subcat > div:not(.Lasis-subcat) {
  display: none;
}

.vr360_highlight_area div img {
  display: block;           
  width: auto;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;      
  border: 3px solid transparent; 
  transition: border-color 0.2s ease;
  pointer-events: auto;
}

.vr360_highlight_area div img.is-active {
  border-color: #ff3158;
}

.vr360_highlight_area div img:hover {
  opacity: 0.8;
}

.highlight-title {
  text-align: center;
  color: #222;
  font-size: 10px;
  margin-top: 2px;
  font-weight: bold;
  /* background-color: #f2f2f2;
  border-radius: 50px; */
}

.navigate_area {
  position: fixed;
  z-index: 1000;
  top: 30%;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.vr360_sweep_description {
  position: relative;
  background: #f5a200;
  color: #222;
  border-radius: 12px;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  min-width: 200px;
  max-width: 300px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffff;
  pointer-events: auto;
  display: none;
}

.vr360_sweep_description.vr360_show {
  display: block;
}

.close_btn {
  display: none;
  position: absolute;
  font-weight: bold;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  background-color: #ffffff;
  color: #222;
  border-radius: 50%;
  border: 2px solid #222;
  cursor: pointer;
  z-index: 1001;
  pointer-events: auto;
  justify-content: center;
  align-items: center;
  line-height: 0;
  padding: 0;
  text-align: center;
  transition: opacity 0.2s ease;
}


.close_btn.vr360_show {
  display: flex;
}

.close_btn:hover {
  opacity: 0.6;
}

.icon_area {
  position: absolute;
  bottom: 25px;
  left: 20px;
  z-index: 10;
}
.icon_item {
  padding: 10px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

@media screen and (min-width: 1024px) {
  .cvbtn__container .cvbtn_toggle {
    display: none;
  }

  .cvbtn__container .cvbtn__outer {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

@media screen and (max-width: 768px) {
  .vr360_highlight_menu.has-sub-open {
    padding-bottom: 45px;
    min-width: calc(100% - 180px);
  }
  .cvbtn__container {
    top: 280px;
    left: 5px;
    display: block;
    font-size: 12px;
  }

  .cvbtn__outer {
    width: 150px;
    height: 40px;
    margin-bottom: 4px;
    border-radius: 8px;
    border: 1px solid #fff;
  }

  .cvbtn__container .cvbtn__outer.close {
    display: none;
  }

  .cvbtn_toggle {
    display: block;
  }

  .vr360_highlight_container {
    width: 100vw;
    bottom: 101px;
    left: 6px;
    justify-content: center;
  }

  .vr360_highlight_area {
    width: 92vw;
    padding: 10px;
  }

  .vr360_highlight_area div img {
    height: 80px;
  }

  .vr360_highlight_category span {
    width: 70px;
    height: 28px;
    font-size: 10px;
  }
}

@media screen and (max-width: 480px) {
  .cvbtn__container {
    top: 109px;
    font-size: 10px;
  }

  .cvbtn__outer {
    width: 120px;
    height: 32px;
  }

  .cvbtn__item img {
    height: 16px;
    top: 0;
    margin-right: 4px;
    display: block;
    flex-shrink: 0;
  }

  .cvbtn__item {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navigate_area {
    top: 25%;
    right: 20px;
  }

  .vr360_sweep_description {
    font-size: 9px;
    top: 57px;
    left: 9px;
    max-width: 200px;
    padding: 10px;
  }
  .highlight-base {
    margin-left: 22px;
  }

  .category-vertical-stack {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 5px 0;
  }

  .sub-category-row {
    position: absolute;
    bottom: -3px;
    left: 18px;
    display: none;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: calc(100vw - 40px);
    white-space: nowrap;
    border-radius: 20px;
    z-index: 10001;
  }

  .sub-category-row.is-open {
    display: flex;
  }

  .vr360_highlight_category span {
    flex: 0 0 auto;
    width: 80px;
    height: 30px;
    min-width: 80px;
    font-size: 10px;
    padding: 0;
  }

  .sub-category-row span {
    flex: 0 0 auto;
    width: 80px;
    height: 30px;
    min-width: 80px;
    font-size: 10px;
    padding: 0;
  }

  .vr360_highlight_menu.has-sub-open {
    padding-bottom: 30px;
    width: 100%;
  }


  .close_btn {
    width: 22px;
    height: 22px;
    top: 44px;
    right: -16px;
    font-size: 14px;
    line-height: 0;
    padding: 0;
  }
}
