/* ==================== SECAO DE TAGS/PALAVRAS-CHAVE ==================== */
.tags-section {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Reservar espaco para evitar CLS */
    min-height: 180px;
    contain: layout style;
}

.tags-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.tags-section-header i {
    font-size: 1.8rem;
    color: #00d4ff;
}

.tags-section-header h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Container de tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* Tag individual */
.property-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--tag-color, #00d4ff);
    border-radius: 25px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.property-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px var(--tag-color);
}

/* Icone da tag */
.tag-icon {
    font-size: 1.2rem;
}

/* Nome da tag */
.tag-name {
    text-transform: capitalize;
}

/* Contador */
.tag-count {
    background: var(--tag-color, #00d4ff);
    color: #0a0a0f;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* Tags com brilho (promocao, oferta, urbano) */
.tag-glow {
    animation: tagGlowPulse 2s ease-in-out infinite;
}

@keyframes tagGlowPulse {
    0%, 100% {
        box-shadow: 0 0 15px var(--tag-color), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px var(--tag-color), 0 0 35px var(--tag-color), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Tags de negociacao (laranja) */
.tag-negotiation {
    border-color: #ff9800 !important;
    background: rgba(255, 152, 0, 0.15) !important;
}

.tag-negotiation:hover {
    background: rgba(255, 152, 0, 0.25) !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4) !important;
}

.tag-negotiation .tag-count {
    background: #ff9800 !important;
    color: #000 !important;
}

/* Tag vendido (riscado) */
.tag-strikethrough .tag-name {
    text-decoration: line-through;
    opacity: 0.6;
}

.tag-strikethrough {
    opacity: 0.7;
}

/* Botao show more/less */
.tags-show-more {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--glass-border);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tags-show-more:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: #00d4ff;
}

.tags-show-more i {
    transition: transform 0.3s ease;
}

.tags-show-more.expanded i {
    transform: rotate(180deg);
}

/* Tags escondidas (collapse) */
.tags-container.collapsed .property-tag:nth-child(n+11) {
    display: none;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .tags-section {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
        /* Manter min-height no mobile para evitar CLS */
        min-height: 150px;
    }
    
    .property-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .tag-icon {
        font-size: 1rem;
    }
    
    .tag-count {
        padding: 0.15rem 0.5rem;
        font-size: 0.75rem;
        min-width: 20px;
    }
    
    .tags-section-header h3 {
        font-size: 1.2rem;
    }
    
    .tags-section-header i {
        font-size: 1.5rem;
    }
}

/* Mobile performance: remover backdrop-filter */
@media (max-width: 768px) {
    .tags-section {
        backdrop-filter: none;
        background: rgba(10, 10, 15, 0.95);
    }
}

