/* ============================================================
   Fleet Chartering — interactive preview element
   ============================================================ */

/* Wrapper */
.fleet-chartering {
  width: 100%;
}

/* ── Stage (image area) ──────────────────────────────────── */

.fleet-chartering__stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: #163029;
  margin-bottom: 40px;
}

.fleet-chartering__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fleet-chartering__img.is-active {
  opacity: 1;
}

/* ── Overlay ─────────────────────────────────────────────── */

.fleet-chartering__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 40px 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.fleet-chartering__stage.is-hovering .fleet-chartering__overlay {
  opacity: 1;
  pointer-events: auto;
}

/* All name blocks sit in the same grid cell; active one fades in */
.fleet-chartering__overlay-left {
  display: grid;
  flex: 1;
  min-width: 0;
}

.fleet-chartering__name-block {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.fleet-chartering__name-block.is-active {
  opacity: 1;
  pointer-events: auto;
}

.fleet-chartering__ship-name {
  font-size: 1.75rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.2;
  padding: 0 6px 24px 0;
}

.fleet-chartering__ship-name strong {
  font-weight: 700;
}

.fleet-chartering__ship-class {
  font-size: 20px;
  color: #ffffff;
  margin: 0;
}

/* All specs blocks sit in same grid cell; active one fades in */
.fleet-chartering__overlay-right {
  display: grid;
  flex-shrink: 0;
}

.fleet-chartering__specs {
  grid-area: 1 / 1;
  display: flex;
  align-items: stretch;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.fleet-chartering__specs.is-active {
  opacity: 1;
  pointer-events: auto;
}

.fleet-chartering__spec {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 24px;
}

.fleet-chartering__spec:first-child {
  padding-left: 0;
}

.fleet-chartering__spec--border {
  border-left: 1px solid #ffffff;
}

.fleet-chartering__spec-label {
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.fleet-chartering__spec-value {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

/* ── Bottom row ──────────────────────────────────────────── */

.fleet-chartering__bottom {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding-top: 40px;
}

/* Optional content column */
.fleet-chartering__content {
  flex: 1 0 300px;
  max-width: 430px;
}

.fleet-chartering__heading {
  display: flex;
  flex-direction: column;
  font-size: 40px;
  line-height: 1.15;
  color: #3b3b3b;
  margin: 0 0 20px;
}

.fleet-chartering__heading-line {
  display: inline-block;
}

.fleet-chartering__description {
  font-size: 18px;
  color: #ffffff;
  line-height: 1.65;
  /* margin: 0 0 28px; */
}

.fleet-chartering__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.fleet-chartering__cta:hover {
  color: #ffffff;
}

.fleet-chartering__cta:hover .fleet-chartering__cta-arrow {
  background: #ffffff;
}
.fleet-chartering__cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #3b3b3b;
  background: #b7e5d2;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

/* Names grid */
.fleet-chartering__list-wrapper {
  display: flex;
  align-self: center;
  padding: 54px 0;
}

.fleet-chartering__list {
  flex: 1;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 21px 40px;
  align-content: start;
}

.fleet-chartering__list--full {
  grid-template-columns: repeat(4, 1fr);
}

.fleet-chartering__item {
  list-style: none !important;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;

  font-family: "Aptos";
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 120%;

  color: #ffffff;
}

.fleet-chartering__item strong {
  font-weight: 700;
}

.fleet-chartering__item:hover {
  color: #b7e5d2;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 998px) {
  .fleet-chartering__stage {
    aspect-ratio: 16 / 9;
  }

  .fleet-chartering__bottom {
    flex-direction: column;
    gap: 32px;
  }

  .fleet-chartering__content {
    flex: none;
    max-width: 100%;
    /* min-width: 430px; */
  }

  .fleet-chartering__list {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
}

@media screen and (max-width: 992px) {
  .fleet-chartering__list-wrapper {
    display: none;
  }
}

@media (max-width: 768px) {
  .fleet-chartering__stage {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .fleet-chartering__overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 24px 24px;
  }

  .fleet-chartering__ship-name {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    padding: 0;
  }

  .fleet-chartering__spec {
    padding: 0 16px;
  }

  .fleet-chartering__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .fleet-chartering__bottom {
    padding-top: 28px;
  }
}
