/* RecruitPro Jobs Map – Frontend Styles */

.rp-jobs-map-wrapper {
    --rp-primary: #0d6efd;
    --rp-bg: #f8f9fa;
    --rp-card-bg: #ffffff;
    --rp-text: #212529;
    --rp-text-muted: #6c757d;
    --rp-border: #dee2e6;
    --rp-radius: 8px;
    --rp-font: inherit;

    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--rp-font);
    color: var(--rp-text);
    background: var(--rp-bg);
    padding: 24px;
    border-radius: var(--rp-radius);
}

/* ── Toolbar ──────────────────────────────────────── */

.rp-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rp-filter-input {
    padding: 8px 12px;
    font-size: 0.9em;
    font-family: var(--rp-font);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    background: var(--rp-card-bg);
    color: var(--rp-text);
    outline: none;
    transition: border-color 0.2s;
    flex: 1;
    min-width: 140px;
    max-width: 260px;
}

.rp-filter-select {
    padding: 8px 32px 8px 12px;
    font-size: 0.9em;
    font-family: var(--rp-font);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    background: var(--rp-card-bg);
    color: var(--rp-text);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
    min-width: 130px;
}

.rp-filter-input:focus,
.rp-filter-select:focus {
    border-color: var(--rp-primary);
}

.rp-toolbar-sep {
    width: 1px;
    height: 24px;
    background: var(--rp-border);
    flex-shrink: 0;
}

/* ── PLZ + Location Controls ─────────────────────── */

.rp-plz-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.rp-plz-input {
    width: 80px;
    padding: 8px 10px;
    font-size: 0.9em;
    font-family: var(--rp-font);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius) 0 0 var(--rp-radius);
    border-right: none;
    background: var(--rp-card-bg);
    color: var(--rp-text);
    outline: none;
}

.rp-plz-input:focus { border-color: var(--rp-primary); }

.rp-plz-input.rp-plz-active {
    border-color: var(--rp-primary);
    color: var(--rp-primary);
    font-weight: 600;
}

.rp-plz-go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--rp-border);
    border-left: none;
    border-radius: 0 var(--rp-radius) var(--rp-radius) 0;
    background: var(--rp-card-bg);
    color: var(--rp-text-muted);
    cursor: pointer;
    transition: color 0.15s;
}

.rp-plz-go:hover { color: var(--rp-primary); }

.rp-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    background: var(--rp-card-bg);
    color: var(--rp-text-muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}

.rp-icon-btn:hover,
.rp-icon-btn.rp-locate-active {
    border-color: var(--rp-primary);
    color: var(--rp-primary);
}

.rp-radius-control {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--rp-card-bg);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
}

.rp-radius-slider {
    width: 100px;
    accent-color: var(--rp-primary);
    cursor: pointer;
}

.rp-radius-value {
    font-size: 0.78em;
    font-weight: 700;
    color: var(--rp-primary);
    white-space: nowrap;
    min-width: 40px;
}

.rp-radius-clear {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: var(--rp-text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.rp-radius-clear:hover { color: #dc2626; }

.rp-distance-tag {
    font-size: 0.8em;
    color: var(--rp-primary);
    font-weight: 600;
    white-space: nowrap;
}

/* ── Results Info ────────────────────────────────── */

.rp-results-info {
    font-size: 0.85em;
    color: var(--rp-text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

#rp-job-count {
    font-weight: 700;
    color: var(--rp-text);
}

/* ── Job List Layouts ────────────────────────────── */

.rp-job-list.rp-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.rp-job-list.rp-view-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Job Card ────────────────────────────────────── */

.rp-job-card {
    background: var(--rp-card-bg);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.rp-job-card:hover {
    border-color: var(--rp-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rp-job-header {
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
}

.rp-job-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rp-job-card h3 {
    margin: 0;
    font-size: inherit;
    font-weight: 600;
    color: var(--rp-text);
    line-height: 1.4;
}

.rp-chevron {
    flex-shrink: 0;
    color: var(--rp-text-muted);
    transition: transform 0.2s;
    margin-top: 2px;
}

.rp-job-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.rp-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85em;
    color: var(--rp-tag-text, #fff);
    background: var(--rp-tag-bg, var(--rp-primary));
    padding: 3px 10px;
    border-radius: var(--rp-tag-radius, 100px);
    white-space: nowrap;
}

.rp-meta-tag svg { stroke: var(--rp-tag-text, #fff); }

.rp-meta-tag svg { flex-shrink: 0; }

/* ── Job Sub ID ──────────────────────────────────── */

.rp-job-sub-id {
    font-size: 0.8em;
    color: var(--rp-text-muted);
    margin-top: 2px;
    margin-bottom: 4px;
}

/* ── Job Description ─────────────────────────────── */

.rp-job-description {
    font-size: inherit;
    line-height: 1.7;
    color: var(--rp-text);
    margin-top: 16px;
    white-space: pre-line;
}

.rp-job-requirements { margin-top: 16px; }

.rp-job-requirements h4 {
    font-size: inherit;
    font-weight: 600;
    color: var(--rp-text);
    margin: 0 0 8px;
}

.rp-job-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rp-job-requirements li {
    position: relative;
    padding-left: 20px;
    font-size: inherit;
    color: var(--rp-text);
    line-height: 1.6;
}

.rp-job-requirements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rp-primary);
    opacity: 0.7;
}

.rp-job-info {
    font-size: inherit;
    color: var(--rp-text-muted);
    margin-top: 8px;
}

.rp-job-info strong { color: var(--rp-text); }

/* ── How to Apply section ── */

.rp-how-to-apply {
    margin-top: 20px;
    padding: 20px 24px;
    background: color-mix(in srgb, var(--rp-text) 6%, var(--rp-card-bg));
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    font-size: 15px;
    line-height: 1.7;
}

.rp-how-to-apply h4,
.rp-how-to-apply h3,
.rp-how-to-apply h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--rp-text);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rp-how-to-apply .rp-how-to-apply-body,
.rp-how-to-apply .rp-how-to-apply-body p,
.rp-how-to-apply .rp-how-to-apply-body div,
.rp-how-to-apply .rp-how-to-apply-body span,
.rp-how-to-apply .rp-how-to-apply-body li,
.rp-how-to-apply .rp-how-to-apply-body a {
    font-size: 15px !important;
    line-height: 1.7;
    color: var(--rp-text);
    margin: 0 0 6px;
}

/* ── Description heading ─────────────────────────── */

.rp-description-heading {
    font-weight: 600;
    color: var(--rp-primary);
    margin: 0 0 12px;
    line-height: 1.4;
}

/* ── Icon Sections ───────────────────────────────── */

.rp-icon-section { margin-top: 16px; }

.rp-icon-section h4,
.rp-icon-section h3,
.rp-icon-section h2,
.rp-section-heading {
    font-size: inherit;
    font-weight: 700;
    color: var(--rp-text);
    margin: 0 0 10px;
}

.rp-icon-grid-1 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rp-icon-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, max-content);
    gap: 6px 56px;
}

.rp-job-image {
    float: right;
    max-width: 280px;
    margin: 0 0 16px 20px;
    border-radius: var(--rp-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rp-icon-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: inherit;
    color: var(--rp-text);
    line-height: 1.5;
}

.rp-icon-emoji {
    font-size: 1.1em;
    flex-shrink: 0;
    width: 1.4em;
    text-align: center;
    line-height: 1.4;
}

/* ── Apply Button Trigger ─────────────────────────── */

.rp-apply-trigger {
    margin-top: 20px;
    text-align: left;
}

.rp-apply-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 40px;
    font-size: inherit;
    font-weight: 700;
    font-family: var(--rp-font);
    color: #fff;
    background: var(--rp-primary);
    border: none;
    border-radius: var(--rp-radius);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--rp-primary) 30%, transparent);
}

.rp-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--rp-primary) 40%, transparent);
}

/* ── Inline Form ─────────────────────────────────── */

.rp-inline-form {
    margin-top: 24px;
    padding: 20px 24px;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    background: var(--rp-card-bg);
    position: relative;
}

.rp-inline-form h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--rp-text);
    margin: 0 0 16px;
}

.rp-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.rp-form-field label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--rp-text);
    margin-bottom: 4px;
}

.rp-required { color: #ef4444; }

.rp-form-field input,
.rp-form-field textarea,
.rp-form-field select {
    width: 100%;
    padding: 10px 12px;
    font-size: inherit;
    font-family: var(--rp-font);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    background: var(--rp-card-bg);
    color: var(--rp-text);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rp-form-field input:focus,
.rp-form-field textarea:focus,
.rp-form-field select:focus {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rp-primary) 12%, transparent);
}

.rp-form-field textarea { resize: vertical; }
.rp-field-full { grid-column: 1 / -1; }

.rp-submit-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    padding: 12px 32px;
    font-size: inherit;
    font-weight: 600;
    font-family: var(--rp-font);
    color: #fff;
    background: var(--rp-primary);
    border: none;
    border-radius: var(--rp-radius);
    cursor: pointer;
    transition: opacity 0.15s;
}

.rp-submit-btn:hover { opacity: 0.9; }
.rp-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.rp-form-success { text-align: center; padding: 24px 0; }
.rp-form-success .rp-success-icon { font-size: 48px; margin-bottom: 12px; }
.rp-form-success h4 { font-size: 1.25em; font-weight: 700; margin-bottom: 8px; }
.rp-form-success p { font-size: inherit; color: var(--rp-text-muted); }

/* ── Form visibility animation ───────────────────── */

.rp-form-hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.rp-form-visible {
    max-height: 3000px;
    opacity: 1;
    transition: max-height 0.6s ease, opacity 0.4s ease 0.1s;
}

/* ── Form Progress ───────────────────────────────── */

.rp-form-progress {
    height: 4px;
    background: var(--rp-bg);
    border-radius: 99px;
    margin-bottom: 8px;
    overflow: hidden;
}

.rp-form-progress-bar {
    height: 100%;
    background: var(--rp-primary);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.rp-form-step-info {
    font-size: 0.8em;
    color: var(--rp-text-muted);
    margin-bottom: 16px;
    text-align: center;
}

/* ── Form Steps ──────────────────────────────────── */

.rp-form-step { display: none; }
.rp-form-step.rp-step-active { display: block; animation: rpFadeIn 0.3s ease; }

@keyframes rpFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Form Navigation ─────────────────────────────── */

.rp-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 12px;
}

.rp-nav-back {
    padding: 10px 24px;
    font-size: inherit;
    font-weight: 600;
    font-family: var(--rp-font);
    color: var(--rp-text-muted);
    background: var(--rp-bg);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    cursor: pointer;
    transition: background 0.15s;
}

.rp-nav-back:hover { background: var(--rp-border); }
.rp-nav-next { margin-left: auto; }

/* ── File Upload Field ───────────────────────────── */

.rp-file-upload {
    border: 2px dashed var(--rp-border);
    border-radius: var(--rp-radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.rp-file-upload:hover,
.rp-file-upload.rp-file-dragover {
    border-color: var(--rp-primary);
    background: color-mix(in srgb, var(--rp-primary) 5%, transparent);
}

.rp-file-upload-icon { font-size: 32px; margin-bottom: 8px; }
.rp-file-upload-text { font-size: inherit; font-weight: 600; color: var(--rp-text); margin: 0; }
.rp-file-upload-hint { font-size: 0.8em; color: var(--rp-text-muted); margin: 4px 0 0; }

.rp-file-input {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.rp-file-name { font-size: 0.85em; color: var(--rp-text); margin-top: 8px; font-weight: 500; }

/* ── Multi-File Upload ──────────────────────────── */

.rp-multi-upload { width: 100%; }

.rp-file-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rp-file-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: var(--rp-bg);
    border: 1px solid var(--rp-border);
    border-radius: calc(var(--rp-radius) / 2);
    font-size: 0.85em;
}

.rp-file-top {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.rp-file-bottom {
    padding-left: 50px;
}

.rp-file-icon {
    flex-shrink: 0;
    font-size: 1.2em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-file-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--rp-border);
}

.rp-file-row-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--rp-text);
    font-weight: 500;
}

.rp-file-category-select {
    padding: 4px 8px;
    font-size: inherit;
    font-family: var(--rp-font);
    border: 1px solid var(--rp-border);
    border-radius: calc(var(--rp-radius) / 2);
    background: var(--rp-card-bg);
    color: var(--rp-text);
    cursor: pointer;
    min-width: 110px;
}

.rp-file-remove {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--rp-text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.rp-file-remove:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* ── Consent Step ────────────────────────────────── */

.rp-consent-step { text-align: center; padding: 16px 0; }
.rp-consent-icon { font-size: 40px; margin-bottom: 12px; }
.rp-consent-step h4 { font-size: 1.15em; font-weight: 700; margin: 0 0 8px; }
.rp-consent-step p { font-size: inherit; color: var(--rp-text-muted); margin: 0 0 16px; }

.rp-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    padding: 16px;
    border: 2px solid var(--rp-border);
    border-radius: var(--rp-radius);
    cursor: pointer;
    transition: border-color 0.2s;
    font-size: 0.85em;
    line-height: 1.5;
    color: var(--rp-text-muted);
}

.rp-consent-label:has(input:checked) {
    border-color: var(--rp-primary);
    background: color-mix(in srgb, var(--rp-primary) 5%, transparent);
}

.rp-consent-label input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px;
    flex-shrink: 0; accent-color: var(--rp-primary);
}

.rp-consent-label a { color: var(--rp-primary); text-decoration: underline; }

/* ── Radio & Checkbox groups ─────────────────────── */

.rp-radio-group,
.rp-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rp-radio-label,
.rp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: inherit;
    color: var(--rp-text);
    padding: 8px 12px;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    cursor: pointer;
    transition: border-color 0.15s;
}

.rp-radio-label:hover,
.rp-checkbox-label:hover { border-color: var(--rp-primary); }

/* ── Field Error ─────────────────────────────────── */

.rp-field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* ── Highlighted card ────────────────────────────── */

.rp-job-card.rp-highlighted {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--rp-primary) 20%, transparent);
}

/* ── Empty / Error ───────────────────────────────── */

.rp-error, .rp-empty {
    text-align: center; padding: 40px 20px;
    color: var(--rp-text-muted); font-size: inherit;
}
.rp-error { color: #dc3545; background: #fff5f5; border-radius: var(--rp-radius); }

/* ── Map Popup ───────────────────────────────────── */

.rp-popup h4 { margin: 0 0 6px; font-size: inherit; font-weight: 600; color: var(--rp-text); }
.rp-popup .rp-popup-sub { font-size: 0.75em; color: var(--rp-text-muted); margin-bottom: 4px; }
.rp-popup .rp-popup-meta { font-size: 0.8em; color: var(--rp-text-muted); margin-bottom: 8px; }
.rp-popup .rp-popup-meta span { margin-right: 6px; }
.rp-popup-desc { font-size: 0.85em; color: var(--rp-text); opacity: 0.8; line-height: 1.5; margin: 8px 0; }
.rp-custom-marker { background: none !important; border: none !important; }

/* ══════════════════════════════════════════════════════
 *  SPLIT VIEW LAYOUT
 *  Left: map (50% default, shrinks to 28% when expanded)
 *  Right: results (50% default, grows to 72% when expanded)
 *  NO overlays, NO position:absolute, NO modals.
 * ══════════════════════════════════════════════════════ */

.rp-layout-split {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.rp-layout-split .rp-split-left {
    flex: 0 0 35%;
    max-width: 35%;
    position: sticky;
    top: 20px;
    transition: flex-basis 300ms ease, max-width 300ms ease, opacity 300ms ease;
}

.rp-layout-split .rp-split-right {
    flex: 0 0 65%;
    max-width: 65%;
    min-width: 0;
    transition: flex-basis 300ms ease, max-width 300ms ease;
}

.rp-layout-split #rp-map {
    margin-bottom: 0 !important;
    height: 100% !important;
    min-height: 500px;
}

/* ── Expanded state: right panel grows, map shrinks ── */

.rp-layout-split.rp-split-expanded .rp-split-left {
    flex-basis: 28%;
    max-width: 28%;
    opacity: 0.5;
}

.rp-layout-split.rp-split-expanded .rp-split-right {
    flex-basis: 72%;
    max-width: 72%;
}

/* ══════════════════════════════════════════════════════
 *  DETAIL PANEL (inside .rp-split-right or wrapper)
 *  NO position:fixed, NO position:absolute, NO modal.
 *  Scrolls internally, never exceeds viewport.
 * ══════════════════════════════════════════════════════ */

.rp-detail-panel {
    background: var(--rp-card-bg);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    margin-bottom: 16px;
    animation: rpFadeIn 0.25s ease;
}

.rp-detail-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 0;
}

.rp-detail-panel-header h3 {
    margin: 0;
    font-weight: 700;
    color: var(--rp-text);
}

.rp-detail-panel-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--rp-border);
    background: var(--rp-card-bg);
    color: var(--rp-text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.rp-detail-panel-close:hover { background: var(--rp-bg); }

.rp-detail-panel-content {
    padding: 12px 20px 20px;
}

/* Content blocks inside detail panel */
.rp-detail-panel .rp-job-description {
    background: var(--rp-bg);
    padding: 16px 20px;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
}

.rp-detail-panel .rp-icon-section {
    background: var(--rp-bg);
    padding: 16px 20px;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
}

.rp-detail-panel .rp-job-info {
    background: var(--rp-bg);
    padding: 10px 20px;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
}

.rp-detail-panel .rp-how-to-apply {
    background: color-mix(in srgb, var(--rp-text) 8%, var(--rp-card-bg));
    font-size: 15px;
    line-height: 1.7;
}

/* ── Inline detail (stacked layout, full width below) ── */

.rp-detail-panel-inline {
    margin-top: 24px;
}

/* ══════════════════════════════════════════════════════
 *  RESPONSIVE – MOBILE
 *  No map, no animation, no overlays. Classic list.
 * ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .rp-layout-split {
        flex-direction: column;
    }

    .rp-layout-split .rp-split-left {
        display: none !important;
    }

    .rp-layout-split .rp-split-right,
    .rp-layout-split.rp-split-expanded .rp-split-right {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    .rp-detail-panel-content {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 640px) {
    .rp-jobs-map-wrapper { padding: 16px; }
    .rp-toolbar { flex-direction: column; align-items: stretch; }
    .rp-filter-row { flex-direction: column; }
    .rp-job-list.rp-view-grid { grid-template-columns: 1fr; }
    .rp-view-toggle { align-self: flex-end; }
    .rp-icon-grid-2 { grid-template-columns: 1fr; }
    .rp-form-grid { grid-template-columns: 1fr; }
}

/* ── Leaflet cluster overrides ───────────────────── */

.marker-cluster-small { background-color: color-mix(in srgb, var(--rp-primary) 20%, transparent) !important; }
.marker-cluster-small div { background-color: color-mix(in srgb, var(--rp-primary) 60%, transparent) !important; color: #fff !important; font-weight: 700; }
.marker-cluster-medium { background-color: color-mix(in srgb, var(--rp-primary) 30%, transparent) !important; }
.marker-cluster-medium div { background-color: color-mix(in srgb, var(--rp-primary) 70%, transparent) !important; color: #fff !important; font-weight: 700; }
.marker-cluster-large { background-color: color-mix(in srgb, var(--rp-primary) 40%, transparent) !important; }
.marker-cluster-large div { background-color: color-mix(in srgb, var(--rp-primary) 85%, transparent) !important; color: #fff !important; font-weight: 700; }

/* ── Server-side rendered jobs (SEO / noscript) ──── */

.rp-ssr-jobs { display: flex; flex-direction: column; gap: 12px; }

.rp-ssr-job {
    background: var(--rp-card-bg, #fff);
    border: 1px solid var(--rp-border, #dee2e6);
    border-radius: var(--rp-radius, 8px);
    padding: 16px 20px;
}

.rp-ssr-job h3 { margin: 0 0 6px; font-size: 1em; font-weight: 600; }
.rp-ssr-job h3 a { color: var(--rp-text, #212529); text-decoration: none; }
.rp-ssr-job h3 a:hover { color: var(--rp-primary, #0d6efd); }

.rp-ssr-meta {
    display: flex; gap: 12px; flex-wrap: wrap;
    font-size: 0.85em; color: var(--rp-text-muted, #6c757d);
    margin-bottom: 6px;
}

.rp-ssr-job p { font-size: 0.9em; color: var(--rp-text-muted, #6c757d); margin: 0; }
