.nav-menu > ul li a {
  display: block;
  padding: 10px 10px;
}

.sub-menu {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  position: absolute;
  z-index: 1;
  animation-fill-mode: both;
  background: white;
  animation-duration: 0.3s;
  padding: 10px;
  top: 100%;
  right: 10px;
  border-radius: 4px;
}
@media (max-width: 1023px) {
  .sub-menu {
    position: static;
    z-index: 0;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    display: none;
    background: transparent;
    border-radius: 0;
    padding: inherit;
  }
}
.sub-menu.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  animation-name: SubMenu;
}
@media (max-width: 1023px) {
  .sub-menu.open {
    animation-name: none;
    display: block;
  }
}
.sub-menu li a {
  color: var(--color-black);
  display: block;
  padding: 10px 10px;
}
@media (max-width: 1023px) {
  .sub-menu li a {
    color: inherit;
    padding: inherit;
  }
}

.menu-item-has-children {
  position: relative;
}

@keyframes SubMenu {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.wpcf7-form {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 10px 0;
  position: relative;
  text-align: left;
}
[data-wpcf7-id="177"] .wpcf7-form {
  flex-wrap: wrap;
}
[data-wpcf7-id="178"] .wpcf7-form {
  flex-direction: row;
  align-items: flex-end;
}
[data-wpcf7-id="178"] .wpcf7-form label {
  display: none;
}

.wpcf7-form[data-status=sent] .wpcf7-response-output {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 solid transparent !important;
  color: var(--color-black);
  vertical-align: middle;
  width: 100%;
  margin: 0 !important;
  border-radius: 4px;
  padding: 10px;
}
[data-wpcf7-id="178"] .wpcf7-form[data-status=sent] .wpcf7-response-output {
  background: transparent;
  color: var(--color-white);
  font-size: var(--text-base);
}
[data-wpcf7-id="177"] .wpcf7-form[data-status=sent] .wpcf7-response-output {
  background: var(--color-accent);
  color: var(--color-white);
  backdrop-filter: blur(10px);
  padding: 60px 40px;
  animation: fadeDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: var(--text-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
[data-wpcf7-id="177"] .wpcf7-form[data-status=sent] .wpcf7-response-output:before {
  content: "";
  display: block;
  width: 100px;
  height: 100px;
  background-size: cover;
  background-image: url('data:image/svg+xml,<svg width="200" height="200" viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M62.5 50L118.75 87.5L175 50M25 106.25H87.5M37.5 131.25H100M56.25 156.25H181.25V43.75H56.25V81.25H12.5" stroke="white" stroke-width="12.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
.wpcf7-form[data-status=sent] .form-group {
  opacity: 0;
}
[data-wpcf7-id="177"] .wpcf7-form[data-status=sent] .form-group {
  display: none;
}

.wpcf7-form[data-status=invalid] .wpcf7-response-output {
  background: var(--color-red-500);
  border: 0 solid transparent !important;
  color: var(--color-white);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0 !important;
  border-radius: 4px;
  margin-bottom: 5px;
  width: 100%;
  padding: 10px 15px !important;
}
.wpcf7-form[data-status=invalid] .wpcf7-form[data-status=submitting] input,
.wpcf7-form[data-status=invalid] .wpcf7-form[data-status=submitting] select,
.wpcf7-form[data-status=invalid] .wpcf7-form[data-status=submitting] textarea {
  pointer-events: none;
  opacity: 0.5;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  width: 100%;
  opacity: 1;
  transition: 0.1s opacity ease-in-out;
}
.form-group p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  color: white;
}
.form-group label.required:after {
  content: "*";
  color: var(--color-red-500);
  margin-left: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border: 2px solid transparent;
  padding: 10px 15px;
  width: 100%;
}
[data-wpcf7-id="178"] .form-group input,
[data-wpcf7-id="178"] .form-group select,
[data-wpcf7-id="178"] .form-group textarea {
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-black);
  flex: 1;
  width: 100%;
}
.form-group input:-webkit-autofill, .form-group input:-webkit-autofill:focus, .form-group input:-webkit-autofill:hover, .form-group input:-webkit-autofill:active,
.form-group select:-webkit-autofill,
.form-group select:-webkit-autofill:focus,
.form-group select:-webkit-autofill:hover,
.form-group select:-webkit-autofill:active,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--color-white) inset !important;
  box-shadow: 0 0 0 1000px var(--color-white) inset !important;
  -webkit-text-fill-color: var(--color-black) !important;
  caret-color: var(--color-black) !important;
  transition: background-color 9999s ease-in-out 0s;
}
.form-group input:-internal-autofill-selected,
.form-group select:-internal-autofill-selected,
.form-group textarea:-internal-autofill-selected {
  background-color: var(--color-white) !important;
  color: var(--color-black) !important;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0px 0px transparent;
}
.form-group input:focus + .wpcf7-not-valid-tip,
.form-group select:focus + .wpcf7-not-valid-tip,
.form-group textarea:focus + .wpcf7-not-valid-tip {
  opacity: 0;
}
.form-group input[type=submit] {
  background: var(--color-primary);
  color: var(--color-primary-content);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: 0.2s ease-in-out;
  padding: 10px 30px;
  border: 3px solid var(--color-primary);
  font-family: var(--font-sans);
  font-size: 20px;
}
.form-group input[type=submit]:hover {
  background: var(--color-accent);
  border: 3px solid var(--color-primary);
  color: var(--color-accent-content);
}
.form-group .wpcf7-not-valid-tip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 1;
  transition: 0.2s opacity ease-in-out;
  padding: 0 10px;
  border-radius: 0 4px 4px 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0px 0px 1px black;
}
.form-group .wpcf7-spinner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  width: 100%;
  height: 100%;
}
.form-group .wpcf7-spinner:before {
  left: calc(50% - 8px);
  top: calc(50% - 8px);
  background-color: var(--color-accent);
  width: 8px;
  height: 8px;
}
.form-group span {
  display: block;
  margin: 0;
}
.form-group br {
  height: 0;
  display: none;
}

@media all and (min-width: 768px) {
  .form-group--50 {
    flex: 0.5;
    width: 100%;
  }
}

.form-group--submit {
  flex: 0;
  width: fit-content;
  margin: 0 auto;
}

@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes markerHover {
  0% {
    margin-top: 0;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  50% {
    margin-top: -10px;
    filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.3));
  }
  75% {
    margin-top: -8px;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.2));
  }
  100% {
    margin-top: -10px;
    filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.3));
  }
}
.marker {
  top: 0;
  transition: 0.3s ease;
  position: relative;
}
.marker.marker-hover {
  animation: markerHover 0.6s ease 0.1s forwards;
  z-index: 10;
}

.mapboxgl-popup-close-button {
  width: 40px;
  height: 40px;
  font-size: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mapboxgl-popup-content {
  border-radius: 0.5rem !important;
}

.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right {
  display: none !important;
}

.title-line {
  margin-bottom: 30px;
  display: inline-block;
}
.title-line:after {
  content: "";
  display: block;
  width: 80px;
  height: 6px;
  background: var(--color-primary);
  margin-top: 10px;
}
@media (max-width: 1023px) {
  .title-line:after {
    margin: 10px auto 0;
  }
}

.billboard {
  background: var(--color-secondary);
  border-radius: 70px;
  padding: 60px 40px;
  position: relative;
  top: -180px;
  box-shadow: 0 0 30px 5px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: 0.4s ease-out;
}
@media (max-width: 767px) {
  .billboard {
    padding: 40px 20px;
    border-radius: 40px;
  }
}
.billboard::before, .billboard:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 25%;
  width: 30px;
  height: 30px;
  background: var(--color-accent);
}
.billboard:after {
  left: auto;
  right: 25%;
}

.billboard--less {
  top: -80px;
}

.billboard-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.speed-line {
  position: absolute;
  top: 100%;
  left: 20px;
  height: 16px;
  width: 200px;
  background: var(--color-primary);
  margin-top: 10px;
}

.speed-line-reverse {
  position: absolute;
  bottom: 100%;
  right: 20px;
  height: 16px;
  width: 200px;
  background: var(--color-primary);
  margin-bottom: 10px;
}

@keyframes speed-line {
  0% {
    opacity: 0;
    left: 100%;
    width: 0px;
  }
  50% {
    opacity: 1;
    width: 600px;
  }
  100% {
    width: 200px;
  }
}
@keyframes speed-line-reverse {
  0% {
    opacity: 0;
    right: 100%;
    width: 0px;
  }
  50% {
    opacity: 1;
    width: 600px;
  }
  100% {
    width: 200px;
  }
}
.speed-line.animate {
  animation: speed-line 1s cubic-bezier(0.22, 1, 0.36, 1) 200ms forwards;
}

.speed-line-reverse.animate {
  animation: speed-line-reverse 1s cubic-bezier(0.22, 1, 0.36, 1) 200ms forwards;
}

.slider-hover:hover .billboard {
  opacity: 0.2 !important;
}
.slider-hover:hover .billboard:hover {
  opacity: 1 !important;
}

.slider {
  cursor: grab;
}
.slider .swiper-pagination-bullet {
  width: 16px;
  height: 16px;
}
.slider .swiper-pagination-bullet-active {
  background: var(--color-primary);
  width: 16px;
  height: 16px;
}
.slider:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgb(0, 0, 0), rgba(0, 0, 0, 0.3));
  z-index: 2;
  transition: 0.4s all ease;
  pointer-events: none;
}
.slider:hover:before {
  opacity: 0.2;
}

.location-details {
  text-align: left;
}
.location-details .button-wrapper {
  opacity: 0;
  visibility: hidden;
  height: 0;
  transition: 0.3s ease-out;
  transition-delay: 400ms, 400ms;
  transition-property: opacity, height;
}
.location-details .active {
  background: var(--color-accent);
  color: var(--color-accent-content);
  flex-basis: 50%;
  transition-delay: 0s;
  cursor: default;
}
.location-details .active .button-wrapper {
  opacity: 1;
  visibility: visible;
  height: max-content;
  transition-delay: 400ms, 100ms;
  transition-property: opacity, height;
}
.location-details .active.billboard-single:after {
  transform: translateY(0%);
  opacity: 1;
  visibility: visible;
  transition-delay: 0.3s;
}

.billboard-single {
  position: relative;
  z-index: 1;
  flex-basis: 33.33%;
  transition: 0.3s ease-out;
  background-color: var(--color-secondary);
  transition-delay: 0.3s;
  cursor: pointer;
}
.billboard-single:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
  display: inline-block !important;
  width: 0;
  height: 0;
  border-top: 26px solid var(--color-accent);
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  vertical-align: middle;
  transition: 0.3s ease-out;
  margin-left: -13px;
}

.billboard-stats {
  opacity: 0;
  visibility: hidden;
  transition: 0.3s opacity ease-out;
  transition-delay: 0s;
  height: 0;
}
.billboard-stats.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.3s;
  height: auto;
}

@keyframes drive {
  0% {
    opacity: 0;
    transform: translateX(-800px);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}
@keyframes drive-out {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(400px);
  }
}
.car,
.car-first {
  opacity: 0;
  will-change: opacity, transform;
}

.car.animate {
  animation: drive 1.4s ease-out forwards;
}

.car-first.animate {
  animation: drive 1s ease-out 400ms forwards;
}

.car.animate.animate-out {
  opacity: 1;
  animation: drive-out 700ms ease-out forwards;
}

.car-first.animate.animate-out {
  opacity: 1;
  animation: drive-out 700ms ease-out forwards;
}
