/* Jobs listing page */
body.aayojob-jobs-page {
    background: #f4f5f7;
}

.aajo-jobs-hero {
    background: linear-gradient(160deg, #4b2c82 0%, #5a358f 100%);
    padding: 24px 0 32px;
    color: #fff;
}

.aajo-jobs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
}

.aajo-jobs-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.aajo-jobs-breadcrumb a:hover {
    color: #fff;
}

.aajo-jobs-hero__title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.aajo-jobs-hero__subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.aajo-jobs-location-banner {
    display: flex;
    gap: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    color: #fff;
}

.aajo-jobs-location-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.aajo-jobs-location-banner__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 2px;
    opacity: 0.85;
}

.aajo-jobs-location-banner__place {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.aajo-jobs-location-banner__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.aajo-jobs-location-banner__close {
    color: #fff;
    opacity: 0.85;
}

.aajo-jobs-location-banner__meta,
.aajo-jobs-location-banner__text {
    font-size: 13px;
    margin: 8px 0 0;
    opacity: 0.9;
}

.aajo-link--light {
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}

.aajo-jobs-search {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.aajo-jobs-search__field {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-right: 1px solid #e8eaed;
    position: relative;
}

.aajo-jobs-search__field i {
    color: #9ca3af;
    flex-shrink: 0;
}

.aajo-jobs-search__field input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    background: transparent;
    color: #1a1a2e;
}

.aajo-jobs-search__field--location {
    border-right: none;
}

.aajo-jobs-search__mapbox {
    flex: 1;
    min-width: 0;
}

.aajo-jobs-search__mapbox .mapboxgl-ctrl-geocoder {
    width: 100% !important;
    max-width: none;
    box-shadow: none;
}

.aajo-jobs-search__filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #f1f2f4;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.aajo-jobs-search__filter-btn:hover {
    background: #e8eaed;
}

.aajo-jobs-search__submit {
    white-space: nowrap;
    padding: 12px 24px !important;
    border-radius: 10px !important;
}

.aajo-jobs-autocomplete {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.aajo-jobs-search__mapbox .mapboxgl-ctrl-geocoder {
    width: 100% !important;
    max-width: none;
    box-shadow: none;
    font-family: inherit;
}

.aajo-jobs-search__mapbox .mapboxgl-ctrl-geocoder--input {
    border: none;
    box-shadow: none;
    height: auto;
    padding: 0;
    font-size: 14px;
}

.aajo-jobs-page {
    padding: 32px 0 64px;
}

.aajo-jobs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.aajo-jobs-toolbar__label {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.aajo-jobs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aajo-jobs-tags li {
    cursor: pointer;
}

.aajo-jobs-tags li a {
    display: block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #e8eaed;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
}

.aajo-jobs-tags li a:hover,
.aajo-jobs-tags li.tw-bg-blue-50 a {
    background: #f0e6fa;
    border-color: #d4c4e8;
    color: #4b2c82;
}

.aajo-jobs-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    margin-bottom: 20px;
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
}

.aajo-jobs-filters__label {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.aajo-jobs-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 14px;
    background: #f0e6fa;
    color: #4b2c82;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.aajo-jobs-filter-chip button,
.aajo-jobs-filter-chip span[onclick] {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: none;
    padding: 0;
}

.aajo-jobs-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.aajo-jobs-section-head h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
}

.aajo-jobs-section-head p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.aajo-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
    align-items: stretch;
    grid-auto-rows: auto;
}

.aajo-jobs-grid > .aajo-job-card {
    height: 100%;
    min-width: 0;
}

.aajo-jobs-results {
    display: block;
    margin-bottom: 32px;
}

.aajo-jobs-grid--featured {
    margin-bottom: 40px;
}

.aajo-jobs-load-more {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    padding-top: 8px;
    clear: both;
    position: relative;
    z-index: 2;
}

.aajo-jobs-empty {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    padding: 48px 24px;
    text-align: center;
}

.aajo-jobs-empty p {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 1100px) {
    .aajo-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .aajo-jobs-hero {
        padding: 16px 0 24px;
    }

    .aajo-jobs-hero__title {
        font-size: clamp(24px, 6vw, 30px);
    }

    .aajo-jobs-search {
        flex-direction: column;
        padding: 12px;
    }

    .aajo-jobs-search__field {
        border-right: none;
        border-bottom: 1px solid #e8eaed;
        min-width: 0;
        width: 100%;
        padding: 12px 14px;
    }

    .aajo-jobs-search__field--location {
        border-bottom: 1px solid #e8eaed;
    }

    .aajo-jobs-search__actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding-top: 4px;
    }

    .aajo-jobs-search__filter-btn,
    .aajo-jobs-search__submit {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .aajo-jobs-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .aajo-jobs-tags {
        gap: 6px;
    }

    .aajo-jobs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .aajo-jobs-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
