/* =====================================================================
   VetUberaba — complementos (listas dinâmicas, janelas de contato, Sobre)
   Carregado depois de style.css e responsive.css.
   ===================================================================== */

/* ---------- Carregando (esqueleto) ---------- */
.vu-skel {
  background: var(--white);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vu-skel span {
  display: block;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef0f3 25%, #f8f9fb 50%, #eef0f3 75%);
  background-size: 200% 100%;
  animation: vuShimmer 1.2s linear infinite;
}
.vu-skel span:nth-child(1) { width: 35%; }
.vu-skel span:nth-child(2) { width: 70%; height: 16px; }
.vu-skel span:nth-child(3) { width: 50%; }
@keyframes vuShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
html.lite .vu-skel span { animation: none; }

/* ---------- Avisos pequenos ---------- */
.vu-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: var(--primary-blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 10060;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.vu-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.vu-toast--ok { background: var(--primary-green); }
.vu-toast--erro { background: #b91c1c; }

.vu-maint {
  background: var(--secondary-orange);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  position: relative;
  z-index: 2100;
}

/* ---------- Filtros em "chips" ---------- */
.vu-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.vu-chips::-webkit-scrollbar { display: none; }
.vu-chip {
  flex-shrink: 0;
  border: 1px solid #e5e9ee;
  background: var(--white);
  color: var(--primary-blue);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vu-chip.is-on { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }

/* ---------- Lista de especialidades ---------- */
.spec-list {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.spec-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 15px;
  font-weight: 500;
}
.spec-list a:last-child { border-bottom: none; }
.spec-list a span { flex: 1; min-width: 0; }
.spec-list a em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--primary-green); background: rgba(92, 146, 71, 0.12); border-radius: 10px; padding: 2px 8px; }
.spec-list a i { color: #9ca3af; }
.spec-list a:active { background: var(--bg-color); }
@media (min-width: 768px) {
  .spec-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .spec-list a { border-right: 1px solid #e5e7eb; }
}

/* ---------- Linhas de pessoas ---------- */
.person-star {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.person-tag--more { background: transparent; color: var(--text-light); border-style: dashed; }
button.person-btn { border: none; font-family: inherit; cursor: pointer; }
.person-row.is-featured { background: linear-gradient(90deg, rgba(250, 160, 59, 0.07), transparent 40%); }
.place-card.is-featured { box-shadow: 0 0 0 2px rgba(235, 130, 35, 0.35), var(--shadow); }

/* ---------- Janela de contato ---------- */
.contact-body { padding-top: 26px; }
.contact-head { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.contact-avatar {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%;
  background: var(--bg-color); color: var(--primary-blue);
  display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden;
}
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.contact-crmv { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--text-light); }
.contact-body .place-modal-title { font-size: 20px; }
.contact-body .place-row { grid-template-columns: 104px minmax(0, 1fr); }
.place-desc { font-size: 14px; line-height: 1.5; color: #4b5563; margin: 14px 0 0; }
.place-note { font-size: 13px; color: #4b5563; }

/* ---------- Filtros de bairro ---------- */
.vu-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--card-grey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b3b64' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: none;
  border-radius: 14px;
  padding: 13px 40px 13px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
  cursor: pointer;
}
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar .bairro-wrap { flex: 1 1 180px; min-width: 0; }


/* ---------- Página Sobre ---------- */
.about { padding: 24px 20px 120px; max-width: 760px; margin: 0 auto; }
.about-hero { background: var(--primary-blue); color: #fff; border-radius: 24px; padding: 28px 24px; position: relative; overflow: hidden; margin-bottom: 20px; }
.about-hero h2 { font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.about-hero p { font-size: 14.5px; opacity: 0.92; line-height: 1.55; }
.about-card { background: var(--white); border-radius: 20px; padding: 22px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); margin-bottom: 16px; }
.about-card h3 { color: var(--primary-blue); font-size: 17px; margin-bottom: 10px; }
.about-card p { font-size: 14.5px; line-height: 1.65; color: #374151; margin-bottom: 12px; }
.about-card p:last-child { margin-bottom: 0; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
.about-item { background: var(--white); border-radius: 18px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); }
.about-item i { font-size: 26px; color: var(--primary-green); flex-shrink: 0; }
.about-item b { display: block; color: var(--primary-blue); font-size: 15px; margin-bottom: 2px; }
.about-item span { font-size: 13.5px; color: #4b5563; line-height: 1.5; }
.about-cta { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 8px; }
.about-cta a { text-align: center; text-decoration: none; padding: 14px; border-radius: 14px; font-weight: 700; font-size: 15px; background: var(--primary-green); color: #fff; }
.about-cta a.alt { background: var(--white); color: var(--primary-blue); border: 1.5px solid #d6dde5; }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-cta { grid-template-columns: 1fr 1fr; }
  .about-hero { padding: 36px 36px; }
  .about-hero h2 { font-size: 30px; }
}

/* ---------- Menu lateral (novos itens) ---------- */
.menu-link { text-decoration: none; color: var(--text-color, #1b3b64); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 12px; }
.menu-link i { font-size: 24px; }

/* ---------- Páginas de listas ---------- */
.list-main { min-height: calc(100vh - 80px); }
.vu-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid #eef0f3; border-radius: 16px;
  padding: 14px 18px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.vu-search:focus-within { border-color: var(--primary-green); box-shadow: 0 8px 24px rgba(27, 59, 100, 0.12); }
.vu-search > i { color: var(--text-light); font-size: 20px; flex-shrink: 0; }
.vu-search input { border: none; outline: none; background: transparent; width: 100%; min-width: 0; font: inherit; font-size: 14px; color: var(--primary-blue); }
.vu-search-filter { border: none; border-left: 1px solid #d1d5db; background: transparent; padding: 4px 0 4px 12px; margin-left: 4px; cursor: pointer; display: flex; align-items: center; color: #4b5563; font-size: 20px; }
.vu-search-filter.is-on { color: var(--primary-blue); }

.specs-block { margin-bottom: 20px; }
.specs-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid #eef0f3; padding: 16px 18px; border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); cursor: pointer; font-family: inherit;
}
.specs-toggle > span { font-size: 15px; font-weight: 700; color: var(--primary-blue); display: flex; align-items: center; gap: 8px; }
.specs-toggle > span i { font-size: 20px; color: var(--primary-green); }
.specs-toggle > i { color: var(--text-light); transition: transform 0.3s; }
.specs-toggle.is-open { border-color: var(--primary-green); }
.specs-panel { padding-top: 14px; }
.specs-panel[hidden] { display: none; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }


/* ----- Logo no cabeçalho da página inicial (PNG sem fundo, atrás da ponta da barra de pesquisa) ----- */
.header-home .header-pets-img.header-logo-img {
  width: 118px;
  max-width: none;
  height: auto;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  /* contorno branco bem fino para o desenho não se perder no azul, e sombra suave */
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .95)) drop-shadow(0 6px 10px rgba(0, 0, 0, .28));
  top: auto;
  bottom: -2px;            /* celular: apoiado na divisória, com a parte de baixo atrás da barra de pesquisa */
  right: 10px;
  transform: none;
  z-index: 2;              /* atrás da barra de pesquisa (que tem z-index 10) */
}
@media (min-width: 768px) {
  /* tablet e PC: o logo começa um pouco antes do fim da barra, que cobre o cantinho dele */
  .header-home .header-pets-img.header-logo-img {
    width: 140px;
    left: calc(var(--page-pad) + min(640px, calc(100% - 64px)) - 52px);
    right: auto;
    bottom: -3px;
    z-index: 2;            /* tablet e PC: atrás da ponta da barra de pesquisa */
  }
}
@media (min-width: 1024px) {
  .header-home .header-pets-img.header-logo-img { width: clamp(130px, 14vw, 160px); max-width: none; top: auto; bottom: -3px; left: calc(50% + min(340px, 30%) - 60px); right: auto; /* a barra de pesquisa fica centralizada no PC */ }
}
.nav-brand img { height: 28px; width: auto; display: block; }


/* ===== Janela de boas-vindas em etapas ===== */
.wl-overlay { position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 20, 40, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.wl-overlay[hidden] { display: none; }
.wl-overlay.wl-open { opacity: 1; }
.wl-card { position: relative; width: 100%; max-width: 420px; background: var(--white, #fff); border-radius: 26px; padding: 30px 22px 18px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); transform: translateY(18px) scale(.97); opacity: 0; transition: transform .4s cubic-bezier(.2, .9, .3, 1.2), opacity .3s ease; outline: none; }
.wl-open .wl-card { transform: none; opacity: 1; }
.wl-skip { position: absolute; top: 12px; right: 14px; background: none; border: 0; padding: 6px 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-light, #6b7280); cursor: pointer; border-radius: 8px; }
.wl-skip:hover { background: #f3f4f6; }
.wl-viewport { overflow: hidden; margin: 0 -22px; }
.wl-track { display: flex; transition: transform .38s cubic-bezier(.3, .8, .3, 1); }
.wl-slide { flex: 0 0 100%; min-width: 0; padding: 4px 26px 6px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; }
.wl-ico { width: 84px; height: 84px; border-radius: 26px; background: linear-gradient(145deg, #eaf1fb, #f4f9ee); display: flex; align-items: center; justify-content: center; margin: 4px 0 16px; color: var(--primary-blue, #1e3a8a); font-size: 42px; }
.wl-ico--logo { background: none; width: auto; height: auto; margin-bottom: 10px; }
.wl-ico--logo img { height: 88px; width: auto; display: block; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .15)); }
.wl-slide h2 { font-size: 22px; line-height: 1.2; color: var(--primary-blue, #1e3a8a); margin: 0 0 10px; font-weight: 800; }
.wl-slide p { font-size: 14.5px; line-height: 1.55; color: var(--text-light, #4b5563); margin: 0 0 8px; }
.wl-slide p strong { color: #1f2937; }
.wl-slide .wl-hint { margin-top: 6px; font-size: 13px; color: #6b7280; }
.wl-dots { display: flex; justify-content: center; gap: 7px; margin: 14px 0 14px; }
.wl-dots span { width: 8px; height: 8px; border-radius: 99px; background: #d1d5db; transition: width .25s, background .25s; }
.wl-dots span.done { background: #a7c58f; }
.wl-dots span.on { width: 24px; background: var(--secondary-orange, #eb8223); }
.wl-actions { display: flex; gap: 10px; }
.wl-btn { flex: 1; padding: 14px 12px; border-radius: 13px; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; border: 0; transition: transform .15s, background .2s; }
.wl-btn[hidden] { display: none; }
.wl-btn:active { transform: scale(.97); }
.wl-btn:focus:not(:focus-visible), .wl-skip:focus:not(:focus-visible) { outline: none; }
.wl-btn:focus-visible, .wl-skip:focus-visible { outline: 3px solid rgba(30, 58, 138, .35); outline-offset: 2px; }
.wl-btn--primary { background: var(--secondary-orange, #eb8223); color: #fff; box-shadow: 0 4px 12px rgba(235, 130, 35, .3); }
.wl-btn--ghost { flex: 0 0 34%; background: #eef1f5; color: #374151; }
.wl-check { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--text-light, #6b7280); cursor: pointer; }
.wl-check input { width: 16px; height: 16px; accent-color: var(--primary-blue, #1e3a8a); cursor: pointer; }
@media (max-width: 380px) { .wl-card { padding: 26px 16px 16px; } .wl-viewport { margin: 0 -16px; } .wl-slide { padding: 4px 18px 6px; } .wl-slide h2 { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .wl-track, .wl-card, .wl-overlay { transition: none; } }
