/* Property Filter Grid Pro - Main Styles */

/* ---- Filter Bar ---- */
.pfgp-filters {
    background: #FFFFFF;
    box-shadow: 0px 0px 6px 0px #00000040;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.pfgp-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pfgp-filter-label {
    font-size: 22px;
    color: #F9A227;
    font-weight: 600;
    white-space: nowrap;
}

.pfgp-filter-select {
    font-size: 16px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

/* ---- Grid Container ---- */
.pfgp-grid-wrapper {
    position: relative;
}

.pfgp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* ---- Property Card ---- */
.pfgp-card {
    background: #FFFBEB;
    box-shadow: 0px 0px 4px 0px #00000040;
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pfgp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 2px 8px 0px #00000040;
}

.pfgp-card-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.pfgp-card-title {
    font-size: 22px;
    margin: 12px 0 8px;
    line-height: 1.3;
}

.pfgp-card-title a {
    text-decoration: none;
    color: inherit;
    font-size: 22px
}

.pfgp-card-attributes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
}

.pfgp-attr {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.pfgp-attr img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---- Card Button (text-only) ---- */
.pfgp-card-button {
    display: inline-block;
    text-align: left;
    background: none;
    border: none;
    color: #F9A227;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    margin-top: auto;
    transition: color 0.2s ease;
}

.pfgp-card-button:hover {
    color: #d18a1c;
}

/* ---- Load More Button ---- */
.pfgp-load-more-wrapper {
    text-align: center;
    margin: 20px 0;
}

.pfgp-load-more {
    display: inline-block;
    background: #F9A227;
    color: #ffffff;
    font-size: 18px;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pfgp-load-more:hover {
    background: #e08e1a;
}

.pfgp-load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ---- No Properties Message ---- */
.pfgp-no-properties {
    text-align: center;
    font-size: 18px;
    padding: 40px 20px;
    color: #777;
    grid-column: 1 / -1;
}

/* ---- Loading Indicator ---- */
.pfgp-loading-indicator {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #F9A227;
    font-weight: 600;
}

.pfgp-grid-wrapper.loading .pfgp-grid {
    opacity: 0.6;
    pointer-events: none;
}

.pfgp-grid-wrapper.loading .pfgp-loading-indicator {
    display: block;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .pfgp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pfgp-grid {
        grid-template-columns: 1fr;
    }
    .pfgp-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .pfgp-filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .pfgp-filter-select {
        width: 100%;
    }
}