/* Centro Comercial Alphaville · páginas internas
   Mesma linguagem da home (rota.css): cantos de 10px, marinho/creme/amarelo/vermelho,
   Montserrat, cartões de logo centralizado, painel creme ao lado da foto. */

.interna main { padding-top: calc(90px + var(--strip)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; color: var(--blue); border-bottom: 1.5px solid currentColor; padding: 6px 0; }
.link span { transition: transform .3s var(--ease); }
.link:hover span { transform: translateX(4px); }

/* caminho */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a { font-weight: 500; color: var(--ink); }
.crumbs a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { opacity: .5; }

/* logo / monograma */
.logo { display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 14px 30px -18px rgba(20, 36, 61, .45); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo--mono { background: var(--navy); color: var(--sun); font-weight: 600; letter-spacing: -.02em; }

/* ---------- topo da página (foto + painel creme, como o hero) ---------- */
.ptop { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; margin: 0 10px; min-height: 380px; }
.ptop__pic { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--navy); }
.ptop__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kb 22s linear infinite alternate; }
.ptop__box { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 56px); border-radius: var(--r); background: var(--cream); }
.ptop__t { font-size: clamp(36px, 3.6vw, 54px); line-height: 1.04; font-weight: 400; letter-spacing: -.035em; }
.ptop__p { color: var(--muted); max-width: 52ch; }
.ptop .search { width: 100%; max-width: 720px; }

/* ---------- diretório ---------- */
.dir { padding-top: 48px; padding-bottom: 40px; }
.dir__bar { position: sticky; top: calc(80px + var(--strip)); z-index: 30; display: grid; gap: 14px; padding: 14px 0; margin-bottom: 26px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.segchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.segchips::-webkit-scrollbar { display: none; }
.segchip { flex: none; display: inline-flex; align-items: baseline; gap: 7px; height: 42px; align-items: center; padding: 0 16px; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.segchip small { font-size: 12px; font-weight: 500; color: var(--muted); }
.segchip:hover { border-color: var(--ink); }
.segchip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.segchip.is-on small { color: var(--sun); }
.dir__tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dir__count { font-size: 14px; color: var(--muted); }
.dir__sort select { height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314243d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; appearance: none; font-size: 14px; font-weight: 600; cursor: pointer; }

.dir__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ecard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; height: 100%; padding: 28px 18px 20px; border-radius: var(--r); background: var(--sand); transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.ecard:hover { transform: translateY(-4px); background: var(--cream); box-shadow: 0 24px 40px -28px rgba(20, 36, 61, .5); }
.ecard__logo { width: 104px; height: 104px; margin-bottom: 16px; font-size: 30px; transition: transform .4s var(--ease); }
.ecard:hover .ecard__logo { transform: scale(1.06) rotate(-3deg); }
.ecard__n { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.ecard__c { font-size: 14px; color: var(--muted); }
.ecard__a { font-size: 13px; color: var(--muted); }
.ecard__go { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: var(--blue); display: inline-flex; gap: 6px; }
.ecard__go i { font-style: normal; transition: transform .3s var(--ease); }
.ecard:hover .ecard__go i { transform: translateX(4px); }
.dir__empty { display: grid; justify-items: start; gap: 10px; padding: 40px; border-radius: var(--r); background: var(--sand); }
.dir__empty b { font-size: 20px; font-weight: 500; }
.dir__empty p { color: var(--muted); }
.dir__more { display: flex; justify-content: center; margin-top: 32px; }

/* tipos dentro do segmento */
.subchips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 900px) { .subchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } }
.subchips[hidden] { display: none; }
.subchips::-webkit-scrollbar { display: none; }
.subchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--sand); font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.subchip small { font-size: 11px; font-weight: 500; color: var(--muted); }
.subchip:hover { background: var(--cream); }
.subchip.is-on { background: var(--sun); color: var(--ink); }
.subchip.is-on small { color: var(--ink); }

/* ajuda */
.help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 40px; padding-bottom: 20px; }
.help__i { position: relative; display: grid; gap: 6px; padding: 24px 56px 24px 24px; border-radius: var(--r); background: var(--navy); color: #fff; transition: transform .3s var(--ease); }
.help__i:hover { transform: translateY(-3px); }
.help__i b { font-size: 18px; font-weight: 500; }
.help__i span { font-size: 14px; opacity: .78; }
.help__i i { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--ink); font-style: normal; transition: transform .3s var(--ease); }
.help__i:hover i { transform: translateY(-50%) translateX(4px); }

/* ---------- ficha da loja ---------- */
.shop { padding-top: 28px; }
.shop__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; margin-top: 18px; }
.shop__id { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; align-content: start; gap: 28px 36px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r); background: var(--cream); }
.shop__logo .logo { width: 168px; height: 168px; font-size: 48px; }
.shop[aria-busy="true"] .shop__id, .shop[aria-busy="true"] .shop__info { opacity: .4; }
.shop.is-ready .shop__id, .shop.is-ready .shop__info { animation: fadeup .7s var(--ease-out) both; }
.shop.is-ready .shop__info { animation-delay: .12s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } }
.shop__seg { justify-self: start; display: inline-flex; padding: 5px 12px; border-radius: var(--r-s); background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.shop__seg:hover { background: var(--blue); }
.shop__t { margin-top: 14px; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.04; font-weight: 400; letter-spacing: -.035em; }
.shop__c { margin-top: 8px; font-size: 18px; color: var(--muted); }
.shop__tags { grid-column: 1 / -1; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shop__tags p { width: 100%; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.shop__tags a { padding: 6px 12px; border-radius: var(--r-s); background: #fff; border: 1px solid var(--line); font-size: 14px; transition: border-color .2s; }
.shop__tags a:hover { border-color: var(--ink); }
.shop__acts { grid-column: 1 / -1; align-self: end; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.act { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: var(--r-s); background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 600; transition: transform .25s var(--ease), border-color .25s; }
.act:hover { transform: translateY(-2px); border-color: var(--ink); }
.act svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.act--wa { background: var(--red); border-color: var(--red); color: #fff; }
.act--wa:hover { background: #a80f22; border-color: #a80f22; }

.shop__info { display: grid; align-content: start; gap: 10px; }
.info { padding: 26px 28px; border-radius: var(--r); background: var(--sand); }
.info__t { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info__v { font-size: 17px; line-height: 1.5; }
.info__v b { font-weight: 600; }
.info__v span { font-size: 14px; color: var(--muted); }
.info__v a { font-weight: 600; font-size: 20px; }
.info__l { display: inline-flex; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--blue); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: var(--r-s); }
.hours dt { font-size: 15px; }
.hours dd { margin: 0; font-size: 15px; font-weight: 600; text-align: right; }
.hours .is-today { background: #fff; box-shadow: inset 3px 0 0 var(--sun); }
.hours em { margin-left: 6px; padding: 2px 7px; border-radius: 4px; background: var(--sun); font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.shop__missing[hidden], .shop__grid[hidden] { display: none; }
.shop__missing { display: grid; justify-items: start; gap: 16px; margin-top: 18px; padding: clamp(28px, 4vw, 56px); border-radius: var(--r); background: var(--cream); }
.shop__missing p { color: var(--muted); }

/* como chegar */
.visitbar { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin-top: 10px; }
.visitbar__pic { margin: 0; border-radius: var(--r); overflow: hidden; min-height: 300px; }
.visitbar__pic img { width: 100%; height: 100%; object-fit: cover; }
.visitbar__txt { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 56px); border-radius: var(--r); background: var(--navy); color: #fff; }
.visitbar__t { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; font-weight: 400; letter-spacing: -.03em; }
.visitbar__txt p { opacity: .82; max-width: 52ch; }
.visitbar__l { display: flex; flex-wrap: wrap; gap: 10px; }
.visitbar .btn--navy { background: var(--sun); color: var(--ink); }
.visitbar .btn--line { color: #fff; }

/* relacionados */
.rel { padding-top: 96px; padding-bottom: 20px; }
.rel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.rel__t { font-size: clamp(28px, 2.8vw, 40px); font-weight: 400; letter-spacing: -.03em; }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  .dir__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .interna main { padding-top: calc(84px + var(--strip)); }
  .ptop, .shop__grid, .visitbar { grid-template-columns: 1fr; }
  .ptop__pic { min-height: 200px; }
  .dir__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help { grid-template-columns: 1fr; }
  .shop__id { grid-template-columns: 1fr; gap: 20px; }
  .shop__logo .logo { width: 120px; height: 120px; font-size: 36px; }
}
@media (max-width: 640px) {
  .interna main { padding-top: calc(76px + var(--strip)); }
  .ptop { margin: 0 6px; }
  .ptop__pic { display: none; }
  .dir__bar { top: calc(68px + var(--strip)); }
  .dir__tools { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dir__grid { gap: 10px; }
  .ecard { padding: 20px 12px 16px; }
  .ecard__logo { width: 76px; height: 76px; font-size: 22px; }
  .act { flex: 1 1 100%; justify-content: center; }
  .rel { padding-top: 64px; }
}

/* =================== imóveis =================== */
.ptop__facts { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.ptop__facts li { font-size: 13px; color: var(--muted); }
.ptop__facts b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }

.imgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.imcard { display: grid; gap: 4px; }
.imcard__img { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 12px; border-radius: var(--r); overflow: hidden; background: var(--sand); }
.imcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.imcard:hover .imcard__img img { transform: scale(1.05); }
.imcard__none { display: grid; place-items: center; width: 100%; height: 100%; font-size: 28px; font-weight: 600; letter-spacing: .1em; color: var(--sun); background: var(--navy); }
.imcard__tag { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: var(--r-s); font-size: 11px; font-weight: 700; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.imcard__tag--locacao { background: #fff; color: var(--ink); }
.imcard__tag--venda { background: var(--red); color: #fff; }
.imcard__n { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; border-radius: var(--r-s); background: rgba(20, 36, 61, .75); color: #fff; font-size: 12px; font-style: normal; font-weight: 600; }
.imcard__preco { font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.imcard__preco small, .pcard__preco small { margin-left: 3px; font-size: .55em; font-weight: 500; color: var(--muted); }
.imcard__end { font-size: 15px; font-weight: 600; }
.imcard__facts { font-size: 14px; color: var(--muted); }

.why { padding-top: 96px; }
.why__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.why__t { font-size: clamp(28px, 2.8vw, 40px); font-weight: 400; letter-spacing: -.03em; }
.why__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why__list li { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r); background: var(--sand); box-shadow: inset 0 3px 0 var(--sun); }
.why__list b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.why__list span { font-size: 15px; color: var(--muted); }
.why + .visitbar { margin-top: 96px; }

/* ficha */
.prop { padding-top: 28px; }
.prop__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; margin-top: 18px; align-items: start; }
.prop__grid[hidden], .prop__body[hidden], [data-prop-missing][hidden] { display: none; }
.gallery { min-width: 0; }
.gallery--empty .gallery__nav, .gallery--empty .gallery__zoom, .gallery--empty .gallery__count, .gallery--empty .gallery__thumbs { display: none; }
.gallery__none { gap: 14px; text-align: center; font-size: 15px; }
.gallery__main .gallery__none img { width: 72px; height: auto; margin: 0 auto 14px; cursor: default; opacity: .9; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--navy); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery__none { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .7); font-weight: 600; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); transition: transform .2s var(--ease); }
.gallery__nav:hover { transform: translateY(-50%) scale(1.08); }
.gallery__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }
.gallery__count { position: absolute; left: 16px; bottom: 16px; padding: 5px 11px; border-radius: var(--r-s); background: rgba(20, 36, 61, .78); color: #fff; font-size: 13px; font-weight: 600; }
.gallery__zoom { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-s); background: rgba(255, 255, 255, .92); color: var(--ink); }
.gallery__zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs button { flex: none; width: 96px; height: 72px; border-radius: var(--r-s); overflow: hidden; border: 2px solid transparent; opacity: .6; transition: opacity .2s, border-color .2s; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button.is-on { opacity: 1; border-color: var(--ink); }

.pcard { position: sticky; top: calc(100px + var(--strip)); display: grid; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--cream); }
.pcard__tag { justify-self: start; padding: 5px 12px; border-radius: var(--r-s); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--navy); color: #fff; }
.pcard__tag--venda { background: var(--red); }
.pcard__t { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.12; font-weight: 400; letter-spacing: -.03em; }
.pcard__end { font-size: 15px; font-weight: 600; }
.pcard__preco { font-size: clamp(32px, 3vw, 44px); font-weight: 500; letter-spacing: -.04em; line-height: 1; padding-top: 14px; border-top: 1px solid var(--line); }
.pcard__facts { display: flex; gap: 10px; }
.pcard__facts li { flex: 1; padding: 12px; border-radius: var(--r-s); background: #fff; font-size: 12px; color: var(--muted); }
.pcard__facts b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.pcard__acts { display: grid; gap: 8px; }
.pcard__acts .act { justify-content: center; }
.pcard__note { font-size: 13px; color: var(--muted); }

.prop__body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; margin-top: 10px; }
.prop__desc { padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--sand); }
.prop__h { margin-bottom: 16px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.prop__desc p { margin-bottom: 12px; }
.prop__desc ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.prop__desc li { padding: 7px 12px; border-radius: var(--r-s); background: #fff; font-size: 14px; }
.qa { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.qa b { font-size: 14px; font-weight: 600; color: var(--muted); }
.qa span { font-size: 16px; }
.prop__map { align-self: start; }

.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: rgba(13, 22, 38, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-s); }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.lightbox__close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.lightbox .gallery__count { left: 50%; transform: translateX(-50%); bottom: 24px; }

@media (max-width: 1180px) { .why__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .imgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prop__grid, .prop__body { grid-template-columns: 1fr; }
  .pcard { position: static; }
}
@media (max-width: 640px) {
  .imgrid { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .gallery__nav { width: 40px; height: 40px; }
  .gallery__thumbs button { width: 72px; height: 54px; }
}
