/* BrachoBD Service Manager - Public Styles */

/* Filter Form */
.brachobd-filter-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.brachobd-filter-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.brachobd-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.brachobd-filter-field {
    display: flex;
    flex-direction: column;
}

.brachobd-filter-field label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.brachobd-filter-field select,
.brachobd-filter-field input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.brachobd-filter-field select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.brachobd-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.brachobd-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.brachobd-btn-primary {
    background: #0073aa;
    color: #fff;
}

.brachobd-btn-primary:hover {
    background: #005a87;
    color: #fff;
}

.brachobd-btn-secondary {
    background: #777;
    color: #fff;
}

.brachobd-btn-secondary:hover {
    background: #555;
    color: #fff;
}

/* Loading Indicator */
.brachobd-loading {
    text-align: center;
    padding: 20px;
    font-size: 16px;
}

.brachobd-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Grid */
.brachobd-results {
    margin-top: 30px;
}

.brachobd-services-grid,
.brachobd-service-points-grid,
.brachobd-technicians-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.brachobd-columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.brachobd-columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.brachobd-columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Cards */
.brachobd-service-item,
.brachobd-service-point-card,
.brachobd-technician-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.brachobd-service-item:hover,
.brachobd-service-point-card:hover,
.brachobd-technician-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.brachobd-service-thumbnail,
.brachobd-card-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.brachobd-service-thumbnail img,
.brachobd-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brachobd-service-content,
.brachobd-card-content {
    padding: 20px;
}

.brachobd-service-title,
.brachobd-card-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.brachobd-service-title a,
.brachobd-card-content h3 a {
    color: #333;
    text-decoration: none;
}

.brachobd-service-title a:hover,
.brachobd-card-content h3 a:hover {
    color: #0073aa;
}

.brachobd-service-price,
.brachobd-service-duration,
.brachobd-location,
.brachobd-address,
.brachobd-phone,
.brachobd-hours,
.brachobd-specialization,
.brachobd-experience,
.brachobd-rating {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.brachobd-service-excerpt {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

/* Location Info */
.brachobd-location-info {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.brachobd-location-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.brachobd-location-info p {
    margin: 8px 0;
    font-size: 14px;
}

/* WooCommerce Product Options */
.brachobd-product-options {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.brachobd-field {
    margin-bottom: 15px;
}

.brachobd-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.brachobd-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brachobd-filter-row {
        grid-template-columns: 1fr;
    }
    
    .brachobd-columns-2,
    .brachobd-columns-3,
    .brachobd-columns-4 {
        grid-template-columns: 1fr;
    }
}
