/**
 * Plugin Name: PMS Property Display
 * Version: 2.0.0
 */

/* Reset any theme interference */
.pms-properties-grid * {
    box-sizing: border-box;
}

/* Properties Grid */
.pms-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px 0;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .pms-properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .pms-properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Property Card */
.pms-property-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.pms-property-card > * {
    margin: 0 !important;
}

.pms-property-card .pms-property-image-wrapper {
    margin-bottom: 0 !important;
}

.pms-property-card .pms-property-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Override any WordPress/theme defaults */
.pms-property-card h3,
.pms-property-card .pms-property-title {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-top: 16px !important;
    padding-bottom: 0 !important;
}

.pms-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Image Wrapper */
.pms-property-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.pms-property-image-wrapper + .pms-property-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.pms-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pms-property-card:hover .pms-property-image {
    transform: scale(1.05);
}

.pms-property-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.pms-property-image-placeholder::before {
    content: "🏢";
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Badges */
.pms-property-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.pms-property-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pms-type-residential {
    background: rgba(33, 150, 243, 0.95);
    color: #ffffff;
}

.pms-type-commercial {
    background: rgba(255, 152, 0, 0.95);
    color: #ffffff;
}

.pms-type-mixed {
    background: rgba(156, 39, 176, 0.95);
    color: #ffffff;
}

/* Content */
.pms-property-content {
    padding: 0 24px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 0;
}

.pms-property-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding: 16px 0 12px 0;
    color: #1a1a1a;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.pms-property-location {
    color: #6c757d;
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.pms-property-location::before {
    content: "📍";
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.pms-property-meta {
    display: flex;
    gap: 10px;
    margin: 0 0 16px 0;
    flex-wrap: wrap;
}

.pms-property-structure {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #f0f0f0;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Rent and Status */
.pms-property-rent-wrapper {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.pms-property-rent {
    font-size: 28px;
    font-weight: 800;
    color: #c9a961;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.pms-property-rent-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-left: 4px;
}

.pms-property-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pms-status-available {
    background: #d4edda;
    color: #155724;
}

.pms-status-occupied {
    background: #ffe0e0;
    color: #8b2635;
}

.pms-status-no-units {
    background: #fff3cd;
    color: #856404;
}

.pms-status-available::before {
    content: "✓ ";
    font-weight: bold;
    margin-right: 4px;
}

.pms-status-occupied::before {
    content: "● ";
    margin-right: 4px;
}

.pms-status-no-units::before {
    content: "— ";
    margin-right: 4px;
}

/* Error Messages */
.pms-error {
    color: #d32f2f;
    padding: 15px 20px;
    background: #ffebee;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
    margin: 20px 0;
}

.pms-no-properties {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-size: 18px;
    font-weight: 500;
}

