@charset "UTF-8";

/* ========== CSS BASE DA PÁGINA ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    padding: 20px;
    padding-top: 20px;
}

/* ========== REMOVER SUBLINHADO DE TODOS OS LINKS ========== */
a, a:link, a:visited, a:hover, a:active,
.btn-nav, .btn-fazer-pedido, .btn-filtro,
.btn-ativar-gps, .btn-mapa-toggle,
.btn-confirmar-local, .btn-confirmar-local-mobile,
.btn-criar-conta, .btn-voltar, .btn-localizacao,
.cliente-info a, .sponsored-badge, .entrega-badge {
    text-decoration: none !important;
}

/* ========== OTIMIZAÇÃO DE IMAGENS E CARREGAMENTO ========== */
img {
    max-width: 100%;
    height: auto;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
}

.loading-spinner i {
    font-size: 32px;
    color: #FF6B3D;
    animation: spin 1s linear infinite;
}

/* ========== VARIÁVEIS ========== */
:root {
    --primary: #FF7B54;
    --primary-dark: #FF6B3D;
    --primary-gradient: linear-gradient(135deg, #FF7B54 0%, #FF6B3D 100%);
    --gold: #FFD700;
    --gold-dark: #FFA500;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --silver: #C0C0C0;
    --bronze: #CD7F32;
    --dark: #343a40;
    --gray: #6c757d;
    --delivery: #28a745;
    --no-delivery: #dc3545;
}

/* ========== TOP NAVIGATION ========== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 10px;
}

.nav-left, .nav-right {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.btn-voltar {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-voltar:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-criar-conta {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.btn-criar-conta:hover {
    background: linear-gradient(135deg, #FF6B3D 0%, #FF5A2B 100%);
    transform: translateY(-2px);
}

.btn-localizacao {
    background: #28a745;
    color: white;
    border: none;
}

.btn-localizacao:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* ========== HEADER ========== */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--gray);
    font-size: 1.2rem;
}

/* ========== SEARCH BAR ========== */
.search-container {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-bar {
    display: flex;
    gap: 10px;
    background: white;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

.search-bar button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ========== FILTRO ENTREGA ========== */
.filtro-container {
    max-width: 600px;
    margin: 0 auto 25px;
}

.filtro-entrega {
    background: white;
    border-radius: 50px;
    padding: 5px;
    display: flex;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btn-filtro {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    background: #f0f0f0;
    color: #666;
    font-size: 14px;
}

.btn-filtro.active {
    background: var(--primary-gradient);
    color: white;
}

.btn-filtro:hover:not(.active) {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* ========== BOTÃO MAPA MOBILE ========== */
.btn-mapa-toggle {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    margin: 0 auto 20px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    width: auto;
    box-shadow: 0 2px 8px rgba(255,123,84,0.2);
}

.btn-mapa-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* ========== MAPA MINIMIZÁVEL ========== */
.mapa-container {
    max-width: 1200px;
    margin: 0 auto 25px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.mapa-container.minimizado {
    background: transparent;
    box-shadow: none;
    border: none;
}

.mapa-container.minimizado .mapa-header {
    border-radius: 50px;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255,123,84,0.2);
}

.mapa-container.minimizado .mapa-header:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,123,84,0.3);
}

.mapa-container.minimizado #mapa,
.mapa-container.minimizado .btn-confirmar-local {
    display: none;
}

.mapa-header {
    padding: 15px 20px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: all 0.3s ease;
}

.mapa-header h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mapa-header h3 i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-minimizar-mapa {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-minimizar-mapa:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.02);
}

.btn-minimizar-mapa i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

#mapa {
    height: 400px;
    width: 100%;
    background: #f0f0f0;
    z-index: 1;
    transition: height 0.3s ease;
}

.btn-confirmar-local {
    width: calc(100% - 40px);
    margin: 15px 20px;
    padding: 12px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-confirmar-local:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,123,84,0.3);
}

/* ========== MODAL DO MAPA MOBILE ========== */
.mapa-mobile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 10000;
    flex-direction: column;
}

.mapa-mobile-modal.open {
    display: flex;
}

.mapa-mobile-header {
    padding: 15px 20px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mapa-mobile-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-fechar-mapa-mobile {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

#mapaMobile {
    flex: 1;
    width: 100%;
    background: #f0f0f0;
}

.btn-confirmar-local-mobile {
    margin: 15px;
    padding: 12px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ========== SECTION TITLE ========== */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.section-title i {
    font-size: 24px;
}

.section-title .gold {
    color: var(--gold);
}

/* ========== CLIENTES GRID ========== */
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.cliente-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.cliente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(255,123,84,0.15);
    border-color: var(--primary);
}

.cliente-card.sponsored-1 {
    border: 2px solid var(--gold);
    background: linear-gradient(white, #FFFDF0);
}

.cliente-card.sponsored-2 {
    border: 2px solid var(--silver);
    background: linear-gradient(white, #F5F5F5);
}

.cliente-card.sponsored-3 {
    border: 2px solid var(--bronze);
    background: linear-gradient(white, #FFF8F0);
}

.sponsored-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.sponsored-badge.gold {
    background: var(--gold-gradient);
    color: #333;
}

.sponsored-badge.silver {
    background: linear-gradient(135deg, #E0E0E0 0%, #C0C0C0 100%);
    color: #333;
}

.sponsored-badge.bronze {
    background: linear-gradient(135deg, #DEB887 0%, #CD7F32 100%);
    color: white;
}

.distance-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(33, 150, 243, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.entrega-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.entrega-badge.delivery {
    background: var(--delivery);
    color: white;
}

.entrega-badge.no-delivery {
    background: var(--no-delivery);
    color: white;
}

@keyframes motoAnim {
    0% { transform: translateX(0); }
    50% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

.entrega-badge.delivery i.fa-motorcycle {
    animation: motoAnim 1s ease-in-out infinite;
}

.cliente-tipo {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

.cliente-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.cliente-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    display: block;
}

.cliente-nome {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    text-align: center;
}

.cliente-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.cliente-info i {
    width: 18px;
    color: var(--primary);
    font-size: 13px;
}

.cliente-info a {
    color: var(--primary);
    font-weight: 600;
}

.btn-fazer-pedido {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
    display: block;
    text-align: center;
    transition: all 0.3s;
}

.btn-fazer-pedido:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,123,84,0.3);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 60px;
    color: var(--gray);
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== AVISO DE PRIVACIDADE ========== */
.aviso-privacidade {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    border-radius: 16px;
    padding: 16px 20px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideInRight 0.4s ease;
    border-left: 4px solid #4CAF50;
}

.aviso-privacidade .aviso-content {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.aviso-privacidade i.fa-shield-alt {
    font-size: 28px;
    color: #4CAF50;
}

.aviso-privacidade .aviso-texto {
    flex: 1;
}

.aviso-privacidade strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.aviso-privacidade p {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.aviso-privacidade button {
    background: #FF6B3D;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
}

.aviso-privacidade button:hover {
    background: #e55a2b;
    transform: scale(1.02);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== AVISO DE GPS NA PESQUISA ========== */
.aviso-gps-pesquisa {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe8e0 100%);
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border-left: 4px solid #FF9800;
}

.aviso-gps-pesquisa i {
    font-size: 2rem;
    color: #FF9800;
}

.aviso-gps-texto {
    flex: 1;
}

.aviso-gps-texto strong {
    display: block;
    font-size: 1rem;
    color: #e65100;
    margin-bottom: 5px;
}

.aviso-gps-texto p {
    font-size: 0.85rem;
    color: #5a6e7a;
    margin: 0;
}

.btn-ativar-gps {
    background: linear-gradient(135deg, #FF6B3D 0%, #FF8C42 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-ativar-gps:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 61, 0.3);
}

/* ========== GPS INFO BAR ========== */
.gps-info-bar {
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.gps-info-bar i {
    color: #4CAF50;
    font-size: 0.8rem;
}

.gps-ativo-badge {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}

.gps-ativo-badge i {
    font-size: 0.8rem;
}

/* ========== MODAL ========== */
.modal-confirmacao {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: fadeIn 0.3s;
}

.modal-content i {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.modal-content h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.modal-content button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ========== RESPONSIVIDADE ========== */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
    
    .mapa-container {
        display: block;
    }
    
    .btn-mapa-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .search-bar {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 10px;
    }
    
    .search-bar input {
        border: 1px solid #ddd;
        border-radius: 50px;
    }
    
    .search-bar button {
        width: 100%;
    }
    
    .top-nav {
        flex-direction: column;
        justify-content: center;
    }
    
    .nav-left, .nav-right {
        justify-content: center;
    }
    
    .filtro-entrega {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .btn-filtro {
        width: 100%;
    }
    
    .clientes-grid {
        grid-template-columns: 1fr;
    }
    
    .mapa-container {
        display: none !important;
    }
    
    .btn-mapa-toggle {
        display: flex !important;
        width: auto;
        margin: 0 auto 15px;
    }
    
    .aviso-privacidade {
        max-width: 280px;
        padding: 12px 16px;
        bottom: 15px;
        right: 15px;
    }
    
    .aviso-gps-pesquisa {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .aviso-gps-pesquisa i {
        font-size: 1.5rem;
    }
    
    .btn-ativar-gps {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .gps-info-bar, .gps-ativo-badge {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .mapa-container {
        margin: 0 auto 20px;
    }
    
    #mapa {
        height: 350px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .cliente-card {
        padding: 15px;
    }
    
    .cliente-nome {
        font-size: 18px;
    }
}

/* ========== ANIMAÇÕES ========== */
@keyframes mapaFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mapa-mobile-modal.open {
    animation: mapaFadeIn 0.3s ease-out;
}

/* ========== SCROLLBAR PERSONALIZADA ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== ESTILOS ADICIONAIS ========== */
button {
    cursor: pointer;
}

.btn-filtro:focus, .btn-nav:focus, .search-bar button:focus {
    outline: none;
}

/* Hover effects para melhor UX */
.cliente-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Melhorar legibilidade */
.cliente-info span {
    word-break: break-word;
}