/**
 * CareerNest — Jobs listing page styles
 *
 * Extracted from the 1245-line inline <style> block in templates/template-jobs.php
 * (1.8.0). Enqueued conditionally on the jobs listing page only via
 * Plugin::enqueue_frontend_assets(). Matches the 1.6.x refactor pattern
 * that moved 3 shortcode CSS heredocs out of PHP.
 *
 * The original block's leading-4-space indent is preserved verbatim to keep
 * the diff minimal — pruning whitespace would obscure the line-by-line
 * equivalence with the inline original.
 */
    /* Job Listings Page Styles */
    .cn-jobs-page {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem 1rem;
    }

    .cn-jobs-container {
        width: 100%;
    }

    /* Header */
    .cn-jobs-header {
        margin-bottom: 2rem;
    }

    .cn-jobs-title {
        font-size: 2.5rem;
        font-weight: bold;
        margin: 0 0 0.5rem 0;
        color: #1a202c;
    }

    .cn-jobs-subtitle,
    .cn-jobs-results-info {
        font-size: 1.1rem;
        color: #666;
        margin: 0;
    }

    .cn-active-filters-count {
        color: var(--cn-primary-btn);
        font-weight: 500;
    }

    /* Layout */
    .cn-jobs-layout {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 2rem;
        align-items: start;
    }

    /* Sidebar Filters */
    .cn-jobs-sidebar {
        position: sticky;
        top: 2rem;
    }

    .cn-filters-wrapper {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 1.5rem;
    }

    .cn-filters-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0 0 1.5rem 0;
        color: #1a202c;
    }

    .cn-filter-group {
        margin-bottom: 1.5rem;
    }

    .cn-filter-label {
        display: block;
        font-weight: 500;
        margin-bottom: 0.5rem;
        color: #4a5568;
        font-size: 0.9rem;
    }

    .cn-filter-input,
    .cn-filter-select {
        width: 100%;
        padding: 0.625rem;
        border: 1px solid #cbd5e0;
        border-radius: 4px;
        font-size: 0.9rem;
        transition: border-color 0.2s;
        box-sizing: border-box;
    }

    .cn-filter-input:focus,
    .cn-filter-select:focus {
        outline: none;
        border-color: var(--cn-primary-btn);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }

    .cn-filter-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    /* Input with Icon */
    .cn-input-with-icon {
        position: relative;
        width: 100%;
    }

    .cn-input-icon {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #4a5568;
        pointer-events: none;
        flex-shrink: 0;
    }

    .cn-input-with-icon-field {
        padding-left: 2.5rem !important;
        min-height: 42px;
        box-sizing: border-box;
    }

    /* Salary Range Slider */
    .cn-salary-display {
        float: right;
        font-size: 0.85rem;
        color: var(--cn-primary-btn);
        font-weight: 600;
    }

    .cn-range-inputs {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 0.75rem 0;
    }

    .cn-range-slider {
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: #cbd5e0;
        outline: none;
        -webkit-appearance: none;
    }

    .cn-range-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--cn-primary-btn);
        cursor: pointer;
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .cn-range-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--cn-primary-btn);
        cursor: pointer;
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .cn-range-slider::-webkit-slider-thumb:hover {
        opacity: 0.9;
    }

    .cn-range-slider::-moz-range-thumb:hover {
        opacity: 0.9;
    }

    .cn-range-labels {
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        color: #718096;
        margin-top: 0.25rem;
    }

    /* Buttons */
    .cn-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.625rem 1.25rem;
        border: none;
        border-radius: 4px;
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s;
    }

    .cn-btn-primary {
        background: var(--cn-primary-btn);
        color: white;
    }

    .cn-btn-primary:hover {
        opacity: 0.9;
        color: white;
    }

    .cn-btn-secondary {
        background: white;
        color: var(--cn-primary-btn);
        border: 1px solid var(--cn-primary-btn);
    }

    .cn-btn-secondary:hover {
        background: #f5f5f5;
    }

    .cn-btn-view-job {
        background: transparent;
        color: var(--cn-primary-btn);
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .cn-btn-view-job:hover {
        background: #f5f5f5;
        opacity: 0.9;
    }

    /* Job Cards */
    .cn-jobs-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Multi-column layouts */
    .cn-jobs-columns-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cn-jobs-columns-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .cn-job-card {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 1.5rem;
        transition: box-shadow 0.2s, border-color 0.2s;
        display: flex;
        flex-direction: column;
    }

    .cn-job-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-color: #cbd5e0;
    }

    .cn-job-card.cn-job-filled {
        opacity: 0.7;
        background: #f7fafc;
    }

    .cn-job-card-header {
        display: flex;
        gap: 1rem;
        margin-bottom: 1rem;
        align-items: flex-start;
        position: relative;
    }

    .cn-job-bookmark-btn {
        position: absolute;
        top: -10px;
        right: -10px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        color: #636363;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cn-job-bookmark-btn:hover {
        color: #0073aa;
        transform: scale(1.1);
    }

    .cn-job-bookmark-btn:hover svg {
        fill: var(--bde-brand-primary-color);
    }

    .cn-job-bookmark-btn:hover svg path {
        stroke: var(--bde-brand-primary-color);
    }

    .cn-job-bookmark-btn svg {
        display: block;
        width: 18px;
        height: 18px;
    }

    .cn-job-bookmark-btn.bookmarked svg {
        fill: var(--bde-brand-primary-color);
    }

    .cn-job-bookmark-btn.bookmarked svg path {
        stroke: var(--bde-brand-primary-color);
    }

    .cn-job-logo,
    .cn-job-logo-placeholder {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        border-radius: 6px;
        object-fit: contain;
    }

    .cn-job-logo-placeholder {
        background: #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 1.5rem;
        color: #4a5568;
    }

    .cn-job-header-content {
        flex: 1;
        min-width: 0;
    }

    .cn-job-title {
        margin: 0 0 0.25rem 0;
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.4;
    }

    .cn-job-title a {
        color: #1a202c;
        text-decoration: none;
    }

    .cn-job-title a:hover {
        color: var(--cn-primary-btn);
        text-decoration: none;
    }

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

    .cn-employer-link {
        color: #718096;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .cn-employer-link:hover {
        color: var(--cn-primary-btn);
        text-decoration: none;
    }

    .cn-company-separator {
        color: #cbd5e0;
    }

    .cn-job-type-inline {
        font-size: 14px;
        font-weight: 600;
        text-transform: capitalize;
    }

    .cn-job-type-inline.cn-job-type-part-time {
        color: #FF8200;
    }

    .cn-job-type-inline.cn-job-type-contract {
        color: #0275F4;
    }

    .cn-job-type-inline.cn-job-type-full-time {
        color: #17B86A;
    }

    .cn-job-type-inline.cn-job-type-casual {
        color: #101010;
    }

    .cn-job-status-badge {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .cn-status-filled {
        background: #fed7d7;
        color: #c53030;
    }

    .cn-job-card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .cn-job-meta-item {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        color: #4a5568;
        font-size: 0.875rem;
    }

    .cn-job-meta-item svg {
        flex-shrink: 0;
    }

    .cn-job-meta-item.cn-salary {
        font-weight: 600;
        color: #2d3748;
    }

    .cn-remote-badge {
        display: inline-block;
        background: #c6f6d5;
        color: #22543d;
        padding: 0.125rem 0.5rem;
        border-radius: 3px;
        font-size: 0.75rem;
        font-weight: 600;
        margin-left: 0.25rem;
    }

    /* Job Type Badges */
    .cn-job-type-badge {
        display: inline-block;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: capitalize;
    }

    .cn-job-type-part-time {
        color: #FF8200;
    }

    .cn-job-type-contract {
        color: #0275F4;
    }

    .cn-job-type-full-time {
        color: #17B86A;
    }

    .cn-job-type-casual {
        color: #101010;
    }

    .cn-distance-badge {
        display: inline-block;
        background: #bee3f8;
        color: #2c5282;
        padding: 0.125rem 0.5rem;
        border-radius: 3px;
        font-size: 0.75rem;
        font-weight: 600;
        margin-left: 0.25rem;
    }

    /* Radius Filter Styles */
    .cn-radius-display {
        float: right;
        font-size: 0.85rem;
        color: var(--cn-primary-btn);
        font-weight: 600;
    }

    .cn-filter-hint {
        font-size: 0.75rem;
        color: #718096;
        margin: 0.5rem 0 0 0;
        font-style: italic;
    }

    /* Location Input with Button */
    .cn-location-input-wrapper {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        position: relative;
    }

    .cn-location-input-wrapper .cn-input-with-icon {
        flex: 1;
        position: relative;
    }

    .cn-input-with-chips {
        padding-right: 3.5rem !important;
    }

    /* Distance Chip inside location input */
    .cn-distance-chip {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: #bee3f8;
        color: #2c5282;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        z-index: 1;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .cn-distance-chip:hover {
        background: #90cdf4;
        color: #2a4365;
    }

    .cn-distance-chip-text {
        display: inline-block;
    }

    .cn-distance-chip-close {
        display: inline-flex;
        align-items: center;
        margin-left: 0.125rem;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.2s;
    }

    .cn-distance-chip-close:hover {
        opacity: 1;
    }

    .cn-get-location-btn {
        flex-shrink: 0;
        padding: 0.625rem;
        background: white;
        border: 1px solid #cbd5e0;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #4a5568;
        min-width: 42px;
        min-height: 42px;
    }

    .cn-get-location-btn:hover {
        background: #f0f8ff;
        border-color: #0073aa;
        color: #0073aa;
    }

    .cn-get-location-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .cn-get-location-btn.cn-location-active {
        background: #c6f6d5;
        color: #22543d;
        border-color: #22543d;
    }

    .cn-get-location-btn svg {
        display: block;
    }

    .cn-get-location-btn.cn-loading {
        opacity: 0.6;
        cursor: wait;
    }

    .cn-get-location-btn.cn-loading svg {
        animation: cn-spin 1s linear infinite;
    }

    .cn-job-excerpt {
        color: #4a5568;
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .cn-job-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 1rem;
        border-top: 1px solid #e2e8f0;
        margin-top: auto;
    }

    .cn-job-expiry {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.8rem;
        font-weight: 500;
    }

    .cn-expiry-normal {
        color: #718096;
    }

    .cn-expiry-warning {
        color: #d69e2e;
    }

    .cn-expiry-urgent {
        color: #dd6b20;
    }

    .cn-expiry-expired {
        color: #e53e3e;
    }

    .cn-job-closing-date {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.8rem;
        font-weight: 500;
        color: #D83636;
    }

    /* Pagination */
    .cn-pagination {
        margin-top: 3rem;
    }

    .cn-pagination ul {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .cn-pagination li {
        margin: 0;
    }

    .cn-pagination a,
    .cn-pagination span {
        display: inline-block;
        padding: 0.5rem 0.75rem;
        min-width: 2.5rem;
        text-align: center;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
        text-decoration: none;
        color: #4a5568;
        transition: all 0.2s;
    }

    .cn-pagination a:hover {
        background: var(--cn-primary-btn);
        color: white;
        border-color: var(--cn-primary-btn);
    }

    .cn-pagination .current {
        background: var(--cn-primary-btn);
        color: white;
        border-color: var(--cn-primary-btn);
        font-weight: 600;
    }

    /* Empty State */
    .cn-jobs-empty {
        text-align: center;
        padding: 4rem 2rem;
        background: #f7fafc;
        border-radius: 8px;
    }

    .cn-empty-icon {
        margin-bottom: 1.5rem;
    }

    .cn-empty-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0 0 1rem 0;
        color: #2d3748;
    }

    .cn-empty-message {
        font-size: 1rem;
        color: #718096;
        margin: 0 0 2rem 0;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Loading Spinner */
    .cn-loading-spinner {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 10;
    }

    .cn-loading-spinner .spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #0073aa;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: cn-spin 1s linear infinite;
        margin: 0 auto 1rem;
    }

    @keyframes cn-spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .cn-loading-spinner p {
        color: #4a5568;
        font-weight: 500;
    }

    /* AJAX Error Message */
    .cn-ajax-error {
        background: #fed7d7;
        border: 1px solid #fc8181;
        color: #c53030;
        padding: 1rem;
        border-radius: 4px;
        margin-bottom: 1rem;
    }

    .cn-ajax-error strong {
        font-weight: 600;
    }

    /* View Toggle */
    .cn-view-toggle {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        justify-content: flex-end;
    }

    .cn-view-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem 1rem;
        background: white;
        border: 1px solid #cbd5e0;
        border-radius: 4px;
        color: #4a5568;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }

    .cn-view-toggle-btn:hover {
        background: #ff8200;
        border-color: #ff8200;
        color: white;
    }

    .cn-view-toggle-btn.active {
        background: #ff8200;
        border-color: #ff8200;
        color: white;
    }

    .cn-view-toggle-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Map View Styles */
    .cn-jobs-map-container {
        width: 100%;
        height: 600px;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }

    .cn-jobs-map {
        width: 100%;
        height: 100%;
    }

    /* Map Info Window Styles */
    .cn-map-info-window {
        padding: 0.5rem;
        max-width: 300px;
    }

    .cn-map-info-header {
        display: flex;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .cn-map-info-logo {
        width: 40px;
        height: 40px;
        border-radius: 4px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .cn-map-info-logo-placeholder {
        width: 40px;
        height: 40px;
        border-radius: 4px;
        background: #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 1rem;
        color: #4a5568;
        flex-shrink: 0;
    }

    .cn-map-info-content {
        flex: 1;
        min-width: 0;
    }

    .cn-map-info-title {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 0.25rem 0;
        color: #1a202c;
        line-height: 1.3;
    }

    .cn-map-info-company {
        font-size: 0.875rem;
        color: #718096;
        margin: 0;
    }

    .cn-map-info-meta {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        font-size: 0.875rem;
        color: #4a5568;
    }

    .cn-map-info-meta-item {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    .cn-map-info-meta-item svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .cn-map-info-link {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.5rem 0.75rem;
        background: #0073aa;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        font-size: 0.875rem;
        font-weight: 500;
        transition: background 0.2s;
    }

    .cn-map-info-link:hover {
        background: #005a87;
        color: white;
    }

    .cn-map-info-link svg {
        width: 12px;
        height: 12px;
    }

    /* Jobs Main Container Position */
    .cn-jobs-main {
        position: relative;
        min-height: 300px;
    }

    /* Filter Position: Right Sidebar */
    .cn-filter-position-right {
        grid-template-columns: 1fr 280px;
    }

    .cn-filter-position-right .cn-jobs-sidebar {
        order: 2;
    }

    .cn-filter-position-right .cn-jobs-main {
        order: 1;
    }

    /* Filter Position: Top Bar */
    .cn-filter-position-top {
        grid-template-columns: 1fr;
    }

    .cn-filter-position-top .cn-jobs-sidebar {
        position: static;
        max-width: 100%;
    }

    .cn-filter-position-top .cn-filters-wrapper {
        padding: 1.25rem;
    }

    .cn-filter-position-top .cn-jobs-filters {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .cn-filter-position-top .cn-filters-title {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }

    .cn-filter-position-top .cn-filter-group {
        margin-bottom: 0;
    }

    .cn-filter-position-top .cn-filter-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .cn-filter-position-top .cn-filter-actions .cn-btn {
        flex: 0 0 auto;
    }

    /* Mobile Filter Toggle Button */
    .cn-mobile-filter-toggle {
        display: none;
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem 1rem;
        background: var(--cn-primary-btn);
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
        margin-right: auto;
    }

    .cn-mobile-filter-toggle:hover {
        opacity: 0.9;
    }

    .cn-mobile-filter-toggle svg {
        width: 20px;
        height: 20px;
    }

    /* Mobile Clear Filters Button */
    .cn-mobile-clear-filters {
        display: none;
        align-items: center;
        justify-content: center;
        padding: 0.625rem;
        background: white;
        border: 1px solid #e53e3e;
        border-radius: 4px;
        color: #e53e3e;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
        min-width: 42px;
        min-height: 42px;
        margin-right: auto;
    }

    .cn-mobile-clear-filters:hover {
        background: #e53e3e;
        color: white;
    }

    .cn-mobile-clear-filters svg {
        width: 18px;
        height: 18px;
    }

    .cn-filter-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        padding: 0 0.375rem;
        background: white;
        color: var(--cn-primary-btn);
        border-radius: 10px;
        font-size: 0.75rem;
        font-weight: 600;
        margin-left: 0.25rem;
    }

    /* Mobile Filter Overlay */
    .cn-mobile-filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .cn-mobile-filter-overlay.active {
        opacity: 1;
    }

    /* Mobile Filter Header (hidden on desktop) */
    .cn-mobile-filter-header {
        display: none;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        background: white;
        border-bottom: 1px solid #e2e8f0;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .cn-mobile-filter-title {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: #1a202c;
    }

    .cn-mobile-filter-close {
        background: transparent;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        color: #4a5568;
        transition: color 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cn-mobile-filter-close:hover {
        color: #1a202c;
    }

    .cn-mobile-filter-close svg {
        width: 24px;
        height: 24px;
    }

    /* Responsive Design */
    @media (max-width: 1024px) {
        .cn-jobs-columns-3 {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .cn-jobs-page {
            padding: 1rem 0.5rem;
        }

        .cn-jobs-title {
            font-size: 1.75rem;
        }

        /* Show mobile filter toggle button */
        .cn-mobile-filter-toggle {
            display: flex;
        }

        /* Show mobile clear filters button */
        .cn-mobile-clear-filters {
            display: flex;
        }

        /* Show mobile filter overlay only when active */
        .cn-mobile-filter-overlay {
            display: block;
            visibility: hidden;
            pointer-events: none;
        }

        .cn-mobile-filter-overlay.active {
            visibility: visible;
            pointer-events: auto;
        }

        /* Mobile filter panel - slide up from bottom */
        .cn-jobs-sidebar {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            top: auto !important;
            z-index: 1000 !important;
            max-height: 85vh !important;
            max-width: 100% !important;
            overflow-y: auto;
            background: white;
            border-radius: 12px 12px 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            transform: translateY(100%);
            transition: transform 0.3s ease-in-out;
            /* iOS notch / home-indicator safe area — keeps the bottom of
               the sheet (and any sticky Apply Filters button inside) clear
               of the system UI on iPhone X+ phones. */
            padding-bottom: env(safe-area-inset-bottom, 0);
        }

        .cn-jobs-sidebar.active {
            transform: translateY(0);
        }

        /* Show mobile filter header */
        .cn-mobile-filter-header {
            display: flex;
        }

        /* Hide desktop filter title */
        .cn-filters-title {
            display: none;
        }

        /* Adjust filter wrapper for mobile */
        .cn-filters-wrapper {
            background: transparent;
            padding: 1rem 1.5rem 2rem;
            border-radius: 0;
        }

        .cn-jobs-layout,
        .cn-filter-position-right {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .cn-jobs-columns-2,
        .cn-jobs-columns-3 {
            grid-template-columns: 1fr;
        }

        .cn-filter-position-right .cn-jobs-sidebar {
            order: 1;
        }

        .cn-filter-position-right .cn-jobs-main {
            order: 2;
        }

        .cn-filter-position-top .cn-jobs-filters {
            grid-template-columns: 1fr;
        }

        .cn-filter-position-top .cn-filter-actions {
            flex-direction: column;
        }

        .cn-job-card {
            padding: 1rem;
        }

        .cn-job-card-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .cn-job-card-meta {
            flex-direction: column;
            gap: 0.75rem;
        }

        .cn-job-card-footer {
            flex-direction: column;
            gap: 1rem;
            align-items: flex-start;
        }

        .cn-btn-view-job {
            width: 100%;
            justify-content: center;
        }
    }
