/* Estilos para visualização individual de anúncios */
.classified-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Header */
.classified-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.classified-title {
    font-size: 32px;
    color: #333;
    margin: 0 0 20px;
    line-height: 1.2;
}

.classified-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 20px;
}

.meta-item i {
    color: #0073aa;
}

/* Galeria */
.classified-gallery {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.classified-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.classified-gallery img:hover {
    transform: scale(1.05);
}

/* Descrição */
.classified-description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

/* Seções de Detalhes */
.details-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.details-section h3 {
    color: #333;
    margin: 0 0 20px;
    font-size: 24px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail-item strong {
    display: block;
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Informações do Anunciante */
.advertiser-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.advertiser-info h3 {
    color: #333;
    margin: 0 0 20px;
    font-size: 24px;
}

.advertiser-info p {
    margin: 10px 0;
}

.contact-restricted {
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border-radius: 6px;
}

/* Footer */
.classified-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

/* Botões de Compartilhamento */
.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-share h4 {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-button.facebook { background: #3b5998; }
.share-button.twitter { background: #1da1f2; }
.share-button.linkedin { background: #0077b5; }
.share-button.whatsapp { background: #25d366; }

/* Botões de Contato */
.contact-actions {
    display: flex;
    gap: 15px;
}

.contact-button,
.login-to-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-button {
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}

.contact-button:hover {
    background: #218838;
}

.login-to-contact {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.login-to-contact:hover {
    background: #e2e6ea;
}

/* Modal de Contato */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Extras */
.content-box {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.required-documents ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.required-documents li {
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 5px;
}

.required-documents li:before {
    content: "✓";
    color: #28a745;
    margin-right: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
    .classified-title {
        font-size: 24px;
    }

    .classified-meta {
        font-size: 12px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .classified-footer {
        flex-direction: column;
        gap: 20px;
    }

    .contact-actions {
        width: 100%;
    }

    .contact-button,
    .login-to-contact {
        width: 100%;
    }
}
