/* Estilos para la página de Proveedores Internacionales - Model.Id == 17040 */

.international-providers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.providers-header {
    text-align: left;
    margin-bottom: 30px;
}

.providers-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #064350;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.providers-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Caja de advertencia */
.warning-box {
    background-color: #FBF1E6;
    border: 1px solid #F49020;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warning-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-triangle {
    font-size: 1.5rem;
    color: #f39c12;
    font-weight: bold;
}

.warning-content {
    flex: 1;
}

.warning-text {
    margin: 0 0 8px 0;
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.4;
}

.warning-text strong {
    font-weight: bold;
    color: #000000;
}

.warning-text:last-child {
    margin-bottom: 0;
}

.warning-action {
    flex-shrink: 0;
}

.call-button {
    background-color: #086378;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.call-button:hover {
    background-color: #1e4a4a;
}

/* Contenedor de búsqueda */
.search-container {
    background-color: #F7F7F7;
    border: 1px solid #ACB0B2;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}


.search-header {
    margin-bottom: 20px;
}

.search-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #495057;
    margin: 0;
}

/* Formulario */
.search-form {
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Cuando solo hay un campo, ocupa todo el ancho */
.form-row-single {
    grid-template-columns: 1fr;
}

.form-row-single .form-group {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Para inputs de texto con clase form-select, cambiar cursor a text */
.form-select[type="text"],
.form-select[type="text"]:focus {
    cursor: text;
}

.form-select:focus {
    outline: none;
    border-color: #2c5f5f;
    box-shadow: 0 0 0 2px rgba(44, 95, 95, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.search-button {
    background-color: #086378;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #1e4a4a;
}

/* Contenedor de resultados (igual que CEDs) */
.container-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 0;
}

/* Estado de sin resultados */
.no-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.no-results-icon {
    margin-bottom: 30px;
}

.no-results-graphic {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.central-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #086378 0%, #086378 100%);
    border-radius: 8px;
    transform: rotate(15deg);
    position: relative;
}

.cube-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #086378 0%, #086378 100%);
    border-radius: 8px;
    opacity: 0.7;
    transform: rotate(0deg);
}

.scattered-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.circle-pairs {
    position: absolute;
    left: 20px;
    top: 30px;
    width: 12px;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 50%;
}

.circle-pairs::before,
.circle-pairs::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 50%;
}

.circle-pairs::before {
    top: 15px;
    left: 0;
}

.circle-pairs::after {
    top: 30px;
    left: 2px;
}

.arrow-pairs {
    position: absolute;
    right: 30px;
    top: 20px;
    width: 20px;
    height: 20px;
}

.arrow-pairs::before,
.arrow-pairs::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid #e9ecef;
}

.arrow-pairs::before {
    top: 0;
    left: 0;
}

.arrow-pairs::after {
    top: 20px;
    left: 0;
    transform: rotate(180deg);
}

.magnifying-glass {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 24px;
    height: 24px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
}

.magnifying-glass::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 8px;
    height: 2px;
    background-color: #e9ecef;
    transform: rotate(45deg);
}

.no-results-text {
    font-size: 1.1rem;
    color: #495057;
    font-weight: bold;
    max-width: 400px;
    line-height: 1.4;
    text-align: center;
    margin: 0 auto;
    display: block;
}

/* Accordion para resultados */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    background-color: #f8f9fa;
    border: none;
    padding: 15px 20px;
    font-weight: 500;
    color: #495057;
}

.accordion-button:not(.collapsed) {
    background-color: #086378;
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #086378;
}

.provider-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.provider-location-badge {
    background-color: #e8f5f5;
    color: #086378;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.provider-location-badge .accordion-icon-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.accordion-button:not(.collapsed) .provider-location-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.accordion-button:not(.collapsed) .provider-location-badge .accordion-icon-chevron {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 20px;
    background-color: white;
}

.provider-details p {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.4;
}

.provider-details p:last-child {
    margin-bottom: 0;
}

.provider-details strong {
    color: #086378;
    font-weight: 600;
}

/* Estado de carga */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #086378;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #086378;
    font-weight: 500;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .international-providers-container {
        padding: 20px 15px;
    }
    
    .providers-title {
        font-size: 1.8rem;
    }
    
    .providers-subtitle {
        font-size: 0.9rem;
    }
    
    .warning-box {
        flex-direction: column;
        gap: 15px;
    }
    
    .warning-action {
        align-self: stretch;
    }
    
    .call-button {
        width: 100%;
        text-align: center;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        justify-content: stretch;
    }
    
    .search-button {
        width: 100%;
    }
    
    .providers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .providers-title {
        font-size: 1.5rem;
    }
    
    .search-title {
        font-size: 1.2rem;
    }
    
    .warning-box {
        padding: 15px;
    }
    
    .search-container {
        padding: 15px;
    }
}

/* ============================================
   ESTILOS PARA AUTocompletado de Ubicaciones
   ============================================ */

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: -1px;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f8f9fa;
    border-left: 3px solid #086378;
    padding-left: 12px;
}

.suggestion-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    line-height: 1.4;
}

.suggestion-type {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* Ajuste para el input cuando tiene sugerencias visibles */
.form-group .form-select:focus {
    position: relative;
    z-index: 1001;
}

/* Cuando las sugerencias están visibles, ajustar el input */
.form-group.has-suggestions .form-select {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Scrollbar personalizado para las sugerencias */
.autocomplete-suggestions::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 4px;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}
