:root {
  --pet-primary: #f47b6b;
  --pet-primary-dark: #d95647;
  --pet-secondary: #294057;
  --pet-accent: #f6c56f;
  --pet-mint: #a8d5ba;
  --pet-cream: #fff7ef;
  --pet-rose: #fff0ed;
  --pet-ink: #182430;
  --pet-muted: #687789;
  --pet-border: rgba(24, 36, 48, .1);
  --pet-shadow-rgb: 41, 64, 87;
  --pet-shadow: 0 24px 70px rgba(41, 64, 87, .13);
  --pet-shadow-soft: 0 16px 44px rgba(41, 64, 87, .10);

  /* Tokens de aparência configuráveis no painel (valores padrão; o CSS inline
     do layout, gerado a partir do banco, sobrescreve estes em runtime). */
  --pet-btn-primary-text: #ffffff;
  --pet-btn-secondary-bg: #294057;
  --pet-btn-secondary-text: #ffffff;
  --pet-body-bg: #fffdf9;
  --pet-surface: #ffffff;
  --pet-header-bg: #ffffff;
  --pet-link: #d95647;
  --pet-link-hover: #b9463b;
  --pet-footer-bg: #ffece7;
  --pet-footer-text: #294057;
  --pet-footer-muted: #687789;
  --pet-footer-heading: #182430;
  --pet-footer-link: #526579;
  --pet-footer-link-hover: #d95647;
  --pet-radius: 1.4rem;
  --pet-radius-control: 0.75rem;
  --pet-font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pet-heading-font: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --bs-primary: var(--pet-primary);
  --bs-primary-rgb: 244, 123, 107;
  --bs-body-font-family: var(--pet-font-family);
  --bs-body-color: var(--pet-ink);
  --bs-link-color: var(--pet-link);
  --bs-link-hover-color: var(--pet-link-hover);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 0 0, rgba(246, 197, 111, .17), transparent 30rem),
    radial-gradient(circle at 100% 15%, rgba(168, 213, 186, .20), transparent 28rem),
    var(--pet-body-bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
  font-family: var(--pet-heading-font);
}

img {
  max-width: 100%;
}

.fw-black {
  font-weight: 900;
}

.skip-link {
  position: absolute;
  z-index: 2000;
}

.site-header {
  backdrop-filter: blur(18px);
  background: var(--pet-header-bg) !important;
}

.navbar-brand {
  color: var(--pet-secondary);
  letter-spacing: -.03em;
}

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pet-primary), var(--pet-accent));
  box-shadow: 0 14px 30px rgba(var(--bs-primary-rgb), .28);
}

.nav-link {
  color: var(--pet-secondary);
  font-weight: 700;
  border-radius: 999px;
  padding-inline: .9rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pet-primary-dark) !important;
  background: var(--pet-rose);
}

.navbar-nav .nav-link.active,
.nav-link:hover {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.navbar-nav .nav-link.active::before {
  content: "\f1b0";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: .8rem;
  line-height: 1;
}

.btn {
  font-weight: 800;
}

.btn-primary {
  --bs-btn-bg: var(--pet-primary);
  --bs-btn-border-color: var(--pet-primary);
  --bs-btn-color: var(--pet-btn-primary-text);
  --bs-btn-hover-bg: var(--pet-primary-dark);
  --bs-btn-hover-border-color: var(--pet-primary-dark);
  --bs-btn-hover-color: var(--pet-btn-primary-text);
  --bs-btn-active-bg: var(--pet-primary-dark);
  --bs-btn-active-border-color: var(--pet-primary-dark);
  --bs-btn-active-color: var(--pet-btn-primary-text);
  box-shadow: 0 14px 30px rgba(var(--bs-primary-rgb), .26);
}

.btn-outline-primary {
  --bs-btn-color: var(--pet-primary-dark);
  --bs-btn-border-color: rgba(var(--bs-primary-rgb), .45);
  --bs-btn-hover-bg: var(--pet-primary);
  --bs-btn-hover-border-color: var(--pet-primary);
  --bs-btn-hover-color: var(--pet-btn-primary-text);
}

.btn-secondary {
  --bs-btn-bg: var(--pet-btn-secondary-bg);
  --bs-btn-border-color: var(--pet-btn-secondary-bg);
  --bs-btn-color: var(--pet-btn-secondary-text);
  --bs-btn-hover-bg: var(--pet-secondary);
  --bs-btn-hover-border-color: var(--pet-secondary);
  --bs-btn-hover-color: var(--pet-btn-secondary-text);
  --bs-btn-active-bg: var(--pet-secondary);
  --bs-btn-active-border-color: var(--pet-secondary);
  --bs-btn-active-color: var(--pet-btn-secondary-text);
}

.btn-outline-secondary {
  --bs-btn-color: var(--pet-secondary);
  --bs-btn-border-color: var(--pet-secondary);
  --bs-btn-hover-bg: var(--pet-secondary);
  --bs-btn-hover-border-color: var(--pet-secondary);
  --bs-btn-hover-color: var(--pet-btn-secondary-text);
}

/* Superfícies e campos herdam as cores/cantos configuráveis. */
.card {
  --bs-card-bg: var(--pet-surface);
  --bs-card-border-color: var(--pet-border);
  --bs-card-border-radius: var(--pet-radius);
}

.form-control,
.form-select {
  border-radius: var(--pet-radius-control);
}

.premium-action {
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.premium-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(var(--bs-primary-rgb), .28);
}

.eyebrow {
  color: var(--pet-primary-dark);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 247, 239, .96), rgba(255, 255, 255, .72)),
    var(--hero-background-image, none) center / cover no-repeat;
  z-index: -2;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .12);
  filter: blur(8px);
  z-index: -1;
}

.hero-card,
.glass-card {
  border: 1px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(22px);
  box-shadow: var(--pet-shadow);
}

.hero-image-wrap {
  position: relative;
  border-radius: 2.2rem;
  overflow: visible;
  isolation: isolate;
  box-shadow: 0 1.35rem 3rem rgba(var(--pet-shadow-rgb), .18);
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 5% 4% -4%;
  z-index: -1;
  border-radius: 2.4rem;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(30px) saturate(.82);
  opacity: .46;
  transform: scale(1.045) translateY(.8rem);
  pointer-events: none;
}

.hero-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.25;
  object-fit: cover;
  border-radius: 2.2rem;
}

/* A partir de lg as duas colunas ficam lado a lado: a coluna da imagem passa a
   acompanhar automaticamente a altura da coluna de texto (topo e base alinhados
   simetricamente). A imagem sai do fluxo — para não ditar a altura da linha — e
   preenche 100% da altura definida pelo lado esquerdo. Abaixo de lg (empilhado)
   permanece o aspect-ratio acima, garantindo altura própria à imagem. */
@media (min-width: 992px) {
  .hero-image-wrap {
    height: 100%;
    overflow: visible;
  }

  .hero-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
}

.hero-floating-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
}

.rounded-5 {
  border-radius: 1.5rem !important;
}

.section-padding {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-title {
  letter-spacing: -.045em;
}

.section-kicker {
  color: var(--pet-primary-dark);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stat-card,
.feature-card,
.step-card,
.contact-card,
.profile-card,
.filter-panel,
.adoption-card {
  border: 1px solid var(--pet-border);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--pet-shadow-soft);
}

.stat-icon,
.feature-icon,
.step-number,
.hero-mini-icon,
.contact-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: var(--pet-rose);
  color: var(--pet-primary-dark);
  flex: 0 0 auto;
}

.step-number {
  font-weight: 900;
  background: linear-gradient(135deg, var(--pet-primary), var(--pet-accent));
  color: #fff;
}

.feature-card,
.step-card,
.pet-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-card:hover,
.step-card:hover,
.pet-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--pet-shadow);
  border-color: rgba(var(--bs-primary-rgb), .24);
}

.pet-card {
  border-radius: var(--pet-radius);
}

.pet-card-media {
  overflow: hidden;
  background: #f6f2ee;
}

.pet-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .38s ease;
}

.pet-card:hover .pet-card-media img {
  transform: scale(1.045);
}

.pet-status-badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  border-radius: 999px;
  padding: .55rem .75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.favorite-toggle {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 3;
  width: 2.65rem;
  height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorite-toggle.is-favorite {
  color: var(--pet-primary-dark);
}

.pet-type-pill {
  border-radius: 999px;
  color: var(--pet-secondary);
  background: #eef7f2;
  padding: .42rem .7rem;
  font-weight: 900;
  font-size: .78rem;
  white-space: nowrap;
}

.pet-meta li {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  border: 1px solid var(--pet-border);
  border-radius: 999px;
  padding: .42rem .68rem;
  color: var(--pet-muted);
  font-weight: 800;
  font-size: .88rem;
  background: #fff;
}

.pet-meta i {
  color: var(--pet-primary-dark);
}

.stretched-link-safe {
  position: relative;
  z-index: 2;
}

.page-hero {
  background: linear-gradient(135deg, var(--pet-cream), #fff) !important;
}

.hero-mini-card {
  border: 1px solid var(--pet-border);
}

.filter-panel .form-control,
.filter-panel .form-select,
.form-soft {
  border-radius: 1rem;
  border-color: var(--pet-border);
  padding: .85rem 1rem;
}

.filter-panel .input-group-text {
  border-radius: 1rem 0 0 1rem;
}

.empty-state {
  border: 1px dashed rgba(var(--pet-shadow-rgb), .24);
  background: rgba(255, 255, 255, .76);
}

.detail-hero {
  background: linear-gradient(135deg, var(--pet-cream), #fff);
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: var(--pet-shadow);
}

.gallery-thumb {
  border: 0;
  padding: 0;
  border-radius: 1rem;
  overflow: hidden;
  width: 100%;
  background: transparent;
  opacity: .78;
  transition: opacity .2s ease, transform .2s ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  opacity: 1;
  transform: translateY(-2px);
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.info-chip {
  border: 1px solid var(--pet-border);
  background: #fff;
  border-radius: 1rem;
  padding: .9rem;
  height: 100%;
}

.info-chip span {
  display: block;
  color: var(--pet-muted);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.info-chip strong {
  color: var(--pet-secondary);
}

.list-check,
.list-paw {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.list-check li,
.list-paw li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin-bottom: .8rem;
}

.list-check li::before {
  content: "\f058";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  color: var(--pet-primary-dark);
  margin-top: .05rem;
}

.list-paw li::before {
  content: "\f1b0";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  color: var(--pet-primary-dark);
  margin-top: .05rem;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: rgba(var(--bs-primary-rgb), .22);
}

.timeline-item {
  position: relative;
  padding-left: 3.4rem;
  margin-bottom: 1.7rem;
}

.timeline-dot {
  position: absolute;
  left: .55rem;
  top: .1rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--pet-primary);
  box-shadow: 0 0 0 .4rem var(--pet-rose);
}

.success-story {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .10), rgba(168, 213, 186, .18));
}

.social-link {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  text-decoration: none;
}

.social-link:hover {
  color: #fff;
  background: var(--pet-primary);
}

.footer-list li {
  margin-bottom: .65rem;
}

.footer-list a {
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
}

.footer-list a:hover {
  color: #fff;
}

.toast {
  border-radius: 1rem;
  border: 0;
  box-shadow: var(--pet-shadow-soft);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(var(--bs-primary-rgb), .45);
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .16);
}

@media (max-width: 991.98px) {
  .hero-section::before {
    background:
      linear-gradient(135deg, rgba(255, 247, 239, .98), rgba(255, 255, 255, .9)),
      var(--hero-background-image, none) center / cover no-repeat;
  }

  .display-3 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-floating-card {
    position: static;
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 3rem 0;
  }

  .pet-meta li {
    width: 100%;
    justify-content: center;
  }

  .filter-panel {
    border-radius: 1.25rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Refinamento premium v2: breadcrumbs, responsividade e detalhe do pet
   ========================================================= */
:root {
  --pet-glass: rgba(255, 255, 255, .78);
  --pet-glass-strong: rgba(255, 255, 255, .92);
  --pet-ring: rgba(var(--bs-primary-rgb), .22);
}

.container {
  width: min(100% - 1.5rem, 1200px);
}

@media (min-width: 1400px) {
  .container {
    width: min(100% - 2rem, 1320px);
  }

  .detail-hero .container {
    width: min(100% - 2rem, 1280px);
  }
}

.site-header {
  box-shadow: 0 1px 0 rgba(24, 36, 48, .06), 0 16px 44px rgba(var(--pet-shadow-rgb), .05);
}

.navbar-toggler {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .25rem var(--pet-ring);
}

.breadcrumb-nav {
  max-width: 100%;
}

.breadcrumb-premium {
  --bs-breadcrumb-divider: "";
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  max-width: 100%;
  padding: .45rem;
  border: 1px solid rgba(var(--bs-primary-rgb), .16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 240, 237, .72));
  box-shadow: 0 14px 36px rgba(var(--pet-shadow-rgb), .08);
  backdrop-filter: blur(16px);
}

.breadcrumb-premium .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding-left: 0;
  color: var(--pet-muted);
  font-weight: 900;
  line-height: 1;
}

.breadcrumb-premium .breadcrumb-item+.breadcrumb-item {
  padding-left: .16rem;
}

.breadcrumb-premium .breadcrumb-item+.breadcrumb-item::before {
  content: "\f054";
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-inline: .1rem .25rem;
  padding: 0;
  border-radius: 999px;
  color: rgba(var(--pet-shadow-rgb), .38);
  background: rgba(255, 255, 255, .76);
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: .62rem;
  box-shadow: inset 0 0 0 1px rgba(var(--pet-shadow-rgb), .06);
}

.breadcrumb-link,
.breadcrumb-current {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  min-width: 0;
  padding: .48rem .72rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.breadcrumb-link {
  color: var(--pet-secondary);
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.breadcrumb-link:hover {
  color: var(--pet-primary-dark);
  background: rgba(var(--bs-primary-rgb), .10);
  transform: translateY(-1px);
}

.breadcrumb-current {
  color: var(--pet-primary-dark);
  background: #fff;
  box-shadow: 0 8px 22px rgba(var(--bs-primary-rgb), .11);
}

.breadcrumb-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--pet-rose);
  color: var(--pet-primary-dark);
  font-size: .76rem;
}

.breadcrumb-current .breadcrumb-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--pet-primary), var(--pet-accent));
  box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb), .22);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 8%, rgba(246, 197, 111, .20), transparent 20rem),
    radial-gradient(circle at 85% 24%, rgba(var(--bs-primary-rgb), .13), transparent 22rem),
    radial-gradient(circle at 62% 108%, rgba(168, 213, 186, .14), transparent 21rem);
}

.page-hero>.container,
.detail-hero>.container {
  position: relative;
  z-index: 1;
}

.detail-hero-refined .lead {
  max-width: 44rem;
  line-height: 1.62;
}

.detail-main-image {
  border: 1px solid rgba(255, 255, 255, .85);
  background: #fff;
  outline: 1px solid rgba(24, 36, 48, .06);
  outline-offset: -1px;
}

.gallery-thumb {
  padding: .38rem;
  border: 1px solid rgba(24, 36, 48, .08);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 30px rgba(var(--pet-shadow-rgb), .08);
}

.gallery-thumb img {
  border-radius: .72rem;
}

.gallery-thumb.is-active {
  border-color: rgba(var(--bs-primary-rgb), .58);
  box-shadow: 0 16px 36px rgba(var(--bs-primary-rgb), .18);
}

.info-chip {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.info-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--bs-primary-rgb), .24);
  box-shadow: 0 16px 36px rgba(var(--pet-shadow-rgb), .08);
}

.profile-card,
.filter-panel,
.adoption-card,
.contact-card,
.hero-mini-card {
  backdrop-filter: blur(14px);
}

@media (max-width: 1199.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(24, 36, 48, .08);
    border-radius: 1.35rem;
    background: var(--pet-glass-strong);
    box-shadow: var(--pet-shadow-soft);
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .navbar-nav .nav-link {
    padding: .8rem 1rem !important;
  }

  .site-header .btn {
    min-height: 2.65rem;
  }
}

@media (max-width: 991.98px) {

  .page-hero,
  .detail-hero {
    text-align: left;
  }

  .page-hero .hero-mini-card {
    width: 100%;
    justify-content: flex-start;
  }

  .detail-hero .display-4 {
    font-size: clamp(2.35rem, 8vw, 3.35rem);
  }

  .detail-hero .col-lg-6:last-child {
    padding-top: .5rem;
  }
}

@media (max-width: 767.98px) {
  .container {
    width: min(100% - 1rem, 100%);
  }

  .page-hero,
  .detail-hero {
    border-bottom: 0 !important;
  }

  .page-hero .container,
  .detail-hero .container {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }

  .breadcrumb-nav {
    margin-bottom: 1.1rem !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .breadcrumb-nav::-webkit-scrollbar {
    display: none;
  }

  .breadcrumb-premium {
    flex-wrap: nowrap;
    min-width: max-content;
    padding: .35rem;
    border-radius: 1.15rem;
  }

  .breadcrumb-link,
  .breadcrumb-current {
    padding: .42rem .56rem;
    gap: .38rem;
    font-size: .9rem;
  }

  .breadcrumb-icon {
    width: 1.55rem;
    height: 1.55rem;
    font-size: .7rem;
  }

  .breadcrumb-premium .breadcrumb-item+.breadcrumb-item::before {
    width: 1.15rem;
    height: 1.15rem;
    margin-inline: 0 .12rem;
    font-size: .54rem;
  }

  .detail-main-image {
    aspect-ratio: 4 / 3;
    border-radius: 1.35rem;
  }

  .gallery-thumb {
    border-radius: .95rem;
    padding: .28rem;
  }

  .info-chip {
    border-radius: .9rem;
    padding: .82rem;
  }

  .info-chip span {
    font-size: .72rem;
  }
}

@media (max-width: 575.98px) {
  .site-header .container {
    padding-inline: .75rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 2.35rem;
    height: 2.35rem;
  }

  .pet-gallery-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .pet-gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .pet-gallery-grid>[class*="col-"] {
    flex: 0 0 42%;
    max-width: 42%;
    scroll-snap-align: start;
  }

  .detail-hero .d-flex.flex-column.flex-sm-row .btn {
    width: 100%;
  }

  .page-hero .display-5 {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .lead {
    font-size: 1.04rem;
  }
}

/* Galeria pública compacta: capa + miniaturas responsivas sem rolagem horizontal. */
.pet-gallery-grid {
  overflow: hidden
}

.pet-gallery-grid .gallery-thumb {
  display: block;
  width: 100%;
  border: 2px solid transparent;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  padding: 0
}

.pet-gallery-grid .gallery-thumb.is-active {
  border-color: var(--bs-primary)
}

.pet-gallery-grid .gallery-thumb img {
  display: block;
  width: 100%;
  height: 76px;
  object-fit: cover
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 1.75rem
}

@media(max-width:767.98px) {
  .pet-gallery-grid>div:nth-child(n+4) {
    display: none
  }

  .pet-gallery-grid .gallery-thumb img {
    height: 68px
  }
}

@media(min-width:768px) and (max-width:1199.98px) {
  .pet-gallery-grid>div:nth-child(n+5) {
    display: none
  }
}

/* Ajustes de navegação, documentos legais e galeria pública. */
/* .site-header-container{max-width:1680px;margin-inline:auto;padding-inline:clamp(.75rem,2vw,2rem)} */
.public-navbar-actions {
  flex-wrap: wrap
}

.public-navbar-actions .btn,
.public-navbar-actions form {
  flex: 0 0 auto
}

.legal-document {
  /* max-width:920px; */
  line-height: 1.75
}

.legal-document h2 {
  margin-top: 2rem
}

.legal-document p {
  color: var(--pet-muted)
}

.acceptance-box {
  background: rgba(255, 255, 255, .72)
}

.acceptance-box a {
  font-weight: 800
}

.acceptance-box .form-check-label {
  line-height: 1.5
}

.detail-main-trigger {
  position: relative;
  display: block;
  border-radius: 1.75rem;
  overflow: hidden;
  cursor: zoom-in
}

.detail-main-zoom {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .9rem;
  border-radius: 999px;
  background: rgba(20, 28, 36, .78);
  color: #fff;
  font-size: .85rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
  pointer-events: none
}

@media (min-width:1400px) {
  .site-header .navbar-nav .nav-link {
    padding-inline: .58rem;
    font-size: .92rem
  }

  .public-navbar-actions {
    flex-wrap: nowrap
  }

  .public-navbar-actions .btn {
    white-space: nowrap
  }
}

@media (max-width:1399.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(24, 36, 48, .08);
    border-radius: 1.35rem;
    background: var(--pet-glass-strong);
    box-shadow: var(--pet-shadow-soft)
  }

  .navbar-nav {
    align-items: stretch !important
  }

  .navbar-nav .nav-link {
    padding: .8rem 1rem !important
  }

  .public-navbar-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0 !important
  }

  .public-navbar-actions .btn,
  .public-navbar-actions form,
  .public-navbar-actions form .btn {
    width: 100%
  }
}

@media (max-width:575.98px) {
  .public-navbar-actions {
    grid-template-columns: 1fr
  }

  .pet-gallery-grid {
    display: flex;
    flex-wrap: wrap !important;
    overflow: visible !important
  }

  .pet-gallery-grid>[class*="col-"] {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important
  }

  .detail-main-zoom {
    right: .65rem;
    bottom: .65rem;
    font-size: .75rem;
    padding: .5rem .7rem
  }
}

.captcha-image {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  background: #fff;
  image-rendering: auto
}

.captcha-image-wrap {
  display: flex;
  justify-content: center
}

/* ===== Overlay de carregamento com patinhas (formulários públicos) ===== */
.paw-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 36, 48, .55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .22s ease
}

.paw-loader-overlay.is-visible {
  opacity: 1
}

.paw-loader-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 1.2rem 3rem rgba(20, 25, 40, .25);
  padding: 2rem 2.4rem;
  text-align: center;
  max-width: min(92vw, 360px)
}

.paw-track {
  display: flex;
  gap: .5rem;
  justify-content: center;
  align-items: flex-end;
  height: 44px;
  margin-bottom: 1rem
}

.paw-track .fa-paw {
  font-size: 1.5rem;
  color: var(--bs-primary, var(--pet-primary));
  opacity: .25;
  transform: translateY(0) rotate(-8deg);
  animation: pawStep 1.1s infinite ease-in-out
}

.paw-track .fa-paw:nth-child(2) {
  animation-delay: .15s;
  transform: rotate(6deg)
}

.paw-track .fa-paw:nth-child(3) {
  animation-delay: .3s;
  transform: rotate(-6deg)
}

.paw-track .fa-paw:nth-child(4) {
  animation-delay: .45s;
  transform: rotate(6deg)
}

.paw-track .fa-paw:nth-child(5) {
  animation-delay: .6s;
  transform: rotate(-6deg)
}

@keyframes pawStep {

  0%,
  100% {
    opacity: .25;
    transform: translateY(0) rotate(-8deg)
  }

  40% {
    opacity: 1;
    transform: translateY(-10px) rotate(-8deg)
  }
}

.paw-loader-msg {
  font-weight: 700;
  color: #1f2733;
  margin: 0
}

.paw-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .08);
  overflow: hidden;
  margin: 0 auto .4rem
}

.paw-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bs-primary, var(--pet-primary)), #ffb199);
  transition: width .18s ease
}

.paw-progress-pct {
  font-size: .85rem;
  font-weight: 700;
  color: var(--bs-primary, var(--pet-primary))
}

body.paw-loading-active {
  overflow: hidden
}

@media (prefers-reduced-motion:reduce) {
  .paw-track .fa-paw {
    animation: none;
    opacity: .8
  }
}

/* ===== SweetAlert2 temático do site ===== */
.pets-swal {
  border-radius: 1.5rem !important;
  font-family: 'Nunito', system-ui, sans-serif !important
}

.pets-swal .swal2-title {
  color: #1f2733;
  font-weight: 800
}

.pets-swal .swal2-icon.swal2-info,
.pets-swal .swal2-icon.swal2-warning,
.pets-swal .swal2-icon.swal2-question {
  border-color: var(--bs-primary, var(--pet-primary));
  color: var(--bs-primary, var(--pet-primary))
}

.pets-swal-confirm,
.pets-swal-cancel {
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: .6rem 1.5rem !important
}

.pets-swal .swal2-icon .fa-paw {
  font-size: 2rem;
  color: var(--bs-primary, var(--pet-primary))
}

.pets-swal-toast {
  border-radius: 1rem !important;
  font-family: 'Nunito', system-ui, sans-serif !important
}

/*  */
@media (min-width: 992px) {
  .sticky-lg-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
    /* z-index: 1020; */
  }
}

/* ===== Paginação do catálogo público ===== */
.pets-pagination-nav {
  flex-wrap: wrap;
}

.pets-pagination {
  --bs-pagination-color: var(--pet-secondary);
  --bs-pagination-bg: #fff;
  --bs-pagination-border-color: var(--pet-border);
  --bs-pagination-hover-color: var(--pet-primary-dark);
  --bs-pagination-hover-bg: var(--pet-rose);
  --bs-pagination-hover-border-color: var(--pet-primary);
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .25);
  --bs-pagination-active-bg: var(--pet-primary);
  --bs-pagination-active-border-color: var(--pet-primary);
  --bs-pagination-active-color: #fff;
  --bs-pagination-disabled-color: var(--pet-muted);
  --bs-pagination-disabled-bg: #fff;
  --bs-pagination-disabled-border-color: var(--pet-border);
  gap: .35rem;
}

.pets-pagination .page-link {
  min-width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  font-weight: 700;
  border-width: 1px;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.pets-pagination .page-link:hover {
  transform: translateY(-2px);
}

.pets-pagination .page-item.disabled .page-link {
  box-shadow: none;
  opacity: .65;
}

/* Badge padronizado de "Adotado" (#e1b40a) e card de favorito inativo após adoção */
.badge.pet-status-adopted {
  background-color: #e1b40a !important;
  color: #3a2e00 !important;
}

.pet-card-adopted .pet-card,
.pets-card-adopted {
  filter: grayscale(.15);
}

.pet-card-adopted .pet-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .04);
  pointer-events: none;
}

/* Consentimento de cookies público */
.cookie-consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1080;
  max-width: 980px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid rgba(33, 37, 41, .14);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(33, 37, 41, .22);
}

.cookie-consent-banner[hidden] {
  display: none !important;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.cookie-preferences-essential {
  opacity: .85;
}

.cookie-preferences-essential .form-check-input:disabled {
  opacity: 1;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 575.98px) {
  .cookie-consent-banner {
    right: .5rem;
    bottom: .5rem;
    left: .5rem;
  }

  .cookie-consent-actions .btn {
    width: 100%;
  }
}

/* ===== Rodapé público, crédito técnico e imagens ausentes ===== */
/* .site-footer {
  background: linear-gradient(145deg, #243647 0%, #172633 100%);
  color: #fff;
}
.site-footer-muted { color: rgba(255,255,255,.76) !important; }
.site-footer-heading { color: #fff; letter-spacing: .05em; }
.site-footer-divider { border-color: rgba(255,255,255,.18); opacity: 1; }
.footer-link { color: rgba(255,255,255,.8); text-decoration: none; transition: color .18s ease, transform .18s ease, background-color .18s ease, border-color .18s ease; }
.footer-link:hover, .footer-link:focus-visible { color: #fff; }
.footer-action-link { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.footer-link--icon { width: 2.5rem; height: 2.5rem; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.footer-link--icon:hover, .footer-link--icon:focus-visible { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.footer-link--icon-text { padding: .5rem .8rem; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); }
.footer-link--icon-text:hover, .footer-link--icon-text:focus-visible { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.footer-action-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dsoutsourcing-credit { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.dsoutsourcing-credit a { display: inline-flex; align-items: center; }
.dsoutsourcing-credit img { display: block; width: min(190px, 48vw); height: auto; }
@media (max-width: 575.98px) { .dsoutsourcing-credit { align-items: flex-start; } } */

/* =========================================================
   RODAPÉ PÚBLICO — VERSÃO FINAL CLARA E SUAVE
   ========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at 8% 10%,
      rgba(246, 197, 111, .16),
      transparent 22rem),
    var(--pet-footer-bg) !important;

  color: var(--pet-footer-text) !important;
}

/* Pata decorativa no canto direito */
.site-footer::before {
  content: "\f1b0";

  position: absolute;
  right: clamp(-4rem, -1vw, 0rem);
  bottom: clamp(-5rem, -3vw, -2rem);

  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: clamp(13rem, 20vw, 22rem);
  line-height: 1;

  color: rgba(var(--bs-primary-rgb), .10);

  transform: rotate(-14deg);

  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Mantém o conteúdo acima da pata */
.site-footer>.container {
  position: relative;
  z-index: 1;
}

/* =========================================================
   MARCA ADOTA RV
   ========================================================= */

.site-footer .footer-brand,
.site-footer .footer-brand:hover,
.site-footer .footer-brand:focus,
.site-footer .footer-brand:focus-visible {
  color: var(--pet-footer-text) !important;
  text-decoration: none !important;
}

/* Corrige especificamente o span "Adota RV" */
.site-footer .footer-brand .fw-black,
.site-footer .footer-brand>span:last-child {
  color: var(--pet-footer-text) !important;
}

/* Círculo da marca */
.site-footer .footer-brand .brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;

  color: #fff !important;

  background: linear-gradient(135deg,
      var(--pet-primary) 0%,
      var(--pet-accent) 100%);

  box-shadow: 0 12px 25px rgba(var(--bs-primary-rgb), .24);
}

/* Pata dentro do círculo da marca */
.site-footer .footer-brand .brand-mark i {
  color: #fff !important;
}

/* =========================================================
   TÍTULOS E TEXTOS
   ========================================================= */

.site-footer .site-footer-heading {
  color: var(--pet-footer-heading) !important;
  font-weight: 900;
  letter-spacing: .05em;
}

/* Previne títulos brancos herdados */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
  color: var(--pet-footer-heading) !important;
}

/* Texto descritivo e textos inferiores */
.site-footer .site-footer-muted {
  color: var(--pet-footer-muted) !important;
}

.site-footer p {
  color: var(--pet-footer-muted) !important;
}

/* Copyright */
.site-footer .site-footer-muted>div>span,
.site-footer .site-footer-muted>span {
  color: var(--pet-footer-muted) !important;
}

/* Linha divisória */
.site-footer .site-footer-divider {
  border-color: rgba(var(--pet-shadow-rgb), .14) !important;
  opacity: 1;
}

/* =========================================================
   LINKS DAS COLUNAS
   ========================================================= */

.site-footer .footer-list li {
  margin-bottom: .65rem;
}

.site-footer .footer-link,
.site-footer .footer-list a {
  color: var(--pet-footer-link) !important;
  text-decoration: none;

  transition:
    color .18s ease,
    transform .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

/* Corrige os spans internos dos links */
.site-footer .footer-link span,
.site-footer .footer-list a span {
  color: inherit !important;
}

.site-footer .footer-link:hover,
.site-footer .footer-link:focus-visible,
.site-footer .footer-list a:hover,
.site-footer .footer-list a:focus-visible {
  color: var(--pet-footer-link-hover) !important;
}

/* =========================================================
   ÍCONE DO INSTAGRAM
   ========================================================= */

.site-footer .footer-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}

.site-footer .footer-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.site-footer .footer-link--icon,
.site-footer .social-link {
  width: 2.55rem;
  height: 2.55rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid rgba(var(--bs-primary-rgb), .28);

  color: #fff !important;
  background: var(--pet-primary);

  box-shadow: 0 10px 22px rgba(var(--bs-primary-rgb), .22);

  transition:
    transform .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

/* Span e ícone do Instagram */
.site-footer .footer-link--icon span,
.site-footer .footer-link--icon i,
.site-footer .social-link span,
.site-footer .social-link i {
  color: #fff !important;
}

.site-footer .footer-link--icon:hover,
.site-footer .footer-link--icon:focus-visible,
.site-footer .social-link:hover,
.site-footer .social-link:focus-visible {
  color: #fff !important;
  background: var(--pet-primary-dark);
  border-color: var(--pet-primary-dark);

  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(var(--bs-primary-rgb), .28);
}

/* =========================================================
   PREFERÊNCIAS DE COOKIES
   ========================================================= */

.site-footer .cookie-settings-link {
  padding: 0;
  border: 0;

  color: var(--pet-secondary) !important;
  background: transparent !important;

  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(var(--pet-shadow-rgb), .38);
  text-underline-offset: .2em;

  transition:
    color .18s ease,
    text-decoration-color .18s ease;
}

.site-footer .cookie-settings-link i {
  color: var(--pet-secondary) !important;
}

.site-footer .cookie-settings-link:hover,
.site-footer .cookie-settings-link:focus-visible {
  color: var(--pet-primary-dark) !important;
  text-decoration-color: currentColor;
}

.site-footer .cookie-settings-link:hover i,
.site-footer .cookie-settings-link:focus-visible i {
  color: var(--pet-primary-dark) !important;
}

/* =========================================================
   CRÉDITO DS OUTSOURCING
   ========================================================= */

.site-footer .dsoutsourcing-credit {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;

  color: var(--pet-muted) !important;
}

.site-footer .dsoutsourcing-credit>span {
  color: var(--pet-muted) !important;
}

/* Remove qualquer fundo escuro do link da logo */
.site-footer .dsoutsourcing-credit a {
  display: inline-flex;
  align-items: center;

  padding: 0 !important;
  margin: 0;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;
}

/* Converte o SVG branco para azul-escuro */
.site-footer .dsoutsourcing-credit img {
  display: block;
  width: min(90px, 48vw);
  height: auto;

  padding: 0;
  margin: 0;

  border: 0;
  background: transparent !important;
  box-shadow: none !important;

  filter:
    brightness(0) saturate(100%) invert(22%) sepia(18%) saturate(1120%) hue-rotate(169deg) brightness(91%) contrast(88%);

  opacity: .9;
}

/* =========================================================
   FOCO E ACESSIBILIDADE
   ========================================================= */

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), .34);
  outline-offset: 3px;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 991.98px) {
  .site-footer::before {
    right: -4rem;
    bottom: -3rem;
    font-size: 17rem;
    color: rgba(var(--bs-primary-rgb), .08);
  }
}

@media (max-width: 767.98px) {
  .site-footer::before {
    right: -5rem;
    bottom: -3rem;
    font-size: 14rem;
  }

  .site-footer .dsoutsourcing-credit {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .site-footer .footer-brand .brand-mark {
    width: 2.4rem;
    height: 2.4rem;
  }

  .site-footer .footer-link--icon,
  .site-footer .social-link {
    width: 2.75rem;
    height: 2.75rem;
  }

  .site-footer .dsoutsourcing-credit {
    align-items: flex-start;
  }

  .site-footer .dsoutsourcing-credit img {
    width: min(90px, 52vw);
  }
}

.pet-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pet-primary, var(--pet-primary));
  background: radial-gradient(circle at 35% 25%, rgba(var(--bs-primary-rgb), .16), transparent 55%), #fff4ef;
  border: 1px solid rgba(var(--bs-primary-rgb), .2);
}

.pet-image-placeholder i {
  opacity: .82;
}

.pet-image-placeholder-card {
  width: 100%;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  font-size: 3.25rem;
}

.pet-card-media .pet-image-placeholder-card {
  height: 100%;
}

/* SweetAlert2: remove somente o aro externo dos ícones, mantendo os símbolos. */
.pets-swal .swal2-icon {
  border: 0 !important;
}

/* Página pública 404 */
.error-404-visual {
  width: min(360px, 80vw);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(var(--bs-primary-rgb), .2), rgba(246, 197, 111, .08) 58%, transparent 59%);
}

.error-404-visual i {
  font-size: clamp(5rem, 14vw, 9rem);
  color: var(--pet-primary, var(--pet-primary));
  filter: drop-shadow(0 1rem 1.5rem rgba(var(--bs-primary-rgb), .2));
}

/* A camada visual pertence ao layout da hero e é aplicada a qualquer imagem. */
.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 2.2rem;
  background: linear-gradient(135deg, rgba(21, 28, 44, .08), rgba(21, 28, 44, .38));
}

.hero-image-wrap>img {
  position: relative;
  z-index: 0;
}

.hero-image-wrap .hero-floating-card {
  z-index: 2;
}

.about-hero-image img {
  width: 100%;
  min-height: 300px;
  max-height: 430px;
  object-fit: cover;
  display: block;
}

.editorial-content img {
  max-width: 100%;
  height: auto;
}

.editorial-content table {
  width: 100%;
  max-width: 100%;
}

/* Placeholder público robusto: ocupa exatamente a mídia do card. */
.pet-card-media[data-pet-image-frame] {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.pet-card-media[data-pet-image-frame]>img,
.pet-card-media[data-pet-image-frame]>.pet-image-placeholder-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.pet-card-media[data-pet-image-frame]>.pet-image-placeholder-card {
  border: 0;
  font-size: 3.25rem;
}

.pet-card-media[data-pet-image-frame]>[hidden] {
  display: none !important;
}

/* Popups públicos programados */
.public-popup-modal .modal-content {
  background: #fffdfb;
}

.public-popup-modal .public-popup-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  padding: 1rem;
}

.public-popup-modal .public-popup-header .btn-close {
  background-color: rgba(255, 255, 255, .94);
  border-radius: 999px;
  box-shadow: 0 .35rem 1rem rgba(24, 36, 48, .18);
  opacity: 1;
}

.public-popup-image {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

.public-popup-richtext> :last-child {
  margin-bottom: 0;
}

.public-popup-richtext img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 575.98px) {
  .public-popup-modal .modal-dialog {
    margin: .75rem;
  }

  .public-popup-modal .modal-body {
    padding: 1.25rem;
  }

  .public-popup-modal .modal-body.p-0 {
    padding: 0 !important;
  }
}

/* Paginação responsiva dos catálogos: todas as páginas continuam acessíveis;
   apenas a janela de botões é condensada com reticências. */
.pets-pagination-nav {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: center;
  padding: .35rem .25rem .75rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.pets-pagination {
  width: max-content;
  max-width: none;
  margin-inline: auto;
  flex-wrap: nowrap !important;
}

.pets-pagination .pets-pagination-ellipsis .page-link {
  min-width: 1.75rem;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  padding-inline: .15rem;
}

@media (max-width: 575.98px) {
  .pets-pagination-nav {
    justify-content: flex-start !important;
  }

  .pets-pagination {
    gap: .22rem;
  }

  .pets-pagination .page-link {
    min-width: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: .35rem;
    font-size: .875rem;
  }

  .pets-pagination .pets-pagination-ellipsis .page-link {
    min-width: 1.35rem;
    width: 1.35rem;
  }
}