/* VitrineUDI - View CSS */

.vu-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ============ SINGLE ANUNCIO ============ */
.vu-single-anuncio { background: #0A1628; color: #F8FAFC; padding: 30px 0 80px; min-height: 80vh; }

.vu-breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 24px; font-size: 0.9rem; color: #94A3B8;
}
.vu-breadcrumb a { color: #FFB627; text-decoration: none; }
.vu-breadcrumb a:hover { text-decoration: underline; }
.vu-breadcrumb .vu-current { color: #F8FAFC; font-weight: 600; }

.vu-single-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

/* Galeria */
.vu-galeria {
    background: #112240;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(243,146,0,0.15);
}
.vu-galeria-principal {
    position: relative;
    aspect-ratio: 4/3;
    background: #0A1628;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vu-galeria-principal img {
    width: 100%; height: 100%; object-fit: contain;
}
.vu-sem-foto {
    font-size: 4rem; color: #64748B;
}
.vu-badge-destaque {
    position: absolute; top: 16px; left: 16px;
    background: linear-gradient(135deg, #F39200, #FFB627);
    color: #0A1628; padding: 6px 14px;
    border-radius: 20px; font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(243,146,0,0.4);
}

.vu-galeria-thumbs {
    display: flex; gap: 8px; padding: 12px;
    overflow-x: auto;
    background: #0A1628;
}
.vu-thumb {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.vu-thumb:hover { transform: translateY(-2px); }
.vu-thumb.active { border-color: #F39200; box-shadow: 0 0 0 2px rgba(243,146,0,0.3); }

/* Info anúncio */
.vu-anuncio-info {
    background: #112240;
    border-radius: 16px;
    padding: 28px;
    margin-top: 20px;
    border: 1px solid rgba(243,146,0,0.15);
}
.vu-categoria-tag {
    display: inline-block;
    background: rgba(243,146,0,0.1);
    color: #FFB627;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.vu-anuncio-titulo {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 14px;
    color: #F8FAFC;
    line-height: 1.3;
}
.vu-anuncio-meta {
    display: flex; gap: 18px; flex-wrap: wrap;
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vu-anuncio-preco-wrap { margin-bottom: 16px; }
.vu-anuncio-preco {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    background: linear-gradient(135deg, #F39200, #FFB627);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.vu-negociavel {
    display: inline-block;
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 6px;
}
.vu-anuncio-condicao { color: #94A3B8; font-size: 0.95rem; }
.vu-anuncio-condicao strong { color: #F8FAFC; margin-right: 8px; }

/* Descrição */
.vu-descricao-box {
    background: #112240;
    border-radius: 16px;
    padding: 28px;
    margin-top: 20px;
    border: 1px solid rgba(243,146,0,0.15);
}
.vu-descricao-box h2 {
    color: #F39200;
    margin-bottom: 16px;
    font-size: 1.3rem;
}
.vu-descricao-content {
    color: #CBD5E1;
    line-height: 1.7;
}
.vu-descricao-content p { margin-bottom: 12px; }

/* Sidebar */
.vu-contato-box {
    background: #112240;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(243,146,0,0.2);
    position: sticky; top: 20px;
}
.vu-anunciante {
    display: flex; align-items: center; gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vu-anunciante-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F39200, #FFB627);
    color: #0A1628;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.5rem;
}
.vu-anunciante-nome { font-weight: 700; font-size: 1.05rem; }
.vu-anunciante-tipo { color: #94A3B8; font-size: 0.85rem; }

.vu-btn-contato {
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none; cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s;
}
.vu-btn-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; }
.vu-btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,0.4); }
.vu-btn-tel { background: rgba(30,91,191,0.3); color: #fff; border: 1px solid rgba(30,91,191,0.5); }
.vu-btn-favoritar { background: transparent; color: #F8FAFC; border: 1.5px solid rgba(255,255,255,0.15); }
.vu-btn-favoritar:hover { border-color: #ef4444; color: #ef4444; }

/* Segurança */
.vu-seguranca-box, .vu-share-box {
    background: #112240;
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 16px;
    border: 1px solid rgba(243,146,0,0.15);
}
.vu-seguranca-box h3, .vu-share-box h3 {
    color: #F39200;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.vu-seguranca-box ul { list-style: none; padding: 0; }
.vu-seguranca-box li {
    color: #CBD5E1;
    font-size: 0.88rem;
    padding: 4px 0;
}

.vu-share-buttons {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.vu-share-btn {
    flex: 1; min-width: 100px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none; cursor: pointer;
    color: #fff;
}
.vu-share-btn.wa { background: #25D366; }
.vu-share-btn.fb { background: #1877F2; }
.vu-share-btn.copy { background: rgba(30,91,191,0.4); color: #fff; }

/* ============ ARCHIVE ============ */
.vu-archive { background: #0A1628; color: #F8FAFC; padding: 40px 0 80px; min-height: 80vh; }
.vu-archive-header { text-align: center; margin-bottom: 30px; }
.vu-archive-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    background: linear-gradient(135deg, #F39200, #FFB627);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.vu-archive-header p { color: #94A3B8; }

.vu-archive-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.vu-filtros {
    background: #112240;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(243,146,0,0.15);
    position: sticky; top: 20px;
    height: fit-content;
}
.vu-filtros h3 { color: #F39200; margin-bottom: 16px; }
.vu-filtro-group { margin-bottom: 16px; }
.vu-filtro-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #CBD5E1;
}
.vu-filtro-input {
    width: 100%;
    background: #0A1628;
    border: 1.5px solid rgba(243,146,0,0.2);
    color: #F8FAFC;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}
.vu-filtro-input:focus { outline: none; border-color: #F39200; }
.vu-filtro-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vu-btn-filtros {
    width: 100%;
    background: linear-gradient(135deg, #F39200, #FFB627);
    color: #0A1628;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 8px;
}
.vu-btn-limpar {
    background: transparent;
    color: #94A3B8;
    border: 1.5px solid rgba(255,255,255,0.1);
}

.vu-resultados-header {
    margin-bottom: 16px;
    color: #94A3B8;
    font-size: 0.95rem;
}

/* ============ CARDS GRID ============ */
.vu-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.vu-card-anuncio {
    background: #112240;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #F8FAFC;
    border: 1px solid rgba(243,146,0,0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.vu-card-anuncio:hover {
    transform: translateY(-4px);
    border-color: #F39200;
    box-shadow: 0 12px 32px rgba(243,146,0,0.2);
}
.vu-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    background: #0A1628;
    overflow: hidden;
}
.vu-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.vu-card-anuncio:hover .vu-card-img-wrap img { transform: scale(1.05); }
.vu-card-sem-foto {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 3rem; color: #64748B;
}
.vu-card-badge-destaque, .vu-card-badge-novo {
    position: absolute; top: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
}
.vu-card-badge-destaque {
    left: 8px;
    background: linear-gradient(135deg, #F39200, #FFB627);
    color: #0A1628;
}
.vu-card-badge-novo {
    right: 8px;
    background: #22c55e;
    color: #fff;
}
.vu-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.vu-card-cat {
    color: #94A3B8;
    font-size: 0.75rem;
    margin-bottom: 6px;
}
.vu-card-titulo {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vu-card-preco {
    font-size: 1.2rem;
    font-weight: 800;
    color: #F39200;
    margin-bottom: 2px;
}
.vu-card-negociavel {
    color: #22c55e;
    font-size: 0.72rem;
    margin-bottom: 8px;
}
.vu-card-footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex; justify-content: space-between;
    color: #64748B;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============ BUSCA ============ */
.vu-busca-page { background: #0A1628; padding: 40px 0 80px; min-height: 80vh; }
.vu-busca-hero { margin-bottom: 30px; }
.vu-busca-hero h1 {
    text-align: center;
    color: #F39200;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}
.vu-busca-box-grande {
    display: flex;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
    background: #112240;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(243,146,0,0.2);
}
.vu-busca-grande, .vu-busca-cat {
    background: #0A1628;
    border: none;
    color: #F8FAFC;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
}
.vu-busca-grande { flex: 1; }
.vu-busca-cat { width: 200px; }
.vu-btn-buscar-grande {
    background: linear-gradient(135deg, #F39200, #FFB627);
    color: #0A1628;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

/* Empty state */
.vu-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: #94A3B8;
}
.vu-empty-icon { font-size: 4rem; margin-bottom: 14px; }
.vu-empty h3 { color: #F8FAFC; margin-bottom: 8px; }
.vu-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #F39200, #FFB627);
    color: #0A1628;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 16px;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 968px) {
    .vu-single-grid { grid-template-columns: 1fr; }
    .vu-archive-grid { grid-template-columns: 1fr; }
    .vu-filtros { position: static; }
    .vu-contato-box { position: static; }
    .vu-busca-box-grande { flex-direction: column; }
    .vu-busca-cat { width: 100%; }
}
@media (max-width: 600px) {
    .vu-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .vu-card-body { padding: 10px; }
    .vu-card-titulo { font-size: 0.85rem; }
    .vu-card-preco { font-size: 1rem; }
}