/* =====================================================
   SHOW AD — CSS LIMPO E AJUSTADO
===================================================== */

/* =====================================================
   BASE
===================================================== */
.ad-show-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 48px;
  box-sizing: border-box;
  color: #0f172a;
}

.ad-show-wrap *{
  box-sizing: border-box;
}

.ad_show-page{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =====================================================
   CARDS
===================================================== */
.ad-card,
.ad-card-soft,
.ll-quote__card,
.ll-quote__side{
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.ad-card-soft{
  background: #fafafa;
}

.ad-pad{
  padding: 20px 22px;
}

/* =====================================================
   HERO
===================================================== */
.ad-show-hero{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
  background: #fff;
}

.ad-show-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,.08),
    rgba(15,23,42,.18)
  );
  z-index: 1;
  pointer-events: none;
}

.ad-show-hero > *{
  position: relative;
  z-index: 2;
}

.ad-show-hero-img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.01);
}

.ad-show-hero-placeholder{
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #777;
}

.ad-show-hero{
  position: relative;
  overflow: hidden;
}

.ad-show-hero > *{
  position: relative;
}

.ad-header-card{
  position: relative;
  z-index: 5;
}

/* =====================================================
   LOGO
===================================================== */
.ad-show-logo{
  position: absolute;
  top: 16px;
  left: 18px;
  width: clamp(110px, 16vw, 170px);
  height: clamp(78px, 10vw, 112px);
  object-fit: contain;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 18px;
  padding: 10px 12px;
  box-shadow: 0 14px 28px rgba(15,23,42,.18);
  z-index: 4;
}

@media (max-width: 768px){
  .ad-show-logo{
    top: 12px;
    left: 12px;
    width: 104px;
    height: 74px;
    border-radius: 14px;
    padding: 8px 10px;
  }
}

@media (max-width: 520px){
  .ad-show-logo{
    width: 88px;
    height: 64px;
    border-radius: 12px;
    top: 10px;
    left: 10px;
    padding: 6px 8px;
  }
}

/* =====================================================
   BADGES DE PLANO
===================================================== */
/* =====================================================
   BADGES DE PLANO
===================================================== */
.ll-badge-plan{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15,23,42,.16);
  border: 1px solid transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ll-badge-plan--premium{
  position: absolute;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #fff;
  border-color: rgba(184,134,11,.28);
  box-shadow: 0 12px 24px rgba(184,134,11,.24);
}

.ll-badge-plan--premium::after{
  content: "";
  position: absolute;
  top: 0;
  left: -160%;
  width: 90%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  transform: skewX(-24deg);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.18) 30%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,.18) 70%,
    rgba(255,255,255,0) 100%
  );
  animation: llPremiumBadgeShine 3.2s ease-in-out infinite;
}

@keyframes llPremiumBadgeShine{
  0%{
    left: -160%;
  }
  20%{
    left: -160%;
  }
  55%{
    left: 170%;
  }
  100%{
    left: 170%;
  }
}


.ll-badge-plan--premium > *{
  position: relative;
  z-index: 2;
}

.ll-badge-plan--pro{
  background: linear-gradient(135deg, #4F7CCF, #3E6CC0);
  color: #fff;
  border-color: rgba(62,108,192,.24);
  box-shadow: 0 12px 24px rgba(62,108,192,.22);
}

.ll-badge-plan--free{
  background: #eef2f7;
  color: #475569;
  border-color: rgba(15,23,42,.08);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}
/* =====================================================
   HEADER CARD
===================================================== */
.ad-header-card{
  margin-top: -34px;
  position: relative;
  z-index: 5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
}

.ad-show-head{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ad-head-top{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.ad-head-left{
  flex: 1;
  min-width: 0;
}

.ad-head-right{
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.ad-show-owner{
  margin-top: 2px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.ad-show-owner strong{
  font-size: 14px;
  font-weight: 900;
  color: #334155;
}

.ad-show-title{
  margin: 8px 0 8px;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.08;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
}

.ad-show-meta{
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.ll-chip{
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08) !important;
  background: #f8fafc;
  color: #475569;
}

/* =====================================================
   CHIP ABERTO / FECHADO
===================================================== */
.ll-open-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .2px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ll-open-chip i.fa-circle{
  font-size: 9px;
}

.ll-open-chip.is-open{
  border-color: rgba(34,197,94,.28);
  color: #14532d;
  background: linear-gradient(180deg, rgba(220,252,231,.92), rgba(240,253,244,.86));
}

.ll-open-chip.is-closed{
  border-color: rgba(239,68,68,.24);
  color: #7f1d1d;
  background: linear-gradient(180deg, rgba(254,226,226,.92), rgba(255,247,237,.86));
}

.ll-open-chip.is-open i.fa-circle{
  color: #22c55e;
  animation: llPulse 1.6s ease-in-out infinite;
}

.ll-open-chip.is-closed i.fa-circle{
  color: #ef4444;
}

@keyframes llPulse{
  0%, 100%{ transform: scale(1); opacity: .85; }
  50%{ transform: scale(1.35); opacity: 1; }
}

/* =====================================================
   STATS
===================================================== */
.ad-head-stats{
  margin-top: 18px;
}

.ad-stats-row{
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.ad-stat-pill{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
  color: #0f172a;
}

.ad-stat-pill i{
  font-size: 15px;
  color: #475569;
  width: 18px;
  text-align: center;
}

.ad-stat-pill strong{
  display: block;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  color: #0f172a;
}

.ad-stat-pill small{
  display: block;
  font-size: 12px;
  line-height: 1.1;
  color: #64748b;
  margin-top: 3px;
}

@media (max-width: 1100px){
  .ad-stats-row{
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 640px){
  .ad-stats-row{
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .ad-stat-pill{
    min-height: 54px;
    padding: 10px 12px;
  }
}

/* =====================================================
   BOTÕES
===================================================== */
.ad-show-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ad-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.ad-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.ad-btn-quote{
  background: #0F3D4C;
  color: #C9A24C;
  box-shadow: 0 10px 20px rgba(15,61,76,.18);
}

.ad-btn-whatsapp{
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37,211,102,.18);
}

.ad-btn-phone{
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 20px rgba(17,24,39,.16);
}

.ad-btn-back{
  background: #e5e7eb;
  color: #111827;
}

/* =====================================================
   TÍTULOS DE SECÇÃO
===================================================== */
.ad-section-title,
.ad-gallery-title{
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
}

.ad-section-title i{
  opacity: .8;
}

/* =====================================================
   GALERIA
===================================================== */
.ad-show-gallery{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.gal-viewport{
  overflow: hidden;
  width: 100%;
}

.gal-track{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.gal-item{
  flex: 0 0 220px;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #eee;
  border: 1px solid rgba(15,23,42,.06);
}

.gal-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gal-btn{
  background: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  cursor: pointer;
}

@media (max-width: 900px){
  .gal-item{
    flex: 0 0 180px;
  }
}

/* =====================================================
   DESCRIÇÃO
===================================================== */
.ad-description{
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}

/* =====================================================
   HORÁRIO
===================================================== */
.ad-hours-shell{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  margin-top: 10px;
}

.ad-hours-grid{
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ad-hours-row{
  display: grid;
  grid-template-columns: 90px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.06);
}

.ad-hours-row > strong{
  font-weight: 800;
  font-size: 13px;
  color: rgba(17,24,39,.9);
}

.ad-hours-time{
  justify-self: start;
  font-weight: 700;
  font-size: 13px;
  color: rgba(17,24,39,.72);
}

.ad-hours-note{
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(17,24,39,.62);
  font-style: normal;
}

.ad-hours-side{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-status{
  padding: 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  border: 1px solid transparent;
}

.hours-status i{
  font-size: 18px;
}

.hours-status.is-open{
  background: rgba(16,185,129,.08);
  border-color: rgba(16,185,129,.25);
  color: #065f46;
}

.hours-status.is-closed{
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.25);
  color: #7f1d1d;
}

.hours-status strong{
  font-size: 15px;
  font-weight: 800;
}

.hours-status span{
  font-size: 13px;
  opacity: .8;
}

.hours-note{
  font-size: 12px;
  color: rgba(17,24,39,.65);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
}

@media (max-width: 900px){
  .ad-hours-shell{
    grid-template-columns: 1fr;
  }

  .ad-hours-time{
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 520px){
  .ad-hours-row{
    grid-template-columns: 64px 1fr;
    padding: 10px 10px;
  }
}

/* =====================================================
   MAPA
===================================================== */
.ad-map-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  justify-content: center;
}

.ad-map-leaf,
.ad-map-box iframe{
  width: 100%;
  height: 320px;
  border-radius: 14px;
  border: none;
  display: block;
}

.ad-map-box{
  border-radius: 14px;
  overflow: hidden;
}

.ad-map-empty{
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #64748b;
  border: 1px dashed rgba(15,23,42,.12);
}

/* =====================================================
   QUOTE / ORÇAMENTO
===================================================== */
.ll-quote{
  margin-top: 18px;
}

.ll-quote__shell{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}

.ll-quote__card{
  padding: 22px 22px 18px;
}

.ll-quote__head{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  text-align: center;
}

.ll-quote__icon{
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(62,89,66,.12);
  color: #3E5942;
  flex: 0 0 auto;
  font-size: 18px;
}

.ll-quote__title h3{
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
  color: #0f172a;
  text-align: center;
}

.ll-quote__title p{
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.ll-quote__form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ll-quote__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ll-field label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.ll-input{
  position: relative;
}

.ll-input i{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
}

.ll-input input,
.ll-input textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ll-input input::placeholder,
.ll-input textarea::placeholder{
  color: #94a3b8;
}

.ll-input--textarea i{
  top: 16px;
  transform: none;
}

.ll-input textarea{
  min-height: 140px;
  resize: vertical;
  padding-top: 14px;
}

.ll-input input:focus,
.ll-input textarea:focus{
  border-color: #3E5942;
  box-shadow: 0 0 0 4px rgba(62,89,66,.14);
}

.ll-field--full{
  grid-column: 1 / -1;
}

.ll-hint{
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}

.ll-hint i{
  color: #22c55e;
}

.ll-quote__actions{
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 8px;
}

.ll-btn,
.ll-btn-11{
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
}

.ll-btn-11{
  background: #3E5942;
  color: #fff;
  box-shadow: 0 10px 22px rgba(62,89,66,.20);
}

.ll-btn-11:hover{
  background: #2F4333;
  color: #fff;
}

.ll-btn--ghost{
  background: #f3f4f6;
  color: #111827;
}

.ll-btn--ghost:hover,
.ll-btn-11:hover{
  filter: brightness(.98);
}

.ll-alert{
  margin-top: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,.06);
}

.ll-alert.is-ok{
  background: #ecfdf5;
  color: #065f46;
  border-color: rgba(34,197,94,.25);
}

.ll-alert.is-err{
  background: #fef2f2;
  color: #7f1d1d;
  border-color: rgba(239,68,68,.25);
}

/* side */
.ll-quote__side{
  background: #fafafa;
  padding: 18px;
}

.ll-side__top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ll-avatar{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.ll-side__txt strong{
  display: block;
  font-size: 14px;
  color: #111827;
}

.ll-side__txt small{
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.ll-side__list{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.ll-side__list li{
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  font-size: 13px;
  color: #334155;
}

.ll-side__list i{
  width: 18px;
  text-align: center;
  color: #3E5942;
}

.ll-side__note{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
}

.ll-side__note i{
  color: #ef4444;
  margin-top: 2px;
}

.ll-side__note p{
  margin: 0;
  color: #374151;
  font-size: 13px;
  line-height: 1.35;
}




/* ===== CORRIGIR ÍCONES NO FORM PEDIR ORÇAMENTO ===== */

.ll-quote .ll-input{
  position: relative;
  display: flex;
  align-items: center;
}

.ll-quote .ll-input i{
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 15px;
  pointer-events: none;
  z-index: 2;
}

.ll-quote .ll-input input{
  width: 100%;
  padding-left: 48px !important;
}

.ll-quote .ll-input--textarea{
  align-items: flex-start;
}

.ll-quote .ll-input--textarea i{
  top: 18px;
  transform: none;
}

.ll-quote .ll-input--textarea textarea{
  width: 100%;
  padding-left: 48px !important;
  padding-top: 16px;
}

/* RTL: árabe e urdu */
[dir="rtl"] .ll-quote .ll-input i{
  left: auto;
  right: 18px;
}

[ dir="rtl"] .ll-quote .ll-input input,
[dir="rtl"] .ll-quote .ll-input--textarea textarea{
  padding-left: 14px !important;
  padding-right: 48px !important;
}
/* =====================================================
   BOTÃO VOLTAR
===================================================== */
.ad-back-wrap{
  display: flex;
  justify-content: flex-start;
}

.ad-back-wrap .ad-btn{
  min-width: auto;
}

/* =====================================================
   RESPONSIVO
===================================================== */
@media (max-width: 900px){
  .ll-quote__shell{
    grid-template-columns: 1fr;
  }

  .ll-quote__grid{
    grid-template-columns: 1fr;
  }

  .ll-quote__actions{
    justify-content: center;
    flex-wrap: wrap;
  }

  .ll-btn,
  .ll-btn-11{
    min-width: 150px;
  }

  .ad-show-hero-img{
    height: 280px;
  }

  .ad-head-top{
    flex-direction: column;
    align-items: center;
  }

  .ad-head-right{
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px){
  .ad-show-wrap{
    padding: 16px 12px 36px;
  }

  .ad-pad{
    padding: 16px;
  }

  .ad-show-title{
    font-size: 30px;
  }

  .ad-section-title,
  .ad-gallery-title,
  .ll-quote__title h3{
    font-size: 24px;
  }

  .ad-show-actions{
    flex-direction: column;
  }

  .ad-show-actions .ad-btn{
    width: 100%;
  }

  .ad-map-actions{
    flex-direction: column;
  }

  .ad-map-actions .ad-btn{
    width: 100%;
  }
}



.ad-details-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
}

.ad-detail-item{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  background:#fff;
}

.ad-detail-item strong{
  font-size:13px;
  color:#475569;
}

.ad-detail-item span{
  color:#0f172a;
  font-weight:600;
  word-break:break-word;
}


/* ===== VÍDEOS ===== */
.ad-video-stack{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top:10px;
}

.ad-video-item{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ad-video-topline{
  display:flex;
  justify-content:flex-start;
  align-items:center;
}

.ad-video-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
  border:1px solid rgba(15,23,42,.08);
}

.ad-video-badge--youtube{
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}

.ad-video-badge--tiktok{
  background:#ecfeff;
  color:#155e75;
  border-color:#bae6fd;
}

.ad-video-badge--instagram{
  background:#fdf2f8;
  color:#9d174d;
  border-color:#fbcfe8;
}

.ad-video-badge--video{
  background:#f1f5f9;
  color:#334155;
  border-color:#cbd5e1;
}

.ad-video-frame{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  border-radius:18px;
  overflow:hidden;
  background:#0f172a;
  box-shadow:0 10px 28px rgba(15,23,42,.12);
}

.ad-video-frame iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.ad-video-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.ad-btn-video{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  color:#fff;
  background:linear-gradient(135deg, #1f3d2b, #355f4b);
  box-shadow:0 10px 22px rgba(31,61,43,.18);
  transition:transform .15s ease, filter .15s ease;
}

.ad-btn-video:hover{
  transform:translateY(-1px);
  filter:brightness(1.04);
  color:#fff;
}

.ad-video-note{
  margin:12px 0 0;
  font-size:13px;
  color:var(--ll-muted);
  line-height:1.5;
}

@media (max-width: 640px){
  .ad-video-frame{
    border-radius:14px;
  }

  .ad-video-actions{
    flex-direction:column;
  }

  .ad-btn-video{
    width:100%;
  }
}



/* =========================================================
   GALERIA INTERNA - ad/show.php
   Classes reais:
   .ad-gallery-title
   .ad-show-gallery
   .ad-show-gallery--scroll
   .gal-viewport
   .gal-track
   .gal-item
========================================================= */

.ad-gallery-title{
  text-align:center;
  margin:34px 0 18px;
  font-size:30px;
  line-height:1.15;
  font-weight:900;
  color:#1f2937;
}

.ad-show-gallery.ad-show-gallery--scroll{
  width:100%;
  margin:0 0 34px;
  padding:18px;
  border-radius:24px;
  background:#ffffff;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 12px 30px rgba(15,23,42,.06);
  overflow:hidden;
}

.ad-show-gallery--scroll .gal-viewport{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 #eef2f7;
  padding:4px 2px 12px;
}

.ad-show-gallery--scroll .gal-viewport::-webkit-scrollbar{
  height:7px;
}

.ad-show-gallery--scroll .gal-viewport::-webkit-scrollbar-track{
  background:#eef2f7;
  border-radius:999px;
}

.ad-show-gallery--scroll .gal-viewport::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:999px;
}

.ad-show-gallery--scroll .gal-track{
  display:flex;
  align-items:stretch;
  gap:16px;
  width:max-content;
  min-width:100%;
}

.ad-show-gallery--scroll .gal-item{
  flex:0 0 230px;
  height:155px;
  display:block;
  border-radius:18px;
  overflow:hidden;
  background:#f8fafc;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 8px 18px rgba(15,23,42,.07);
  text-decoration:none;
  transition:transform .22s ease, box-shadow .22s ease;
}

.ad-show-gallery--scroll .gal-item:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(15,23,42,.12);
}

.ad-show-gallery--scroll .gal-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}


/* =========================================================
   BLOCO EXTERNO - MAIS FOTOS
   Classes reais:
   .ad-external-gallery
   .ad-external-gallery__icon
   .ad-external-gallery__content
   .ad-external-gallery__btn
========================================================= */

.ad-external-gallery.ad-card{
  width:100%;
  margin:24px 0 34px;
  padding:20px 22px;
  border-radius:22px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  box-shadow:0 10px 26px rgba(15,23,42,.05);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.ad-external-gallery__icon{
  width:50px;
  height:50px;
  flex:0 0 50px;
  border-radius:16px;
  background:#e5e7eb;
  color:#374151;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
}

.ad-external-gallery__content{
  flex:1 1 auto;
  min-width:0;
}

.ad-external-gallery__content h2{
  margin:0 0 5px;
  font-size:18px;
  line-height:1.25;
  font-weight:900;
  color:#111827;
}

.ad-external-gallery__content p{
  margin:0;
  max-width:720px;
  font-size:13px;
  line-height:1.55;
  color:#64748b;
}

.ad-external-gallery__btn{
  min-height:44px;
  padding:0 17px;
  border-radius:999px;
  background:#374151;
  color:#ffffff !important;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 10px 20px rgba(15,23,42,.16);
  transition:transform .2s ease, background .2s ease;
}

.ad-external-gallery__btn:hover{
  background:#111827;
  transform:translateY(-1px);
}

.ad-external-gallery__btn i{
  font-size:13px;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:700px){
  .ad-gallery-title{
    margin:28px 0 14px;
    font-size:24px;
  }

  .ad-show-gallery.ad-show-gallery--scroll{
    padding:14px;
    border-radius:20px;
    margin-bottom:26px;
  }

  .ad-show-gallery--scroll .gal-track{
    gap:12px;
  }

  .ad-show-gallery--scroll .gal-item{
    flex-basis:76vw;
    height:210px;
    border-radius:16px;
  }

  .ad-external-gallery.ad-card{
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:18px;
    margin:22px 0 30px;
  }

  .ad-external-gallery__content p{
    max-width:100%;
  }

  .ad-external-gallery__btn{
    width:100%;
  }
}



/* =========================================================
   CHAT
========================================================= */






.ad-chat-form{
  margin:0;
  padding:0;
  display:inline-flex;
}

.ad-btn-chat{
  min-height:44px;
  padding:6px 16px;
  border-radius:14px;
  background:#fff;
  color:#2f4333;
  border:1px solid #cbd5e1;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  transition:.18s ease;
}

.ad-btn-chat small{
  display:inline-flex;
  align-items:center;
  padding:3px 7px;
  border-radius:999px;
  background:#ecfdf5;
  color:#166534;
  font-size:10px;
  font-weight:700;
  margin-left:2px;
  white-space:nowrap;
}

.ad-btn-chat:hover{
  background:#2f4333;
  color:#fff;
  border-color:#2f4333;
}

.ad-btn-chat:hover small{
  background:rgba(255,255,255,.16);
  color:#fff;
}

@media(max-width:640px){
  .ad-chat-form,
  .ad-btn-chat{
    width:100%;
  }

  .ad-btn-chat{
    min-height:46px;
  }
}



/* =========================================================
   MODAL DAS CONVERSAS
========================================================= */


.ll-chat-modal{
  position:fixed;
  inset:0;
  z-index:9999;

  display:none;
  align-items:center;
  justify-content:center;

  padding:18px;
}

.ll-chat-modal.is-open{
  display:flex;
}

.ll-chat-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(3px);
}

.ll-chat-modal-box{
  position:relative;
  z-index:2;

  width:min(460px,100%);
  background:#fff;

  border-radius:22px;

  padding:24px;

  box-shadow:0 30px 70px rgba(0,0,0,.25);

  animation:llChatPop .18s ease;
}

@keyframes llChatPop{
  from{
    opacity:0;
    transform:scale(.96) translateY(8px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

.ll-chat-close{
  position:absolute;
  top:12px;
  right:14px;

  border:none;
  background:none;

  font-size:28px;
  cursor:pointer;

  color:#64748b;
}

.ll-chat-modal-box h3{
  margin:0 0 6px;
  font-size:24px;
  font-weight:700;
  color:#0f172a;
}

.ll-chat-modal-sub{
  margin:0 0 20px;
  color:#64748b;
  line-height:1.5;
}

.ll-chat-modal form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.ll-chat-modal label{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.ll-chat-modal span{
  font-size:14px;
  font-weight:700;
  color:#334155;
}

.ll-chat-modal input,
.ll-chat-modal textarea{
  width:100%;

  border:1px solid #cbd5e1;
  border-radius:14px;

  padding:12px 14px;

  font-size:14px;

  resize:none;
}

.ll-chat-modal input:focus,
.ll-chat-modal textarea:focus{
  outline:none;
  border-color:#2f4333;
}

.ll-chat-send-btn{
  height:48px;

  border:none;
  border-radius:14px;

  background:#2f4333;
  color:#fff;

  font-weight:700;
  font-size:15px;

  cursor:pointer;
}



/* =====================================================
   SHOW AD — STATS + BOTÕES FINAL
===================================================== */

/* STATS centradas e mais limpas */
.ad-head-stats{
  width:100%;
  margin:22px auto 10px;
}

.ad-stats-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.ad-stat-pill{
  min-width:108px;
  min-height:46px;
  padding:9px 14px;
  border-radius:999px;
  background:#f8faf9;
  border:1px solid rgba(47,67,51,.10);
  box-shadow:0 8px 18px rgba(15,23,42,.04);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:#2f4333;
}

.ad-stat-pill i{
  width:auto;
  font-size:14px;
  color:#2f4333;
}

.ad-stat-pill strong{
  font-size:15px;
  font-weight:900;
  color:#111827;
}

.ad-stat-pill small{
  margin:0;
  font-size:12px;
  font-weight:700;
  color:#647067;
}

/* BOTÕES — cor única, exceto WhatsApp */
.ad-show-actions{
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:16px;
}

.ad-show-actions .ad-btn{
  min-height:44px;
  padding:0 15px;
  border-radius:13px;
  background:#2f4333 !important;
  color:#fff !important;
  border:1px solid rgba(47,67,51,.18) !important;
  box-shadow:0 10px 22px rgba(47,67,51,.16);
}

.ad-show-actions .ad-btn i{
  color:#d8bd6a !important;
}

.ad-show-actions .ad-btn:hover{
  background:#243529 !important;
  transform:translateY(-1px);
}

/* WhatsApp mantém verde */
.ad-show-actions .ad-btn-whatsapp{
  background:#25d366 !important;
  color:#fff !important;
  border-color:#25d366 !important;
  box-shadow:0 10px 22px rgba(37,211,102,.18);
}

.ad-show-actions .ad-btn-whatsapp i{
  color:#fff !important;
}

.ad-show-actions .ad-btn-whatsapp:hover{
  background:#1da851 !important;
}

/* Chat fica coerente */
.ad-show-actions .ad-btn-chat{
  background:#ffffff !important;
  color:#2f4333 !important;
  border:1px solid rgba(47,67,51,.18) !important;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}

.ad-show-actions .ad-btn-chat i{
  color:#2f4333 !important;
}

.ad-show-actions .ad-btn-chat:hover{
  background:#eef3ef !important;
  color:#2f4333 !important;
}

/* Mobile */
@media(max-width:640px){
  .ad-stats-row{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:9px;
  }

  .ad-stat-pill{
    min-width:0;
    width:100%;
    min-height:42px;
    padding:8px 10px;
  }

  .ad-show-actions{
    gap:9px;
  }

  .ad-show-actions .ad-btn{
    width:100%;
  }
}




/* BOTÃO COMO CHEGAR — mesma cor dos outros */
.ad-map-actions .ad-btn-quote{
  background:#2f4333 !important;
  color:#fff !important;
  border:1px solid rgba(47,67,51,.18) !important;
  box-shadow:0 10px 22px rgba(47,67,51,.16);
}

.ad-map-actions .ad-btn-quote i{
  color:#d8bd6a !important;
}

.ad-map-actions .ad-btn-quote:hover{
  background:#243529 !important;
}















/* AJUSTE FINAL — CABEÇALHO DO ANÚNCIO */

.ad-header-card{
  text-align:center;
}

.ad-show-head,
.ad-head-top,
.ad-head-left{
  width:100%;
  align-items:center;
  text-align:center;
}

.ad-head-top{
  justify-content:center;
  position:relative;
}

.ad-head-left{
  max-width:820px;
  margin:0 auto;
}

.ad-head-right{
  position:absolute;
  top:0;
  right:0;
}

.ad-show-owner{
  justify-content:center;
  text-align:center;
  margin-top:0;
}

.ad-show-title{
  max-width:760px;
  margin:6px auto 8px;
  text-align:center;
  font-size:clamp(24px, 2.6vw, 34px);
  line-height:1.12;
}

.ad-show-meta{
  max-width:760px;
  margin:0 auto;
  text-align:center;
  font-size:13px;
  line-height:1.45;
}







/* CORREÇÃO MOBILE — CENTRALIZAÇÃO REAL DO TÍTULO */

@media(max-width:640px){
  .ad-header-card,
  .ad-show-head,
  .ad-head-top,
  .ad-head-left{
    width:100%;
    max-width:100%;
    text-align:center !important;
  }

  .ad-head-left{
    padding-left:0 !important;
    padding-right:0 !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .ad-show-owner,
  .ad-show-title,
  .ad-show-meta{
    width:100%;
    max-width:100%;
    text-align:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .ad-show-title{
    display:block;
    padding-left:0 !important;
    padding-right:0 !important;
    font-size:23px;
    line-height:1.15;
  }
}





/* CORREÇÃO MOBILE — "ABERTO AGORA" SEM SOBREPOR TEXTO */

@media(max-width:640px){

  .ad-head-top{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
  }

  .ad-head-right{
    position:static !important;
    margin:6px auto 0;
    display:flex;
    justify-content:center;
    width:100%;
  }

  .ll-open-chip{
    position:static !important;
    display:inline-flex !important;
    margin:0 auto;
  }

}



/* =====================================================
   ITEM DA GALERIA
===================================================== */

.gal-item {
  display: block;
  flex: 0 0 auto;

  padding: 0;
  margin: 0;

  border: 0;
  background: transparent;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  overflow: hidden;
}

.gal-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================
   BOTÕES/IMAGENS DA GALERIA
===================================================== */

.gal-item {
  display: block;
  flex: 0 0 auto;

  padding: 0;
  margin: 0;

  border: 0;
  background: transparent;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  overflow: hidden;
}

.gal-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =====================================================
   GARANTIR QUE A MODAL FECHADA NÃO APARECE
===================================================== */

.ll-image-viewer[hidden] {
  display: none !important;
}


/* =====================================================
   MODAL DA IMAGEM
===================================================== */

.ll-image-viewer {
  position: fixed !important;
  inset: 0 !important;

  z-index: 2147483000 !important;

  width: 100vw !important;
  height: 100 vh !important;

  display: none !important;
  align-items: center;
  justify-content: center;

  margin: 0 !important;
  padding:
    max(16px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left)) !important;

  box-sizing: border-box;

  background: transparent;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}


/* MODAL ABERTA */

.ll-image-viewer.is-open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* FUNDO ESCURO */

.ll-image-viewer__backdrop {
  position: absolute !important;
  inset: 0 !important;

  z-index: 1;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.94);

  pointer-events: auto;
}


/* CONTEÚDO */

.ll-image-viewer__content {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2;

  width: 100vw !important;
  height: 100dvh !important;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    max(72px, calc(env(safe-area-inset-top) + 60px))
    12px
    max(20px, env(safe-area-inset-bottom));

  margin: 0;
  box-sizing: border-box;

  overflow: hidden;
  pointer-events: none;
}

.ll-image-viewer__content img {
  display: block;

  width: auto !important;
  height: auto !important;

  max-width: 100% !important;
  max-height: 100% !important;

  margin: auto;
  padding: 0;
  border: 0;

  object-fit: contain !important;
  object-position: center center !important;

  transform: none !important;

  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;

  pointer-events: auto;
}
/* BOTÃO FECHAR */

.ll-image-viewer__close {
  position: fixed !important;

  top: max(16px, env(safe-area-inset-top)) !important;
  right: max(14px, env(safe-area-inset-right)) !important;

  z-index: 2147483647 !important;

  width: 52px;
  height: 52px;

  display: flex !important;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin: 0;

  border: 0;
  border-radius: 50%;

  background: #ffffff;
  color: #111827;

  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);

  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  pointer-events: auto !important;
  touch-action: manipulation;

  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.ll-image-viewer__close span {
  display: block;
  pointer-events: none;
  line-height: 1;
  transform: translateY(-1px);
}



