/**
 * Buildify Listings Styles - PBC Customized
 * @package Buildify_Listings
 */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   GLOBAL FONT FAMILY - POPPINS
   ============================================ */

* {
    font-family: 'Poppins', sans-serif !important;
}

[class*="buildify"],
[class*="buildify"] *,
[class*="bf-"],
[class*="bf-"] *,
.buildify,
.buildify * {
    font-family: 'Poppins', sans-serif !important;
}

/* ============================================
   PBC BRAND COLORS
   ============================================ */

:root {
    --pbc-red: #F5393B;
    --pbc-red-hover: #d42f31;
    --pbc-black: #000000;
    --pbc-white: #FFFFFF;
    --pbc-gray: #F6F6F6;
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */

.buildify-hero-section {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.buildify-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.buildify-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.buildify-hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--pbc-white);
    margin: 0 0 16px 0;
    font-family: 'Poppins', sans-serif !important;
}

.buildify-hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
    font-family: 'Poppins', sans-serif !important;
}

.buildify-hero-search-container {
    max-width: 700px;
    margin: 0 auto;
}

.buildify-search-box {
    display: flex;
    background: var(--pbc-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
}

.buildify-search-input {
    flex: 1;
    border: none;
    padding: 18px 24px;
    font-size: 16px;
    outline: none;
    font-family: 'Poppins', sans-serif !important;
}

.buildify-search-btn {
    background: var(--pbc-red);
    border: none;
    padding: 18px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--pbc-white);
}

.buildify-search-btn:hover {
    background: var(--pbc-red-hover);
}

.buildify-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.buildify-btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif !important;
}

.buildify-btn-resale {
    background: var(--pbc-red);
    color: var(--pbc-white);
}

.buildify-btn-resale:hover {
    background: var(--pbc-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 57, 59, 0.4);
}

.buildify-btn-new {
    background: var(--pbc-black);
    color: var(--pbc-white);
}

.buildify-btn-new:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ============================================
   LISTINGS GRID
   ============================================ */

.buildify-listings-container {
    padding: 40px 20px;
}

.buildify-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.buildify-listing-card {
    background: var(--pbc-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.buildify-listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.listing-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-content {
    padding: 24px;
}

.listing-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pbc-black);
    margin: 0 0 12px 0;
    font-family: 'Poppins', sans-serif !important;
}

.listing-location {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 12px 0;
    font-family: 'Poppins', sans-serif !important;
}

.listing-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--pbc-red);
    margin: 0 0 16px 0;
    font-family: 'Poppins', sans-serif !important;
}

.listing-status {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif !important;
}

.listing-button {
    display: inline-block;
    background: var(--pbc-red);
    color: var(--pbc-white);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif !important;
}

.listing-button:hover {
    background: var(--pbc-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 57, 59, 0.3);
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */

.buildify-listings-loading {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-family: 'Poppins', sans-serif !important;
}

.buildify-listings-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(245, 57, 59, 0.2);
    border-top-color: var(--pbc-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.buildify-no-results,
.buildify-error {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 18px;
    font-family: 'Poppins', sans-serif !important;
}

/* ============================================
   PAGINATION
   ============================================ */

.buildify-listings-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

.page-btn {
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    background: var(--pbc-white);
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif !important;
}

.page-btn:hover {
    border-color: var(--pbc-red);
    color: var(--pbc-red);
}

.page-btn.active {
    background: var(--pbc-red);
    border-color: var(--pbc-red);
    color: var(--pbc-white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .buildify-listings-grid {
        grid-template-columns: 1fr;
    }

    .buildify-hero-buttons {
        flex-direction: column;
    }

    .buildify-btn {
        width: 100%;
        text-align: center;
    }

    .buildify-search-box {
        flex-direction: column;
    }

    .buildify-search-btn {
        padding: 16px;
    }
}



/* ============================================








