/**
 * Rodzinna Alwernia Custom Fields - Styles
 * Version: 1.0.0
 */

/* ===================================
   Informacje o nieruchomości na kartach
   =================================== */
.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin-top: 10px;
}

.property-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.property-detail-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #263d52;
}

.property-detail-item .icon i {
    font-size: 18px;
}

.property-detail-value {
    white-space: nowrap;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-available {
    background-color: #5a8546;
    color: white;
}

.status-reserved {
    background-color: #f59e0b;
    color: white;
}

.status-promotion {
    background-color: #ef4444;
    color: white;
}
.status-sold {
    background-color: #5d5d5d;
    color: white;
}
/* Cena */
.property-price {
    font-size: 22px;
    font-weight: 700;
    color: #2563eb;
}

/* ===================================
   Formularz wyszukiwania
   =================================== */
.ra-search-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.ra-search-form {
    width: 100%;
}

.ra-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ra-search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ra-search-field label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 0;
}

.ra-search-field input[type="number"],
.ra-search-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
    background-color: #fff;
}

.ra-search-field input[type="number"]:focus,
.ra-search-field select:focus {
    outline: none;
    border-color: #5a8546;
    box-shadow: 0 0 0 3px rgba(90, 133, 70, 0.1);
}

.ra-search-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.ra-search-submit {
    padding: 12px 30px;
    background: #263d52;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ra-search-submit:hover {
    background: linear-gradient(135deg, #263d52 0%, #5a8546 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 133, 70, 0.3);
}

.ra-search-submit i {
    font-size: 18px;
}

.ra-search-reset {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.ra-search-reset:hover {
    color: #374151;
    text-decoration: underline;
}

/* ===================================
   Meta Box w admin panel
   =================================== */
#rodzinna_alwernia_fields .inside {
    padding: 0 !important;
}

#rodzinna_alwernia_fields input,
#rodzinna_alwernia_fields select {
    border: 1px solid #ddd;
    border-radius: 4px;
}

#rodzinna_alwernia_fields input:focus,
#rodzinna_alwernia_fields select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .ra-search-fields {
        grid-template-columns: 1fr;
    }
    
    .property-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .property-detail-item {
        width: 100%;
    }
    
    .ra-search-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ra-search-submit {
        width: 100%;
        justify-content: center;
    }
    
    .ra-search-reset {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .ra-search-form-wrapper {
        padding: 20px;
    }
    
    .property-price {
        font-size: 18px;
    }
    
    .status-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
}

/* ===================================
   Integration with Directorist
   =================================== */
.directorist-listing-single .property-details {
    margin-top: 0;
}

.properties-item .properties-image .info-list.property-details {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Metadane w sekcji bottom karty grid */
.properties-item .bottom .property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.properties-item .bottom .property-detail-item {
    padding: 4px 10px;
    font-size: 13px;
}

.properties-item .bottom .property-detail-item .icon {
    width: 20px;
    height: 20px;
}

.properties-item .bottom .property-detail-item .icon i {
    font-size: 16px;
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-detail-item {
    animation: fadeIn 0.3s ease-out;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .ra-search-form-wrapper {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .ra-search-field label {
        color: #e5e7eb;
    }
    
    .ra-search-field input[type="number"],
    .ra-search-field select {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
}
