/* Property Custom Fields - Frontend Styles */

.pcf-frontend-fields {
    margin: 20px 0;
}

.pcf-frontend-field {
    margin-bottom: 15px;
}

.pcf-field-label {
    font-weight: 600;
    margin-right: 5px;
}

.pcf-field-value {
    font-weight: normal;
}

/* List Layout */
.pcf-layout-list .pcf-frontend-field {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pcf-layout-list .pcf-frontend-field:last-child {
    border-bottom: none;
}

/* Grid Layout */
.pcf-layout-grid {
    display: grid;
    gap: 20px;
}

.pcf-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pcf-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pcf-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.pcf-grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.pcf-grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.pcf-layout-grid .pcf-frontend-field {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Table Layout */
.pcf-layout-table .pcf-fields-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.pcf-layout-table .pcf-fields-table tr {
    border-bottom: 1px solid #eee;
}

.pcf-layout-table .pcf-fields-table td {
    padding: 12px;
}

.pcf-layout-table .pcf-fields-table .pcf-field-label {
    width: 40%;
    font-weight: 600;
}

.pcf-layout-table .pcf-fields-table .pcf-field-value {
    width: 60%;
}

/* Category Groups */
.pcf-category-group {
    margin-bottom: 30px;
}

.pcf-category-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

/* Section-based shortcodes responsive design */
.pcf-section-fields {
    margin: 20px 0;
}

/* Desktop table format - shown by default */
.pcf-section-fields-table {
    width: 100%;
    border-collapse: collapse;
}

.pcf-section-fields-table tbody {
    display: table-row-group;
}

.pcf-section-fields-table tr {
    border-bottom: 1px solid #eee;
}

.pcf-section-fields-table tr:last-child {
    border-bottom: none;
}

.pcf-section-fields-table td {
    padding: 12px;
    vertical-align: top;
}

.pcf-section-fields-table .pcf-field-label {
    width: 40%;
    font-weight: 600;
    color: #333;
}

.pcf-section-fields-table .pcf-field-value {
    width: 60%;
    color: #555;
}

/* Mobile list format - hidden by default */
.pcf-section-fields-list {
    display: none;
}

.pcf-section-fields-list .pcf-section-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.pcf-section-fields-list .pcf-section-field:last-child {
    border-bottom: none;
}

.pcf-section-fields-list .pcf-field-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
    flex: 0 0 auto;
}

.pcf-section-fields-list .pcf-field-value {
    color: #555;
    text-align: right;
    flex: 1 1 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .pcf-grid-cols-2,
    .pcf-grid-cols-3,
    .pcf-grid-cols-4,
    .pcf-grid-cols-5,
    .pcf-grid-cols-6 {
        grid-template-columns: 1fr;
    }
    
    .pcf-layout-table .pcf-fields-table {
        font-size: 0.9em;
    }
    
    .pcf-layout-table .pcf-fields-table .pcf-field-label,
    .pcf-layout-table .pcf-fields-table .pcf-field-value {
        width: 50%;
    }
    
    /* Hide desktop table on mobile */
    .pcf-section-fields-table {
        display: none;
    }
    
    /* Show mobile list on mobile */
    .pcf-section-fields-list {
        display: block;
    }
    
    .pcf-section-fields-list .pcf-section-field {
        font-size: 0.9em;
        padding: 10px 0;
    }
    
    .pcf-section-fields-list .pcf-field-label,
    .pcf-section-fields-list .pcf-field-value {
        font-size: 0.9em;
    }
}

