/* ============================================================
   Imovel Detail Redesign v2 — Stayou novo-site
   Gallery action bar refinements + Contact card v2
   ============================================================ */

/* ---------- Gallery Action Bar: compact & elegant ---------- */

/* Action bar container: ensure enough room for all buttons */
.galeria-acoes {
  top: 16px !important;
  right: 16px !important;
  gap: 8px !important;
  max-width: 88% !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}

/* Group secondary actions — uniform, no text clipping */
.galeria-acao.galeria-acao--sec {
  padding: 8px 14px !important;
  font-size: .8rem !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .12) !important;
  border: 1px solid rgba(0, 0, 0, .05) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: auto !important;
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  min-height: 36px !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  transition: all .2s ease !important;
}

.galeria-acao.galeria-acao--sec span {
  display: inline !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  max-width: none !important;
}

.galeria-acao.galeria-acao--sec:hover {
  background: #fff !important;
  box-shadow: 0 3px 16px rgba(0, 0, 0, .18) !important;
  transform: translateY(-1px) !important;
}

.galeria-acao.galeria-acao--sec svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
}

/* ---------- Tablet: slightly smaller ---------- */
@media (max-width: 1024px) and (min-width: 641px) {
  .galeria-acoes {
    max-width: 92% !important;
    gap: 6px !important;
  }
  .galeria-acao.galeria-acao--sec {
    padding: 7px 11px !important;
    font-size: .75rem !important;
    gap: 5px !important;
    min-height: 34px !important;
  }
  .galeria-acao.galeria-acao--sec svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* ---------- Mobile: keep text visible, compact row ---------- */
@media (max-width: 640px) {
  .galeria-acoes {
    top: 12px !important;
    bottom: auto !important;
    right: 10px !important;
    left: auto !important;
    gap: 6px !important;
    max-width: calc(100% - 20px) !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    overflow-x: visible !important;
    padding: 0 !important;
  }

  .galeria-acao.galeria-acao--sec {
    padding: 7px 10px !important;
    border-radius: 8px !important;
    min-width: auto !important;
    min-height: 32px !important;
    font-size: .72rem !important;
    gap: 4px !important;
  }

  .galeria-acao.galeria-acao--sec span {
    display: inline !important;
    font-size: .72rem !important;
  }

  .galeria-acao.galeria-acao--sec svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* ---------- Very small phones: two-line wrap ---------- */
@media (max-width: 400px) {
  .galeria-acoes {
    top: 8px !important;
    right: 8px !important;
    gap: 4px !important;
  }
  .galeria-acao.galeria-acao--sec {
    padding: 6px 8px !important;
    font-size: .68rem !important;
    min-height: 30px !important;
    gap: 3px !important;
  }
  .galeria-acao.galeria-acao--sec svg {
    width: 13px !important;
    height: 13px !important;
  }
}

/* ---------- Contact Card v2: centered, hierarchy-driven ---------- */

.anunciante-topo-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f0ecf2;
}

.anunciante-avatar-v2 {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3eef8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 3px solid #ece6f2;
}

.anunciante-avatar-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anunciante-avatar-v2 span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--roxo, #48005f);
}

.anunciante-nome-v2 {
  color: var(--roxo, #48005f);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}

.anunciante-empresa-v2 {
  font-weight: 300;
  font-size: .88rem;
  color: #777;
  margin: 3px 0 0;
}

.anunciante-selo-v2 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 5px 14px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: .76rem;
  font-weight: 600;
  border-radius: 20px;
}

.anunciante-selo-v2 svg {
  width: 14px;
  height: 14px;
  color: #2e7d32;
}

/* Email row */
.anunciante-email-v2 {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #faf6fb;
  color: #555;
  font-size: .88rem;
  text-decoration: none;
  transition: background .2s;
  margin-bottom: 14px;
  word-break: break-all;
}

.anunciante-email-v2:hover {
  background: #f3eef8;
  color: var(--roxo, #48005f);
  text-decoration: none;
}

.anunciante-email-v2 svg {
  width: 18px;
  height: 18px;
  color: var(--roxo, #48005f);
  flex-shrink: 0;
}

/* Button group v2 */
.anunciante-botoes-v2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-whatsapp-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 2px 10px rgba(37, 211, 102, .25);
}

.btn-whatsapp-v2:hover {
  background: #1eb958;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(37, 211, 102, .35);
}

.btn-whatsapp-v2 svg {
  width: 22px;
  height: 22px;
}

.btn-telefone-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1.5px solid #ddd;
  color: #666;
  font-weight: 500;
  font-size: .9rem;
  padding: 11px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s ease;
}

.btn-telefone-v2:hover {
  border-color: var(--laranja, #ff6633);
  color: var(--laranja, #ff6633);
  text-decoration: none;
}

.btn-telefone-v2 svg {
  width: 17px;
  height: 17px;
}

/* Disclaimer v2 */
.anunciante-nota-v2 {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0ecf2;
  font-size: .76rem;
  font-weight: 300;
  color: #999;
  line-height: 1.55;
}

.anunciante-nota-v2 svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #b7a3c0;
  margin-top: 1px;
}
