/* Builders Network Grid Stylesheet */

.jhopdi-builders-grid-container {
    width: 100%;
    margin: 40px auto;
    font-family: 'Montserrat', sans-serif;
}

/* Header Row Layout */
.jhopdi-builders-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    gap: 20px;
}

.jhopdi-builders-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jhopdi-builders-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: #5A759D;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.jhopdi-builders-title {
    font-size: 38px;
    font-weight: 300;
    color: #0C1C36;
    margin: 0;
    line-height: 1.2;
}

.jhopdi-builders-btn-ask {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #E4E8EC;
    border-radius: 30px;
    color: #0C1C36;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.jhopdi-builders-btn-ask:hover {
    background-color: #0c2b47;
    color: #fff;
    border-color: #0c2b47;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(12, 43, 71, 0.15);
}

/* Grid Columns Configurations */
.jhopdi-builders-cards-grid {
    display: grid;
    gap: 30px;
}

.jhopdi-builders-grid-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.jhopdi-builders-grid-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.jhopdi-builders-grid-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Card Visual Layout */
.jhopdi-builder-card {
    background-color: #fff;
    border: 1px solid #E4E8EC;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 6px 6px 36px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.jhopdi-builder-card:hover {
    transform: translateY(-6px);
    box-shadow: 12px 12px 54px rgba(0, 0, 0, 0.08);
    border-color: #D3C9BC;
}

.jhopdi-builder-card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.jhopdi-builder-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.jhopdi-builder-card:hover .jhopdi-builder-card-bg {
    transform: scale(1.06);
}

.jhopdi-builder-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12, 28, 54, 0.15) 0%, rgba(12, 28, 54, 0) 100%);
    pointer-events: none;
}

.jhopdi-builder-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.jhopdi-builder-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.badge-jdc-featured {
    background-color: #0C1C36;
}

.badge-rera-verified {
    background-color: #65BFE2;
}

/* Card Content Details */
.jhopdi-builder-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.jhopdi-builder-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0C1C36;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.jhopdi-builder-card-hq {
    font-size: 13px;
    color: #5A759D;
    margin: 0 0 18px 0;
    font-weight: 500;
}

/* City pills */
.jhopdi-builder-card-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.city-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: capitalize;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.city-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    opacity: 0.9;
}

.pill-blue {
    background-color: #E8F6FC;
    color: #65BFE2;
}

.pill-pink {
    background-color: #FAF5EF;
    color: #D465A3;
}

.pill-green {
    background-color: #E8FCF0;
    color: #65D48E;
}

/* Card Stats */
.jhopdi-builder-card-stats {
    font-size: 13px;
    color: #5A759D;
    margin-bottom: 20px;
    font-weight: 500;
}

.active-projects-num strong {
    color: #0C1C36;
    font-weight: 700;
    font-size: 14px;
}

/* Card Footer Row */
.jhopdi-builder-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E4E8EC;
    padding-top: 16px;
    margin-top: auto;
}

.est-year {
    font-size: 12px;
    color: #5A759D;
    font-weight: 500;
}

.jhopdi-builder-view-btn {
    font-size: 11px;
    font-weight: 700;
    color: #144168;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.jhopdi-builder-view-btn:hover {
    color: #65BFE2;
    text-decoration: underline;
}

/* Responsiveness overrides */
@media (max-width: 1199px) {
    .jhopdi-builders-grid-col-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .jhopdi-builders-grid-col-4,
    .jhopdi-builders-grid-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .jhopdi-builders-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .jhopdi-builders-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .jhopdi-builders-grid-col-4,
    .jhopdi-builders-grid-col-3,
    .jhopdi-builders-grid-col-2 {
        grid-template-columns: 1fr;
    }
}

/* CPT Developer Archive Specific Styles */
.jhopdi-developer-archive-container {
    width: 100%;
    background-color: #FAF8F5; /* warm soft cream background like in screenshot */
    padding-bottom: 80px;
}

/* Premium Filter Bar Header */
.jhopdi-filter-bar-header {
    background-color: #ffffff;
    border-bottom: 1px solid #E8EBEF;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.jhopdi-filter-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.jhopdi-filter-label {
    font-size: 20px;
    font-weight: 300;
    color: #0C1C36;
    margin-right: 15px;
    text-transform: capitalize;
}

/* Dropdown styling */
.jhopdi-filter-select-wrapper {
    position: relative;
}

.jhopdi-archive-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #E4E8EC;
    border-radius: 8px;
    padding: 12px 40px 12px 20px;
    font-size: 13px;
    color: #5a6b82;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 180px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%235a6b82' d='M0 0l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 20px center;
    transition: all 0.3s;
}

.jhopdi-archive-filter-select:hover,
.jhopdi-archive-filter-select:focus {
    border-color: #B8A99A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Filter button pill tags */
.jhopdi-filter-buttons-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
    border-left: 1px solid #E8EBEF;
    padding-left: 25px;
}

.jhopdi-filter-btn {
    background-color: #fff;
    color: #0C1C36;
    border: 1px solid #E4E8EC;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    text-transform: uppercase;
}

.jhopdi-filter-btn:hover {
    border-color: #0C1C36;
    background-color: #FAF8F5;
}

.jhopdi-filter-btn.active {
    background-color: #0C1C36;
    color: #fff;
    border-color: #0C1C36;
    box-shadow: 0 4px 15px rgba(12, 28, 54, 0.2);
}

/* Clear Link */
.jhopdi-filter-clear-link {
    font-size: 11px;
    font-weight: 700;
    color: #5A759D;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-left: auto;
    transition: color 0.3s;
}

.jhopdi-filter-clear-link:hover {
    color: #0C1C36;
}

/* Loader effect */
#developer-grid-wrapper {
    transition: opacity 0.3s ease;
}

.no-results-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border: 1px dashed #E4E8EC;
    border-radius: 15px;
    color: #5A759D;
    font-size: 15px;
}

/* Responsive adjustment for archive filter */
@media (max-width: 991px) {
    .jhopdi-filter-buttons-group {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .jhopdi-filter-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .jhopdi-archive-filter-select {
        width: 100%;
    }
    .jhopdi-filter-buttons-group {
        flex-direction: column;
        align-items: stretch;
    }
    .jhopdi-filter-btn {
        width: 100%;
        text-align: center;
    }
    .jhopdi-filter-clear-link {
        margin-left: 0;
        text-align: center;
        margin-top: 10px;
    }
}
