@import "./service-index.css";

/* Rental service heroes share one consistent half-viewport frame. */
.v2-service-hero.v2-service-hero--rental {
    height: calc(50vh + 7.75rem);
}

@media (max-width: 760px) {
    .v2-service-hero.v2-service-hero--rental {
        height: calc(50svh + 4.7rem);
    }
}

/* Three featured boats use a concise, image-first rental card. */
.v2-ship-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.v2-ship-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e1e8f1;
    border-radius: 1rem;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
}

.v2-ship-card-media {
    position: relative;
    height: clamp(14rem, 20vw, 20rem);
    min-height: 0;
    overflow: hidden;
    background: #edf3fb;
}

.v2-ship-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-ship-card-media > span {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #3866d4;
    font-size: 0.72rem;
    font-weight: 700;
}

.v2-ship-card-body {
    display: grid;
    flex: 1;
    gap: 0.8rem;
    padding: 1rem;
}

.v2-ship-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
}

.v2-ship-card-heading small,
.v2-ship-card-price > span {
    color: #7b8ba2;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
}

.v2-ship-card-heading h3 {
    margin: 0.3rem 0 0;
    color: #20375c;
    font-family: "Manrope", "Plus Jakarta Sans", sans-serif;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.25;
}

.v2-ship-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #e5a83a;
    font-size: 0.72rem;
    white-space: nowrap;
}

.v2-ship-card-rating small {
    color: #8796ab;
    font-size: inherit;
}

.v2-ship-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    color: #6d809e;
    font-size: 0.73rem;
}

.v2-ship-card-meta > span + span::before {
    display: inline-block;
    width: 0.24rem;
    height: 0.24rem;
    margin-right: 0.6rem;
    border-radius: 50%;
    background: #c5d1e3;
    content: "";
    vertical-align: middle;
}

.v2-ship-card-meta i {
    margin-right: 0.3rem;
    color: #6281cf;
}

.v2-ship-card-meta strong {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 0.35rem 0.52rem;
    border: 1px solid #e2e9f3;
    border-radius: 999px;
    color: #546987;
    font-size: 0.7rem;
    font-weight: 600;
}

.v2-ship-card-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2rem 0.38rem;
    margin-top: auto;
    padding-top: 0.78rem;
    border-top: 1px solid #edf1f6;
}

.v2-ship-card-price > span {
    flex-basis: 100%;
}

.v2-ship-card-price strong {
    color: #285ac5;
    font-family: "Manrope", "Plus Jakarta Sans", sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.v2-ship-card-price small {
    color: #71829a;
    font-size: 0.72rem;
}

@media (max-width: 1100px) {
    .v2-ship-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v2-ship-card-media {
        height: clamp(14rem, 34vw, 18rem);
    }
}

@media (max-width: 640px) {
    .v2-ship-card-grid {
        grid-template-columns: 1fr;
    }
}
