@font-face {
  font-family: "Moderat Extended Black";
  src: url("/wp-content/themes/themebase/inc/assets/fonts/ModeratExtendedBlack.woff")
    format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Moderat Extended Bold";
  src: url("/wp-content/themes/themebase/inc/assets/fonts/ModeratExtendedBold.woff")
    format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.swiper-yachts-widget {
  width: 100%;
}

.swiper-yachts-widget .swiper {
  padding: 10px 0 30px 0;
}

.yacht-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.yacht-card__media {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.yacht-card__media .swiper-yacht-gallery {
  width: 100%;
  height: 100%;
}

.yacht-card__media .swiper-yacht-gallery .swiper-slide {
  width: 100%;
  height: 100%;
}

.yacht-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.yacht-card__specs {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--grey);
  margin-bottom: 10px;
}

.yacht-card__specs .spec {
  font-family: "Moderat Extended Black";
  font-size: 18px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.spec__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.spec__icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.spec__value {
  color: var(--grey);
  font-family: "Moderat Extended Black";
}

.yacht-card__title {
  color: var(--blue);
}

.yacht-card__price {
  color: var(--gold);
}

.yacht-card__cta {
  margin-top: 16px;
}

/* Stile hov-btn per il widget yacht */
.yacht-card .hov-btn.learn-more {
  --circle-bg: var(--blue);
  --text-color: var(--blue);
  --hover-text-color: var(--white);
  --arrow-stroke: var(--white);
  --arrow-hover-bg: var(--white);
}

.yacht-card .hov-btn {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: 16px;
  font-family: inherit;
}

.yacht-card .hov-btn.learn-more {
  position: relative;
  width: auto !important;
  height: 3rem;
  padding: 0 1.5rem 0 4rem;
  overflow: visible !important;
}

.yacht-card .hov-btn.learn-more .circle {
  position: absolute !important;
  top: 0;
  left: 0;
  display: block;
  width: 3rem;
  height: 3rem;
  background: var(--circle-bg);
  border-radius: 1.625rem;
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}

.yacht-card .hov-btn.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: var(--arrow-stroke);
}

.yacht-card .hov-btn.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.yacht-card .hov-btn.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.25rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid var(--arrow-stroke);
  border-right: 0.125rem solid var(--arrow-stroke);
  transform: rotate(45deg);
}

.yacht-card .hov-btn.learn-more .button-text {
  position: relative !important;
  display: inline-block !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text-color);
  font-family: "Moderat Extended Bold";
  font-size: 15px;
  text-align: left;
  text-transform: uppercase;
  line-height: 3rem;
  white-space: nowrap;
}

.yacht-card .hov-btn:hover .circle {
  width: 100%;
}

.yacht-card .hov-btn:hover .circle .icon.arrow {
  background: var(--arrow-hover-bg);
  transform: translate(1rem, 0);
}

.yacht-card .hov-btn:hover .button-text {
  color: var(--hover-text-color);
}

/* Container scrollbar + navigation */
.swiper-yachts-widget .swiper-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

/* Scrollbar */
.swiper-yachts-widget .swiper-scrollbar {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--lightgrey);
  margin: 0;
  top: 2px;
  left: 0;
}

.swiper-yachts-widget .swiper-scrollbar-drag {
  background: var(--gold);
  height: 2px;
}

/* Navigation buttons container */
.swiper-yachts-widget .swiper-navigation {
  display: flex;
  align-items: center;
  gap: 0px;
  flex-shrink: 0;
}

/* Bottoni navigazione esterna */
.swiper-yachts-widget .yachts-outer-prev,
.swiper-yachts-widget .yachts-outer-next {
  position: static;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  margin: 0;
  transition: all 0.3s ease;
}

.swiper-yachts-widget .yachts-outer-prev:after,
.swiper-yachts-widget .yachts-outer-next:after {
  content: "";
  display: block;
  width: 11px;
  height: 22px;
  background-image: url('data:image/svg+xml;utf8,<svg width="11" height="22" viewBox="0 0 11 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.999939 20.6757L8.76299 11.6188C9.14818 11.1694 9.14818 10.5063 8.76299 10.0569L0.999938 0.999983" stroke="%23D6B35F" stroke-width="2" stroke-linecap="round"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.swiper-yachts-widget .yachts-outer-prev:after {
  transform: rotate(180deg);
}

.swiper-yachts-widget .yachts-outer-prev.swiper-button-disabled,
.swiper-yachts-widget .yachts-outer-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Bottoni gallery interna */
.swiper-yachts-widget .yacht-gallery-prev,
.swiper-yachts-widget .yacht-gallery-next {
  position: absolute;
  top: 53%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.swiper-yachts-widget .yacht-gallery-prev {
  left: 10px;
}

.swiper-yachts-widget .yacht-gallery-next {
  right: 10px;
}

.swiper-yachts-widget .yacht-gallery-prev:after,
.swiper-yachts-widget .yacht-gallery-next:after {
  content: "";
  display: block;
  width: 9px;
  height: 17px;
  background-image: url('data:image/svg+xml;utf8,<svg width="9" height="17" viewBox="0 0 9 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 16L7.36317 9.18232C7.72176 8.79811 7.72176 8.20189 7.36317 7.81768L1 1" stroke="%23FBF9F1" stroke-width="2" stroke-linecap="round"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.swiper-yachts-widget .yacht-gallery-prev:after {
  transform: rotate(180deg);
}

.swiper-yachts-widget .yacht-gallery-prev:hover,
.swiper-yachts-widget .yacht-gallery-next:hover {
  opacity: 0.7;
}

.swiper-yachts-widget .yacht-gallery-prev.swiper-button-disabled,
.swiper-yachts-widget .yacht-gallery-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
