/* Jobinferno Listings v2.0 */

/* Search Bar */
.ji-search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ji-search-bar input {
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1em;
    width: 100%;
    max-width: 500px;
}
.ji-search-bar input:focus {
    border-color: #e53e3e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(229,62,62,.15);
}

/* Branch Navigation */
.ji-branch-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2em;
}
.ji-branch-nav__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #2d3748;
    font-size: .9em;
    font-weight: 600;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.ji-branch-nav__item:hover {
    border-color: #e53e3e;
    box-shadow: 0 4px 12px rgba(229,62,62,.1);
    transform: translateY(-1px);
    color: #e53e3e;
}
.ji-branch-nav__icon { font-size: 1.2em; }
.ji-branch-nav__count {
    background: #fed7d7;
    color: #c53030;
    font-size: .78em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
}

/* Branch Sections */
.ji-branch-section {
    margin-bottom: 3em;
    scroll-margin-top: 80px;
}
.ji-branch-section__title {
    font-size: 1.4em;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 1em;
    padding-bottom: .5em;
    border-bottom: 2px solid #e2e8f0;
}
.ji-branch-section__count {
    font-weight: 400;
    font-size: .7em;
    color: #718096;
}

/* Jobs Grid */
.ji-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Job Card */
.ji-job-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    text-decoration: none;
    color: #1a202c;
    transition: transform .2s, box-shadow .2s;
}
.ji-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border-color: #e53e3e;
}

.ji-job-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.ji-job-card__title {
    font-size: 1.05em;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.ji-badge {
    font-size: .72em;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ji-badge--remote { background: #fed7d7; color: #c53030; }

.ji-job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .85em;
    color: #718096;
    margin-bottom: 10px;
}

.ji-job-card__highlight {
    font-size: .88em;
    color: #4a5568;
    line-height: 1.5;
    margin: 0 0 12px;
    flex-grow: 1;
}

.ji-job-card__cta {
    font-size: .85em;
    font-weight: 600;
    color: #e53e3e;
    margin-top: auto;
}

/* Map Markers */
.ji-map-marker { background: none; border: none; }
.ji-marker-label {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    line-height: 1;
}

/* Map Filter Panel */
.ji-map-filter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    min-width: 220px;
    font-size: .88em;
}
.ji-map-filter__title {
    font-weight: 700;
    font-size: .95em;
    margin-bottom: 10px;
    color: #1a202c;
}
.ji-map-filter__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
}
.ji-map-filter__row:hover { background: #f7fafc; }
.ji-map-filter__row input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: #e53e3e;
    cursor: pointer;
}
.ji-map-filter__badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ji-map-filter__name { flex: 1; }
.ji-map-filter__count {
    color: #a0aec0;
    font-size: .85em;
}
.ji-map-filter__toggles {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
}
.ji-map-filter__toggle {
    font-size: .85em;
    font-weight: 600;
    color: #e53e3e;
    text-decoration: none;
}
.ji-map-filter__toggle:hover { text-decoration: underline; }

/* Single Job */
.ji-single-job {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em 1em;
}
.ji-single-job__title {
    font-size: 1.8em;
    font-weight: 800;
    margin: 0 0 .5em;
}
.ji-single-job__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .92em;
    color: #718096;
    margin-bottom: 2em;
}
.ji-single-job__content { font-size: 1.02em; line-height: 1.7; color: #2d3748; }
.ji-single-job__content h2 { margin-top: 1.5em; color: #1a202c; }
.ji-single-job__content ul { padding-left: 1.4em; }
.ji-single-job__content li { margin-bottom: .4em; }
.ji-single-job__apply {
    margin-top: 2.5em;
    padding: 2em;
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border-radius: 12px;
    text-align: center;
}
.ji-single-job__apply-btn {
    display: inline-block;
    background: #e53e3e;
    color: #fff;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
}
.ji-single-job__apply-btn:hover { background: #c53030; color: #fff; }

/* Divi full-width override */
body.page:has(.ji-branch-section) #sidebar,
body.page:has(.ji-branch-section) .et_right_sidebar { display: none !important; }
body.page:has(.ji-branch-section) #left-area,
body.page:has(.ji-branch-section) .et_pb_gutters3 .et_pb_column_4_4,
body.page:has(.ji-branch-section) #main-content .container { width: 100% !important; max-width: 100% !important; }

@media (max-width: 768px) {
    .ji-jobs-grid { grid-template-columns: 1fr; }
    .ji-single-job__title { font-size: 1.4em; }
    .ji-branch-nav { gap: 6px; }
    .ji-branch-nav__item { padding: 8px 12px; font-size: .82em; }
    .ji-map-filter {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px;
        width: calc(100% - 20px);
    }
}
