/* Driving Instructor Finder */

.dif-wrap {
    font-family: inherit;
    max-width: 1100px;
    margin: 0 auto;
}

/* Search Form */
.dif-search-form {
    background: #f5f7fa;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.dif-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.dif-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 160px;
}

.dif-field label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.dif-field input,
.dif-field select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.dif-field-btn {
    flex: 0 0 auto;
    min-width: auto;
}

.dif-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 24px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.dif-btn:hover {
    background: #135e96;
}

/* Results Grid */
.dif-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Card */
.dif-card {
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.dif-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.dif-card-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.dif-card-body {
    padding: 18px 20px;
}

.dif-card-name {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.dif-card-meta {
    margin: 0 0 8px;
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dif-card-meta a {
    color: #2271b1;
    text-decoration: none;
}

.dif-card-meta a:hover {
    text-decoration: underline;
}

.dif-icon {
    font-style: normal;
}

.dif-card-desc {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

/* Type badges */
.dif-card-type-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin: 0 0 10px;
}

.dif-badge-licensed {
    background: #e8f4fd;
    color: #2271b1;
}

.dif-badge-private {
    background: #f0f0f1;
    color: #555;
}

.dif-card-legal-note {
    color: #8c8f94;
    font-style: italic;
    font-size: 13px;
}

.dif-no-results {
    color: #666;
    font-size: 16px;
    padding: 24px 0;
}

@media (max-width: 600px) {
    .dif-form-row {
        flex-direction: column;
    }
    .dif-field-btn {
        width: 100%;
    }
    .dif-btn {
        width: 100%;
    }
}
