﻿
/* ==========================================
   SHIPTICKETS FERRY PARTNERS
   All custom classes use st-ferry prefix
========================================== */

.st-ferry-section {
    position: relative;
    overflow: hidden;
    padding: 55px 0 45px;
    background: radial-gradient(ellipse at 8% 30%, rgba(190, 232, 250, .35), transparent 36%), radial-gradient(ellipse at 92% 45%, rgba(207, 242, 250, .4), transparent 35%), linear-gradient(180deg, #f5fbff 0%, #ffffff 100%);
    font-family: Arial, Helvetica, sans-serif;
    color: #18364f;
}

.st-ferry-container {
    width: 100%;
    max-width: 1240px;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Heading */

.st-ferry-heading {
    max-width: 850px;
    margin: 0 auto 30px;
    padding: 0 12px;
    text-align: center;
}

.st-ferry-heading-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 15px;
    padding: 9px 18px;
    border: 1px solid #d9effb;
    border-radius: 50px;
    background: #e8f7ff;
    color: #087eac;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

    .st-ferry-heading-tag i {
        font-size: 15px;
    }

.st-ferry-heading-title {
    margin: 0 0 12px;
    color: #123a62;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.7px;
}

.st-ferry-heading-description {
    max-width: 690px;
    margin: 0 auto;
    color: #647b91;
    font-size: 16px;
    line-height: 1.75;
}

.st-ferry-heading-line {
    display: block;
    width: 55px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #08a5d1, #087db5);
}

/* Carousel wrapper */

.st-ferryCarousel {
    position: relative;
    padding: 0 0 48px;
}

    .st-ferryCarousel .carousel-inner {
        overflow: hidden;
        border-radius: 20px;
    }

    .st-ferryCarousel .carousel-item {
        padding: 0;
    }

/* Main card */

.st-ferry-card {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    gap: 30px;
    min-height: 440px;
    padding: 18px;
    border: 1px solid #e1edf6;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(30, 81, 119, .09);
    box-sizing: border-box;
}

/* Ferry image */

.st-ferry-visual {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    border-radius: 14px;
    background: #e4f4fb;
}

.st-ferry-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.st-ferry-card:hover .st-ferry-photo {
    transform: scale(1.035);
}

.st-ferry-visual::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 55%;
    background: linear-gradient( to bottom, transparent 0%, rgba(4, 30, 55, .75) 100% );
    content: "";
    pointer-events: none;
}

.st-ferry-popular {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 30px;
    background: rgba(10, 50, 84, .88);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.st-ferry-photo-caption {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 22px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #ffffff;
}

    .st-ferry-photo-caption span {
        font-size: 13px;
        font-weight: 500;
    }

    .st-ferry-photo-caption strong {
        font-size: 26px;
        font-weight: 800;
    }

/* Card details */

.st-ferry-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 12px 10px 8px 0;
}

.st-ferry-brand-row {
    display: flex;
    align-items: center;
    min-height: 60px;
    margin-bottom: 12px;
}

.st-ferry-brand-logo {
    display: block;
    width: auto;
    max-width: 210px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
    border-radius: 5px;
}

.st-ferry-title {
    margin: 0 0 10px;
    color: #153c66;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.35;
}

.st-ferry-description {
    margin: 0 0 16px;
    color: #657b91;
    font-size: 14px;
    line-height: 1.8;
}

/* Route information */

.st-ferry-route-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 19px;
    padding: 16px;
    border: 1px solid #e0f1f9;
    border-radius: 13px;
    background: linear-gradient(110deg, #edf9ff, #f4fbff);
}

.st-ferry-route-icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #d9f1ff;
    color: #087eac;
    font-size: 20px;
}

.st-ferry-route-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.st-ferry-route-label {
    color: #71879a;
    font-size: 12px;
}

.st-ferry-route-content strong {
    color: #20496c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

/* Benefits */

.st-ferry-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.st-ferry-benefit {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    padding: 13px 7px;
    border: 1px solid #edf3f7;
    border-radius: 12px;
    background: #f9fcfe;
    text-align: center;
}

    .st-ferry-benefit > span:last-child {
        color: #375872;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.5;
    }

.st-ferry-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 15px;
}

.st-ferry-icon-blue {
    background: #e0efff;
    color: #1677cc;
}

.st-ferry-icon-cyan {
    background: #dcf8fb;
    color: #079db3;
}

.st-ferry-icon-purple {
    background: #eee8ff;
    color: #7053d6;
}

/* Footer and CTA */

.st-ferry-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #edf2f6;
}

.st-ferry-footer-note {
    color: #648096;
    font-size: 12px;
    line-height: 1.6;
}

    .st-ferry-footer-note i {
        margin-right: 5px;
        color: #15a77a;
    }

.st-ferry-book-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 12px 17px;
    border: 1px solid #078bb8;
    border-radius: 9px;
    background: linear-gradient(135deg, #079fca, #087db4);
    box-shadow: 0 5px 13px rgba(8, 139, 184, .18);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

    .st-ferry-book-button:hover {
        transform: translateY(-2px);
        background: #086f9f;
        color: #ffffff !important;
    }

/* Carousel arrows */

.st-ferryCarousel .carousel-control-prev,
.st-ferryCarousel .carousel-control-next {
    top: 46%;
    bottom: auto;
    width: 44px;
    height: 44px;
    opacity: 1;
    text-decoration: none;
}

.st-ferryCarousel .carousel-control-prev {
    left: -57px;
}

.st-ferryCarousel .carousel-control-next {
    right: -57px;
}

.st-ferryCarousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e1edf6;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(17, 54, 80, .12);
    color: #087eac;
    font-size: 14px;
    transition: all .2s ease;
}

    .st-ferryCarousel-arrow:hover {
        border-color: #078bb8;
        background: #078bb8;
        color: #ffffff;
    }

/* Indicators */

.st-ferryCarousel .st-ferry-indicators {
    right: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

    .st-ferryCarousel .st-ferry-indicators li {
        width: 9px;
        height: 9px;
        margin: 0 5px;
        border: 0;
        border-radius: 20px;
        background: #c4d6e4;
        opacity: 1;
        cursor: pointer;
        transition: width .2s ease, background .2s ease;
    }

        .st-ferryCarousel .st-ferry-indicators li.active {
            width: 25px;
            background: #079ac4;
        }

/* Partner tiles */

.st-ferry-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.st-ferry-partner-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    min-height: 105px;
    padding: 17px;
    border: 1px solid #e4edf5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(30, 81, 119, .035);
    text-align: center;
    transition: border-color .2s ease, transform .2s ease;
}

    .st-ferry-partner-tile:hover {
        transform: translateY(-3px);
        border-color: #a9dcec;
    }

    .st-ferry-partner-tile img {
        display: block;
        width: auto;
        max-width: 100%;
        height: 43px;
        object-fit: contain;
    }

    .st-ferry-partner-tile span {
        color: #315570;
        font-size: 12px;
        font-weight: 700;
    }

.st-ferry-partner-text i {
    color: #078bb8;
    font-size: 32px;
}

.st-ferry-disclaimer {
    margin: 20px 0 0;
    color: #8395a4;
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

/* Tablet */

@media (max-width: 991px) {
    .st-ferry-section {
        padding: 42px 0 35px;
    }

    .st-ferry-container {
        padding-right: 25px;
        padding-left: 25px;
    }

    .st-ferry-heading-title {
        font-size: 31px;
    }

    .st-ferry-card {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        gap: 20px;
        padding: 14px;
    }

    .st-ferry-visual,
    .st-ferry-photo {
        min-height: 390px;
    }

    .st-ferry-details {
        padding-right: 4px;
    }

    .st-ferry-title {
        font-size: 20px;
    }

    .st-ferry-description {
        font-size: 13px;
    }

    .st-ferry-route-box {
        padding: 12px;
    }

    .st-ferry-benefits {
        gap: 6px;
    }

    .st-ferry-benefit {
        padding: 10px 4px;
    }

    .st-ferry-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .st-ferryCarousel .carousel-control-prev {
        left: -19px;
    }

    .st-ferryCarousel .carousel-control-next {
        right: -19px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .st-ferry-section {
        padding: 34px 0 30px;
    }

    .st-ferry-container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .st-ferry-heading {
        margin-bottom: 23px;
        padding: 0 5px;
    }

    .st-ferry-heading-tag {
        margin-bottom: 12px;
        padding: 8px 13px;
        font-size: 10px;
    }

    .st-ferry-heading-title {
        font-size: 27px;
        letter-spacing: -.4px;
    }

    .st-ferry-heading-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .st-ferryCarousel {
        padding-bottom: 38px;
    }

        .st-ferryCarousel .carousel-inner {
            border-radius: 16px;
        }

    .st-ferry-card {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 11px;
        border-radius: 16px;
    }

    .st-ferry-visual {
        min-height: 0;
        height: 235px;
        flex: none;
    }

    .st-ferry-photo {
        min-height: 0;
        height: 235px;
    }

    .st-ferry-photo-caption {
        right: 15px;
        bottom: 16px;
        left: 15px;
    }

        .st-ferry-photo-caption strong {
            font-size: 23px;
        }

    .st-ferry-popular {
        top: 12px;
        left: 12px;
        padding: 8px 11px;
        font-size: 11px;
    }

    .st-ferry-details {
        padding: 17px 5px 5px;
    }

    .st-ferry-brand-row {
        min-height: 45px;
        margin-bottom: 10px;
    }

    .st-ferry-brand-logo {
        max-width: 175px;
        height: 44px;
    }

    .st-ferry-title {
        font-size: 19px;
    }

    .st-ferry-description {
        margin-bottom: 14px;
        font-size: 13px;
        line-height: 1.7;
    }

    .st-ferry-route-box {
        gap: 10px;
        margin-bottom: 14px;
        padding: 12px;
    }

    .st-ferry-route-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .st-ferry-route-content strong {
        font-size: 12px;
    }

    .st-ferry-benefits {
        gap: 7px;
        margin-bottom: 15px;
    }

    .st-ferry-benefit {
        gap: 7px;
        padding: 10px 4px;
    }

    .st-ferry-benefit-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .st-ferry-benefit > span:last-child {
        font-size: 10px;
    }

    .st-ferry-card-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding-top: 14px;
    }

    .st-ferry-book-button {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
    }

    .st-ferryCarousel .carousel-control-prev,
    .st-ferryCarousel .carousel-control-next {
        top: 93px;
        width: 35px;
        height: 35px;
    }

    .st-ferryCarousel .carousel-control-prev {
        left: 7px;
    }

    .st-ferryCarousel .carousel-control-next {
        right: 7px;
    }

    .st-ferryCarousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 11px;
    }

    .st-ferry-partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .st-ferry-partner-tile {
        min-height: 95px;
        padding: 13px 8px;
    }

        .st-ferry-partner-tile img {
            height: 37px;
        }

        .st-ferry-partner-tile span {
            font-size: 11px;
        }

    .st-ferry-disclaimer {
        margin-top: 15px;
        font-size: 10px;
    }
}

/* Small phones */

@media (max-width: 380px) {
    .st-ferry-heading-title {
        font-size: 24px;
    }

    .st-ferry-visual,
    .st-ferry-photo {
        height: 205px;
    }

    .st-ferry-benefits {
        grid-template-columns: 1fr;
    }

    .st-ferry-benefit {
        flex-direction: row;
        justify-content: flex-start;
        padding: 9px 12px;
        text-align: left;
    }

        .st-ferry-benefit > span:last-child {
            font-size: 11px;
        }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .st-ferry-photo,
    .st-ferry-book-button,
    .st-ferry-partner-tile,
    .st-ferryCarousel-arrow {
        transition: none;
    }
}
