/* INVEXO — Página do imóvel (aluguel), layout "Mosaico". Carregado só no single, depois do invexo-vitrine.css. */
.ixi { padding-bottom: 48px; }
.ixi-migalha { font-size: 13px; color: var(--ixv-cinza); padding: 16px 0 12px; }
.ixi-migalha a { color: var(--ixv-cinza); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.ixi-selo { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; background: var(--ixv-ouro); color: var(--ixv-preto); }
.ixi--alugado .ixi-selo { background: var(--ixv-grafite); color: var(--ixv-branco); }
.ixi-titulo { font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1.25; margin: 10px 0 6px; color: var(--ixv-grafite); }
.ixi-sub { margin: 0 0 18px; color: var(--ixv-cinza); font-size: 15px; }

/* Galeria: celular = trilho com setas; desktop = mosaico de 5 */
.ixi-galeria { position: relative; overflow: hidden; background: #eee; }
.ixi-mosaico { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ixi-mosaico::-webkit-scrollbar { display: none; }
.ixi-foto { flex: 0 0 100%; scroll-snap-align: start; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; display: block; }
.ixi-foto img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.ixi-foto:focus-visible { outline: 3px solid var(--ixv-ouro); outline-offset: -3px; }
.ixi-seta { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ixv-preto); font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.ixi-seta--a { left: 10px; }
.ixi-seta--p { right: 10px; }
.ixi-seta:focus-visible, .ixi-ver:focus-visible { outline: 2px solid var(--ixv-ouro); outline-offset: 2px; }
.ixi-conta { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(0, 0, 0, .72); color: var(--ixv-branco); font-size: 12px; padding: 5px 9px; }
.ixi-ver { display: none; }

/* Carimbo "ALUGADO" — mesmo do single antigo (functions.php do child) */
.ixi-carimbo { position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -50%) rotate(-22deg); font-family: Cinzel, Montserrat, serif; font-size: clamp(40px, 9vw, 140px); font-weight: 900; letter-spacing: .1em; color: #d92626; background: rgba(255, 255, 255, .08); border: 4px solid #d92626; padding: 8px 28px; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); box-shadow: 0 4px 20px rgba(0, 0, 0, .35); pointer-events: none; user-select: none; white-space: nowrap; }

/* Ficha + corpo */
.ixi-grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
.ixi-grade > * { min-width: 0; }
.ixi-ficha { border: 1px solid var(--ixv-linha); padding: 20px; background: var(--ixv-branco); }
.ixi-preco { margin: 0 0 10px; font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--ixv-grafite); }
.ixi-preco small { font-size: 15px; font-weight: 500; color: var(--ixv-cinza); }
.ixi-custos { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.ixi-custos th, .ixi-custos td { padding: 10px 0; border-bottom: 1px solid var(--ixv-linha); font-weight: 500; text-align: left; }
.ixi-custos td { text-align: right; font-weight: 600; }
.ixi-custos__total th, .ixi-custos__total td { border-bottom: 0; padding-top: 14px; font-size: 17px; font-weight: 700; }
.ixi-custos__total td { color: #8a6d12; } /* dourado escuro com 4,9:1 no branco */
.ixi-wa, .ixi-video { width: 100%; margin-top: 14px; }
.ixi-wa { background: #17834a; color: var(--ixv-branco); } /* 4,9:1 com texto branco */
.ixi-video { margin-top: 8px; }
.ixi-cod { margin: 12px 0 0; font-size: 12px; color: var(--ixv-cinza); text-align: center; }

.ixi-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.ixi-specs li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 12px 4px; border: 1px solid var(--ixv-linha); }
.ixi-specs svg { width: 24px; height: 24px; fill: none; stroke: var(--ixv-ouro-escuro); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ixi-specs b { font-size: 18px; font-weight: 700; color: var(--ixv-grafite); }
.ixi-specs span { font-size: 12px; color: var(--ixv-cinza); }

.ixi-bloco { padding: 24px 0; border-top: 1px solid var(--ixv-linha); margin-top: 24px; }
.ixi-specs + .ixi-bloco { margin-top: 24px; }
.ixi-bloco h2, .ixi-form .invexo-contato h3 { font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0 0 14px; color: var(--ixv-grafite); }
.ixi-desc p { margin: 0 0 14px; line-height: 1.7; font-size: 15px; }
.ixi-carac { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ixi-carac li { font-size: 14px; padding: 8px 12px; border: 1px solid var(--ixv-linha); background: var(--ixv-fundo); }

/* Formulário do plugin invexo-contato-aluguel no visual da vitrine */
.ixi-form .invexo-contato { margin-top: 0; }
.ixi-form .invexo-contato .invexo-contato__campo { background-color: var(--ixv-branco); border-color: #cfc9bc; border-radius: 0; color: var(--ixv-grafite); }
.ixi-form .invexo-contato .invexo-contato__enviar { background: var(--ixv-ouro); color: var(--ixv-preto); font-family: inherit; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; border-radius: 0; transition: background-color .2s ease; }

.ixi-relacionados { margin-top: 24px; }

/* Fotos em tela cheia */
.ixi-lb { position: fixed; inset: 0; z-index: 10000; /* acima do WhatsApp flutuante do functions.php (9999) */ background: rgba(0, 0, 0, .96); display: flex; flex-direction: column; }
.ixi-lb[hidden] { display: none; }
.ixi-lb__topo { display: flex; justify-content: space-between; align-items: center; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 16px; color: var(--ixv-branco); font-size: 14px; font-weight: 500; }
.ixi-lb__x { width: 48px; height: 48px; border: 0; background: none; color: var(--ixv-branco); font-size: 34px; line-height: 1; cursor: pointer; }
.ixi-lb__trilho { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ixi-lb__trilho::-webkit-scrollbar { display: none; }
.ixi-lb__trilho img { flex: 0 0 100%; width: 100%; height: 100%; max-width: none; object-fit: contain; scroll-snap-align: center; }
.ixi-lb__seta { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: var(--ixv-branco); font-size: 30px; line-height: 1; cursor: pointer; }
.ixi-lb__seta--a { left: max(10px, env(safe-area-inset-left, 0px)); }
.ixi-lb__seta--p { right: max(10px, env(safe-area-inset-right, 0px)); }
.ixi-lb__x:focus-visible, .ixi-lb__seta:focus-visible { outline: 2px solid var(--ixv-ouro); outline-offset: 2px; }
.ixi-travado { overflow: hidden; }

@media (min-width: 601px) {
	.ixi-carimbo { border-width: 6px; padding: 12px 48px; letter-spacing: .15em; }
}
@media (min-width: 1024px) {
	.ixi-titulo { font-size: 36px; }
	.ixi-mosaico { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 6px; overflow: visible; background: var(--ixv-branco); }
	/* Altura vem da linha da grade; a foto preenche o botão por posição absoluta (% de altura dentro de <button> não resolve) */
	.ixi-foto { position: relative; height: 100%; overflow: hidden; }
	.ixi-foto img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
	.ixi-foto:first-child { grid-row: span 2; }
	.ixi-foto:nth-child(n+6) { display: none; }
	.ixi-seta, .ixi-conta { display: none; }
	.ixi-ver { display: inline-flex; align-items: center; position: absolute; right: 16px; bottom: 16px; z-index: 2; min-height: 44px; padding: 0 18px; background: var(--ixv-branco); color: var(--ixv-preto); border: 1px solid var(--ixv-preto); font-family: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
	.ixi-grade { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-top: 28px; }
	.ixi-lado { order: 2; }
	.ixi-ficha { position: sticky; top: 108px; }
	.ixi-bloco h2, .ixi-form .invexo-contato h3 { font-size: 22px; }
}
@media (hover: hover) {
	.ixi-seta:hover, .ixi-ver:hover { background: var(--ixv-ouro); }
	.ixi-wa:hover { background: #116b3c; }
	.ixi-form .invexo-contato .invexo-contato__enviar:hover { background: var(--ixv-ouro-escuro); }
	.ixi-lb__seta:hover { background: rgba(255, 255, 255, .3); }
	.ixi-migalha a:hover { color: var(--ixv-grafite); }
}
@media (prefers-reduced-motion: reduce) {
	.ixi-mosaico, .ixi-lb__trilho { scroll-behavior: auto; }
}
