/* Listing card — sibling style toggles, overlaid on the featured image.
   Loaded from header.php alongside the main stylesheet. */

/* Don't scale the whole card on hover — the non-integer scale lands text
   on subpixel boundaries and the browser can't render it sharply. Only the
   featured image zooms. The existing box-shadow on .card-zoom-border still
   gives the "lift" feedback. */
.card-zoom:hover {
    transform: none;
}


.card .card-image {
    position: relative;
    overflow: hidden;
}

.card .card-image .card-featured-image {
    transition: opacity .2s ease-in-out, transform .5s ease-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-zoom:hover .card-zoom-img,
.card-zoom:hover.card-zoom-img {
    transform: scale(1.08);
}

/* Shadow is applied to the flip wrapper itself — if put on
   .card-zoom-border (inside .card-flip), the 3D perspective context
   of .card-flip clips the shadow so it never appears. */
/* Match .rounded-tl-lg on the inner card so the shadow follows the
   curved top-left corner. Doesn't affect visible geometry — the child
   has its own border-radius. */
.card-zoom {
    border-top-left-radius: 50px;
    transition: box-shadow .3s ease-in-out, transform .3s ease-in-out;
}

.card-zoom:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.card .card-image .card-specification-toggles {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    z-index: 2;
    max-width: calc(100% - 20px);
}

.card .card-image .card-spec-toggle {
    cursor: pointer;
    background: rgba(40, 40, 40, 0.72);
    color: #fff;
    border: 0;
    outline: 0;
    /*padding: 5px 12px;*/
    font-weight: 600;
    font-size: 12px;
    border-radius: 4px;
    transition: background .2s ease-in-out;
    line-height: 1.2;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    white-space: nowrap;
}

.card .card-image .card-spec-toggle:focus,
.card .card-image .card-spec-toggle:focus-visible,
.card .card-image .card-spec-toggle:active {
    outline: 0;
    box-shadow: none;
}

.card .card-image .card-spec-toggle:hover {
    background: rgba(0, 64, 168, 0.9);
}

.card .card-image .card-spec-toggle.active {
    background: #00AEC7;
    color: #fff;
}
