/* Transport Jobs Directory - Frontend Styles */

.tjd-job-search-container {
    margin: 20px 0;
}

.tjd-search-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.tjd-search-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.tjd-search-field {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.tjd-search-field.tjd-search-keywords,
.tjd-search-field.tjd-search-location {
    flex: 2;
}

.tjd-search-field .tjd-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

.tjd-search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.tjd-search-input:focus {
    outline: none;
    border-color: #007bff;
}

.tjd-category-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
}

.tjd-search-btn {
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.tjd-search-btn:hover {
    background: #0056b3;
}

.tjd-results-count {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.tjd-jobs-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.tjd-job-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.tjd-job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tjd-job-header {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.tjd-job-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    flex-shrink: 0;
}

.tjd-job-title-group {
    flex: 1;
}

.tjd-job-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #222;
}

.tjd-job-company {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.tjd-job-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 13px;
}

.tjd-job-location,
.tjd-job-contract,
.tjd-job-salary {
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #555;
}

.tjd-job-salary {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.tjd-job-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tjd-job-footer {
    display: flex;
    justify-content: flex-end;
}

.tjd-job-btn {
    padding: 8px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.tjd-job-btn:hover {
    background: #0056b3;
}

.tjd-loading,
.tjd-no-results,
.tjd-error {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.tjd-error {
    color: #d32f2f;
}

.tjd-job-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tjd-suggestion-item {
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.tjd-suggestion-item:hover {
    background: #f5f5f5;
}

@media (max-width: 768px) {
    .tjd-search-row {
        flex-direction: column;
    }

    .tjd-search-field {
        width: 100%;
    }

    .tjd-search-btn {
        width: 100%;
    }

    .tjd-jobs-results {
        grid-template-columns: 1fr;
    }
}
