/* ============================================================
   ESTABELECIMENTO - Ficha/Perfil do Estabelecimento
   Arquivo dedicado para layout de perfil (RES, HTL, ATR, LOJ, SRV, AGE)
   Mobile-first
   ============================================================ */

/* ---- MOBILE: evitar overflow horizontal ---- */
html:has(body.estab_page),
body.estab_page {
  overflow-x: hidden;
  max-width: 100vw;
}

body.estab_page .wtContainer {
  max-width: 100vw;
  box-sizing: border-box;
}

body.estab_page .infoDestino_titulo h1 {
  font-size: 22px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body.estab_page .infoDestino_titulo small {
  font-size: 11px;
}

/* ---- FICHA HEADER ---- */
.estab_ficha {
  width: 100%;
  float: left;
  margin-top: 18px;
  margin-bottom: 16px;
}

.estab_fichaInner {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid #E7E9F5;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* ---- HERO ROW: FOTO + INFO ---- */
.estab_heroRow {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
}

.estab_heroFoto {
  width: 110px;
  min-width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: #EEF0FA;
  flex-shrink: 0;
}

.estab_heroFoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.estab_heroFotoPlaceholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 48px;
  background: #EEF0FA;
}

.estab_heroInfo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  justify-content: space-between;
}

.estab_heroNome {
  font-size: 22px;
  font-weight: 800;
  color: #222;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.estab_heroEndereco {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.estab_heroEndereco i {
  color: #E74C3C;
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

.estab_heroContato {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.estab_heroContato span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #555;
}

.estab_heroContato i {
  color: #564DC0;
  font-size: 12px;
}

.estab_heroContato a {
  color: #564DC0;
  text-decoration: none;
  font-weight: 500;
}

.estab_heroContato a:hover {
  text-decoration: underline;
}

/* Endereço estruturado em linhas */
.estab_heroEnderecoLinhas {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.estab_enderecoRua {
  font-weight: 500;
  color: #444;
}

.estab_enderecoBairro {
  color: #666;
}

.estab_enderecoCidade {
  color: #888;
  font-size: 12px;
}

.estab_enderecoCidadeLink {
  color: #564DC0;
  text-decoration: none;
  font-weight: 500;
}

.estab_enderecoCidadeLink:hover {
  text-decoration: underline;
}

/* ---- RATING GOOGLE ---- */
.estab_rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.estab_ratingStars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #F4B400;
  font-size: 18px;
}

.estab_ratingStars i {
  font-size: 17px;
}

.estab_ratingNota {
  font-weight: 800;
  font-size: 22px;
  color: #564DC0;
  letter-spacing: -0.5px;
}

.estab_ratingTotal {
  font-size: 13px;
  color: #888;
}

.estab_ratingGoogle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #bbb;
  margin-left: auto;
}

.estab_ratingGoogle img {
  width: 14px;
  height: 14px;
}

/* ---- TIPO / SUBTIPO ---- */
.estab_tipo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
}

.estab_tipoTag {
  background: #564DC0;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.estab_tipoPreco {
  color: #34BFA3;
  font-weight: 600;
  font-size: 13px;
}

/* ---- STATUS ABERTO/FECHADO ---- */
.estab_status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.estab_statusDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.estab_statusAberto .estab_statusDot {
  background: #34BFA3;
}

.estab_statusAberto {
  color: #34BFA3;
}

.estab_statusFechado .estab_statusDot {
  background: #E74C3C;
}

.estab_statusFechado {
  color: #E74C3C;
}

.estab_statusHora {
  color: #888;
  font-weight: 400;
  font-size: 12px;
}

/* ---- BADGES / ATRIBUTOS ---- */
.estab_badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.estab_badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #EEF0FA;
  border: 1px solid #D8DAF0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #564DC0;
  white-space: nowrap;
  transition: all 0.3s;
}

.estab_badge i {
  font-size: 12px;
  color: #564DC0;
}

.estab_badge:hover {
  background: #564DC0;
  color: #fff;
  border-color: #564DC0;
}

.estab_badge:hover i {
  color: #fff;
}

/* Badges mini (dentro do heroInfo) — espaçado entre endereço e botões */
.estab_badgesMini {
  gap: 5px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.estab_badgesMini .estab_badge {
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 14px;
  gap: 3px;
}

.estab_badgesMini .estab_badge i {
  font-size: 10px;
}

/* ---- SITE / WEBSITE ---- */
.estab_heroSite {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.estab_heroSite i {
  color: #564DC0;
  font-size: 12px;
  flex-shrink: 0;
}

.estab_heroSite a {
  color: #564DC0;
  text-decoration: none;
  font-weight: 500;
}

.estab_heroSite a:hover {
  text-decoration: underline;
}

/* Rating row: rating + status na mesma linha */
.estab_ratingRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e8e6f0;
}

/* Endereco row: endereço + preço no canto */
.estab_enderecoRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.estab_precoFloat {
  font-size: 18px;
  font-weight: 700;
  color: #27AE60;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 1px;
}

/* Ações dentro do heroInfo — colado no bottom, alinhado com a foto */
.estab_heroInfo .estab_acoes {
  margin-top: auto;
  padding-top: 8px;
}

/* ---- BOTOES DE ACAO RAPIDA ---- */
.estab_acoes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
  position: relative;
}

.estab_acaoBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: #564DC0;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.estab_acaoBtn i {
  font-size: 13px;
}

.estab_acaoBtn span {
  margin-right: 7px;
}

.estab_acaoBtn:hover {
  background: #34BFA3;
}

.estab_acaoBtn--green {
  background: #34BFA3;
}

.estab_acaoBtn--green:hover {
  background: #2BA88E;
}

/* ---- ABAS DE CONTEUDO ---- */
.estab_tabs {
  width: 100%;
  float: left;
  margin-bottom: 0;
}

.estab_tabsMenu {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 2px solid #D8DAF0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.estab_tabsMenu::-webkit-scrollbar {
  display: none;
}

.estab_tabsMenu li {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s;
}

.estab_tabsMenu li:hover {
  color: #564DC0;
}

.estab_tabsMenu li.estab_tabActive {
  color: #564DC0;
  border-bottom-color: #564DC0;
  font-weight: 700;
}

.estab_tabContent {
  display: none;
  width: 100%;
  float: left;
  padding: 16px 0;
}

/* Aba Sobre: mesmo espaço que as outras abas */
.estab_tabContent#estabTabSobre {
  padding: 16px 0 0 0 !important;
}

.estab_tabContent.estab_tabContentActive {
  display: block;
}

/* ---- ABA HORARIOS ---- */
.estab_horarios {
  list-style: none;
  padding: 10px 6px;
  margin: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.estab_horarios li {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #F0F1F7;
}

.estab_horarios li:last-child {
  border-bottom: none;
}

.estab_horarios li.estab_horarioHoje {
  background: #F5F6FA;
  border-radius: 8px;
  font-weight: 600;
  color: #564DC0;
}

.estab_horariosDia {
  font-weight: 500;
  min-width: 110px;
}

.estab_horariosHora {
  text-align: right;
  color: #666;
}

/* ---- ABA REVIEWS ---- */
.estab_reviews {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 16px;
}

.estab_reviewItem {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F0F1F7;
}

.estab_reviewItem:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.estab_reviewFoto {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #EEF0FA;
}

.estab_reviewBody {
  flex: 1;
  min-width: 0;
}

.estab_reviewHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.estab_reviewAutor {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.estab_reviewStars {
  display: inline-flex;
  gap: 1px;
  color: #F4B400;
  font-size: 12px;
}

.estab_reviewData {
  font-size: 12px;
  color: #aaa;
}

.estab_reviewTexto {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.estab_reviewTexto.estab_reviewTextoFull {
  -webkit-line-clamp: unset;
}

.estab_reviewVerMais {
  font-size: 12px;
  color: #564DC0;
  cursor: pointer;
  margin-top: 4px;
  font-weight: 500;
}

/* ---- MAPA INLINE (Embed API gratis) ---- */
.estab_mapa {
  width: 100%;
  float: left;
  margin-top: 10px;
  margin-bottom: 15px;
}

.estab_mapaInner {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.estab_mapaFrame {
  width: 100%;
  height: 250px;
  border: none;
  display: block;
}

.estab_mapaEndereco {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #555;
}

.estab_mapaEndereco i {
  color: #E74C3C;
  font-size: 16px;
}

.estab_mapaEndereco a {
  color: #564DC0;
  text-decoration: none;
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
}

.estab_mapaEndereco a:hover {
  text-decoration: underline;
}

/* ---- PROXIMOS ---- */
.estab_proximos {
  width: 100%;
  float: left;
  margin-top: 16px;
  margin-bottom: 20px;
}

.estab_proximosLista {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.estab_proximosLista::-webkit-scrollbar {
  display: none;
}

.estab_proximoCard {
  min-width: 160px;
  max-width: 180px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.estab_proximoCard:hover {
  box-shadow: 0 4px 16px rgba(86, 77, 192, 0.15);
  transform: translateY(-2px);
}

.estab_proximoFoto {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  background: #EEF0FA;
}

.estab_proximoInfo {
  padding: 10px 12px;
}

.estab_proximoNome {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.estab_proximoRating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.estab_proximoRating i {
  color: #F4B400;
  font-size: 11px;
}

.estab_proximoDist {
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
}

/* ---- "É o responsável" abaixo do título ---- */
.estab_solicitaEdit {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  clear: both;
}

.estab_solicitaEdit a {
  color: #564DC0;
  text-decoration: underline;
}

/* ---- OCULTAR GALERIA ANTIGA EM ESTABELECIMENTOS ---- */
.estab_galeriaAntigaOculta.infoDestino_galeriaOFF {
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}

/* Compactar layout para estabelecimentos */
body.estab_page .infoDestino_cabecalho {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.estab_page .wtSectionPesquisa_faq_1 {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: auto !important;
}

body.estab_page .wtConteudo_pagDestino {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.estab_page .infoDestino_faq {
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-height: auto !important;
}

body.estab_page .infoDestino_faq > h3 {
  display: none !important;
}

body.estab_page .wtClima {
  display: none !important;
}

/* ---- GALERIA DE FOTOS ---- */
.estab_galeria {
  width: 100%;
  float: left;
  margin-bottom: 16px;
}

/* Título padrão de seção (Fotos, Próximo daqui, etc) */
.estab_sectionTitulo,
.estab_galeriaTitulo,
.estab_proximosTitulo {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.estab_sectionTitulo i,
.estab_galeriaTitulo i,
.estab_proximosTitulo i {
  color: #564DC0;
  font-size: 14px;
}

.estab_galeriaTotal {
  font-weight: 400;
  color: #999;
  font-size: 13px;
}

.estab_galeriaStrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.estab_galeriaStrip::-webkit-scrollbar {
  display: none;
}

.estab_galeriaThumb {
  min-width: 120px;
  max-width: 140px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.estab_galeriaThumb:hover {
  box-shadow: 0 4px 14px rgba(86, 77, 192, 0.2);
  transform: translateY(-2px);
}

.estab_galeriaThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- LOADING SKELETON ---- */
.estab_skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: estabShimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes estabShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.estab_skeletonLine {
  height: 14px;
  margin-bottom: 8px;
  width: 60%;
}

.estab_skeletonBadge {
  height: 28px;
  width: 90px;
  display: inline-block;
  border-radius: 20px;
  margin-right: 6px;
}

/* ---- ESTAB: POPUP SHARE DENTRO DOS NOVOS BOTÕES ---- */
#estabAcoes .share {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 999;
  min-width: 300px;
  margin-top: 6px;
}

/* ---- GOOGLE POWERED BY ---- */
.estab_googlePowered {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #bbb;
  margin-top: 8px;
}

.estab_googlePowered img {
  height: 14px;
  opacity: 0.6;
}
