.services-filter-card {
    border-radius: 18px;
    border: 1px solid rgba(var(--brand-start-rgb), 0.16);
    background: linear-gradient(180deg, rgba(var(--surface-color-rgb), 0.96), rgba(var(--surface-muted-rgb), 0.9));
    backdrop-filter: blur(6px);
}

.detect-location-btn {
    border-color: var(--border-color);
    color: var(--text-color);
    font-weight: 600;
}

.detect-location-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-hover);
    background: var(--primary-soft);
}

.nearby-active-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-strong);
    font-size: 0.86rem;
    font-weight: 500;
}

.spin {
    animation: servicesSpin 1s linear infinite;
}

.service-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.service-card .card-body {
    padding: 1.15rem 1rem 0.75rem;
}

.service-description {
    line-height: 1.55;
    margin-bottom: 0.9rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-rating .bi-star-fill {
    color: #f59e0b;
}

.service-distance {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-strong);
    font-size: 0.84rem;
    font-weight: 600;
    background: var(--primary-soft);
    border: 1px solid var(--primary-soft-border);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.service-rating-value {
    font-weight: 700;
    color: var(--heading-color);
}

.service-rating-count {
    color: var(--muted-text);
}

.service-rating-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-left: 0.15rem;
}

.service-rating-link:visited,
.service-rating-link:hover,
.service-rating-link:active,
.service-rating-link:focus {
    text-decoration: none;
}

.service-rating-link:hover .service-rating-value,
.service-rating-link:hover .service-rating-count {
    color: var(--brand-start);
}

.service-rating-link:hover {
    text-decoration: none;
}

.service-rating-link:focus-visible {
    outline: 2px solid rgba(var(--brand-start-rgb), 0.35);
    border-radius: 4px;
    padding: 0 2px;
}

.service-rating-link:hover .service-rating-count {
    font-weight: 600;
}

.service-card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
}

.service-image.placeholder {
    height: 200px;
    width: 100%;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 1.05rem;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.price-badge {
    background: var(--brand-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(181, 96, 30, 0.3);
}

.page-header {
    background: var(--brand-gradient);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 50px;
}

.btn-primary {
    background: var(--brand-gradient);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(var(--brand-start-rgb), 0.28);
}

.category-badge {
    background: var(--surface-muted);
    color: var(--brand-start);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.3rem;
    display: inline-block;
}

@media (max-width: 767.98px) {
    .service-card .card-body {
        padding: 1rem 0.95rem 0.65rem;
    }

    .service-card-footer {
        padding-top: 0.75rem;
    }

    .nearby-active-note {
        margin-top: 0.25rem;
    }
}

@keyframes servicesSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
