/* Nice Homes Realtors — Homepage */

/* Hero */
.nhr-home-hero {
    position: relative;
}

.nhr-home-hero .th-slider {
    position: relative;
}

.nhr-home-hero .hero-img-shape-1,
.nhr-home-hero .trust-content,
.nhr-home-hero .bottom,
.nhr-home-hero .swiper-pagination-bullets {
    display: none !important;
}

.nhr-home-hero .hero-inner.nhr-hero-slide {
    min-height: clamp(675px, 85vh, 900px);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 168px 0 160px;
}

.nhr-home-hero .hero-inner .row {
    align-items: center !important;
    width: 100%;
}

.nhr-home-hero .swiper-slide,
.nhr-home-hero .swiper-wrapper,
.nhr-home-hero .th-slider {
    height: auto;
}

.nhr-home-hero .swiper-slide {
    height: auto !important;
}

.nhr-home-hero .nhr-hero-slide--gradient {
    background: linear-gradient(135deg, #141414 0%, #3a2222 45%, #1a1a1a 100%) !important;
}

.nhr-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.35) 100%);
    pointer-events: none;
}

.nhr-home-hero .hero-1-content {
    position: relative;
    z-index: 2;
    padding: 0;
    margin-top: 8.5vh;
}

.nhr-hero-eyebrow {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 18px;
}

.nhr-home-hero .hero-title {
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 680px;
    font-size: clamp(34px, 4.5vw, 52px);
}

@media (min-width: 992px) {
    .nhr-home-hero .hero-title,
    .nhr-hero-subtitle {
        margin-right: auto;
    }
}

.nhr-hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.65;
    max-width: 580px;
    margin-bottom: 32px;
}

.nhr-home-hero .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.nhr-hero-controls {
    position: absolute;
    right: 24px;
    bottom: 110px;
    z-index: 3;
    margin: 0;
}

.nhr-home-hero .slider-pagination-wrapper {
    position: absolute;
    right: max(24px, calc((100vw - 1320px) / 2 + 24px));
    bottom: 110px;
    left: auto;
    width: auto;
}

/* Search */
.nhr-home-search {
    margin-top: -58px;
    position: relative;
    z-index: 5;
    padding-bottom: 24px;
}

.nhr-home-search .search-wrap.nhr-search-wrap {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 56px rgba(20, 20, 20, 0.14);
    background: #fff;
    overflow: hidden;
}

.nhr-home-search .search-wrap.nhr-search-wrap::before,
.nhr-home-search .search-wrap.nhr-search-wrap::after {
    display: none;
}

.nhr-home-search .search-wrap-area-top {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.nhr-search-tabs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
}

.nhr-search-tabs-label {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #141414;
}

.nhr-search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 4px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid #e8e8e8;
}

.nhr-search-tabs .nav-item {
    margin: 0;
}

.nhr-search-tabs .nav-link {
    font-weight: 600;
    font-size: 14px;
    border: 0 !important;
    color: #555 !important;
    padding: 10px 20px !important;
    border-radius: 999px !important;
    background: transparent !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.nhr-search-tabs .nav-link:hover {
    color: var(--theme-color, #c62828) !important;
    background: rgba(198, 40, 40, 0.06) !important;
}

.nhr-search-tabs .nav-link.active {
    background: var(--theme-color, #c62828) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(198, 40, 40, 0.28);
}

.nhr-search-fields {
    margin-top: 0;
    padding: 24px 28px 28px;
}

.nhr-search-fields .form-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
}

.nhr-search-fields .form-control,
.nhr-search-fields .form-select {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e4e4e4;
    background: #f8f8f8;
    font-size: 15px;
    color: #141414;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nhr-search-fields .form-control:focus,
.nhr-search-fields .form-select:focus {
    border-color: var(--theme-color, #c62828);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.nhr-search-submit-btn {
    min-height: 48px;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    box-shadow: 0 8px 22px rgba(198, 40, 40, 0.25);
}

.nhr-search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(198, 40, 40, 0.32);
}

.nhr-search-submit-col .form-label {
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Sections */
.nhr-home-section {
    padding: 70px 0;
}

.nhr-home-section .title-area {
    margin-bottom: 40px;
}

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

/* Why choose */
.nhr-feature-card {
    height: 100%;
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid #eee;
    background: #fff;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.nhr-feature-card:hover {
    border-color: rgba(198, 40, 40, 0.25);
    box-shadow: 0 10px 30px rgba(20, 20, 20, 0.06);
}

.nhr-feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(198, 40, 40, 0.08);
    color: var(--theme-color, #c62828);
    font-size: 22px;
    margin-bottom: 16px;
}

.nhr-feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.nhr-feature-card p {
    margin: 0;
    line-height: 1.7;
    color: #555;
}

/* Homepage services section */
.nhr-home-services .title-area .sec-text {
    max-width: 720px;
    line-height: 1.75;
    color: #555;
}

.nhr-home-services-grid .col-xl-4 {
    display: flex;
}

/* Counters — Trusted Guidance section */
.nhr-home-counters {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #141414 0%, #3a2222 48%, #1a1a1a 100%);
    padding: 80px 0 88px;
}

.nhr-home-counters__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(198, 40, 40, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 35%);
    pointer-events: none;
}

.nhr-home-counters__header {
    max-width: 720px;
    margin: 0 auto 48px;
}

.nhr-home-counters__pretitle {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 14px;
}

.nhr-home-counters__pretitle .double-line {
    background: var(--theme-color, #c62828);
}

.nhr-home-counters .sec-title.text-white {
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.25;
}

.nhr-home-counters__lead {
    margin: 0 auto;
    max-width: 600px;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

.nhr-home-counters__grid,
.nhr-home-counters .counter-card-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 !important;
    justify-content: stretch;
    border-radius: 0;
}

.nhr-home-counters .nhr-stat-card,
.nhr-home-counters .counter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    margin: 0;
    padding: 28px 22px 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nhr-home-counters .nhr-stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.nhr-stat-card__icon,
.nhr-home-counters .box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 0 18px;
    border-radius: 50%;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, #c62828 0%, #8b1c1c 100%);
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.35);
}

.nhr-stat-card__body {
    width: 100%;
}

.nhr-stat-card__value,
.nhr-home-counters .box-number {
    margin: 0 0 8px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    font-family: var(--title-font, inherit);
}

.nhr-stat-card__suffix,
.nhr-home-counters .box-number span {
    display: inline-block;
    font-size: 0.55em;
    font-weight: 600;
    margin-left: 2px;
    vertical-align: baseline;
    color: rgba(255, 255, 255, 0.9);
}

.nhr-stat-card__label,
.nhr-home-counters .box-text {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.nhr-home-counters-cta {
    text-align: center;
    margin-top: 44px;
}

.nhr-home-counters__btn {
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.nhr-home-counters__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

/* Location cards */
.nhr-location-card {
    display: block;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: all 0.22s ease;
}

.nhr-location-card:hover {
    color: inherit;
    box-shadow: 0 12px 32px rgba(20, 20, 20, 0.08);
    transform: translateY(-2px);
}

.nhr-location-card__img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f3f3;
}

.nhr-location-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nhr-location-card__body {
    padding: 18px 20px 20px;
}

.nhr-location-card__count {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-color, #c62828);
    margin-bottom: 8px;
}

/* Market CTA */
.nhr-market-cta {
    padding: 56px 40px;
    border-radius: 22px;
    background: linear-gradient(135deg, #faf8f6 0%, #fff 100%);
    border: 1px solid #eee;
}

/* Testimonials grid */
.nhr-home-testimonials .nhr-testimonial-card {
    height: 100%;
}

/* Final CTA */
.nhr-home-final-cta {
    padding: 64px 32px;
    border-radius: 22px;
    background: linear-gradient(135deg, #141414 0%, #3a2222 50%, #1a1a1a 100%);
    text-align: center;
    color: #fff;
}

.nhr-home-final-cta h2 {
    color: #fff;
    margin-bottom: 14px;
}

.nhr-home-final-cta p {
    max-width: 620px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.nhr-home-final-cta .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Property cards on home */
.nhr-home-properties .nhr-property-card {
    height: 100%;
}

@media (max-width: 767px) {
    .nhr-home-properties .popular-list-1.nhr-property-card.grid-style .media-body .nhr-property-card__title {
        font-size: 17px;
    }
    .nhr-home-properties .popular-list-1.nhr-property-card.grid-style .property-bottom .nhr-property-card__price {
        font-size: 19px;
    }
}

@media (max-width: 1199px) {
    .nhr-home-counters__grid,
    .nhr-home-counters .counter-card-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .nhr-stat-card__value,
    .nhr-home-counters .box-number {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .nhr-home-search {
        margin-top: -42px;
    }
    .nhr-home-hero .hero-inner.nhr-hero-slide {
        min-height: clamp(600px, 78vh, 775px);
        padding: 132px 0 140px;
    }
    .nhr-home-hero .slider-pagination-wrapper {
        position: relative;
        right: auto;
        bottom: auto;
        justify-content: center;
        margin-top: 8px;
        padding-bottom: 16px;
    }
    .nhr-search-tabs-head {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
    }
    .nhr-search-tabs {
        width: 100%;
        justify-content: center;
    }
    .nhr-search-fields {
        padding: 20px 20px 24px;
    }
}

@media (max-width: 767px) {
    .nhr-hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .nhr-home-hero .hero-inner.nhr-hero-slide {
        min-height: clamp(575px, 82vh, 725px);
        padding: 112px 0 130px;
    }
    .nhr-home-hero .hero-inner .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: var(--bs-gutter-x, 0.75rem);
        padding-right: var(--bs-gutter-x, 0.75rem);
        text-align: center;
    }
    .nhr-home-hero .hero-1-content {
        display: block;
        width: 100%;
        max-width: none;
        margin-top: 7vh;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .nhr-home-hero .hero-title,
    .nhr-home-hero .nhr-hero-subtitle,
    .nhr-home-hero .nhr-hero-eyebrow {
        display: block;
        width: 100%;
        max-width: none;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .nhr-home-hero .btn-group {
        justify-content: center;
    }
    .nhr-search-tabs-head {
        align-items: center;
        text-align: center;
    }
    .nhr-search-tabs {
        justify-content: center;
    }
    .nhr-search-submit-col {
        margin-top: 4px;
        text-align: center;
    }
    .nhr-search-tabs .nav-link {
        padding: 8px 14px !important;
        font-size: 13px;
    }
    .nhr-search-submit-btn {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .nhr-home-section {
        padding: 56px 0;
    }
    .nhr-home-counters__grid,
    .nhr-home-counters .counter-card-wrap {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
    .nhr-home-counters {
        padding: 64px 0 72px;
    }
    .nhr-stat-card__value,
    .nhr-home-counters .box-number {
        font-size: 28px;
    }
    .nhr-market-cta {
        padding: 36px 24px;
    }
}
