/**
 * Jhopdi ERE Addons - Property Neighborhoods in City Stylesheet (Premium V3 Layout)
 */

/* Container & Header */
.jhopdi-neighborhoods-container {
    margin: 50px auto;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
}

.jhopdi-neighborhoods-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.jhopdi-neighborhoods-prefix {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #5a759d);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
    padding: 0 20px;
}

.jhopdi-neighborhoods-prefix::before,
.jhopdi-neighborhoods-prefix::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: var(--accent-color, #65BFE2);
}

.jhopdi-neighborhoods-prefix::before {
    left: 0;
}

.jhopdi-neighborhoods-prefix::after {
    right: 0;
}

.jhopdi-neighborhoods-title {
    font-size: 42px;
    font-weight: 300;
    color: var(--text-dark, #0c1c36);
    margin: 0 0 12px 0 !important;
    line-height: 1.25;
}

.jhopdi-neighborhoods-subtitle {
    font-size: 15px;
    color: var(--text-muted, #5a759d);
    line-height: 1.6;
    margin: 0 !important;
}

/* 6-Columns Grid Layout */
.jhopdi-neighborhoods-grid-v3 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

/* Card Styling */
.jhopdi-neighborhood-card-v3 {
    background: #FFFFFF;
    border: 1px solid var(--border-color, #EAECEF);
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    box-shadow: var(--shadow-soft, 6px 6px 36px rgba(0, 0, 0, 0.03));
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
}

.jhopdi-neighborhood-card-v3:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover, 12px 12px 54px rgba(0, 0, 0, 0.08));
    border-color: var(--accent-color, #65BFE2);
}

/* Sky-blue initials box */
.jhopdi-neighborhood-icon-box-v3 {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--accent-color, #65BFE2);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(101, 191, 226, 0.2);
    transition: all 0.3s ease;
}

.jhopdi-neighborhood-card-v3:hover .jhopdi-neighborhood-icon-box-v3 {
    background: var(--primary-color, #144168);
    box-shadow: 0 4px 12px rgba(20, 65, 104, 0.2);
    transform: scale(1.05);
}

/* Locality Name */
.jhopdi-neighborhood-name-v3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark, #0c1c36);
    margin: 0 0 6px 0 !important;
    line-height: 1.3;
}

/* Listings count count tag */
.jhopdi-neighborhood-count-v3 {
    font-size: 12px;
    color: var(--text-muted, #5a759d);
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .jhopdi-neighborhoods-grid-v3 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .jhopdi-neighborhoods-grid-v3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .jhopdi-neighborhoods-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .jhopdi-neighborhoods-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .jhopdi-neighborhoods-grid-v3 {
        grid-template-columns: 1fr;
    }
    .jhopdi-neighborhoods-title {
        font-size: 26px;
    }
}
