#floor-plan {
  position: absolute;
  top: 30px;
  right: 30px;
  display: none;
  width: calc(1445px / var(--floorPlanRatio));
  height: calc((1208px + 207px) / var(--floorPlanRatio));
  transform-origin: top right;
  transition: all 0.5s;
  overflow: hidden;
}

#floor-plan-map-bg {
  width: calc(1445px / var(--floorPlanRatio));
  height: calc(1208px / var(--floorPlanRatio));
  transition: transform 0.5s;
  position: absolute;
}

.zoomed {
  transform: scale(1.5);
}

.visiabed {
  opacity: 0 !important;
}

@media (max-width: 991px) and (max-height: 568px) {
  #floor-plan {
    top: 0rem;
    right: 0rem;
    overflow: visible;
  }

  #floor-plan-map-bg {
    background-image: none !important;
  }

  #floor-plan-map {
    background: url("../static/image/MAP/mobile/Map_4F.png");
    background-repeat: no-repeat;
    background-position: right;
    background-size: cover;
    transform-origin: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: calc(285px / var(--floorPlanRatio) - 10em);
    transition: transform 0.5s;
    transform: translateY(calc(-10% + 150px / 2 / var(--floorPlanRatio)))
      scale(0.8);
  }

  #floor-plan-map-name-parent {
    width: 100%;
    height: 21px;
    box-sizing: content-box;
    padding: 3px;
    transition: transform 0.5s;
    position: absolute;
    /* top: 0; */
    top: calc(150px / 2 / var(--floorPlanRatio) - 0.5rem);
    right: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px 0px 0px 20px;
    background-color: #ffdc00;
  }

  #floor-plan-map-name {
    /* background: url("../static/image/MAP/Map_bg_name.png");
        background-repeat: no-repeat;
        background-position: center; */
    background-size: cover;
    transform-origin: top right;
    width: 70%;
    /* height: calc(100% - 3px); */
    text-align: center;
    color: ghostwhite;
    font-size: 7px;
    font-style: normal;
    font-weight: bold;
    /* line-height: 1.5; */
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    /* padding-top: 0.5rem; */
    /* border-bottom: 1px solid white; */
  }

  #floor-plan-icons {
    /* display: flex; */
  }

  #floor-number-icons {
    /* width: 100svw; */
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    /* right: 0; */
    top: calc(150px / 2 / var(--floorPlanRatio) - 0.25rem);
    right: calc(1445px / var(--floorPlanRatio) + 20px + 0rem);
  }

  /* Style the label text next to the radio buttons */
  label {
    /* width: 90px; */
    font-size: 9px;
    font-style: normal;
    /* font-weight: bold; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    color: white;
  }

  /* Style the radio buttons */
  input[type="radio"] {
    margin-right: 5px;
    background-color: black;
  }

  /* Style the radio button when it's checked */
  input[type="radio"]:checked {
    background-color: black;
    /* Change the background color */
    color: #fff;
    /* Change the text color */
    border-color: black;
    background-color: black;
    /* Change the border color */
  }

  #floor-plan-icons-child .menu-item-toggle-container {
    display: block !important;
  }

  #f8Ficon {
    height: 15px;
    margin-right: 0.5rem;
  }

  #f9Ficon {
    height: 15px;
    margin-right: 0.5rem;
  }

  #f17Ficon {
    height: 15px;
    margin-right: 0.5rem;
  }

  #f21Ficon {
    height: 15px;
    margin-right: 0.5rem;
  }

  #open-floor-plan-icon {
    /* background: url("../static/image/MAP/mobile/Map-OnOff.png"); */
    background-size: cover;
    width: 20px;
    height: 15px;
    box-sizing: content-box;
    padding: 3px;
    position: absolute;
    top: calc(150px / 2 / var(--floorPlanRatio) - 0.5rem);
    right: 0;
    /* right: 0.5rem; */
    z-index: 1;
    /* transform: rotate(180deg); */
    display: none;
    border-radius: 15px 0px 0px 15px;
    background-color: #ffdc00;
  }

  #open-floor-plan-icon svg {
    /* transform: rotate(180deg); */
    display: block;
  }

  #close-floor-plan-icon {
    /* background: url("../static/image/MAP/mobile/Map-OnOff.png"); */
    background-size: cover;
    /* width: 12px;
        height: 12px; */
    position: absolute;
    top: calc(21px / 2 - 0.5rem + 3px);
    right: 0.5rem;
    z-index: 1;
    transform: rotate(180deg);
  }

  #close-floor-plan-icon svg {
    display: block;
  }

  /* .close-floor-plan-icon-bg {
        fill: #b4d89a;
    } */

  .zoomed {
    transform: scale(1.1);
  }

  .hideByWidth {
    transform: translateX(106%);
  }

  #before-after {
    /* position: fixed;
        top: 0;
        left: 4rem; */
    /* transition: all 0.3s; */
    border-radius: 5rem;
  }

  .before-after-transform {
    transform: translateX(calc(380px / 2 / var(--navRatio))) scale(0.4) !important;
  }
}

@media (min-width: 992px) or (min-height: 569px) {
  #floor-plan-map-bg {
    background: url("../static/image/MAP/Map_bg_template.png");
    background-repeat: no-repeat;
    background-position: right;
    background-size: cover;
    transform-origin: top right;
  }

  #floor-plan-map {
    background: url("../static/image/MAP/Map_4F.png");
    background-repeat: no-repeat;
    background-position: right;
    background-size: cover;
    transform-origin: top right;
    width: 100%;
    height: 100%;
    position: absolute;
    transition: transform 0.5s;
  }

  #floor-plan-map-name-parent {
    width: 100%;
    height: calc(207px / var(--floorPlanRatio));
    transition: transform 0.5s;
    position: absolute;
    top: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  #floor-plan-map-name {
    background: url("../static/image/MAP/Map_bg_name.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transform-origin: top right;
    width: calc(1186px / var(--floorPlanRatio));
    height: 100%;
    text-align: center;
    color: ghostwhite;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .floor-plan-icons-child {
    position: absolute;
  }

  label {
    display: none;
  }

  #zoomicon {
    background: url(../static/image/MAP/Map_defau_ZoomIn.png);
    width: calc(227px / var(--floorPlanRatio));
    height: calc(242px / var(--floorPlanRatio));
    background-size: cover;
    top: 7.1%;
    right: 76%;
  }

  #f8Ficon {
    background: url(../static/image/MAP/Map_select_8F.png);
    width: calc(186px / var(--floorPlanRatio));
    height: calc(252px / var(--floorPlanRatio));
    background-size: cover;
    top: 48.2%;
    right: 87%;
  }

  #f9Ficon {
    background: url(../static/image/MAP/Map_select_9F.png);
    width: calc(186px / var(--floorPlanRatio));
    height: calc(252px / var(--floorPlanRatio));
    background-size: cover;
    top: 48.3%;
    right: 0%;
  }

  #f17Ficon {
    background: url(../static/image/MAP/Map_select_17F.png);
    width: calc(261px / var(--floorPlanRatio));
    height: calc(270px / var(--floorPlanRatio));
    background-size: cover;
    top: 66%;
    right: 76.5%;
  }

  #f21Ficon {
    background: url(../static/image/MAP/Map_select_21F.png);
    width: calc(261px / var(--floorPlanRatio));
    height: calc(270px / var(--floorPlanRatio));
    background-size: cover;
    top: 66.3%;
    right: 5.6%;
  }

  #f4Ficon {
    background: url(../static/image/MAP/Map_select_4F.png);
    width: calc(195px / var(--floorPlanRatio));
    height: calc(246px / var(--floorPlanRatio));
    background-size: cover;
    top: 27.5%;
    right: 0.5%;
  }

  #close-floor-plan-icon {
    background: url("../static/image/MAP/Map_defau_OnOff.png");
    width: calc(226px / var(--floorPlanRatio));
    height: calc(225px / var(--floorPlanRatio));
    background-size: cover;
    top: 7.4%;
    right: 8.7%;
  }

  #close-floor-plan-icon svg {
    display: none;
  }

  #open-floor-plan-icon {
    position: absolute;
    top: 30px;
    right: 0;
    overflow: visible;
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
    border-style: solid;
    border-color: rgb(0, 0, 0);
    border-width: 0px;
    border-radius: 0px;
    background: url("../static/image/MAP/Back.png");
    background-repeat: no-repeat;
    background-size: cover;
    width: calc(130px / 6);
    height: calc(441px / 6);
    display: none;
  }

  #open-floor-plan-icon svg {
    display: none;
  }

  .hideByWidth {
    width: 0 !important;
  }

  .before-after-transform {
    transform: translateX(calc(380px / 2 / var(--navRatio))) !important;
  }
}
