/**
 * KP Showing Scheduler — Listings Page Styles
 */

.kpss-listings-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.kpss-listings-title {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}

/* Loading / empty states */
.kpss-listings-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.kpss-hidden {
    display: none !important;
}

/* Property grid — responsive columns */
.kpss-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .kpss-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .kpss-listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Individual property card */
.kpss-property-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpss-property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.1);
}

/* Photo area */
.kpss-card-photo {
    height: 200px;
    background-color: #f1f5f9;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpss-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kpss-photo-placeholder {
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Card info section */
.kpss-card-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kpss-card-header {
    margin-bottom: 0.75rem;
}

.kpss-card-address {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.kpss-card-location {
    font-size: 0.875rem;
    color: #64748b;
}

/* Details row */
.kpss-card-details {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.kpss-detail-item {
    font-size: 0.8125rem;
    color: #475569;
    background: #f8fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.kpss-price-badge {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

/* Amenities */
.kpss-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.kpss-amenity-tag {
    font-size: 0.75rem;
    color: #3b82f6;
    background: #eff6ff;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.kpss-amenity-more {
    font-size: 0.75rem;
    color: #64748b;
}

/* Description snippet */
.kpss-card-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 auto 0;
    flex-grow: 1;
}

/* Action buttons */
.kpss-card-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.kpss-btn {
    flex: 1;
    text-align: center;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.kpss-btn-schedule {
    background: #2563eb;
    color: #fff;
}

.kpss-btn-schedule:hover {
    background: #1d4ed8;
}

.kpss-btn-apply {
    background: #f97316;
    color: #fff;
}

.kpss-btn-apply:hover {
    background: #ea580c;
}

/* Error state */
.kpss-error {
    text-align: center;
    padding: 2rem;
    color: #dc2626;
    grid-column: 1 / -1;
}
