.therapist-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 0;
}

.therapist-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.therapist-card span,
.therapist-card div,
.therapist-card h3 {
    text-decoration: none;
}

.therapist-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(255, 42, 122, 0.12);
}

.therapist-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 280 / 432;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 20px 20px 0 0;
}

.therapist-card-image-wrapper > a {
    display: block;
    width: 100%;
    height: 100%;
}

.therapist-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.therapist-card-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.therapist-card-favorite:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
    background: #fff;
}

.therapist-card-favorite:active {
    transform: scale(0.95);
}

.therapist-card-favorite i {
    font-size: 16px;
    color: #999;
    transition: color 0.2s ease;
}

.therapist-card-favorite i.bi-heart-fill {
    color: var(--primary-color);
}

.therapist-card-favorite:hover i {
    color: var(--primary-color);
}

.therapist-card-area-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    z-index: 3;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.therapist-card-rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
    border-bottom-right-radius: 12px;
}

.therapist-card-review-badge {
    position: absolute;
    bottom: 28px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    z-index: 3;
}

.therapist-card-review-badge i {
    font-size: 13px;
    color: #FFD700;
}

.therapist-card-review-badge.review-wanted {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 42, 122, 0.5);
    color: #ff2a7a;
    box-shadow: 0 2px 8px rgba(255, 42, 122, 0.15);
}
.therapist-card-review-badge.review-wanted i {
    color: #ff2a7a;
}

.therapist-card-specs-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 10px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.therapist-card-specs-gradient span {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.therapist-card-info {
    display: block;
    padding: 12px 14px 14px;
    background: transparent;
    text-decoration: none;
    color: inherit;
}

.therapist-card-info:hover {
    text-decoration: none;
}

.therapist-card-shop-name {
    font-size: 12px;
    font-weight: 500;
    color: #777;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.therapist-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.therapist-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.therapist-card-tag {
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.therapist-card-tag.premium {
    background: rgba(255, 42, 122, 0.06);
    color: var(--primary-color);
    border: 1px solid rgba(255, 42, 122, 0.15);
}

.therapist-card-tag.recommend {
    background: rgba(76, 175, 80, 0.06);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.15);
}

.therapist-card-tag.category {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bg-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.bg-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
}

.bg-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
}

.bg-rank-default {
    background: #666;
}

@media (min-width: 1400px) {
    .therapist-cards-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
}

@media (max-width: 1399.98px) {
    .therapist-cards-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

@media (max-width: 1199.98px) {
    .therapist-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 991.98px) {
    .therapist-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .therapist-card-info {
        padding: 10px 12px;
    }
}

@media (max-width: 575.98px) {
    .therapist-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .therapist-card {
        border-radius: 16px;
    }

    .therapist-card-image-wrapper {
        border-radius: 16px 16px 0 0;
    }

    .therapist-card-info {
        padding: 8px 10px 10px;
    }

    .therapist-card-name {
        font-size: 14px;
    }

    .therapist-card-shop-name {
        font-size: 12px;
    }

    .therapist-card-specs-gradient span {
        font-size: 10px;
    }

    .therapist-card-review-badge {
        bottom: 24px;
        padding: 3px 8px;
        font-size: 10px;
    }

    .therapist-card-review-badge i {
        font-size: 11px;
    }

    .therapist-card-area-badge {
        top: 8px;
        left: 8px;
        padding: 3px 10px;
        font-size: 10px;
    }

    .therapist-card-favorite {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
    }

    .therapist-card-favorite i {
        font-size: 14px;
    }
}

@media (hover: none) {
    .therapist-card:hover {
        transform: none;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    }

    .therapist-card:active {
        transform: scale(0.97);
        border-color: rgba(255, 42, 122, 0.15);
    }
}
