/* Service Finder — Main Styles */

.sf-wrap {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Search Controls */
.sf-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.sf-controls input,
.sf-controls select {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    flex: 1;
    min-width: 160px;
    background: #fff;
}

.sf-controls input:focus,
.sf-controls select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}

/* Status Messages */
.sf-status {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.sf-status.loading {
    display: block;
    background: #e8f4fd;
    color: #0073aa;
    border: 1px solid #b3d9f2;
}

.sf-status.error {
    display: block;
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.sf-status.no-results {
    display: block;
    background: #fff8e1;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Results Grid */
.sf-results {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(260px, 1fr) );
    gap: 20px;
}

/* Service Card */
.sf-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sf-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.sf-card.is-featured {
    border-color: #f0a500;
    box-shadow: 0 2px 8px rgba(240,165,0,0.2);
}

.sf-card-thumbnail img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.sf-card-thumbnail .sf-no-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
}

.sf-card-body {
    padding: 16px;
}

.sf-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.sf-card-title a {
    text-decoration: none;
    color: inherit;
}

.sf-card-title a:hover {
    color: #0073aa;
}

.sf-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.sf-card-city::before {
    content: "📍 ";
}

.sf-card-rating {
    color: #f0a500;
    font-weight: 600;
}

.sf-featured-badge {
    display: inline-block;
    background: #f0a500;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}