/* ========================================
   Localizador de Unidades - iFood/Google Maps Style
   ======================================== */

* {
    box-sizing: border-box;
}

#lu-wrapper {
    margin: 0;
    padding: 25px;
    color: #333;
}

.lu-container {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

/* ========================================
   Header
   ======================================== */

.lu-header {
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: center;
}

.lu-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.lu-subtitle {
    margin: 0;
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* ========================================
   Seção de Filtro
   ======================================== */

.lu-filter-section {
    max-width: 1200px;
    margin: 0 auto 25px;
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    align-items: flex-end;
}

.lu-filter-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lu-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Remover emojis, Font Awesome cuidará disso */
.lu-filter-group label .fa-solid {
    font-size: 16px;
    color: #192e7a; /* Cor para os ícones */
}

.lu-select {
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lu-select:hover {
    border-color: #192e7a;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.lu-select:focus {
    outline: none;
    border-color: #192e7a;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ========================================
   Botão
   ======================================== */

.lu-button {
    padding: 12px 28px;
    background: linear-gradient(135deg, #192e7a 0%, #FF8C42 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.lu-button .fa-solid {
    font-size: 16px;
    color: #fff;
}

.lu-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.lu-button:active {
    transform: translateY(0);
}

/* ========================================
   Layout Principal
   ======================================== */

.lu-main-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
}

.lu-map-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 600px;
}

.lu-map {
    width: 100%;
    height: 100%;
}

/* ========================================
   Sidebar com Cards
   ======================================== */

.lu-sidebar {
    height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.lu-sidebar::-webkit-scrollbar {
    width: 6px;
}

.lu-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.lu-sidebar::-webkit-scrollbar-thumb {
    background: #192e7a;
    border-radius: 10px;
}

.lu-sidebar::-webkit-scrollbar-thumb:hover {
    background: #FF5722;
}

/* ========================================
   Cards Container
   ======================================== */

.lu-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   Card
   ======================================== */

.lu-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 12px;
    position: relative;
}

.lu-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #192e7a;
}

.lu-card-active {
    border-color: #192e7a;
    background: #FFF8F5;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

.lu-card-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #192e7a 0%, #0046a6 100%);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.lu-card-content {
    flex: 1;
    min-width: 0;
}

.lu-card-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.lu-card-address,
.lu-card-city,
.lu-card-phone {
    margin: 6px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lu-card-address .fa-solid,
.lu-card-city .fa-solid,
.lu-card-phone .fa-solid {
    font-size: 14px;
    color: #192e7a;
    width: 16px; /* Para alinhar os ícones */
    text-align: center;
}

.lu-card-phone a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

.lu-card-phone a:hover {
    text-decoration: underline;
}

.lu-card-action {
    position: absolute;
    top: 12px;
    right: 12px;
}

.lu-btn-maps {
    display: inline-block;
    padding: 6px 12px;
    background: #192e7a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lu-btn-maps:hover {
    background: #0046a6;
    color: #fff;
    transform: scale(1.05);
}

/* ========================================
   Info Window
   ======================================== */

.lu-info-window {
    padding: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.lu-info-window strong {
    display: block;
    margin-bottom: 6px;
    color: #192e7a;
    font-weight: 700;
}

.lu-info-window small {
    display: block;
    color: #666;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lu-info-window small .fa-solid {
    font-size: 12px;
    color: #192e7a;
}

/* ========================================
   Mensagens
   ======================================== */

.lu-loading,
.lu-no-results,
.lu-error {
    padding: 40px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lu-loading {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    color: #666;
}

.lu-loading p {
    margin: 15px 0 0 0;
    font-size: 14px;
    font-weight: 500;
}

.lu-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #192e7a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lu-no-results {
    background: #FFF8F5;
    color: #192e7a;
}

.lu-no-results p {
    margin: 0;
    font-weight: 500;
}

.lu-error {
    background: #FFEBEE;
    color: #C62828;
}

.lu-error p {
    margin: 0;
    font-weight: 500;
}

/* ========================================
   Responsivo - Tablet
   ======================================== */

@media (max-width: 1024px) {
    .lu-main-layout {
        grid-template-columns: 1fr;
    }

    .lu-map-wrapper {
        height: 400px;
    }

    .lu-sidebar {
        height: auto;
        max-height: 500px;
    }

    .lu-title {
        font-size: 28px;
    }
}

/* ========================================
   Responsivo - Mobile
   ======================================== */

@media (max-width: 768px) {
    .lu-container {
        padding: 12px;
    }

    .lu-header {
        margin-bottom: 20px;
    }

    .lu-title {
        font-size: 24px;
    }

    .lu-subtitle {
        font-size: 14px;
    }

    .lu-filter-section {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .lu-filter-group {
        min-width: 100%;
    }

    .lu-select,
    .lu-button {
        width: 100%;
    }

    .lu-button {
        justify-content: center;
    }

    .lu-map-wrapper {
        height: 350px;
    }

    .lu-card {
        padding: 14px;
        gap: 10px;
    }

    .lu-card-action {
        position: static;
        margin-top: 10px;
    }

    .lu-btn-maps {
        display: block;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .lu-container {
        padding: 10px;
    }

    .lu-title {
        font-size: 22px;
    }

    .lu-subtitle {
        font-size: 13px;
    }

    .lu-filter-section {
        padding: 12px;
        border-radius: 8px;
    }

    .lu-select,
    .lu-button {
        font-size: 13px;
        padding: 10px 15px;
    }

    .lu-map-wrapper {
        height: 300px;
        border-radius: 8px;
    }

    .lu-card {
        padding: 12px;
        border-radius: 8px;
    }

    .lu-card-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .lu-card-title {
        font-size: 14px;
    }

    .lu-card-address,
    .lu-card-city,
    .lu-card-phone {
        font-size: 11px;
        margin: 4px 0;
    }

    .lu-btn-maps {
        font-size: 10px;
        padding: 5px 10px;
        border-radius: 5px;
    }

    .lu-loading,
    .lu-no-results,
    .lu-error {
        padding: 25px 15px;
        font-size: 13px;
        border-radius: 8px;
    }

    .lu-spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }
}

/* ========================================
   Acessibilidade
   ======================================== */

.lu-select:focus,
.lu-button:focus,
.lu-card:focus {
    outline: 2px solid #192e7a;
    outline-offset: 2px;
}

/* ========================================
   Google Maps Custom Styles (se necessário)
   ======================================== */
/* O estilo do mapa já está no JS, mas se precisar de mais, adicione aqui */