/* ── Escort cards (template-parts/escort-list.php) ────────────────────────────
   One template drives every card grid: homepage, city/service pages, search
   and the "more escorts" row on profiles. This sheet brings the cards closer
   to the redesign kit without touching their content, links or order:

     - rounded frame with a purple hairline and a hover lift + glow;
     - the availability strip becomes a dark glass pill with a green dot;
     - the name sits on one line (ellipsis), so the zone line under it is no
       longer pushed out of the 46px info strip.

   The plan / NUEVO / VIDEO badges are pills too; the verified tick is still
   the legacy icon with its inline positioning.

   Loaded after legacy-dark.css. `!important` only where escort-list.php
   carries an inline style on the element.
   ──────────────────────────────────────────────────────────────────────────── */

/* ── Frame ────────────────────────────────────────────────────────────────── */

.escort-item .escort-item-internal {
    border: 1px solid rgb(var(--brand-purpleL-rgb) / .15);
    border-radius: 12px;
    background: var(--brand-card);
    transition: transform .25s ease-out, box-shadow .25s ease, border-color .25s ease;
}

.escort-item .escort-item-internal:hover {
    transform: translateY(-4px);
    border-color: rgb(var(--brand-purpleL-rgb) / .45);
    box-shadow: 0 12px 32px rgb(var(--brand-purple-rgb) / .35);
}

/* The photo had its own pinkish border inside the frame. */
.escort-item svg.hidden-background {
    border: 0;
}

/* ── Availability pill ────────────────────────────────────────────────────── */

/* Not a direct child of .escort-item-internal: the name link is an <a> nested
   inside the card's <a>, and the parser splits the outer one around it. */
.escort-item .evas-card-avail {
    position: absolute;
    left: 8px;
    bottom: calc(13% + 8px);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 16px);
    padding: 4px 10px 4px 8px;
    border: 1px solid rgb(var(--status-avail-rgb) / .45);
    border-radius: 9999px;
    background: rgb(13 8 23 / .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* style.css starts the name strip at top:80% (not 87%) up to 812px wide, so
   the pill has to sit higher there to clear the name. */
@media only screen and (max-width: 812px) {
    .escort-item .evas-card-avail {
        bottom: calc(20% + 8px);
    }
}

.escort-item .evas-card-avail::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-avail);
    box-shadow: 0 0 0 3px rgb(var(--status-avail-rgb) / .25);
}

/* Not available: same pill, red dot (the kit's "No disponible" status).
   Replaces the grey "offline" image that was loaded from evas.mx. */
.escort-item .evas-card-avail--off {
    border-color: rgb(var(--status-unavail-rgb) / .45);
}

.escort-item .evas-card-avail--off::before {
    background: var(--status-unavail);
    box-shadow: 0 0 0 3px rgb(var(--status-unavail-rgb) / .22);
}

.escort-item .evas-card-avail p {
    margin: 0;
    color: #fff;
    font-family: 'BDO Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Plan / Nuevo / Video pills ───────────────────────────────────────────── */

/* Top-right stack, where the gold/silver/bronze, new and video images were.
   header.php orders the grid gold → silver → bronze from the card's
   data-plan, not from these. */
.escort-item .evas-card-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    pointer-events: none;
}

.escort-item .evas-card-badge {
    --badge-rgb: var(--brand-purpleL-rgb);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border: 1px solid rgb(var(--badge-rgb) / .55);
    border-radius: 9999px;
    /* Tint over a dark base, so the label reads on light photos too. */
    background:
        linear-gradient(rgb(var(--badge-rgb) / .3), rgb(var(--badge-rgb) / .3)),
        rgb(13 8 23 / .6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: 'BDO Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.escort-item .evas-card-badge svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* Two-column phone grids: a step smaller so the stack stays in its corner. */
@media only screen and (max-width: 575.98px) {
    .escort-item .evas-card-badge {
        gap: 4px;
        height: 22px;
        padding: 0 9px;
        font-size: 11px;
    }

    .escort-item .evas-card-badge svg {
        width: 11px;
        height: 11px;
    }
}

.escort-item .evas-card-badge--gold   { --badge-rgb: var(--brand-gold-rgb); }
.escort-item .evas-card-badge--silver { --badge-rgb: 203 213 225; }
.escort-item .evas-card-badge--bronze { --badge-rgb: 205 127 50; }

.escort-item .evas-card-badge--gold svg   { color: var(--brand-gold); }
.escort-item .evas-card-badge--silver svg { color: #e2e8f0; }
.escort-item .evas-card-badge--bronze svg { color: #e8a66a; }

.escort-item .evas-card-badge--new {
    --badge-rgb: var(--brand-purple-rgb);
}

.escort-item .evas-card-badge--video {
    --badge-rgb: var(--brand-purpleL-rgb);
    border-color: rgb(var(--brand-purpleL-rgb) / .3);
    background: rgb(13 8 23 / .65);
}

.escort-item .evas-card-badge--video svg {
    color: var(--brand-purpleL);
}

/* ── Name + zone strip ────────────────────────────────────────────────────── */

/* style.css sets `*:not(i){font-family:'Roboto'}`, so the font has to be
   asserted on the descendants too. */
.escort-item .escort-info-header-left,
.escort-item .escort-info-header-left * {
    font-family: 'BDO Grotesk', sans-serif;
}

.escort-item .escort-item-internal .escort-info-container .escort-info-header .escort-info-header-left {
    color: var(--brand-muted);
    font-size: 12px;
    line-height: 1.35;
    padding-top: 8px;
    padding-left: 10px;
}

/* The divider pip and the <br> between name and zone: the name is now a block. */
.escort-item .escort-item-internal .escort-info-container .escort-info-header .escort-info-header-left:before,
.escort-item .escort-info-header-left br {
    display: none;
}

.escort-item .escort-info-header-link {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--brand-text) !important;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

/* ── Heart button ─────────────────────────────────────────────────────────── */

/* The inline script in escort-list.php swaps the icon between .fa-heart-o and
   .fa-heart on click; only the look changes here. */
.escort-item .escort-item-internal .escort-info-container .escort-info-header .escort-info-header-right {
    display: flex;
    justify-content: center;
    padding: 9px 0 0;
}

.escort-item .btn-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid rgb(var(--brand-purpleL-rgb) / .18);
    border-radius: 50%;
    background: var(--brand-card2);
    cursor: pointer;
    transition: transform .18s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.escort-item .btn-heart:hover {
    transform: scale(1.08);
    border-color: rgb(var(--brand-purpleL-rgb) / .5);
    background: rgb(var(--brand-purple-rgb) / .18);
}

.escort-item .btn-heart i {
    color: var(--brand-purpleL);
    font-size: 13px;
    line-height: 1;
}

/* Filled: purple disc, solid heart and a small pop when it appears. */
.escort-item .btn-heart:has(.fa-heart) {
    border-color: rgb(var(--brand-purpleL-rgb) / .6);
    background: rgb(var(--brand-purple-rgb) / .3);
    box-shadow: 0 0 12px rgb(var(--brand-purple-rgb) / .45);
}

.escort-item .btn-heart .fa-heart {
    color: #fff;
    animation: evas-heart-pop .3s ease-out;
}

@keyframes evas-heart-pop {
    0%   { transform: scale(.6); }
    60%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* The heart column is 15% of the card: ~25px on two-column phone grids. */
@media only screen and (max-width: 812px) {
    .escort-item .btn-heart {
        width: 24px;
        height: 24px;
    }

    .escort-item .btn-heart i {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .escort-item .btn-heart,
    .escort-item .btn-heart .fa-heart {
        transition: none;
        animation: none;
    }
}
