.city-box-card,
.city-box-card * {
    box-sizing: border-box;
}

.city-box-card {
    position: relative;
    display: block;
    width: 100%;
    min-width: 258px;
    max-width: 330px;
    flex: 1;
}

.city-box-card__link {
    position: relative;
    display: block;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 1.22 / 1;
    overflow: hidden;
    isolation: isolate;
    border-radius: 13px;
    background: #0c5262;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(6, 61, 75, 0.08);
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow 320ms ease, transform 320ms ease;
}

.city-box-card__visual {
    position: absolute;
    z-index: -3;
    inset: 0;
    display: block;
    background-color: #8ec7df;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 650ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.city-box-card__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 64px;
}

.city-box-card__shade {
    position: absolute;
    z-index: -2;
    inset: 0;
    display: block;
    background:
        linear-gradient(180deg, rgba(5, 55, 68, 0) 35%, rgba(4, 53, 67, 0.18) 55%, rgba(2, 51, 64, 0.94) 100%),
        linear-gradient(90deg, rgba(3, 48, 61, 0.14), transparent 55%);
    pointer-events: none;
}

.city-box-card__floating-icon {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 15px;
    display: inline-flex;
    width: 55px;
    height: 55px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #0a4d5c;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(5, 52, 66, 0.11);
    backdrop-filter: blur(5px);
    transition: color 260ms ease, background-color 260ms ease, transform 260ms ease;
}

.city-box-card__floating-icon svg,
.city-box-card__floating-icon img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.city-box-card__floating-icon svg {
    fill: none;
    stroke: currentColor;
}

.city-box-card__content {
    position: absolute;
    z-index: 2;
    right: 23px;
    bottom: 21px;
    left: 78px;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.city-box-card__title {
    display: block;
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.city-box-card__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.city-box-card__arrow {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    left: 20px;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #ff642f;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(4, 48, 61, 0.14);
    transition: color 260ms ease, background-color 260ms ease, transform 260ms ease;
}

[dir="ltr"] .city-box-card__floating-icon {
    right: auto;
    left: 15px;
}

[dir="ltr"] .city-box-card__content {
    right: 78px;
    left: 23px;
    text-align: left;
}

[dir="ltr"] .city-box-card__arrow {
    right: 20px;
    left: auto;
}

[dir="ltr"] .city-box-card__arrow i {
    transform: scaleX(-1);
}

.city-box-card:is(:hover, :focus-within, .hovered) .city-box-card__link {
    box-shadow: 0 20px 38px rgba(5, 59, 72, 0.2);
    transform: translateY(-6px);
}

.city-box-card:is(:hover, :focus-within, .hovered) .city-box-card__visual {
    transform: scale(1.065);
}

.city-box-card:is(:hover, :focus-within, .hovered) .city-box-card__floating-icon {
    background: #ff642f;
    color: #fff;
    transform: rotate(-7deg);
}

.city-box-card:is(:hover, :focus-within, .hovered) .city-box-card__arrow {
    background: #ff642f;
    color: #fff;
    transform: translateX(-3px);
}

.city-box-card__link:focus-visible {
    outline: 3px solid #ff642f;
    outline-offset: 4px;
}

@media (max-width: 1200px) {
    .city-box-card__link {
        min-height: 255px;
    }
}

@media (max-width: 1024px) {
    .city-box-card__link {
        min-height: 300px;
        aspect-ratio: 1.35 / 1;
    }
}

@media (max-width: 849px) {
    .city-box-card {
    max-width: 100%;
}
}

@media (max-width: 600px) {
    .city-box-card__link {
        min-height: 275px;
        aspect-ratio: 1.25 / 1;
    }

    .city-box-card__floating-icon {
        width: 48px;
        height: 48px;
        font-size: 26px;
    }

    .city-box-card__floating-icon svg,
    .city-box-card__floating-icon img {
        width: 20px;
        height: 20px;
    }

    .city-box-card__content {
        right: 18px;
        bottom: 18px;
        left: 70px;
    }

    .city-box-card__title {
        font-size: 19px;
    }

    .city-box-card__arrow {
        bottom: 16px;
        left: 16px;
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .city-box-card__link,
    .city-box-card__visual,
    .city-box-card__floating-icon,
    .city-box-card__arrow {
        transition: none;
    }

    .city-box-card:is(:hover, :focus-within, .hovered) .city-box-card__link,
    .city-box-card:is(:hover, :focus-within, .hovered) .city-box-card__visual,
    .city-box-card:is(:hover, :focus-within, .hovered) .city-box-card__floating-icon,
    .city-box-card:is(:hover, :focus-within, .hovered) .city-box-card__arrow {
        transform: none;
    }
}