/* Nice Homes Realtors — services listing & detail */

/* Listing intro */
.nhr-services-section {
    padding-top: 70px;
}

.nhr-services-intro {
    max-width: 760px;
    margin: 0 auto 48px;
}

.nhr-services-intro .sec-text {
    max-width: 720px;
    line-height: 1.75;
    color: #555;
}

.nhr-services-search-note {
    font-size: 15px;
    color: #555;
}

.nhr-services-empty {
    padding: 48px 24px;
    text-align: center;
    border: 1px dashed #ddd;
    border-radius: 16px;
    background: #fff;
    color: #666;
}

/* Service cards — listing page */
.nhr-services-grid .col-xl-4 {
    display: flex;
}

.nhr-service-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ebebeb;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nhr-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.1);
    border-color: rgba(198, 40, 40, 0.18);
}

.nhr-service-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

.nhr-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.nhr-service-card:hover .nhr-service-card__media img {
    transform: scale(1.06);
}

.nhr-service-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.08) 0%, rgba(10, 10, 10, 0.42) 100%);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nhr-service-card:hover .nhr-service-card__media::after {
    opacity: 0.92;
}

.nhr-service-card__index {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.92);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(6px);
}

.nhr-service-card__badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    color: var(--theme-color, #c62828);
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.nhr-service-card__badge img {
    max-width: 24px;
    max-height: 24px;
}

.nhr-service-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 26px;
}

.nhr-service-card__title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.nhr-service-card__title a {
    color: #141414;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nhr-service-card__title a:hover {
    color: var(--theme-color, #c62828);
}

.nhr-service-card__text {
    flex: 1;
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.75;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nhr-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--theme-color, #c62828);
    text-decoration: none;
    margin-top: auto;
}

.nhr-service-card__link i {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.nhr-service-card__link:hover {
    color: var(--theme-color, #c62828);
}

.nhr-service-card__link:hover i {
    transform: translateX(4px);
}

.nhr-services-grid .th-pagination {
    margin-top: 8px;
}

/* Service detail */
.nhr-service-detail .page-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
}

.nhr-service-detail .page-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nhr-service-detail .service-category-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nhr-service-cta {
    margin-top: 40px;
    padding: 32px;
    border-radius: 16px;
    background: var(--smoke-color, #f8f8f8);
    border: 1px solid var(--th-border-color, #e5e5e5);
}

.nhr-service-cta .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.nhr-service-sidebar .nhr-service-menu li.active > a {
    color: var(--theme-color);
    font-weight: 600;
}

.nhr-form-notice.success {
    color: #128C7E;
    font-weight: 600;
    margin-bottom: 12px;
}

.nhr-related-services {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.nhr-related-services__head {
    margin-bottom: 28px;
}

.nhr-related-services__head .sub-title {
    margin-bottom: 10px;
}

.nhr-related-services__head .sec-title {
    margin-bottom: 0;
}

.nhr-related-services-grid .col-lg-4 {
    display: flex;
}

.nhr-service-card--compact .nhr-service-card__media {
    aspect-ratio: 16 / 11;
}

.nhr-service-card--compact .nhr-service-card__body {
    padding: 20px 22px 22px;
}

.nhr-service-card--compact .nhr-service-card__title {
    font-size: 19px;
}

.nhr-service-card--compact .nhr-service-card__text {
    font-size: 14px;
    -webkit-line-clamp: 2;
    margin-bottom: 14px;
}

.nhr-service-card--compact .nhr-service-card__badge {
    width: 42px;
    height: 42px;
    font-size: 18px;
    border-radius: 12px;
}

.nhr-service-card--compact .nhr-service-card__index {
    top: 12px;
    right: 12px;
    font-size: 12px;
    padding: 5px 10px;
}

@media (max-width: 991px) {
    .nhr-services-section {
        padding-top: 56px;
    }

    .nhr-services-intro {
        margin-bottom: 36px;
    }
}

@media (max-width: 767px) {
    .breadcumb-wrapper.nhr-page-hero {
        --space: 88px;
    }

    .breadcumb-wrapper.nhr-page-hero .breadcumb-subtitle {
        font-size: 16px;
    }

    .nhr-service-card__body {
        padding: 20px 20px 22px;
    }

    .nhr-service-card__title {
        font-size: 19px;
    }
}
