.page__retail-opportunities__floorplans {
  margin-top: 52px;

  @media #{$screen-md-min} {
    margin-top: 95.75px;
  }

  img {
    height: auto;
    margin: auto;
  }

  .section-title {
    text-align: center;
    margin-bottom: 20px;

    @media #{$screen-md-min} {
      margin-bottom: 62px;
    }
  }

  .switcher {
    background: rgba(black, 0.2);
    border-radius: 30px;
    height: 50px;
    display: flex;
    margin: 0 0 15px 0;
    flex-direction: column;

    @media #{$screen-md-min} {
      height: 60px;
      margin: 0 0 2rem 0;
      flex-direction: row;
    }

    .plan-box {
      width: 100%;
      display: flex;

      @media #{$screen-md-min} {
        width: calc(100% / 3);
      }

      select {
        width: 100%;
        height: 100%;
        color: white;
        background-color: $color-blue;
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
        border-radius: 30px;
        padding: 13px 21px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url('/img/icons/icon-arrow-01-down-8x8.svg');
        background-position: right 0.9rem center;
        background-repeat: no-repeat;
        background-size: 12px;
        cursor: pointer;
        border: none;
        outline: none;

        @media #{$screen-md-min} {
          font-weight: 700;
          font-size: 28px;
          line-height: 38px;
        }

        option {
          margin: 0 5px;
          z-index: 1;
        }
      }

      button {
        width: 100%;
        height: 100%;
        flex: 1;
        color: $color-grey-500;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        font-weight: 600;
        font-size: 14px;
        line-height: 19px;

        @media #{$screen-md-min} {
          font-weight: 700;
          font-size: 25.2px;
          line-height: 34.2px;
        }

        &[data-active='true'] {
          color: white;

          &:before {
            opacity: 1;
          }
        }

        &:before {
          content: '';
          display: block;
          width: 100%;
          height: 100%;
          background: $color-blue;
          position: absolute;
          top: 0;
          left: 0;
          border-radius: 30px;
          z-index: 0;
          opacity: 0;
        }

        span {
          margin: 0 5px;
          z-index: 1;
        }
      }

      .line {
        width: 2px;
        height: 27px;
        background-color: rgba(255, 255, 255, 0.2);
        margin: auto;
        visibility: visible;
        display: inline-flex;

        @media #{$screen-md-min} {
          width: 4px;
        }

        &[data-active='true'] {
          visibility: hidden;
        }
      }
    }
  }

  .switcher-box {
    display: flex;
    gap: 10px;
    flex-direction: row;
    max-width: 800px;
    margin: auto;
    width: 93%;

    @media #{$screen-md-min} {
      width: auto;
      flex-direction: column;
      max-width: 1100px;
    }

    .direction-switcher {
      border-radius: 30px;
      height: 50px;
      width: 100%;
      display: flex;
      border-radius: 30px;
      flex: 1 1 50%;

      @media #{$screen-md-min} {
        background: rgba(black, 0.2);
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        margin: 0 auto 40px;
      }

      .plan-box {
        width: 100%;

        select {
          width: 100%;
          height: 100%;
          color: white;
          background-color: #1d37be;
          font-weight: 500;
          font-size: 14px;
          line-height: 22px;
          border-radius: 30px;
          padding: 13px 21px;
          -webkit-appearance: none;
          -moz-appearance: none;
          appearance: none;
          background-image: url('/img/icons/icon-arrow-01-down-8x8.svg');
          background-position: right 0.9rem center;
          background-repeat: no-repeat;
          background-size: 12px;
          cursor: pointer;
          border: none;
          outline: none;

          option {
            margin: 0 5px;
            z-index: 1;
          }
        }
      }

      button {
        width: 90px;
        height: 30px;
        flex: 1;
        color: $color-grey-500;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        font-weight: 600;
        font-size: 14px;

        @media #{$screen-md-min} {
          height: 40px;
          font-weight: 700;
          width: 125px;
          font-size: 24px;
          line-height: 32px;
        }

        &[data-active='true'] {
          color: $color-blue-dark;

          &:before {
            opacity: 1;
          }
        }

        &:before {
          content: '';
          display: block;
          width: 100%;
          height: 100%;
          background: white;
          position: absolute;
          top: 0;
          left: 0;
          border-radius: 30px;
          z-index: 0;
          opacity: 0;
        }

        span {
          z-index: 1;
        }
      }
    }

    .child-switcher {
      border-radius: 30px;
      height: 50px;
      display: flex;
      margin: 0 0 40px 0;
      flex-direction: column;
      flex: 1 1 50%;

      @media #{$screen-md-min} {
        border-radius: 0;
        height: auto;
        justify-content: center;
        flex-wrap: wrap;
        margin: 0 0 44px 0;
        padding: 0 2rem;
        flex-direction: row;
      }

      .plan-box {
        display: flex;

        select {
          width: 100%;
          height: 100%;
          color: white;
          background-color: #1d37be;
          font-weight: 500;
          font-size: 14px;
          line-height: 22px;
          border-radius: 30px;
          padding: 13px 21px;
          -webkit-appearance: none;
          -moz-appearance: none;
          appearance: none;
          background-image: url('/img/icons/icon-arrow-01-down-8x8.svg');
          background-position: right 0.9rem center;
          background-repeat: no-repeat;
          background-size: 12px;
          cursor: pointer;
          border: none;
          outline: none;

          option {
            margin: 0 5px;
            z-index: 1;
          }
        }
      }

      .bull {
        display: inline-block;
        margin: 0 0.5rem 0;
        color: rgba(255, 255, 255, 0.3);

        @media #{$screen-md-min} {
          margin: 0 1rem 1rem;
        }
      }

      button {
        border-bottom: solid 1px transparent;
        margin: 0;
        color: white;
        font-weight: 600;
        font-size: 14px;
        line-height: 14px;
        color: rgba(255, 255, 255, 0.3);

        @media #{$screen-md-min} {
          font-weight: 700;
          margin: 0 0 1rem 0;
          font-size: 16.2px;
          line-height: 23.4px;
        }

        &:nth-last-child(2) {
          margin-right: 0;
        }

        &[data-active='true'] {
          color: white;
        }
      }
    }
  }

  .floor-plans-map {
    background-color: white;
    padding: 50px 0 0;
    margin: 25px auto 0;

    @media #{$screen-md-min} {
      padding: 97px 0 100px;
      margin: 0;
    }

    img {
      max-height: 356px;

      @media #{$screen-xs-min} {
        max-height: 500px;
      }

      @media #{$screen-md-min} {
        max-height: 834px;
      }
    }
  }

  .plans {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;

    @media #{$screen-md-min} {
      // padding: 97px 0 100px;
      margin: 0;
      flex-direction: row;
    }

    .legend {
      flex: 0 0 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

      @media #{$screen-md-min} {
        flex-wrap: nowrap;
        flex-direction: column;
        flex: 0 0 25%;
      }

      > div {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 200px;
        overflow-y: scroll;
        background-color: #f4f4f4;
        box-shadow: inset 0px 4px 15px rgba(0, 0, 0, 0.15);
        padding: 24px 30px;

        @media #{$screen-md-min} {
          background-color: white;
          box-shadow: none;
          height: 100%;
          padding: 0;
          overflow-y: unset;
        }
      }

      .legend__item {
        display: flex;
        align-items: center;
        margin: 0 1rem 1rem 0;
        flex: 0 0 auto;

        @media #{$screen-md-min} {
          margin: 0 0 1rem 0;
          flex: none;
        }

        .circle {
          width: 10px;
          height: 10px;
          border-radius: 100%;
          display: block;
          margin: 0 0.5rem 0 0;
        }

        .label {
          display: block;
          font-size: 0.8rem;
          line-height: 1rem;
          color: black;
          width: auto;
          text-align: start;

          @media #{$screen-md-min} {
            width: 180px;
          }
        }
      }

      .compass {
        margin: 0.5rem 0 1.5rem 2.5rem;

        @media #{$screen-md-min} {
          margin: 0;
          flex: none;
        }
      }
    }

    .image-container {
      flex: 0 0 100%;
      margin-bottom: 55px;

      @media #{$screen-md-min} {
        flex: 0 0 75%;
        margin-bottom: 0;
      }
    }
  }
}
