/* Partner logos: airlines (dark band, two strips), car brands (one strip),
   bus companies (two strips), ferry companies (compact strip). Every logo
   sits in the same 180x84 card inside an endless sliding strip. */

.hm-marquee {
    --hm-mq-gap: 14px;
    position: relative;
    display: flex;
    overflow: hidden;
    padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hm-marquee + .hm-marquee {
    margin-top: 8px;
}
.hm-marquee-row {
    display: flex;
    flex: none;
    gap: var(--hm-mq-gap);
    margin: 0;
    padding: 0 var(--hm-mq-gap) 0 0;
    list-style: none;
    animation: hm-marquee var(--hm-mq-dur, 60s) linear infinite;
}
.hm-marquee--rev .hm-marquee-row {
    animation-direction: reverse;
}
.hm-marquee--second .hm-marquee-row {
    animation-delay: calc(var(--hm-mq-dur, 60s) / -3);
}
.hm-marquee:hover .hm-marquee-row,
.hm-marquee:focus-within .hm-marquee-row {
    animation-play-state: paused;
}
@keyframes hm-marquee {
    to {
        transform: translateX(-100%);
    }
}

.hm-logo {
    flex: none;
    width: 180px;
}
.hm-logo-in {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 84px;
    padding: 14px 22px;
    border: 1px solid var(--hm-line);
    border-radius: 18px;
    background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--hm-ease);
}
a.hm-logo-in:hover {
    border-color: #f1c6c1;
    box-shadow: var(--hm-shadow);
    transform: translateY(-3px);
}
.hm-logo-in img {
    width: auto;
    height: auto;
    max-width: 132px;
    max-height: 44px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}
.hm-logo-in:hover img,
a.hm-logo-in:focus-visible img {
    filter: none;
    opacity: 1;
}

/* --- airlines: dark band ------------------------------------------------- */
.hm-air-band {
    position: relative;
    padding: 34px 0 30px;
    border-radius: 28px;
    background:
        radial-gradient(700px 380px at 0% 0%, rgba(216, 41, 28, 0.26), transparent 65%),
        radial-gradient(600px 360px at 100% 100%, rgba(216, 41, 28, 0.3), transparent 65%),
        linear-gradient(160deg, #2a2422, #23201f 70%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hm-air-wm {
    right: 18%;
    top: -200px;
    color: #fff;
    opacity: 0.05;
}
.hm-air-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    padding: 0 40px;
    margin-bottom: 22px;
}
.hm-air-copy {
    max-width: 640px;
}
.hm-air-side {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: none;
}
.hm-air-count {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.05;
    text-align: right;
}
.hm-air-count b {
    font-family: var(--hm-display);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}
.hm-air-count span {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
}
.hm-air-strips {
    position: relative;
    z-index: 1;
}
.hm-air-strips .hm-logo-in {
    border-color: transparent;
    box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.7);
}
.hm-air-strips .hm-logo-in img {
    filter: none;
    opacity: 1;
}

/* --- ferry companies: compact strip ------------------------------------- */
.zr-home.zr-home > .hm-ferries {
    padding-top: 12px;
    padding-bottom: 12px;
}
.hm-ferry-strip {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 12px 12px 12px 22px;
    border: 1px solid var(--hm-line);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(216, 41, 28, 0.07), transparent 45%),
        #fff;
}
.hm-ferry-copy {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
    width: 330px;
}
.hm-ferry-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: var(--hm-tint);
    color: var(--hm-red);
}
.hm-ferry-t {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--hm-ink);
}
.hm-ferry-s {
    margin: 2px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hm-muted);
}
.hm-ferry-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: var(--hm-red);
    font-size: 13px;
    font-weight: 800;
}
.hm-marquee--compact {
    flex: 1;
    min-width: 0;
}
.hm-marquee--compact .hm-logo,
.hm-marquee--compact .hm-logo-in {
    width: 150px;
}
.hm-marquee--compact .hm-logo-in {
    height: 68px;
}

@media (max-width: 1199px) {
    .hm-air-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 24px;
    }
    .hm-ferry-strip {
        flex-wrap: wrap;
    }
    .hm-ferry-copy {
        width: auto;
    }
}

/* reduced motion: a still, horizontally scrollable row of the real logos */
@media (prefers-reduced-motion: reduce) {
    .hm-marquee {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .hm-marquee-row {
        animation: none !important;
    }
    .hm-marquee-row > li {
        scroll-snap-align: start;
    }
    .hm-marquee-row[aria-hidden="true"],
    .hm-marquee[aria-hidden="true"],
    .hm-marquee-row > [aria-hidden="true"] {
        display: none;
    }
}

/* editor marquee options (EDITOR_CONTRACT v3.2): only present when saved */
.hm-speed-slow .hm-marquee-row {
    animation-duration: calc(var(--hm-mq-dur, 60s) * 1.7);
}
.hm-speed-normal .hm-marquee-row {
    animation-duration: var(--hm-mq-dur, 60s);
}
.hm-speed-fast .hm-marquee-row {
    animation-duration: calc(var(--hm-mq-dur, 60s) * 0.55);
}
.hm-dir-left .hm-marquee-row {
    animation-direction: normal;
}
.hm-dir-left .hm-marquee--rev .hm-marquee-row {
    animation-direction: reverse;
}
.hm-dir-right .hm-marquee-row {
    animation-direction: reverse;
}
.hm-dir-right .hm-marquee--rev .hm-marquee-row {
    animation-direction: normal;
}
