/**
 * Estilos do front do addon Imóveis. A maior parte do layout usa Tailwind (já compilado no tema);
 * aqui vão só o editor WYSIWYG, o botão de IA e ajustes pontuais.
 *
 * @package Imoveis_GuiaWP
 * @author  Dante Testa <https://dantetesta.com.br>
 */

/* Editor WYSIWYG da descrição */
.igw-editor { border: 1px solid #cbd5e1; border-radius: .5rem; overflow: hidden; background: #fff; }
.igw-editor:focus-within { border-color: var(--gcep-color-primary, #2563eb); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.igw-editor__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.igw-editor__toolbar button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 0; background: transparent; color: #475569; cursor: pointer; font-size: .9rem; }
.igw-editor__toolbar button:hover { background: #e2e8f0; color: #0f172a; }
.igw-editor__area { min-height: 9rem; max-height: 22rem; overflow-y: auto; padding: .85rem; font-size: .9rem; color: #0f172a; line-height: 1.6; outline: none; }
.igw-editor__area:empty:before { content: attr(data-placeholder); color: #94a3b8; pointer-events: none; }
.igw-editor__area p { margin: 0 0 .6rem; }
.igw-editor__area h3 { font-size: 1rem; font-weight: 700; margin: .4rem 0; }
.igw-editor__area ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 .6rem; }

/* Botão "Melhorar com IA" */
.igw-editor__ia { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: none; border-radius: .5rem; background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; font-size: .75rem; font-weight: 700; cursor: pointer; }
.igw-editor__ia:hover { filter: brightness(1.08); }
.igw-editor__ia.is-loading { opacity: .7; cursor: default; }
.igw-editor__ia .material-symbols-outlined { font-size: 1rem; }

/* Galeria (thumbs scroll) */
.igw-gallery [data-full] img { pointer-events: none; }

/* Leaflet: o reset do tema define img{max-width:100%} e quebra os tiles/marcador — restaura. */
.leaflet-container img{max-width:none !important;}
.leaflet-container .leaflet-marker-icon,.leaflet-container .leaflet-marker-shadow{max-width:none !important;}

/* Chips (pills) de taxonomia no setup admin — robusto ao Tailwind do tema. */
.igw-term{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .4rem .3rem .75rem;border-radius:9999px;background:#eef2f7;color:#334155;font-size:.75rem;font-weight:600;line-height:1.2;}
.igw-term-del{display:inline-flex;align-items:center;justify-content:center;width:1.2rem;height:1.2rem;border-radius:9999px;color:#94a3b8;background:transparent;border:0;cursor:pointer;flex:0 0 auto;}
.igw-term-del:hover{background:#fee2e2;color:#dc2626;}
.igw-term-del .material-symbols-outlined{font-size:15px;}

/* Dante Testa <https://dantetesta.com.br> — 2026-09-19 20:06 -0300: descrição legível sem estourar a largura no celular. */
.igw-description { min-width: 0; overflow-wrap: anywhere; }
.igw-editor__area { overflow-wrap: anywhere; white-space: pre-wrap; }

/* Dante Testa <https://dantetesta.com.br> — 2026-09-19 21:11 -0300: destaque da identidade do anunciante. */
.igw-advertiser-card{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:22px;padding:22px 18px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;text-align:center;}
.igw-advertiser-card__image{width:80px;height:80px;flex-shrink:0;overflow:hidden;border-radius:50%;background:#fff;}
.igw-advertiser-card__image img{display:block;width:100%;height:100%;object-fit:cover;}
.igw-advertiser-label{margin:0 0 6px;color:#64748b;font-size:11px;font-weight:700;line-height:1.4;letter-spacing:.07em;text-transform:uppercase;}
.igw-advertiser-card__name{margin:0;color:#0f172a;font-size:17px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;}
.igw-advertiser-card__details{margin:8px 0 0;color:#64748b;font-size:13px;line-height:1.6;overflow-wrap:anywhere;}
.igw-advertiser-profile{display:flex;flex-wrap:wrap;align-items:center;gap:22px;margin-bottom:24px;padding:24px;border:1px solid #dbe4ee;border-left:4px solid var(--gcep-color-primary,#2563eb);border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05);}
.igw-advertiser-profile__image,.igw-advertiser-profile__placeholder{display:flex;align-items:center;justify-content:center;width:112px;height:112px;flex-shrink:0;border-radius:18px;background:#f8fafc;overflow:hidden;}
.igw-advertiser-profile__image img{display:block;width:100%;height:100%;padding:8px;object-fit:contain;}
.igw-advertiser-profile__identity{flex:1 1 160px;min-width:0;}
.igw-advertiser-profile__name{margin:0;color:#0f172a;font-size:26px;font-weight:800;line-height:1.25;overflow-wrap:anywhere;}
.igw-advertiser-profile a:focus-visible{outline:3px solid var(--gcep-color-primary,#2563eb);outline-offset:4px;border-radius:8px;}
@media(max-width:639px){.igw-advertiser-profile{padding:18px;gap:16px;}.igw-advertiser-profile__image,.igw-advertiser-profile__placeholder{width:96px;height:96px;}.igw-advertiser-profile__identity{flex-basis:120px;}.igw-advertiser-profile__name{font-size:22px;}}

/* Dante Testa <https://dantetesta.com.br> — 2026-09-19 21:19 -0300: identidade com largura livre para o nome. */
.igw-advertiser-card>.min-w-0{width:100%;}
.igw-advertiser-card .igw-advertiser-label{font-size:10px;letter-spacing:.06em;font-weight:600;margin-bottom:6px;}
.igw-advertiser-card__document{display:block;font-size:12px;}
