


/* --- Interactive Display Popup and Tab Styles --- */
.leaflet-popup-content-wrapper {
    background: var(--bs-light-warm-grey);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(25,51,99,0.12);
    border: 2px solid var(--bs-navy);
    max-width: 480px;
    min-width: 420px;
    padding: 10px;
}
.leaflet-popup-content {
    margin: 0;
    padding: 0 0 0 0;
    width: 100%;
}
.leaflet-popup .tab-content {
    background: var(--bs-light-warm-grey);
    border-radius: 0 0 12px 12px;
    padding: 1rem 1.2rem 1.2rem 1.2rem;
    min-width: 260px;
    min-height: 200px;
}
@media (max-width: 600px) {
    .leaflet-popup-content-wrapper {
        max-width: 98vw;
        min-width: 0;
        border-radius: 10px;
        padding: 0;
    }
}
.leaflet-popup .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: visible;
    scrollbar-width: thin;
    --bs-nav-tabs-border-width: var(--bs-border-width);
    --bs-nav-tabs-border-color: var(--bs-border-color);
    --bs-nav-tabs-border-radius: var(--bs-border-radius);
    --bs-nav-tabs-link-hover-border-color: var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);
    --bs-nav-tabs-link-active-color: var(--bs-emphasis-color);
    --bs-nav-tabs-link-active-bg: var(--bs-body-bg);
    --bs-nav-tabs-link-active-border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);
    border-bottom: var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color);
}
.leaflet-popup .nav-tabs .nav-link {
    white-space: nowrap;
}

/* Recruiter Images */
.leaflet-popup .recruiter-img-modal {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--bs-cornflower);
    background: #fff;
    margin-right: 0.5rem;
}
@media (max-width: 600px) {
    .leaflet-popup .recruiter-img-modal {
        width: 36px;
        height: 36px;
    }
    .leaflet-popup .tab-content {
        padding: 0.7rem 0.3rem 1rem 0.3rem;
    }
    .leaflet-popup .nav-tabs .nav-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.98rem;
    }
}

/* Envision Logo Overlay for Map */
.envision-logo-overlay {
    position: absolute;
    top: 1.5rem;
    right: 1.2rem;
    z-index: 10;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: flex-start;
    max-width: 18vw;
    max-height: 8vh;
    width: 180px;
    height: auto;
}
.envision-logo-overlay img {
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
}
@media (max-width: 600px) {
    .envision-logo-overlay {
        max-width: 40vw;
        top: 0.5rem;
        right: 0.5rem;
    }
}
.fullpage-map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.fullpage-dropdown-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 1rem;
    background: var(--bs-primary);
    z-index: 2;
    box-shadow: 0 2px 8px var(--bs-secondary-bg-subtle);
}
.fullpage-dropdown-row select {
    min-width: 200px;
    max-width: 400px;
    flex: 1 1 0;
}
#mapid {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    z-index: 1;
}

/* Related Results Stuff */
@media (max-width: 991.98px) {
    .related-results-section {
        padding: 0 0 1.5rem 0 !important
    }
}
@media (max-width: 991.98px) {
    #filtersIndicator.filters-indicator-hidden {
        display: none !important;
    }
}
/* Mobile Filters Indicator */
.filters-indicator {
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 1rem;
    margin: 1rem 0 0 0;
    padding: 0.5rem 1.25rem 0.5rem 1rem;
    border: 1px solid #e0e0e0;
}
.filters-indicator-count {
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 1rem;
}
.filters-indicator-clear {
    background: none;
    border: none;
    border-radius: 50%;
    padding: 0.25rem;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.filters-indicator-clear img {
    width: 22px;
    height: 22px;
    filter: none;
}
@media (max-width: 991.98px) {
    #filtersIndicator {
        display: flex !important;
    }
}
@media (min-width: 992px) {
    #filtersIndicator {
        display: none !important;
    }
}
/* Filters Hamburger Menu */
.filters-hamburger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    position: relative;
    margin-left: 1rem;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(150,0,206,0.08);
}
.filters-hamburger:focus {
    outline: 2px solid var(--bs-secondary);
}
.filters-hamburger .hamburger-bar {
    display: block;
    width: 22px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
.filters-hamburger.active .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.filters-hamburger.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.filters-hamburger.active .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Filters Content Collapsed */
#filtersContent.filters-collapsed {
    display: none !important;
}

/*@media (max-width: 991.98px) {*/
    /* Hide filters by default on mobile, show with hamburger */
    /*#filtersContent {
        display: none;
    }
    .filters-hamburger {
        display: flex;
    }
    #filtersContent:not(.filters-collapsed) {
        display: block !important;
    }
}
@media (min-width: 992px) {
    .filters-hamburger {
        display: none;
    }
    #filtersContent {
        display: block !important;
    }
}*/
/* Job Search Widget Styles */

.job-search-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-light-text-emphasis);
    margin-bottom: 1.5rem;
}

/* Available Careers Title */


/* Keyword Search with Inset Button */
.job-search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon-left {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-primary);
    font-size: 1.1rem;
    z-index: 10;
    pointer-events: none;
}

.job-search-input {
    width: 100%;
    padding: 0.75rem 5.5rem 0.75rem 3rem;
    font-size: 1.1rem;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.job-search-input:focus {
    outline: none;
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.2rem rgba(150, 0, 206, 0.25);
}

.btn-search-apply {
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bs-secondary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: none !important;
    animation: none !important;
}

.btn-search-apply:hover {
    background-color: var(--bs-secondary) !important;
    color: white !important;
    border: none !important;
    transform: translateY(-50%);
    transition: none !important;
    animation: none !important;
}

.job-apply-links {
    margin-right: 1rem;
}

.job-card .col-1 {
    padding-right: 0.25rem;
    max-width: auto;
    flex: 0 0 auto;
}

.job-card .col-1 img {
    width: 20px;
    height: 20px;
}

.job-card .col-10 {
    padding-left: 0.5rem;
}

.btn-search-contact {
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: var(--bs-primary-text-emphasis) 2px solid;
    background-color: #ffffff;
    color: var(--bs-primary-text-emphasis);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: none !important;
    animation: none !important;
}

.btn-search-contact:hover {
    border: var(--bs-primary-text-emphasis) 2px solid;
    background-color: #ffffff;
    color: var(--bs-primary-text-emphasis);
    transform: translateY(-50%);
    transition: none !important;
    animation: none !important;
}





/* Job Cards */
.job-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
    background-color: white;
    border-radius: 15px;
    cursor: pointer;
}

.job-card .card-body {
    padding: 20px;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.job-card .card-title {
    color: var(--bs-dark-text-emphasis);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.job-card .card-subtitle {
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 1rem;
}

.job-card .card-text {
    color: var(--bs-light-text-emphasis);
    line-height: 1.8;
}

.job-card .card-text i {
    color: var(--bs-primary);
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

.job-card .btn {
    margin-top: 0.5rem;
}

/* Filters Panel */

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group .form-label {
    font-size: 0.95rem;
    color: var(--bs-dark-text-emphasis);
    margin-bottom: 0.5rem;
}

.filter-group .form-check {
    margin-bottom: 0.5rem;
}

.filter-group .form-check-input {
    cursor: pointer;
}

.filter-group .form-check-label {
    cursor: pointer;
    color: var(--bs-light-text-emphasis);
    font-size: 0.9rem;
}


/* Results Count Badge */
#resultsCount {
    font-size: 1.5rem;
    color: var(--bs-primary);
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.pagination .page-item.disabled .page-link {
    color: var(--bs-light-text-emphasis);
    pointer-events: none;
}

/* Map */
#jobMap {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-info-window {
    padding: 0.5rem;
}

.map-info-window h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bs-dark-text-emphasis);
    margin-bottom: 0.5rem;
}

.map-info-window p {
    font-size: 0.85rem;
    color: var(--bs-light-text-emphasis);
}

.map-info-window i {
    color: var(--bs-primary);
    width: 16px;
    margin-right: 0.25rem;
}

/* Loading State */
.job-list-loading {
    text-align: center;
    padding: 3rem;
}

.job-list-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Empty State */
.alert-warning {
    padding: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .filters-panel {
        position: static;
        margin-bottom: 2rem;
    }

    .job-search-title {
        font-size: 2rem;
    }

    .job-card .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {

    .job-search-title {
        font-size: 1.75rem;
    }

    .filters-panel {
        padding: 1rem;
    }

    .job-card {
        margin-bottom: 1rem;
    }

    #jobMap {
        height: 400px !important;
    }

    .pagination .page-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Stack filters vertically on mobile */
    .filter-group {
        margin-bottom: 1rem;
    }

    /* Adjust button sizes */
    .job-card .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    #clearAllFilters {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .job-search-widget .input-group input {
        font-size: 0.95rem;
    }

    .job-search-widget .input-group button {
        padding: 0.75rem 1rem;
    }

    .job-card .card-text {
        font-size: 0.9rem;
    }
}



/* Accessibility */
.job-search-widget .form-check-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.job-search-widget .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Animation for job cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card {
    animation: fadeInUp 0.3s ease;
}

/* Clear button styling */
#clearAllFilters {
    white-space: nowrap;
}

#clearAllFilters i {
    margin-right: 0.25rem;
}

/* Search button icon */
#searchButton i {
    margin-right: 0.5rem;
}

/* Tab content padding */
.tab-content {
    padding-top: 1rem;
}

/* Info alert customization */
.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #004085;
}

/* Job Details Accordion Styles */
.jobDetailsInformation .panel-heading {
    cursor: pointer;
    user-select: none;
}

.jobDetailsInformation .panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.jobDetailsInformation .accordion-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(180deg);
}

.jobDetailsInformation .panel-heading.collapsed .accordion-arrow {
    transform: rotate(0deg);
}

.jobDetailsInformation .panel-collapse {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform-origin: top;
}

.jobDetailsInformation .panel-collapse.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.jobsearch-hero__content {
    padding-top: 77px;
}

/* Related Results Section */
.related-results-section {
    background-color: transparent;
    padding: 0 0 1.0rem 1.5rem;
    border-radius: 8px;
}

.related-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.related-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-job-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.related-job-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-navy);
    margin-bottom: 0.5rem;
}

.related-job-specialty {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.related-job-location {
    font-size: 0.875rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.related-job-location img {
    width: 16px;
    height: 16px;
}

.related-job-facility {
    font-size: 0.875rem;
    color: #888;
    margin-top: 0.25rem;
    padding-left: calc(16px + 0.25rem);
}

.related-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.related-pagination .fw-bold {
    white-space: nowrap;
    font-size: 0.875rem;
}

/* Job Application Form Card Styling */
#application-form .card {
    box-shadow: 0 20px 27px 0 rgb(0 0 0 / 5%);
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 0 solid rgba(0,0,0,.125);
    border-radius: 1rem;
}

#application-form .card-body {
    flex: 1 1 auto;
    padding: 1.5rem 1.5rem;
}

#application-form .h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.btn-submit-application {
    background-color: var(--bs-secondary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-submit-application:hover {
    background-color: var(--bs-secondary-text-emphasis);
    color: white;
}

#jobMap { height: 600px; min-height: 300px; width: 100%; }

.map-pin-image {
    border-radius: 100%;
    width: 50px !important;
    height: 50px !important;
    margin-left: -10px;
    margin-bottom: 20px;
}

#mapid .map-pin-image {
    border-radius: 100%;
    width: 85px !important;
    height: 85px !important;
    margin-left: -10px;
    margin-bottom: 20px;
}

.number-icon {
    background-image: url(/Content/Envision/Images/map-pin-royal.png);
    text-align: center;
    color: #000;
    padding-top: 6px;
    padding-right: 6px;
    background-repeat: no-repeat;
}

#jobMap .number-icon {
    background-image: url(/Content/Envision/Images/map-pin-royal.png);
    text-align: center;
    color: #000;
    padding-top: 6px;
    padding-right: 6px;
    background-repeat: no-repeat;
}

#mapid .number-icon {
    background-image: url(/Content/Envision/Images/map-pin-royal.png);
    text-align: center;
    color: #000;
    padding-top: 6px;
    padding-right: 6px;
    background-repeat: no-repeat;
}