/* ==========================================================================
   HUB BOVINO - ESTILOS GLOBAIS E DA HOME (home2.css)
   ========================================================================== */

body { 
    background-color: #f0f2f5; 
    margin: 0; 
    padding: 0;
    display: flex;
    justify-content: center; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

/* CONTAINER EXPANDIDO PARA 1000PX */
.main-app-container {
    width: 100%;
    max-width: 1000px; 
    background-color: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    padding-bottom: 90px; 
}

.top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px; 
    background: #fff; 
    position: sticky; 
    top: 0; 
    z-index: 90;
    border-bottom: 1px solid #eee;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 1000px; 
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #eee;
    z-index: 100;
}

.modal-overlay { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    max-width: 1000px; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 9999; 
    display: none; 
    align-items: flex-end; 
}

.logo-container { display: flex; align-items: center; gap: 8px; }
.logo-text { font-size: 1.3rem; font-weight: 900; color: #c85a17; letter-spacing: -0.5px; margin: 0;}
.logo-text span { color: #555; font-weight: 300; }
.header-icons { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #eee; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; color: #555; background: #fff; position: relative; text-decoration: none;}
.icon-btn.profile-avatar { border: 2px solid #c85a17; color: #c85a17; font-size: 0.9rem; font-weight: bold; background: #fffaf7;}

.user-location-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: #fffaf7; border-bottom: 1px solid #eee; }
.user-loc-left { font-size: 0.9rem; color: #666; display: flex; align-items: center; gap: 8px; font-weight: 500;}
.user-loc-left i { color: #c85a17; }
.user-loc-right { font-size: 0.85rem; color: #c85a17; font-weight: 700; cursor: pointer; text-decoration: none;}

.filter-bar { display: flex; gap: 10px; padding: 15px 10px; background: #fff; border-bottom: 1px solid #eee; }
.btn-filter { flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px; background: #fff; border: 1px solid #ddd; padding: 10px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: #444; cursor: pointer; }
.btn-filter.active { border-color: #f97316; color: #f97316; background: #fffaf7; }

/* REESTRUTURAÇÃO DO FEED PRINCIPAL */
.feed-container { 
    padding: 5px; 
    display: grid; 
    grid-template-columns: repeat(1, 1fr); 
    gap: 0px; 
}

@media (min-width: 650px) {
    .feed-container {
        grid-template-columns: repeat(3, 1fr); 
    }
}

.lote-card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; box-shadow: 0 4px 6px rgba(0,0,0,0.02); display: flex; flex-direction: column; justify-content: space-between;}
.lote-image-container { position: relative; width: 100%; height: 180px; background-color: #000; overflow: hidden; }
.lote-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.lote-badge-left { position: absolute; top: 8px; left: 8px; background: rgba(28, 25, 23, 0.85); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; z-index: 2;}
.lote-badge-right { position: absolute; top: 8px; right: 8px; background: #d97706; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; display: flex; align-items: center; gap: 4px; z-index: 2;}
.lote-badge-right.disabled { background: #9ca3af; }

.lote-info { padding: 15px; flex-grow: 1; }
.price-box { background: #f3f4f6; border-radius: 8px; display: flex; margin-bottom: 15px; padding: 12px 15px; }
.price-col { flex: 1; display: flex; flex-direction: column; }
.price-col-left { border-right: 1px solid #e5e7eb; padding-right: 10px; }
.price-col-right { padding-left: 15px; }
.price-label { font-size: 0.75rem; color: #6b7280; font-weight: 700; margin-bottom: 5px; text-transform: uppercase;}
.price-value { font-size: 1.1rem; color: #1f2937; display: flex; align-items: baseline; gap: 4px; font-weight: 900;}

.info-row { display: flex; align-items: center; margin-bottom: 12px; font-size: 0.9rem; color: #4b5563; font-weight: 600;}
.info-row-item { flex: 1; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-row-item i { color: #9ca3af; width: 18px; text-align: center; }
.v-sep { width: 1px; height: 15px; background: #e5e7eb; margin: 0 10px; }

.lote-footer { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-top: 1px solid #f3f4f6; }
.ver-lote-text { font-size: 1rem; font-weight: bold; color: #c85a17; }
.btn-arrow { width: 36px; height: 36px; border-radius: 50%; background: #c85a17; color: #fff; display: flex; justify-content: center; align-items: center; text-decoration: none; transition: 0.2s;}

.pagination-box { display: flex; justify-content: space-between; align-items: center; padding: 15px 10px; margin-top: 10px; }
.btn-page { padding: 10px 15px; background: #fff; border: 1px solid #ddd; border-radius: 8px; color: #333; text-decoration: none; font-weight: bold; font-size: 0.9rem; }
.btn-page.disabled { opacity: 0.5; pointer-events: none; }

/* MODAIS */
.modal-content { background: #fff; width: 100%; border-radius: 20px 20px 0 0; padding: 25px; box-sizing: border-box; animation: slideUp 0.3s ease-out; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column;}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-drag-bar { width: 40px; height: 5px; background: #e5e7eb; border-radius: 5px; margin: 0 auto 20px auto; }
.modal-title-box { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.modal-title { font-size: 1.3rem; font-weight: 800; color: #111; margin: 0;}
.modal-clear { color: #f97316; font-size: 0.95rem; font-weight: 700; background: none; border: none; cursor: pointer; padding: 0;}

/* FILTROS DESIGN */
.filter-section { margin-bottom: 30px; border-bottom: 1px solid #f3f4f6; padding-bottom: 20px;}
.filter-label { font-size: 1.1rem; font-weight: 700; color: #333; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.input-loc-wrapper input { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; box-sizing: border-box; }
.check-container { display: block; position: relative; padding-left: 35px; margin-bottom: 15px; cursor: pointer; font-size: 1rem; color: #555; user-select: none; }
.check-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 0; left: 0; height: 22px; width: 22px; background-color: #fff; border: 2px solid #ddd; border-radius: 4px; }
.check-container input:checked ~ .checkmark { background-color: #fff; border-color: #f97316; }
.checkmark:after { content: ""; position: absolute; display: none; }
.check-container input:checked ~ .checkmark:after { display: block; }
.check-container .checkmark:after { left: 7px; top: 3px; width: 5px; height: 10px; border: solid #f97316; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.range-inputs { display: flex; gap: 12px; width: 100%; }
.range-inputs input { flex: 1; width: 100%; padding: 14px 10px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 0.95rem; background-color: #fafafa; text-align: center; }

/* ORDENAR DESIGN */
.sort-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 25px;}
.sort-pill { padding: 14px 10px; border: 1px solid #e5e7eb; border-radius: 25px; background: #fff; color: #4b5563; font-weight: 700; font-size: 0.9rem; text-align: center; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 6px; transition: 0.2s;}
.sort-pill.active { border-color: #f97316; color: #333; }
.sort-icon { display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; color: #9ca3af; border-radius: 12px; padding: 2px 8px; font-size: 0.7rem; }
.badge-orange { background: #f97316; color: #fff; border-radius: 12px; padding: 3px 8px; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; gap: 4px;}
.priority-section { margin-bottom: 10px; display: none; }
.priority-header { font-size: 0.75rem; font-weight: 800; color: #6b7280; margin-bottom: 5px; text-transform: uppercase;}
.priority-card { border: 1px solid #f97316; border-radius: 12px; padding: 15px; display: flex; align-items: center; justify-content: space-between; background: #fffaf7;}

.modal-buttons { display: flex; gap: 15px; margin-top: 20px; position: sticky; bottom: -25px; background: #fff; padding: 20px 0;}
.btn-fechar { flex: 1; padding: 15px; background: #fff; color: #555; border: 1px solid #ddd; border-radius: 10px; font-weight: bold; font-size: 1.05rem; cursor: pointer; }
.btn-aplicar { flex: 1; padding: 15px; background: #f97316; color: white; border: none; border-radius: 10px; font-weight: bold; font-size: 1.05rem; cursor: pointer; }

/* --- ESTILOS DO NOVO FOOTER --- */
.main-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 20px 20px 20px;
    margin-top: 30px;
}
.footer-logo-row {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}
@media (min-width: 650px) {
    .footer-logo-row { justify-content: flex-start; }
}
.footer-links-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
    margin-bottom: 30px;
}
@media (min-width: 650px) {
    .footer-links-row { grid-template-columns: repeat(4, 1fr); }
}
.footer-col h4 {
    color: #111;
    font-size: 1.05rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 15px;
}
.footer-col a {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* ==========================================================================
   NOVA SEÇÃO DE PRESTADORES DE SERVIÇO INTERCALADA
   ========================================================================== */

.services-row-container {
    grid-column: 1 / -1;
    margin: 10px 0 20px 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 13px; /* Adiciona o recuo nas laterais esquerda e direita */
}

.services-row-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.services-row-title span {
    font-size: 0.85rem;
    color: #c85a17;
    font-weight: 700;
}

/* Grid de Serviços - Desktop (2 colunas) */
.services-grid-desktop {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

/* Grid de Serviços - Mobile (1 coluna) */
.services-grid-mobile {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    width: 100%;
}

/* Regras de Visibilidade (Desktop vs Mobile) */
.services-row-container.desktop-only { display: block; }
.services-row-container.mobile-only { display: none; }

@media (max-width: 650px) {
    .services-row-container.desktop-only { display: none; }
    .services-row-container.mobile-only { display: block; }
}

/* DESIGN DO CARD DO PRESTADOR */
.service-card-complete {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    gap: 15px;
}

.service-header-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.service-avatar-box {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c85a17;
    font-size: 1.8rem;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.service-badge-category {
    font-size: 0.7rem;
    background-color: #fffaf7;
    color: #c85a17;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid #f2dac9;
    display: inline-block;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.service-main-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.3;
    margin: 0 0 4px 0;
}

.service-provider-name {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 600;
}

.service-body-description {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.service-mini-footer-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 600;
    border-top: 1px dashed #f3f4f6;
    padding-top: 12px;
}
.service-mini-footer-meta i { color: #c85a17; }

.btn-view-profile {
    background-color: #c85a17;
    color: #ffffff;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.btn-view-profile:hover { background-color: #a0440f; }

.badge-exemplo {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #9ca3af;
    color: white;
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}