#map-view-full {
    min-height: 100vh;
    overflow: hidden;
}

.map-layout {
    height: 100vh;
}

.map-mobile-toolbar {
    position: sticky;
    top: 0;
    z-index: 30;
}

.map-canvas {
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.col-filter {
    height: 100vh;
    overflow-y: auto;
    background: var(--bs-tertiary-bg, #f8f9fa);
    padding: 0;
}

.col-list {
    height: 100vh;
    overflow-y: auto;
    background: var(--bs-body-bg, #fff);
    border-right: 1px solid var(--bs-border-color, #e5e7eb);
}

.col-map {
    height: 100vh;
    padding: 0;
}

.job-list-header {
    padding: 15px;
    border-bottom: 1px solid var(--bs-border-color, #e5e7eb);
    background: var(--bs-body-bg, #fff);
    position: sticky;
    top: 0;
    z-index: 10;
}

.job-list-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.job-list-header .total {
    color: var(--bs-primary, #0d6efd);
}

.job-list-content {
    padding: 10px;
}

.job-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
    margin-bottom: 8px;
    background: var(--bs-body-bg, #fff);
}

.job-item:hover,
.job-item.active {
    background: var(--bs-secondary-bg, #f8f9fa);
    border-color: var(--bs-primary, #0d6efd);
}

.job-item .job-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.job-item .job-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--bs-border-color, #e5e7eb);
}

.job-item .job-info {
    flex: 1;
    min-width: 0;
}

.job-item .job-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}

.job-item .job-title a {
    color: var(--bs-body-color, #212529);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-item .job-title a:hover {
    color: var(--bs-primary, #0d6efd);
}

.job-item .job-company {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--bs-secondary-color, #6c757d);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-item .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
}

.job-item .job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-item .job-meta .fa {
    color: var(--bs-tertiary-color, #adb5bd);
}

.job-item .job-salary {
    color: var(--bs-success, #198754);
    font-weight: 500;
}

.map-popup {
    padding: 10px;
    min-width: 250px;
}

.map-popup .popup-header {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.map-popup .popup-logo {
    width: 50px;
    height: 50px;
}

.map-popup .popup-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.map-popup .popup-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-body-color, #212529);
    margin: 0 0 4px;
}

.map-popup .popup-company {
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0;
}

.map-popup .popup-info {
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 10px;
}

.map-popup .popup-info p {
    margin: 4px 0;
}

.map-popup .popup-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.job-list-loading {
    text-align: center;
    padding: 20px;
    color: var(--bs-secondary-color, #6c757d);
}

.job-list-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bs-border-color, #e5e7eb);
    border-top-color: var(--bs-primary, #0d6efd);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

.no-jobs {
    text-align: center;
    padding: 40px;
    color: var(--bs-secondary-color, #6c757d);
}

.load-more-trigger {
    height: 1px;
}

/* Loading overlay for filter */
.job-list-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}


.col-list {
    position: relative;
}

.map-filter-collapse {
    display: block;
}

@media (max-width: 767.98px) {
    #map-view-full {
        overflow: auto;
    }

    .map-layout {
        height: auto;
    }

    .col-filter,
    .col-list,
    .col-map {
        height: auto;
    }

    .col-map {
        border-bottom: 1px solid var(--bs-border-color, #e5e7eb);
    }

    .map-canvas {
        height: 45vh;
        min-height: 280px;
    }

    .job-list-header {
        position: static;
    }

    .map-filter-collapse {
        display: none;
        border-bottom: 1px solid var(--bs-border-color, #e5e7eb);
        background: var(--bs-tertiary-bg, #f8f9fa);
    }

    .map-filter-collapse.is-open {
        display: block;
    }
}

@media (min-width: 768px) {
    .map-mobile-toolbar {
        display: none;
    }
}