.hero{
  width: 100%;
  display: flex;
  position: relative;
  z-index: 1;
  @media (max-width: 418px) {
    height: 544px;
  }

  & .hero-content{
    position: absolute;
    width: fit-content;
    padding: 40px 523px 40px 96px;
    height: 100%;
    display: inline-flex;
    gap: 1rem;
    @media (max-width: 920px) {
      padding: 1rem;
    }
  }
  & img {
    width: auto;
    min-width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
  }
}

popover, .popover{
  position: absolute;
  padding: 1rem;
  background-color: #fff;
  border-top: 2px solid #005392;
  user-select: none;
  width: max-content;
  max-width: 400px;
  top: 110%;
  left: 0;
  visibility: hidden;
  color: #191919;
  z-index: 1;
  opacity: 0;
  transition: all .3s ease-out;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2), 0px 0px 2px rgba(0, 0, 0, 0.1);
  @media (max-width: 920px){
    width: 300px;
    max-height: 300px;
  }
  &::after{
    content: "";
    bottom: 100%;
    left: 50%;
    border-top: 10px solid transparent;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 10px solid #005392;
    position: absolute;
  }
  &.arrow-end::after{
    left: auto;
    right: 5%;
  }
  &.arrow-start::after{
    left: 5%;
  }
  &.is-right{
    left: 105%;
    top: auto;
    max-height: 400px;
    width:  max-content;
    border-top: none;
    border-left:  2px solid #005392;
    @media (max-width: 920px){
      width: 200px;
      max-height: 400px;
    }
    &.arrow-end::after{
      bottom: 5%;
    }
    &.arrow-start::after{
      bottom: auto;
      top: 5%;
    }
    &::after{
      left: auto;
      right: 100%;
      bottom: 50%;
      border-top: 10px solid transparent;
      border-right: 10px solid #005392;
      border-left: 10px solid transparent;
      border-bottom: 10px solid transparent;
    }
  }
  &.is-left{
    right: 105%;
    left: auto;
    top: auto;
    max-height: 400px;
    width:  max-content;
    border-top: none;
    border-right:  2px solid #005392;
    @media (max-width: 920px){
      width: 200px;
      max-height: 400px;
    }
    &.arrow-end::after{
      bottom: 5%;
    }
    &.arrow-start::after{
      bottom: auto;
      top: 5%;
    }
    &::after{
      right: auto;
      left: 100%;
      bottom: 50%;
      border-top: 10px solid transparent;
      border-right: 10px solid transparent;
      border-left: 10px solid #005392;
      border-bottom: 10px solid transparent;
    }
  }
  &.is-top{
    bottom: 120%;
    top: auto;
    border-top: none;
    border-bottom: 2px solid #005392;
    @media (max-width: 920px){
      width: 300px;
      max-height: 300px;
    }
    &.arrow-end::after{
      bottom: 0;
      left: 92%;
    }
    &.arrow-start::after{
      left: 5%;
    }
    &::after{
      top: 100%;
      left: 50%;
      border-top: 10px solid #005392;
      border-right: 10px solid transparent;
      border-left: 10px solid transparent;
      border-bottom: 10px solid transparent;
    }

  }
}

:has(> .popover, popover){
  position: relative;
  &:hover .popover{
    visibility: visible;
    opacity: 1;
    z-index: 999;
  }
}

.accordions {
  overflow: hidden;
}
.accordion {
  width: 100%;
  color: #191919;
  font-weight: 500;
  line-height: 16px;
  overflow: hidden;
  & input[type="checkbox"], input[type="radio"]{
    display: none;
  }
  &-label {
    display: flex;
    justify-content: space-between;
    padding: 1em;
    background: #FFFFFF;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    &::before{
      content: "";
      width: 100%;
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      border-bottom: 0.6px solid #F66902;
    }
    /* Icon */
    &:hover {
      background: #F8F8F8;
    }
    &::after {
      content: "\276F";
      width: 1em;
      height: 1em;
      color: #636363;
      text-align: center;
      transform: rotate(90deg);
      transition: all .35s;
    }
  }
  &-content {
    max-height: 0;
    padding: 0 1em;
    color: #191919;
    background: white;
    transition: all .35s;
  }
  &-close {
    display: flex;
    justify-content: flex-end;
    padding: 1em;
    font-size: 0.75em;
    background: #FFFFFF;
    cursor: pointer;
    &:hover {
      background: #F8F8F8;
    }
  }
  & input[type="checkbox"]:checked, input[type="radio"]:checked {
    + .accordion-label {
      background: #F8F8F8;
      &::after {
        transform: rotate(-90deg);
      }
    }
    ~ .accordion-content {
      max-height: 100vh;
      padding: 1em;
    }
  }
  & input[type="checkbox"]:disabled, input[type="radio"]:disabled {
    + .accordion-label {
      opacity: .5;
      &::before{
        opacity: .5;
      }
    }
  }
  &.--secondary {
    & .accordion-label {
      &::before{
        border-bottom: none;
      }
      &:hover {
        background: #AEDCFF;
        color: #003C69;
      }
    }
    & input[type="checkbox"]:checked, input[type="radio"]:checked {
      + .accordion-label {
        background: #D7EEFF;
        color: #006ABA;
        &::after {
          transform: rotate(-90deg);
        }
      }
      ~ .accordion-content {
        max-height: 100vh;
        padding: 1em;
      }
    }
    & .accordion-close {
      &:hover {
        background: #AEDCFF;
        color: #003C69;
      }
    }
    & input[type="checkbox"]:disabled, input[type="radio"]:disabled {
      + .accordion-label {
        opacity: .5;
        &::before{
          opacity: .5;
        }
      }
    }

  }
}

.carousel{
  z-index: 0 !important;
  & .swiper-button-prev, .swiper-button-next{
    top: auto;
    bottom: -10px;
    margin-top: 0;
    z-index: 3 !important;
    color: #636363;
    &:hover{
      color: #005392;
    }
  }

  & .swiper-button-prev::after{
    content: "\f053";
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    font-size: 20px;
  }
  & .swiper-button-next::after{
    content: "\f054";
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    font-size: 20px;
  }

  & .swiper-pagination {
    bottom:0px !important;
    top: auto;
    z-index: 2 !important;
    & .swiper-pagination-bullet{
      border-radius: 0px !important;
      width: 3rem;
      height: 5px;
      background-color: #F66902 !important;
      @media (max-width: 900px) {
        width: 1rem;
      }
    }
  }
}

.col:has(> .gallery){
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  gap: 36px;
  @media (max-width: 418px) {
    flex-direction: column;
  }
  > .gallery{
    width: 100%;
    max-height: 569.25px;
    @media (max-width: 418px) {
      max-height: 400px;
    }
    & img {
      height: 100%;
      width: 100%;
    }

    & .swiper-button-prev, .swiper-button-next {
      top: auto;
      bottom: 20px;
      width: 42px;
      height: 42px;
      background-color: #fff;
    }
    & .swiper-button-prev::after{
      content: "\f053";
      font-family: "Font Awesome 6 Free" !important;
      font-weight: 900;
      font-size: 20px;
    }
    & .swiper-button-next::after{
      content: "\f054";
      font-family: "Font Awesome 6 Free" !important;
      font-weight: 900;
      font-size: 20px;
    }

    & .swiper-slide {
      position: relative;

      > .gallery-preview{
        position: absolute;
        right: 10px;
        top: 10px;
      }
    }
  }

  > .modal {
    background-color: rgba(0, 0, 0, 0.527);
    & img {
      width: 80vw;
      max-height: 80vh;
    }
    & .modal-close {
      color: white;
      &:hover {
        color: darken($color: #fff, $amount: 20);
      }
    }
  }

  > .thumbs {
    max-width: 300px;
    max-height: 569.25px;
    @media (max-width: 418px) {
      width: 100%;
      max-height: 200px;
    }
    & .swiper-slide-thumb-active {
      border: 2px solid #F66902;
    }
    & img {
      height: 100%;
      width: 100%;
    }
  }
}


.modal {
  position: fixed;
  background-color: transparent;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: hidden;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  &:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

.modal-close {
  color: #005392;
  line-height: 50px;
  font-size: 80%;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 70px;
  text-decoration: none;
  &:hover {
    color: darken($color: #005392, $amount: 20);
  }
}

.login{
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2), 0px 0px 2px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  width: 80vw;
  height: 80vh;
  @media (max-width: 414px){
    box-shadow: none;
    width: 100%;
  }
  @media (min-width:640px){
    & .login-container{
      height: 100%;
    }
  }
  & .login-form{
    padding: 64px 32px 64px 96px;
    @media (max-width:920px){
      padding: 1rem;
    }
  }
  & .login-img{
    @media (max-width: 414px){
      display: none;
    }
    & img {
      width: 100%;
      height: 100%;
    }
  }
}
