/* ========================================================================
   SEOinteraction — Jobs Detail Panel V0.1
   Independent from Freeio's critical job.js and listing/filter CSS.
   ======================================================================== */

.seointeraction-job-detail-panel {
    position: fixed;
    z-index: 99990;
    top: 0;
    right: 0;
    width: clamp(620px, 58vw, 980px);
    height: 100dvh;
    background: #fffdf5;
    border-left: 1px solid rgba(0, 79, 76, .18);
    box-shadow: -16px 0 44px rgba(0, 0, 0, .16);
    transform: translate3d(102%, 0, 0);
    visibility: hidden;
    opacity: 0;
    transition: transform .24s ease, opacity .18s ease, visibility 0s linear .24s;
    overflow: hidden;
    isolation: isolate;
}

.seointeraction-job-detail-panel.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    opacity: 1;
    transition: transform .24s ease, opacity .18s ease;
}

body.admin-bar .seointeraction-job-detail-panel {
    top: 32px;
    height: calc(100dvh - 32px);
}

.seointeraction-job-panel-toolbar {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    left: 0;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 18px 0 24px;
    background: rgba(255, 253, 245, .96);
    border-bottom: 1px solid rgba(0, 79, 76, .13);
    backdrop-filter: blur(10px);
}

.seointeraction-job-panel-toolbar-title {
    color: #004F4C;
    font-family: "Roboto", Sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
}

.seointeraction-job-panel-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    padding: 0;
    border: 1px solid rgba(0, 79, 76, .22);
    border-radius: 50%;
    background: #fff;
    color: #004F4C;
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.seointeraction-job-panel-close:hover,
.seointeraction-job-panel-close:focus-visible {
    background: #004F4C;
    color: #fff;
    transform: scale(1.04);
    outline: none;
}

.seointeraction-job-panel-content {
    position: absolute;
    top: 58px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fffdf5;
    scrollbar-gutter: stable;
}

.seointeraction-job-panel-status {
    position: absolute;
    z-index: 3;
    top: 58px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #fffdf5;
    color: #004F4C;
    font-family: "Roboto", Sans-serif;
    text-align: center;
}

.seointeraction-job-detail-panel.is-loading .seointeraction-job-panel-status,
.seointeraction-job-detail-panel.has-error .seointeraction-job-panel-status {
    display: flex;
}

.seointeraction-job-detail-panel.is-loading .seointeraction-job-panel-status {
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.seointeraction-job-panel-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 79, 76, .2);
    border-top-color: #004F4C;
    border-radius: 50%;
    animation: seointeractionJobPanelSpin .72s linear infinite;
}

@keyframes seointeractionJobPanelSpin {
    to { transform: rotate(360deg); }
}

.seointeraction-job-panel-error p {
    max-width: 440px;
    margin: 0 auto 16px;
}

.seointeraction-job-panel-open-full {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: #004F4C;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

/* Keep the active Job visually identifiable in the list while the panel is open. */
.jobs-listing-wrapper article.seointeraction-job-panel-current .job-item {
    box-shadow: 0 0 0 2px #E4B600 !important;
}

.jobs-listing-wrapper .job-title a {
    cursor: pointer;
}

/* ------------------------------------------------------------------------
   Make the normal single-Job design behave inside a constrained panel.
   No template content is removed; only width/padding is normalized.
   ------------------------------------------------------------------------ */
.seointeraction-job-panel-content .seointeraction-job-panel-rendered {
    min-height: 100%;
}

.seointeraction-job-panel-content .container,
.seointeraction-job-panel-content .elementor-container,
.seointeraction-job-panel-content .e-con-inner {
    max-width: 100% !important;
}

.seointeraction-job-panel-content .container {
    width: 100% !important;
    padding-left: 28px;
    padding-right: 28px;
}

.seointeraction-job-panel-content .e-con {
    --container-max-width: 100%;
}

.seointeraction-job-panel-content .job-detail-title,
.seointeraction-job-panel-content h1 {
    overflow-wrap: anywhere;
}

.seointeraction-job-panel-content img {
    max-width: 100%;
    height: auto;
}

/* Desktop: preserve the LinkedIn-like feeling by leaving the left side of the
   listing visible and usable. The panel overlays only the right side. */
@media (min-width: 1200px) {
    body.seointeraction-job-panel-open {
        overflow-x: hidden;
    }
}

/* Tablet and mobile: detail becomes a full-screen drawer. */
@media (max-width: 1199px) {
    .seointeraction-job-detail-panel {
        width: min(760px, 78vw);
    }
}

@media (max-width: 767px) {
    .seointeraction-job-detail-panel {
        width: 100vw;
        border-left: 0;
    }

    .seointeraction-job-panel-toolbar {
        height: 54px;
        padding: 0 12px 0 16px;
    }

    .seointeraction-job-panel-content,
    .seointeraction-job-panel-status {
        top: 54px;
    }

    .seointeraction-job-panel-content .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.admin-bar .seointeraction-job-detail-panel {
        top: 46px;
        height: calc(100dvh - 46px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .seointeraction-job-detail-panel,
    .seointeraction-job-panel-close {
        transition: none !important;
    }

    .seointeraction-job-panel-spinner {
        animation-duration: 1.4s;
    }
}
