/* RETS Property Plugin Styles */

/* Property Grid */
.rets-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Property Card */
.rets-property-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.rets-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.rets-property-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.rets-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rets-property-card:hover .rets-property-image img {
    transform: scale(1.1);
}

.rets-property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.rets-property-content {
    padding: 1.5rem;
}

.rets-property-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 0.5rem;
}

.rets-property-address {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.rets-property-city {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.rets-property-details {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.rets-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #555;
}

.rets-detail-icon {
    width: 20px;
    height: 20px;
    color: #1a73e8;
}

/* Filter Section */
.rets-filter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.rets-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.rets-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* */
.rets-filter-field label {
    color: #000000;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rets-filter-field select,
.rets-filter-field input {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.rets-filter-field select:focus,
.rets-filter-field input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rets-filter-button {
    padding: 0.75rem 2rem;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    grid-column: span 1;
    align-self: end;
}

.rets-filter-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Loading Spinner */
.rets-loading {
    text-align: center;
    padding: 3rem;
}

.rets-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* No Properties Message */
.no-properties {
    text-align: center;
    padding: 3rem;
    font-size: 1.125rem;
    color: #666;
}

/* Pagination */
.rets-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.rets-pagination button {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rets-pagination button:hover {
    background: #667eea;
    color: #fff;
}

.rets-pagination button.active {
    background: #667eea;
    color: #fff;
}

.rets-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .rets-properties-grid {
        grid-template-columns: 1fr;
    }

    .rets-filter-form {
        grid-template-columns: 1fr;
    }

    .rets-filter-button {
        grid-column: span 1;
    }
}