.bg-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding-bottom: 52%;
}
.test-bg-image {
  background-image: url('/images/test-listing.jpg');
  &-person {
    background-image: url("/images/avatar.png");
  }
}

.bg-cover-default {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.pill {
  border-radius: 13px;
  height: 23px;
  font-size: 12px;
  line-height: 12px;
  padding: 6px 12px;
  background-color: $mint;
  color: white;
}

.new-space-pill {
  border-radius: 13px;
  height: 21px;
  font-size: 10px;
  font-weight: bold;
  line-height: 10px;
  padding: 6px 12px;
  background-color: $dark-mint;
  color: white;
}

.filmspace-details {
  .title {
    color: $charcoal;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 2px;
    @include breakpoint(large up) {
      font-size: 24px;
      line-height: 29px;
    }
  }
  .sub-title {
    color: $dark-mint;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 0;
    @include breakpoint(medium up) {
      margin-bottom: inherit;
    }
  }
  .listing-type, .listing-style {
    color: $grey;
    line-height: 17px;
    font-size: 14px;
    font-weight: 600;
    max-width: 100%;
    @include breakpoint(medium up) {
      max-width: 320px;
    }
  }
  .listing-rating {
    display: none;
    @include breakpoint(large up) {
      display: inline-block;
      height: 51px;
    }
  }
  .listing-categories {
    vertical-align: middle;
    max-width: 100%;
    display: inline-block;
    @include breakpoint(medium up) {
      margin-left: 16px;
    }
    @include breakpoint(br-768 only) {
      margin-left: 0;
    }
    @include breakpoint(large up) {
      vertical-align: unset;
    }
    @include breakpoint(br-1280 up) {
      margin-left: 32px;
    }
  }
  .details-container {
    text-align: center;
    @include breakpoint(medium up) {
      text-align: left;
    }
    .listing-name-address {
      max-width: 75%;
      white-space: pre-wrap;
      margin-left: 12px;
      @include breakpoint(large up) {
        margin-left: 16px;
      }
    }
    .listing-categories {
      text-align: center;
      @include breakpoint(medium up) {
        text-align: left;
      }
    }
    .whitespace-nowrap {
      text-align: left;
    }
    .avatar {
      border-radius: 50%;
      display: inline-block;
      vertical-align: middle;
      width: 60px;
      height: 60px;
      margin-bottom: 0;
      @include breakpoint(large up){
        width: 72px;
        height: 72px;
      }
    }
  }
}

.border-left-mint {
  border-left: 3px solid $mint;
}
.border-right-mint {
  border-right: 3px solid $mint;
}
.avatar {
  display: inline-block;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);
  border: solid 3px $white;
  width: 72px;
  height: 72px;
  &.default-avatar {
    line-height: 70px;
    color: white;
  }
  @include breakpoint(small only) {
    display: block;
    margin: 0 auto 20px auto;
  }
}
.charcoal-header-block {
  display: inline-block;
  line-height: (20em / $global-size);
  font-size: (16em /$global-size);
  color: $white;
  background-color: $charcoal;
  padding: (10em / $global-size) (12em / $global-size);
  &.dashboard-block {
    margin-top: 36px;
    margin-bottom: 38px;
  }
}
.image-container-edit-profile-link {
  display: block;
  color: $honey;
  text-align: center;
  font-size: (14em / 16);
  line-height: (17em / 14);
  transition: color .75s;
  &:hover {
    //color: $rose;
  }
}
.form-light-border{
  border-radius: 4px;
  border: 2px solid $light-mint;
}
.form-divider {
  width: 100%;
  height: 1px;
  background-color: $off-white;
}
.form-header.justified {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1 1 auto;
}
.select-label {
  color: $grey;
  font-size: (11em / 16);
  line-height: (14em / 11);
  font-weight: 600;
}

.select-label-position-over{
  position: absolute;
  left: 12px;
  top: 22px;
  color: $charcoal;
  font-size: 14px;
  line-height: 1;
  transition: all 0.3s;
  &.select-has-value {
    left: 0;
    top: 0;
    color: $grey;
    font-size: 11px;
  }
}

.top-40-mobile {
  @include breakpoint(small only) {
    top: 40px;
  }
}

.request-booking-form {
  position: relative;
  margin-bottom: 128px;
  i {
    color: $charcoal;
  }
  @include breakpoint(medium up) {
    margin-bottom: 78px;
  }
  @include breakpoint(br-768 up) {
    box-shadow: 0 0 12px 0 rgba(0,0,0, 0.1);
  }
  &.disabled {
    pointer-events: none;

  }

  .add-a-day {
    font-size: 14px;
    font-weight: bold;
    line-height: 17px;
    margin-top: 8px;
  }

  .remove-timeslot-button {
    position: absolute;
    right: 0;
    top: 10px;
  }

  .icon {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    &.icon-left {
      left: 6px;
    }
    &.icon-right {
      right: 0;
    }
  }
  .form-fields-container {
    .select-focus {
      font-size: (14em / 16);
      line-height: (17em / 14);
      //color: $charcoal;
      font-weight: 600;
      padding: (12em / 14) (6em / 14);
      border-bottom: 2px solid $light-mint;
      max-height: 40px;

      &:hover {
        //border-color: $charcoal;
      }

      &.active {
        border-color: $dark-mint;
      }
      &.invalid {
        border-color: $rose;
      }
    }

    .button {
      font-size: 14px;
      font-weight: 600;
    }

    button.button.hollow {
      &.dark-mint {
        border-color: $dark-mint;
        color: $dark-mint;
        background-color: $white;
        //border-color: $grey;
        //color: $grey;
        //background-color: $off-white;
        //cursor: not-allowed;
        &:hover {
          background-color: $dark-mint;
          color: $white;
        }
      }
    }
  }

  .form-overhang-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -38px;
    height: 72px;
    .user-image {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      border-radius: 50%;
      width: 60px;
      height: 60px;
      border: 3px solid $white;
      box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);
      color: white;
      text-align: center;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
    }
    .user-response-rate {
        font-size: (14em / 16);
        line-height: (21em / 14);
        font-weight: 600;
        color: $grey;
        position: absolute;
        top: calc(100% - 8px);
        text-align: center;
        left: 0;
        right: 0;
    }
  }
}
.divider.has-middle {
  position: relative;
  border-bottom: 1px solid $light-grey;
}
.view-more {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 13px;
  padding: 6px 16px;
  text-transform: uppercase;
  color: $white;
  background-color: $mint;
  font-size: 9px;
  .material-icons {
    line-height: 10px;
  }
}

.feature {
  padding: 20px 40px;
  border-bottom: 1px solid $off-white;

  &.no-border {
    border-bottom: none;
  }

  .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .icon-left {
    left: 12px;
  }
}

.last-feature-no-border {
  .cell:last-child .feature {
    border-bottom: none;
  }
}

.google-map {
  position: relative;
  padding-top: 375px;
  @include breakpoint(br-768 up) {
    padding-top: 310px;
  }
  @include breakpoint(large up) {
    padding-top: 298px;
    padding-bottom: 298px;
  }
  text-align: center;
  background-color: $grey;
}

.button-container-wrapper {
  padding: 20px 0;
  h2 {
    margin-bottom: 0;
    line-height: 12px;
    font-size: 20px;
    margin-top: 16px;
  }
  h4 {
    font-size: 14px;
    line-height: 17px;
  }
  .flex-container-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: scroll;
  }
}

.filmspace-listing-detail-page {
  position: relative;
  //overflow: hidden;
  padding-top: 60px;
  @include breakpoint(large up) {
    padding-top: 0;
  }

  & + .footer {
    padding-bottom: 80px;
    @include breakpoint(br-768 up){
      padding-bottom: 0;
    }
  }

  .charcoal-header-block {
    margin-bottom: 12px;
    @include breakpoint(br-768 up) {
      margin-bottom: 20px;
    }
  }

  .listing-detail-slider-wrapper {
    background-color: $off-white;
    background-image: url('/images/D2.png');
    background-size: cover;
    overflow: hidden;
  }

  .filmspace-action-buttons {
    display: inline-block;
    position: absolute;
    z-index: 1;
    right: 16px;
    top: 16px;
    @include breakpoint(br-768 up) {
      top: 24px;
    }
    @include breakpoint(large up) {
      top: 32px;
      right: 32px;
    }

    span {
      box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
      cursor: pointer;
      font-weight: bold;
      @include breakpoint(br-768 up) {
        box-shadow: none;
        cursor: unset;
        font-weight: unset;
      }
    }

    button {
      margin-right: 8px;
      border-radius: 4px;
      padding: 16px 20px 14px;
      font-weight: bold;
      font-size: 14px;
      box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
      &:hover {
        background-color: $off-white;
      }
    }
  }

  .filmspace-listing-detail-button {
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
    display: none;
    @include breakpoint(medium up) {
      display: inline-block;
    }
    &:hover {
      background-color: $off-white;
    }
    position: absolute;
    top: 32px;
    z-index: 8;
    padding: (16em / 14) (20em / 14) (14em / 14);
    border-radius: 4px;
    font-size: (14em / 16);
    line-height: (17em / 14);
    font-weight: 600;

    &.tour-button {
      font-weight: bold;
      display: inline-block;
      left: 16px;
      top: 16px;
      @include breakpoint(br-768 up) {
        top: 24px;
      }
      @include breakpoint(large up) {
        top: 32px;
        left: 32px;
      }
    }
  }
}
.total-price-verify-booking {
  margin-top: 16px;
  margin-bottom: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid $mint;
  border-bottom: 1px solid $mint;
  &.border-none {
    border: none;
  }
  .price-label, .price-total {
    font-size: 14px;
  }
}
.pointer-events-none {
  pointer-events: none;
}

.selected.form-input.time-select.normal-padding{
  padding: 0.78571em 0.85714em 0.71429em;
  min-height: 40px;
  &.active{
    border-color: $mint;
  }
}

.pointer-events-none {
  pointer-events: none;
}

.time-select {
  &.select-padding {
    padding: 11px 12px 10px 12px;
  }
  &.pointer-events-none {
    color: $light-grey;
    .material-icons {
      color: $light-grey;
    }
    span {
      color: $light-grey;
    }
  }
  .selected.form-input.time-select button {
    right: 4px;
    top: 10px;
    margin: 0;
  }
  .options.open {
    max-height: 300px;
    height: unset;
    margin-top: 12px;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    &::-webkit-scrollbar {
      display: none;
    }
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    .option {
      &.selected {
        background-color: white;
        &:hover {
          background-color: $mint;
          color: $white;
          .price {
            color: $white;
          }
        }
      }
      border-bottom: none;
      padding-bottom: 16px;
      text-align: center;
      &:first-child {
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
      }
    }
  }
  .option {
    margin-bottom: 1px;
    padding: 17px 16px;
    position: relative;
    .price {
      color: $light-grey;
    }
    &.disabled {
      color: #cccccc;
    }
    &:hover {
      background-color: $mint;
      color: $white;
      .price {
        color: $white;
      }
    }
    &::after {
      content: "";
      height: 1px;
      background-color: $light-mint;
      width: calc(100% - 16px);
      position: absolute;
      left: 8px;
      right: 8px;
      bottom: -2px;
    }
    &:hover::after,
    &:last-child::after {
      display: none;
    }

    &.disabled:hover {
      background: none;
      color: #cccccc;
      &::after {
        display: block;
      }
    }
  }
}
.request-booking-cell-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 8px;
}

.request-booking-cell {
  min-width: 86px;
  width: 30%;
  &.calendar {
    min-width: 84px;
    width: 33%;
    @media (min-width: 411px) {
      min-width: 114px;
    }
  }
  @include breakpoint(br-768 up) {
    min-width: 70px;
    &.calendar {
      min-width: 75px;
    }
  }
  &:not(last-child){
    margin-right: 8px;
  }
}
.file-pull-reveal.max-width-740 {
  max-width: 740px;
}
.request-booking-form {
  i {
    color: $charcoal;
  }
  .request-booking-cell-row {
    .request-booking-cell {
      .select-focus {
        padding-left: 6px;
        padding-top: 8px;
        line-height: 1.3;
        &.not-empty {
          border-color: $mint;
          &.light-grey-border {
            border-color: $light-grey;
            color: $charcoal;
            button {
              i {
                display: none;
              }
            }
          }
        }
      }
    }
  }
  &.disabled {
    .selected.time-select {
      border-color: $light-grey;
      color: $light-grey;
      button {
        i {
          display: none;
        }
      }
    }
    .select-label-position-over {
      color: $light-grey;
    }
    .request-booking-cell-row {
      .request-booking-cell {
        .select-focus {
          padding-left: 6px;
          padding-top: 8px;
          line-height: 1.3;
          border-color: $light-grey;
          color: $light-grey;
          button {
            i {
              display: none;
            }
          }
        }
      }
    }
  }

  .total-hours {
    float: right;
    font-size: 14px;
    display: inline-block;
    margin-top: 8px;
    line-height: 17px;
    color: $grey;
  }
}
.pricing-container {
  margin-top: 32px;
  .price-item-wrapper {
    margin-bottom: 10px;
    line-height: 1;
    &.overflow-support {
      white-space: nowrap;
      overflow: hidden;
      .price-total {
        max-width: 200px;
      }
    }
    .price-label {
      font-size: 14px;
      display: inline-block;
      line-height: 17px;
      font-weight: 600;
      vertical-align: middle;
      color: $charcoal;
      &.rose {
        color: $rose;
      }
    }
    .price-total {
      font-size: 14px;
      display: inline-block;
      line-height: 17px;
      font-weight: 600;
      float: right;
      vertical-align: middle;
      color: $grey;
      &.rose {
        color: $rose;
      }
    }
  }
}
.selected.form-input.time-select {
  padding-left: 6px;
}
.user-image-with-side-details {
  .user-image, .avatar {
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    line-height: 70px;
    border: 3px solid $white;
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.06);
    color: white;
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 16px;
  }
  .user-details {
    font-size: 14px;
    line-height: 17px;
    min-height: 42px;
    text-align: left;
    font-weight: 600;
    color: $grey;
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    width: 160px;
    @media(min-width: 461px) {
      width: 80%;
    }
    @media (max-width: 376px) {
      width: 150px;
      .text {
        width: 100%;
        .listing-name {
          max-width: 75%;
        }
      }
    }
    i {
      margin-right: 8px;
    }
    @include breakpoint(medium up) {
      width: unset;
    }
    &.is-full-width {
      @media (max-width: 376px) {
        width: 100%;
      }
    }
  }
  .text {
    font-size: 16px;
    line-height: 25px;
    color: $charcoal;
    font-weight: bold;
    width: 75%;
    @include breakpoint(medium up) {
      width: unset;
    }
    .listing-name {
      max-width: 100%;
    }
  }
}
.textarea-fixed-width {
  min-width: 100%;
}
.ios-bug-fix-for-overhang-position-fixed-error {
  position: sticky;
  height: 100%;
  left: 24px;
  right: 0;
  background-color: white;
  overflow-y: scroll;
  @include breakpoint(br-768 up) {
    overflow-y: unset;
  }
}
.listing-profile-side-menu-component {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 100;
  @include breakpoint(medium up){
    overflow: inherit;
    top: 80px;
  }
  &::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: calc(100% - 24px);
    z-index: 3;
    background-color: rgba(37, 39, 41, 0.57);
    @include breakpoint(medium up) {
      top: 80px;
    }
  }
  .form-header.justified {
    margin-left: 16px;
    h2 {
      font-size: 24px;
    }
    h4 {
      font-size: 14px;
      i {
        margin-right: 2px;
      }
    }
  }
  .form-light-border {
    border: none;
  }
  @include breakpoint(br-768 up) {
    position: sticky;
    top: 104px;
    background-color: transparent;
    z-index: 49;
    &::before {
      display: none;
    }
    .form-header.justified {
      margin-left: unset;
    }
    .close-mobile-side-menu-button {
      display: none;
    }
    .form-light-border {
      border: 2px solid $light-mint;
    }
  }
}
.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  @include breakpoint(br-768 up) {
    position: unset;
  }
}
.close-mobile-side-menu-button {
  width: 38px;
  height: 38px;
  background-color: $honey;
  border-radius: 4px;
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 104px;
  left: 12px;
  z-index: 4;
}
.box-shadow-button {
  box-shadow: 0 2px 0 0 rgba(0,0,0,0.06);
}
.back-to-listing-profile-button {
  color: $honey;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 24px;
  margin-top: 11px;
  @include breakpoint(large up) {
    float: right;
    margin-bottom: 0px;
    margin-top: 19px;
  }
}
.request-booking-form-title {
    margin-bottom: 20px;
}
.textarea-heading {
  font-size: 14px;
  color: $charcoal;
  font-weight: 600;
  margin-bottom: 0;
}
.width-container-wrapper {
  p {
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    color: $grey;
  }
  @include breakpoint(large up){
    width: 75%;
    margin: auto;
    text-align: center;
  }
}
.booking-detail-page .user-image-with-side-details {
  .user-image, .avatar {
    display: none;
    @include breakpoint(medium up) {
      display: inline-block;
    }
  }
  .text {
    font-size: 24px;
    line-height: 29px;
    font-weight: 600;
    color: $charcoal;
    margin-bottom: 7px;
    width: 100%;
  }
  .sub-text {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 17px;
  }
}
.booking-detail-page {
  .charcoal-header-block {
    margin-top: 40px;
    margin-bottom: 15px;
    &.large-margin-bottom-20 {
      margin-bottom: 20px;
    }
  }
  .project-description {
    line-height: 24px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    display: inline-block;
  }
  .booking-detail-text-entry-with-icon {
    position: relative;
    padding-left: 28px;
    i {
      position: absolute;
      left: 0;
      top: 0;
    }
    p {
      display: inline-block;
    }
  }
  .booking-action-button-group {
    margin-top: 16px;
    button, a {
      width: 100%;
      display: inline-block;
      &:last-child {
        margin-top: 8px;
      }
    }
    @include breakpoint(br-768 up) {
      margin-top: 40px;
      margin-bottom: 42px;
      button, a {
        width: 49%;
        &:first-child {
          margin-right: 12px;
        }
        &:nth-child(3) {
          width: 100%;
          margin-top: unset;
        }
      }
    }
    @include breakpoint(large up) {
      border-top: 1px solid $off-white;
      padding-top: 24px;
      margin-top: 138px;
      text-align: center;
      margin-bottom: 32px;
      button, a {
        width: 75%;
        margin: auto;
        &:first-child {
          margin-right: auto;
        }
        &:nth-child(3) {
          width: 75%;
          margin-top: unset;
        }
      }
    }
  }

  .booking-detail-entry {
    border-top: 1px solid $off-white;
    padding: 16px 0;
    font-size: 16px;
    line-height: 16px;
    font-weight: 600;
    color: $charcoal;
    display: flex;
    justify-content: space-between;
    align-items: center;
    @include breakpoint(br-768 up) {
      padding: 16px 12px;
    }
    .truncatable {
      text-overflow: ellipsis;
      overflow: hidden;
      max-height: 17px;
      white-space: nowrap;
    }

    &.is-sum {
      border-top: 1px solid $mint;
      border-bottom: 1px solid $mint;
      font-weight: bold;
    }

    i.material-icons {
      margin-right: 8px;
      vertical-align: middle;
    }

    &:first-child {
      border-top: none;
    }

    .left-item {
      white-space: nowrap;
      margin-right: 20px;
    }

    .right-item {
        flex-shrink: 2;
    }
  }
}
.reveal-body {
  .cancellation-notice {
    font-size: 14px;
    line-height: 21px;
    color: $grey;
  }
}