/* Legacy header styles removed — search is a floating section below fixed nav */

/* ============================================
   CLUSTER MARKERS — Agrupación de empresas
   ============================================ */
.fylj-cluster-wrapper {
    background: none !important;
    border: none !important;
}

.fylj-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.fylj-cluster:hover {
    transform: scale(1.12);
}

.fylj-cluster-small {
    width: 40px;
    height: 40px;
    font-size: 13px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.fylj-cluster-medium {
    width: 50px;
    height: 50px;
    font-size: 15px;
    background: linear-gradient(135deg, #0077b5, #005a8c);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.fylj-cluster-large {
    width: 60px;
    height: 60px;
    font-size: 17px;
    background: linear-gradient(135deg, #ff9800, #e67e00);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Floating search bar (map page) ── */
.map-search-bar {
    position: fixed;
    top: 66px; /* 56px nav + 10px gap */
    left: 50%;
    transform: translateX(-50%);
    z-index: 8000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    max-width: 700px;
    width: calc(100% - 2rem);
}

.map-search-bar .filters-toggle {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 999px;
}

.map-search-bar .search-wrapper {
    flex: 1;
    min-width: 0;
}

.map-search-bar .search-wrapper input {
    width: 100%;
    padding: 7px 14px;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    background: #f0f4f8;
    color: #333;
    outline: none;
}

.map-search-bar .search-wrapper input::placeholder {
    color: #888;
}

.map-search-bar .search-wrapper input:focus {
    background: #e8eef4;
    box-shadow: 0 0 0 2px rgba(0, 119, 181, 0.2);
}

.map-search-btn {
    padding: 7px 18px;
    background: #0077B5;
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-search-btn:hover {
    background: #006399;
    transform: scale(1.03);
}

.map-search-bar .filters-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 9999;
    min-width: 340px;
    max-width: 90vw;
}

.search-wrapper {
    position: relative;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f0f7ff;
}

.suggestion-icon {
    flex-shrink: 0;
}

.suggestion-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

#map {
    flex: 1;
    width: 100%;
}

.job-popup {
    max-width: 240px;
}

.job-popup h3 {
    color: #0077B5;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.3;
}

.job-popup p {
    margin: 3px 0;
    font-size: 12px;
    color: #333;
}

.job-popup .description-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-popup .company {
    font-weight: 600;
    color: #666;
    font-size: 11.5px;
}

.job-popup .location {
    color: #888;
    font-size: 11px;
}

.job-popup .salary {
    color: #0a66c2;
    font-weight: 600;
    margin-top: 4px;
    font-size: 12px;
}

.job-popup button {
    background: #0077B5;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 16px;
    cursor: pointer;
    margin-top: 6px;
    font-weight: 600;
    font-size: 12px;
    width: 100%;
}

.job-popup button:hover {
    background: #006399;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
}

.leaflet-popup-content {
    margin: 10px 12px;
}

/* Banner de ubicación aproximada */
.location-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 320px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    font-size: 13px;
    line-height: 1.5;
    animation: slideIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-notice.hidden {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.location-notice-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.location-notice-close:hover {
    color: white;
}

.location-notice p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.location-notice-tip {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Botón de centrar ubicación */
#centerUserBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1001;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#centerUserBtn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

#centerUserBtn:active {
    transform: scale(0.95);
}

/* Estado inactivo del botón de ubicación (sin permiso) */
#centerUserBtn.location-inactive {
    background: #6c757d;
}

#centerUserBtn.location-inactive:hover {
    background: #565e64;
}

/* Badge indicador de que la ubicación está desactivada */
.location-badge-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
    pointer-events: none;
}

/* Toast de notificación de ubicación */
.location-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: toastSlideIn 0.3s ease-out;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.location-toast-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.location-toast-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.location-toast-hide {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* Modal de ayuda de ubicación — instrucciones por navegador */
.location-help-instructions {
    margin: 0.5rem 0;
}

.location-help-browser {
    padding: 1rem;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-bottom: 0.75rem;
}

.location-help-browser.detected {
    background: #eef6ff;
    border-color: #b8daff;
}

.location-help-browser-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-help-browser-name i {
    font-size: 1.1rem;
    color: #0077B5;
}

.location-help-detected-tag {
    font-size: 0.7rem;
    font-weight: 500;
    background: #0077B5;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.location-help-steps {
    margin: 0;
    padding-left: 1.4rem;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.7;
}

.location-help-steps li {
    margin-bottom: 0.3rem;
}

/* Botón pegman (fijar ubicación) */
#pegmanBtn {
    position: fixed;
    bottom: 32px;
    right: 100px;
    z-index: 1001;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#pegmanBtn:hover {
    background: #e68900;
    transform: scale(1.05);
}

#pegmanBtn:active {
    transform: scale(0.95);
}

#pegmanBtn.active {
    background: #4caf50;
    animation: pegman-pulse 1.5s infinite;
}

@keyframes pegman-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(76, 175, 80, 0); }
}

/* Panel de filtros */
.filters-wrapper {
    position: relative;
    flex-shrink: 0;
}

.filters-panel {
    min-width: 360px;
    max-width: 90vw;
}

.filters-toggle {
    background: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #0077B5;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.filters-toggle:hover {
    transform: scale(1.05);
}

.filters-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.filters-content.active {
    max-height: 800px;
    opacity: 1;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section:last-of-type {
    margin-bottom: 15px;
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.filter-chip:hover {
    background: #e0e0e0;
}

.filter-chip.active {
    background: #0077B5;
    color: white;
    border-color: #0077B5;
}

.experience-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.experience-filter input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.experience-filter input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0077B5;
    cursor: pointer;
}

.experience-filter input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0077B5;
    cursor: pointer;
    border: none;
}

.experience-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.experience-display input[type="number"] {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.experience-display input[type="number"]:focus {
    outline: none;
    border-color: #0077B5;
}

.experience-display span {
    font-size: 13px;
    color: #666;
}

.keywords-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.keywords-input-wrapper {
    position: relative;
}

#keywordInput {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
}

#keywordInput:focus {
    outline: none;
    border-color: #0077B5;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 20px;
}

.keyword-tag {
    background: #0077B5;
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.keyword-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

.keyword-tag button:hover {
    opacity: 0.8;
}

.clear-filters-btn {
    width: 100%;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.clear-filters-btn:hover {
    background: #e9ecef;
    color: #333;
}

.search-filters-btn {
    width: 100%;
    padding: 12px;
    background: #0077B5;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.search-filters-btn:hover {
    background: #006399;
    transform: translateY(-2px);
}

/* Responsive para tablets */
@media (max-width: 1024px) {
    .job-popup {
        max-width: 220px;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .map-search-bar {
        top: 58px;
        width: calc(100% - 1rem);
        padding: 5px 8px;
        gap: 6px;
    }

    .map-search-bar .filters-toggle {
        padding: 6px 10px;
        font-size: 12px;
    }

    .map-search-bar .search-wrapper input {
        padding: 6px 10px;
        font-size: 12px;
    }

    .map-search-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .map-search-btn .fa-search + span,
    .map-search-btn span {
        display: none;
    }

    .map-search-bar .filters-panel {
        min-width: 280px;
        max-width: 95vw;
        left: -10px;
    }

    .job-popup {
        max-width: 200px;
    }

    .job-popup h3 {
        font-size: 12px;
    }

    .job-popup p {
        font-size: 11px;
    }

    .filters-content {
        padding: 16px;
        max-width: 100%;
    }

    .filters-content.active {
        max-height: 600px;
    }

    .filter-chips {
        gap: 6px;
    }

    .filter-chip {
        font-size: 11px;
        padding: 5px 10px;
    }

    .job-popup button {
        font-size: 13px;
        padding: 6px 12px;
    }

    .suggestions-container {
        max-height: 250px;
    }

    .suggestion-item {
        padding: 8px 12px;
    }

    .suggestion-text {
        font-size: 12px;
    }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .location-notice {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 80px;
        font-size: 12px;
        padding: 12px 14px;
    }

    #centerUserBtn {
        bottom: 20px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    #centerUserBtn .location-badge-indicator {
        width: 16px;
        height: 16px;
        font-size: 10px;
        top: -1px;
        right: -1px;
    }

    .location-toast {
        top: 70px;
        font-size: 13px;
        padding: 8px 16px;
        max-width: 90vw;
    }

    #pegmanBtn {
        bottom: 20px;
        right: 76px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* Botón aplicar en popup del mapa */
.job-popup .apply-btn {
    width: 100%;
    padding: 0.4rem 0.6rem;
    margin-top: 0.4rem;
    border: none;
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s;
}

.job-popup .apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

/* ================================
   VISTA DE LISTADO DE OFERTAS
   ================================ */

.list-view {
    flex: 1;
    width: 100%;
    background: #f5f7fa;
    overflow-y: auto;
    padding: 20px;
}

.list-container {
    max-width: 1000px;
    margin: 0 auto;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.list-header h2 {
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-header h2 i {
    color: #0077B5;
}

.job-count {
    background: #0077B5;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job-list-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-left: 4px solid #0077B5;
}

.job-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.job-list-item.applied {
    border-left-color: #999;
    opacity: 0.7;
}

.job-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-list-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.job-list-company {
    color: #0077B5;
    font-weight: 500;
    font-size: 0.95rem;
}

.job-list-salary {
    background: #e8f4fd;
    color: #0077B5;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.job-list-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
}

.job-list-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-list-details i {
    color: #0077B5;
}

.job-list-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.job-list-applied-badge {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.job-list-apply-btn {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
}

.job-list-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.job-list-view-map-btn {
    background: #f0f7ff;
    color: #0077B5;
    border: 1px solid #0077B5;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    margin-right: 10px;
}

.job-list-view-map-btn:hover {
    background: #0077B5;
    color: white;
}

.jobs-list-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.jobs-list-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.jobs-list-empty h3 {
    color: #333;
    margin-bottom: 10px;
}

/* Botón de cambio de vista */
.toggle-view-btn {
    position: fixed;
    bottom: 100px;
    right: 32px;
    z-index: 1001;
    background: white;
    color: #0077B5;
    border: 2px solid #0077B5;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-view-btn:hover {
    background: #0077B5;
    color: white;
    transform: scale(1.05);
}

.toggle-view-btn.active {
    background: #0077B5;
    color: white;
}

/* Responsive para vista de lista */
@media (max-width: 768px) {
    .list-view {
        padding: 15px;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .list-header h2 {
        font-size: 1.2rem;
    }

    .job-list-header {
        flex-direction: column;
        gap: 10px;
    }

    .job-list-salary {
        align-self: flex-start;
    }

    .job-list-details {
        gap: 10px;
    }

    .job-list-footer {
        flex-direction: column;
        gap: 10px;
    }

    .job-list-footer button {
        width: 100%;
    }

    .toggle-view-btn {
        bottom: 90px;
        right: 16px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .job-list-item {
        padding: 15px;
    }

    .job-list-title {
        font-size: 1.05rem;
    }

    .toggle-view-btn {
        bottom: 80px;
        right: 10px;
    }

    .toggle-view-btn span {
        display: none;
    }

    .toggle-view-btn {
        padding: 12px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }
}

/* ============================================
   MODAL FULLSCREEN - DETALLES DE OFERTA
   ============================================ */

.jd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jd-modal-overlay.active {
    opacity: 1;
}

.jd-modal-overlay.closing {
    opacity: 0;
}

.jd-modal {
    width: 100%;
    height: 100%;
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.jd-modal-overlay.active .jd-modal {
    transform: translateY(0);
}

.jd-modal-overlay.closing .jd-modal {
    transform: translateY(30px);
}

.jd-modal-header {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}

.jd-modal-header-content {
    flex: 1;
    min-width: 0;
}

.jd-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    line-height: 1.2;
}

.jd-modal-company {
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jd-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.jd-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.jd-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* Info cards grid */
.jd-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.jd-info-card {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.jd-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.jd-info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.jd-info-card-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.jd-info-card-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
}

.jd-info-card-sub {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

/* Sections */
.jd-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.jd-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.jd-section-title i {
    color: #0077B5;
}

.jd-section-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

/* Tags */
.jd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jd-tag {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.jd-tag-blue {
    background: #e3f2fd;
    color: #1565c0;
}

.jd-tag-orange {
    background: #fff3e0;
    color: #e65100;
}

.jd-tag-purple {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Action buttons */
.jd-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.jd-apply-btn {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #28a745 0%, #20803a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.jd-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.jd-map-btn {
    padding: 0.9rem 2rem;
    background: white;
    color: #0077B5;
    border: 2px solid #0077B5;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.jd-map-btn:hover {
    background: #f0f7fd;
    transform: translateY(-2px);
}

.jd-applied-badge {
    padding: 0.9rem 2rem;
    background: #f0f0f0;
    color: #666;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.jd-applied-badge i {
    color: #28a745;
}

/* Popup details button */
.job-popup .details-btn {
    display: block;
    width: 100%;
    padding: 0.35rem;
    margin-top: 0.3rem;
    background: white;
    color: #0077B5;
    border: 1.5px solid #0077B5;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.job-popup .details-btn:hover {
    background: #0077B5;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .jd-modal-header {
        padding: 1.2rem 1rem;
    }

    .jd-modal-title {
        font-size: 1.3rem;
    }

    .jd-modal-body {
        padding: 1rem;
    }

    .jd-info-cards {
        grid-template-columns: 1fr;
    }

    .jd-actions {
        flex-direction: column;
    }

    .jd-apply-btn,
    .jd-map-btn,
    .jd-applied-badge {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .jd-modal-title {
        font-size: 1.15rem;
    }

    .jd-modal-company {
        font-size: 0.9rem;
    }

    .jd-modal-close {
        width: 38px;
        height: 38px;
    }

    .jd-section {
        padding: 1rem;
    }
}

/* ==============================
   Info Page (flecha abajo del mapa)
   ============================== */

/* Flecha abajo en el mapa */
.go-to-info-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0077B5 0%, #00A0DC 100%);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: bounceArrow 2s ease-in-out infinite;
}

.go-to-info-btn:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.6);
}

@keyframes bounceArrow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* Página de información */
.info-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #f0f6fc 0%, #e8f4fd 30%, #ffffff 100%);
    z-index: 9500;
    display: none;
    overflow-y: auto;
}

.info-page.active {
    display: block;
    animation: slideUpIn 0.5s ease-out;
}

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Botón volver al mapa (está dentro de .info-page) */
.back-to-map-btn {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 9501;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0077B5 0%, #00A0DC 100%);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-to-map-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.6);
}

/* Contenido de la info page */
.info-page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 30px 60px;
}

.info-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.info-page-header h2 {
    font-size: 2rem;
    color: #0077B5;
    margin-bottom: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.info-page-header h2 img {
    height: 1em;
    width: auto;
    vertical-align: middle;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

.info-page-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 500px;
    margin: 0 auto;
}

/* Grid de enlaces */
.info-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.info-link-card {
    background: white;
    border-radius: 16px;
    padding: 30px 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 119, 181, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 119, 181, 0.15);
    border-color: rgba(0, 119, 181, 0.2);
}

.info-link-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f4fd 0%, #d6ecf9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    color: #0077B5;
}

.info-link-card:hover .info-link-icon {
    background: linear-gradient(135deg, #0077B5 0%, #00A0DC 100%);
    color: white;
}

.info-link-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.info-link-card p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
}

/* Footer de la info page */
.info-page-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 0.85rem;
}

/* Responsive tablet */
@media (max-width: 768px) {
    .info-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .info-page-content {
        padding: 40px 20px 40px;
    }

    .info-page-header h2 {
        font-size: 1.6rem;
    }

    .info-link-card {
        padding: 24px 18px;
    }

    .go-to-info-btn {
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* Responsive móvil */
@media (max-width: 480px) {
    .info-links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info-page-content {
        padding: 30px 16px 30px;
    }

    .info-page-header h2 {
        font-size: 1.3rem;
    }

    .info-page-header p {
        font-size: 0.95rem;
    }

    .info-link-card {
        flex-direction: column;
        text-align: center;
        padding: 18px;
        gap: 8px;
    }

    .info-link-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 20px;
        margin-bottom: 0;
    }

    .back-to-map-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .go-to-info-btn {
        bottom: 14px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}