/*
 * Tarjeta reutilizable de propiedades de Alohando.
 * Primera implementación: home. No reutilizar las clases antiguas .card-1.
 */
.alo-property-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e8ebee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 42, 52, .07);
    isolation: isolate;
}

.alo-property-card__front {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    transition: transform .34s cubic-bezier(.22, .8, .25, 1);
    will-change: transform;
}

.alo-property-card__media {
    position: relative;
    height: 208px;
    overflow: hidden;
    background: #edf0f2;
}

.alo-property-card__image-link,
.alo-property-card__image-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.alo-property-card__image-link img {
    object-fit: cover;
    transition: transform .35s ease;
}

.alo-property-card:hover .alo-property-card__image-link img {
    transform: scale(1.025);
}

.alo-property-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 7px;
    background: #707070c4;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1;
    text-transform: uppercase;
    border-color: #ffffff8c;
    border-style: dashed;
    border-width: 0.01px;
    box-shadow: 8px 1px 10px -5px rgba(0, 0, 0, 0.25);
}

.alo-property-card__save {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(84, 83, 83, 0.53);
    box-shadow: 0 3px 10px rgba(22, 29, 36, .13);
    color: #fff;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.alo-property-card__photo-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(84, 83, 83, 0.53);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.alo-property-card__photo-count svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

.alo-property-card__save:hover,
.alo-property-card__save:focus-visible {
    background: #ff4b39;
    color: #fff;
    outline: 0;
    transform: scale(1.06);
}

.alo-property-card__save svg {
    display: block;
    width: 20px;
    height: 20px;
}

.alo-property-card__save.is-saved {
    color: #ff4b39;
}

.alo-property-card__save.is-saved svg {
    fill: currentColor;
}

.alo-property-card__body {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 15px 16px 14px;
}

.alo-property-card__title {
    overflow: hidden;
    color: #20252a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alo-property-card__title:hover,
.alo-property-card__title:focus-visible {
    color: #ff4b39;
    text-decoration: none;
    outline: 0;
}

.alo-property-card__capacity {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
    margin: 6px 0 0;
    color: #737b84;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.alo-property-card__capacity span {
    color: #b1b6bc;
}

.alo-property-card__location-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    margin: 0 0 10px;
}

.alo-property-card__location,
.alo-property-card__rating {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: #5e6670;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.alo-property-card__location {
    gap: 5px;
    overflow: hidden;
}

.alo-property-card__location svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    color: #ff4b39;
}

.alo-property-card__location span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alo-property-card__rating {
    flex: 0 0 auto;
    gap: 4px;
    color: #32373d;
}

.alo-property-card__rating svg {
    width: 18px;
    height: 18px;
    color: #ffba08;
    margin-right: -4px;
    margin-top: -2px;
}

.alo-property-card__footer {
    display: flex;
    align-items: baseline;
    min-height: 25px;
    margin-top: 25px;
    padding-top: 16px;
    border-top: 1px solid #eef0f2;
}

.alo-property-card__price {
    color: #ff4b39;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.alo-property-card__night {
    margin-left: 5px;
    color: #737b84;
    font-size: 11px;
    font-weight: 600;
}

.alo-property-card__reveal,
.alo-property-card__reveal-trigger {
    display: none;
}

@media (min-width: 768px) {
    .alo-property-card:focus-within {
        border-color: #ffd1cb;
        box-shadow: 0 10px 28px rgba(31, 42, 52, .1);
    }
}

@media (max-width: 767px) {
    .alo-property-card {
        min-height: 419px;
        border-radius: 10px;
        touch-action: pan-y;
    }

    .alo-property-card__media {
        height: 244px;
    }

    .alo-property-card__body {
        min-height: 175px;
        padding: 14px 15px 13px;
    }

    .alo-property-card__title {
        font-size: 15px;
    }

    .alo-property-card__reveal {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        width: 82%;
        padding: 19px 17px 16px 29px;
        background: linear-gradient(140deg, #fff 0%, #fff8f7 100%);
        color: #31363b;
    }

    .alo-property-card.is-revealed .alo-property-card__front {
        transform: translateX(-82%);
    }

    .alo-property-card__reveal-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .alo-property-card__reveal-kicker {
        color: #ff4b39;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .alo-property-card__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 31px;
        height: 31px;
        padding: 0;
        border: 1px solid #f0d5d1;
        border-radius: 50%;
        background: #fff;
        color: #ff4b39;
        cursor: pointer;
    }

    .alo-property-card__close svg {
        display: block;
        width: 17px;
        height: 17px;
    }

    .alo-property-card__summary {
        display: -webkit-box;
        overflow: hidden;
        margin: 16px 0 12px;
        color: #6c737b;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.58;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 9;
    }

    .alo-property-card__detail-icons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 0;
        padding-top: 13px;
        border-top: 1px solid #f0dedb;
    }

    .alo-property-card__detail-icon {
        display: flex;
        align-items: center;
        gap: 7px;
        color: #555d66;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.3;
    }

    .alo-property-card__detail-icon svg {
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        color: #ff4b39;
    }

    .alo-property-card__reveal-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-top: 8px;
        color: #ff4b39;
        font-size: 11px;
        font-weight: 500;
        text-decoration: none;
    }

    .alo-property-card__reveal-link svg {
        width: 14px;
        height: 14px;
    }

    .alo-property-card__reveal-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        margin-left: auto;
        padding: 0;
        border: 1px solid #f0d5d1;
        border-radius: 50%;
        background: #fffaf9;
        color: #ff4b39;
        cursor: pointer;
    }

    .alo-property-card__reveal-trigger svg {
        display: block;
        width: 15px;
        height: 15px;
    }

    .alo-property-card__save {
        width: 36px;
        height: 36px;
    }

    .alo-property-card__badge {
        top: 16px;
        left: 12px;
    }
}

@media (max-width: 390px) {
    .alo-property-card {
        min-height: 400px;
    }

    .alo-property-card__media {
        height: 226px;
    }

    .alo-property-card__capacity {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alo-property-card__front,
    .alo-property-card__image-link img,
    .alo-property-card__save {
        transition: none;
    }
}
