@import url('./floor-overlay-legend.css');
@import url('./svg-floorplan.css');
@font-face {
  font-family: 'Gilroy Light';
  src: url('../fonts/SVN-Gilroy Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Gilroy SemiBold';
  src: url('../fonts/SVN-Gilroy SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
body,
button {
  font-family: 'Gilroy Light', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  font-family: 'Gilroy SemiBold', Arial, sans-serif;
}
#floor-plan {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  overflow: hidden;
  --floor-plan-color: #096773;
  --transition-duration: 0.8s;
  display: flex;
  justify-content: center;
  overflow-y: scroll;
}

.hidden {
  display: none !important;
}

.floor-plan-list {
  position: absolute;
  top: 20px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.floor-plan-item {
  position: relative;
  min-width: 96px;
  height: 36px;
  border-top-right-radius: 18px;
  border-bottom-left-radius: 18px;
  border: 2px solid var(--floor-plan-color);
  background-color: #fff;
  color: var(--floor-plan-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 1.25rem;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  transform: translateX(-20%);
  @media (max-width: 1025px) {
    padding-right: 5px;
  }
}

.floor-plan-item.v2 {
  transform: translateX(0%);
  border-radius: 0px;
  border: none;
  background-color: var(--floor-plan-color);
  color: #fff;
  border-right: 1px solid white;
  font-size: 1.25rem;
  opacity: 0.5;
  text-wrap: nowrap;
  margin-top: 0px !important;
  @media (max-width: 1921px) {
    font-size: 1rem;
  }
  @media (max-width: 1441px) {
    font-size: 0.875rem;
    height: 20px;
  }
}

.floor-plan-item.v2:last-child {
  border-right: none;
}

.floor-plan-item.v2:hover {
  opacity: 1;
  font-family: 'Gilroy SemiBold', Arial, sans-serif;
}

.floor-plan-item.v2.active {
  transform: translateX(0%);
  opacity: 1;
  font-family: 'Gilroy SemiBold', Arial, sans-serif;
}

.floor-plan-item.active {
  background-color: var(--floor-plan-color);
  color: #fff;
  transform: translateX(-40%);
  transition: all 0.3s ease;
}

.floor-plan-item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 200%;
  height: 2px;
  background-color: var(--floor-plan-color);
  transform: translate(100%, -50%);
  z-index: 1;
}

.floor-plan-item.v2::after {
  display: none;
}

.floor-plan-item::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--floor-plan-color);
  border: 2px solid var(--floor-plan-color);
  border-radius: 50%;
  z-index: 2;
}

.floor-plan-item.v2::before {
  display: none;
}

.floor-plan-item:hover {
  background-color: var(--floor-plan-color);
  color: #fff;
}

.floor-plan-bg-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  @media (max-width: 1025px) {
    align-items: flex-end;
    display: block;
  }
}
.floor-plan-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.floor-plan-main-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  z-index: 2;
  margin: 0 auto;
  pointer-events: auto;
  max-height: 100vh;
  object-fit: contain;
  /* Desktop: căn giữa */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Mobile: nằm ở bottom */
  @media (max-width: 1025px) {
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
}

#floor-plan-modal {
  position: fixed;
  top: 0;
  left: 0;
  /* width: 100%; */
  /* height: 100%; */
  background-image: url('../../assets/images/bg-floor.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 200;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;

  /* tạm thời tắc */
  /* pointer-events: none; */
}

.floor-plan-modal-v2 {
  background-image: none !important;
  background-color: #051f1c !important;
  padding: 4.16667rem 9.53125rem 4.16667rem 8.48958rem !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  @media (max-width: 769px) {
    padding: 20px 0px !important;
    overflow-y: scroll;
    height: 100dvh !important;
    padding-bottom: 0 !important;
    width: 100%;
  }
}

.floor-plan-modal-v2 .floor-plan-modal-close {
  right: 20px;
  top: 20px;
  position: absolute;
  padding: 0;
  display: flex;
  align-items: center;

  width: 3.33333rem;
  height: 3.33333rem;
  background-color: #9ed193;
  @media (max-width: 1025px) {
    width: 2.08333rem;
    height: 2.08333rem;
  }
}

.floor-plan-modal-close {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--floor-plan-color);
  border-radius: 50%;
  padding: 5px;
  color: #fff;
  transition: all 0.3s ease;
}

.floor-plan-modal-close:hover {
  opacity: 0.8;
}

.floor-plan-modal-content {
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
  overflow-y: hidden;
  @media (max-width: 769px) {
    gap: 0px;
  }
}

.floor-plan-modal-content.v2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 70px;
  @media (max-width: 769px) {
    grid-template-columns: repeat(1, 1fr);
    padding: 3.125rem 0;
    gap: 0px;
    padding-top: 0;
  }
}

.floor-plan-modal-content.v2 .floor-plan-modal-content-sub_img {
  display: none;
}

.floor-plan-modal-content-item {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
}

.floor-plan-modal-content-detail {
  border-radius: 16px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: start;
  @media (max-width: 769px) {
    gap: 0;
    align-items: start;
    padding: 0 20px;
  }
}

.floor-plan-modal-content-detail.v2 h2 {
  text-shadow: none;
  font-weight: 100;
  text-transform: none;
  font-size: 4rem;
  font-family: 'Gilroy Light', Arial, sans-serif;
  @media (max-width: 769px) {
    font-size: 2rem;
    text-align: left;
  }
}

.floor-plan-modal-content-detail.v2 .room-name {
  color: #a5d192;
}

.floor-plan-modal-content-detail.v2 hr {
  display: none;
}

.floor-plan-modal-content-detail.v2 .apartment-info {
  background-color: #0a2626;
  padding: 20px 30px;
  border-radius: 1.04167rem;
  gap: 20px;
  margin-top: 3.3333rem;
  width: 544px;
  @media (max-width: 769px) {
    padding: 2.08333rem;
    width: 100%;
    margin-top: 10px;
    padding-bottom: 0;
  }
}

.floor-plan-modal-content-detail.v2 .floor-plan-modal-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  outline: none;
  border-radius: 20px;
  color: white;
  background: var(--floor-plan-color);
  margin-top: 1.66667rem;
  display: flex;
  gap: 20px;
  font-size: clamp(12px, 0.9375rem, 1.14583rem);
  cursor: pointer;
  font-family: 'Gilroy SemiBold', Arial, sans-serif;

  @media (max-width: 769px) {
    padding: 0.41667rem 1.04167rem;
    margin-top: 10px;
  }
}

.floor-plan-modal-content-detail.v2 .apartment-info div {
  display: flex;
  justify-content: space-between;
  min-width: 300px;
  border-bottom: 1px dashed #ffffff39;
  padding-bottom: 20px;
  font-size: 24px;
  @media (max-width: 769px) {
    min-width: 100%;

    font-size: clamp(12px, 1rem, 1.45833rem);
  }
}

.floor-plan-modal-content-detail.v2 .apartment-info div:last-child {
  border-bottom: none;
}

.floor-plan-modal-content-detail.v2 .apartment-info b {
  text-shadow: none;
  font-weight: 100;
}

.floor-plan-modal-content-detail h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow: 0 0 8px #00eaff, 0 0 2px #fff;
  text-transform: uppercase;
  @media (max-width: 769px) {
    margin-bottom: 0;
  }
}

.floor-plan-modal-content-detail hr {
  border: none;
  border-top: 2px solid #fff;
  width: 70%;
  opacity: 0.7;
  margin: 16px 0 24px 0;
  @media (max-width: 769px) {
    margin: 16px auto 16px auto;
  }
}

.apartment-info {
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  @media (max-width: 769px) {
    gap: 4px;
    text-align: center;
  }
}

.apartment-info b {
  color: #fff;
  font-weight: 700;
  font-size: 1.15em;
  text-shadow: 0 0 4px #00eaff;
}

.floor-plan-modal-content-carousel {
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  @media (max-width: 769px) {
    width: 70%;
  }
}

.carousel {
  width: 30vw;
  max-height: 80vh;
  display: flex;
  gap: 10px;
  overflow: hidden;
}

@media (max-width: 769px) {
  .carousel {
    width: 80vw;
  }
}

.slick-track {
  display: flex !important;
  align-items: center;
  max-height: 80vh;
}

/* .btn-carousel:first-child {
  left: -25%;
  @media (max-width: 769px) {
    left: -10%;
  }
} */

.btn-carousel {
  top: 95% !important;
  border: 1px solid white;
  border-radius: 50%;
  background-color: #051f1c;
  color: white;
  width: 50px !important;
  height: 50px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  @media (max-width: 1025px) {
    display: none !important;
  }
}

.btn-carousel:hover {
  background-color: #096773;
  border: #096773;
  transition: all 1s ease;
}

.btn-carousel svg {
  color: white !important;
  width: 50% !important;
  height: 50% !important;
}

.btn-carousel:first-child {
  left: -25%;
  @media (max-width: 769px) {
    left: -10%;
  }
}

/* .btn-carousel:last-child {
  right: -25%;
  @media (max-width: 769px) {
    right: -10%;
  }
} */

.btn-carousel:last-child {
  right: 100%;
  @media (max-width: 769px) {
    right: -10%;
  }
}

.btn-carousel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 60px;
  z-index: 200;
  background-color: transparent;
}

.btn-carousel:hover {
  cursor: pointer;
}

.btn-carousel svg {
  width: 100%;
  height: 100%;
  color: #007aff;
}

.floor-plan-modal-content-sub_img {
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
  height: 100%;
}

.floor-plan-modal-content-sub_img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}

@media (min-width: 768px) {
  .floor-plan-modal-content {
    grid-template-columns: repeat(3, 1fr);
  }
  .floor-plan-modal-content-sub_img {
    display: flex;
  }
}

.left-to-right {
  animation: leftToRight var(--transition-duration) ease-in-out;
}

.right-to-left {
  animation: rightToLeft var(--transition-duration) ease-in-out;
}

.up-to-down {
  animation: upToDown var(--transition-duration) ease-in-out;
}

@keyframes leftToRight {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes rightToLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes upToDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Hamburger button styles */
.hamburger-button {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--floor-plan-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 150;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hamburger-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.hamburger-button .hamburger-line {
  width: 24px;
  height: 3px;
  background-color: #fff;
  margin: 4px auto;
  transition: all 0.3s ease;
  display: block;
}

.hamburger-button.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-button.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-button.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.floor-plan-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floor-plan-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile styles for floor-plan-list */
/* @media (max-width: 1025px) {
  .hamburger-button {
    display: block;
  }

  .floor-plan-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 80px 20px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .floor-plan-list.active {
    right: 0;
  }

  .floor-plan-item {
    transform: none;
    width: 100%;
    min-width: auto;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .floor-plan-item.active {
    transform: none;
    box-shadow: 0 4px 12px rgba(57, 174, 73, 0.3);
  }

  .floor-plan-item::after,
  .floor-plan-item::before {
    display: none;
  }

  .floor-plan-item-name {
    font-size: 16px;
    font-weight: 600;
  }

  .floor-plan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .floor-plan-overlay.active {
    opacity: 1;
    visibility: visible;
  }
} */

/* Desktop styles - giữ nguyên */
@media (min-width: 0px) {
  .floor-plan-list {
    position: absolute;
    top: 20px;
    right: 0%;
    display: flex;
    flex-direction: column;
    z-index: 100;
    background: none;
    padding: 0;
    width: auto;
    height: auto;
    overflow: visible;
  }

  .floor-plan-list.v2 {
    top: 90%;
    right: 50%;
    transform: translate(50%, -50%);
    flex-direction: row;
    background-color: var(--floor-plan-color);
    padding: 0.625rem 1.66667rem;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 3px 0px #9ed194;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0px !important;
    @media (max-width: 1025px) {
      width: 90vw;
      overflow-x: scroll;
      position: unset;
      transform: unset;
      margin: 20px auto;
    }

    @media (max-width: 768px) {
      top: 50%;
      width: 90vw;
      overflow-x: scroll;
      margin-top: 10px !important;
    }
  }

  .floor-plan-item {
    transform: translateX(-20%);
  }

  .floor-plan-item.active {
    transform: translateX(-40%);
  }

  .floor-plan-item::after,
  .floor-plan-item::before {
    display: block;
  }
}

.scroll_bar::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

.scroll_bar::-webkit-scrollbar-thumb {
  background: #006673;
}

.scroll_bar::-webkit-scrollbar-track {
  background: rgba(245, 245, 245, 0.7);
}

.bg_img {
  object-fit: cover;
  height: 100vh;
  aspect-ratio: 2000 / 1893;
  @media (max-width: 1025px) {
    object-fit: contain;
    height: unset;
    aspect-ratio: unset;
  }
}

.select-wrapper {
  @media (max-width: 740px) {
    width: 100%;
    padding: 0.425rem 2.3rem !important;
  }
}

.select-wrapper .option-container {
  cursor: pointer;
  opacity: 0.5;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.select-wrapper .option-container span {
  border-right: 1px solid #fff;
  padding-right: 1.25rem;
  word-wrap: nowrap;
  flex: 1;
  width: 100%;
  line-height: 20px;
  font-size: 0.775rem;
  font-family: 'Gilroy Light', Arial, sans-serif;

  @media (max-width: 1023px) {
    font-size: 11px !important;
    padding-right: 0;
    min-width: 70px;
  }
  @media (min-width: 1024px) {
    padding-right: 1.25rem;
  }
}

.select-wrapper .option-container.active,
.select-wrapper .option-container:hover {
  opacity: 1;
}

.select-wrapper .option-container:hover span,
.select-wrapper .option-container.active span {
  font-family: 'Gilroy SemiBold', Arial, sans-serif;
}

.select-wrapper .option-container:last-child span {
  border-right: none;
  padding-right: 0;
}

/* .main_container {
  @media (max-height: 1025px) {
    height: calc(100dvh +  61.5px) !important;
  }
} */
