:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #202938;
  background: #f7f9fc;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px max(5%, calc((100% - 1200px) / 2));
  background: white;
  border-bottom: 1px solid #e5eaf1;
}

.logo {
  color: #1877f2;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
  min-height: 75vh;
}

.intro {
  padding: 40px 0 20px;
}

.intro h1 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.intro p,
.card-detail,
.card-city {
  color: #657184;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  padding: 12px 0 48px;
}

.card {
  overflow: hidden;
  background: white;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgb(20 40 70 / 5%);
}

.card-link {
  display: block;
  height: 100%;
  text-decoration: none;
}

.card-link:hover h2 {
  color: #1877f2;
}

.card-image,
.image-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  place-items: center;
  background: #eaf0f7;
  color: #657184;
  font-size: 0.9rem;
}

.card-content {
  padding: 16px;
}

.card-content h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card-content p {
  margin: 7px 0;
}

.card-detail {
  font-size: 0.95rem;
}

.card-kennel {
  font-weight: 600;
}

.card-city {
  font-size: 0.9rem;
}

.site-footer {
  padding: 24px 5%;
  background: white;
  border-top: 1px solid #e5eaf1;
  color: #657184;
  text-align: center;
}

@media (max-width: 600px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card-content {
    padding: 12px;
  }
}


.breadcrumb {
  padding-top: 24px;
  color: #657184;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #1877f2;
  text-decoration: none;
}

.puppy-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 40px;
  padding: 32px 0 56px;
}

.puppy-detail[hidden] {
  display: none;
}

.main-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #edf1f6;
  border-radius: 12px;
}

.main-photo[hidden] {
  display: none;
}

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.thumbnail {
  width: 78px;
  height: 78px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-active {
  border-color: #1877f2;
}

.thumbnail:focus-visible {
  outline: 2px solid #1877f2;
  outline-offset: 3px;
}

.eyebrow {
  color: #1877f2;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.puppy-info h1 {
  margin: 8px 0 24px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.details-list {
  margin: 0;
}

.details-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #e5eaf1;
}

.details-list dt {
  color: #657184;
}

.details-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.kennel-info {
  margin-top: 32px;
  padding: 20px;
  border-radius: 12px;
  background: white;
  border: 1px solid #e5eaf1;
}

.kennel-info h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.kennel-info a {
  color: #1877f2;
  font-weight: 700;
}

.kennel-info p {
  color: #657184;
}

@media (max-width: 700px) {
  .puppy-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.kennel-link,
.card-content h2 a {
  color: #1877f2;
  text-decoration: none;
}

.kennel-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
}


/* Perfil público do canil */

.kennel-profile {
  margin: 24px 0 40px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.kennel-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.kennel-logo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}

.kennel-heading h1 {
  margin: 4px 0 8px;
  font-size: 2rem;
  line-height: 1.2;
}

.kennel-heading .eyebrow {
  margin: 0;
  color: #1877f2;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kennel-information {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.kennel-info-item {
  padding: 18px;
  border-radius: 10px;
  background: #f8fafc;
  overflow-wrap: anywhere;
}

.kennel-info-item h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #475569;
}

.kennel-info-item p {
  margin: 0;
  line-height: 1.5;
}

.sold-count {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1877f2;
}

.contact-link {
  display: inline-block;
  margin-top: 10px;
  color: #1877f2;
  font-weight: 600;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.kennel-puppies {
  margin: 32px 0;
}

.kennel-puppies > h2 {
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .kennel-profile {
    padding: 18px;
  }

  .kennel-brand {
    align-items: flex-start;
    gap: 16px;
  }

  .kennel-logo {
    width: 84px;
    height: 84px;
  }

  .kennel-heading h1 {
    font-size: 1.5rem;
  }

  .kennel-information {
    grid-template-columns: 1fr;
  }
}


/* Vitrine de filhotes na página do canil */

.kennel-puppies #vitrine {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 24px;
  align-items: start;
}

.kennel-puppies #vitrine .card {
  width: 100%;
  min-width: 0;
  max-width: 260px;
  box-sizing: border-box;
}

.kennel-puppies #vitrine .card-link {
  display: block;
  width: 100%;
}

.kennel-puppies #vitrine .card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 520px) {
  .kennel-puppies #vitrine {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .kennel-puppies #vitrine .card {
    max-width: none;
  }
}

/* Margens laterais da página do canil */

.page-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .page-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* Interesse no filhote */

.interest-section {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fff;
}

.interest-section h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.interest-section > p,
.interest-panel p {
  color: #657184;
  line-height: 1.5;
}

.primary-button {
  display: inline-block;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  background: #1877f2;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-button:hover {
  background: #1265d4;
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.interest-panel {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5eaf1;
}

.interest-panel[hidden],
.interest-panel form[hidden],
#registration-fields[hidden] {
  display: none;
}

.interest-panel h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.interest-panel label:not(.checkbox-label) {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.interest-panel input[type="email"],
.interest-panel input[type="text"],
.interest-panel input[type="tel"] {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #202938;
  font: inherit;
}

.interest-panel input:focus {
  outline: 2px solid rgb(24 119 242 / 25%);
  border-color: #1877f2;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;       /* sobrescreve o min-height: 44px herdado, se houver */
  margin: 0;
  flex-shrink: 0;
  accent-color: #1877f2; /* deixa o "check" azul no navegador */
  cursor: pointer;
}

.text-button {
  display: block;
  margin: 12px auto 0;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #1877f2;
  font: inherit;
  cursor: pointer;
}

.form-message {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.registration-note {
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .interest-section {
    padding: 18px;
  }
}

/* Ações no header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
}

.header-action {
  padding: 8px 16px;
  border-radius: 8px;
  background: #1877f2;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.header-action:hover {
  background: #1265d4;
}

/* Cartão de autenticação */
.auth-card {
  max-width: 460px;
  margin: 48px auto;
  padding: 28px;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  background: #fff;
}

.auth-card h1 { margin-top: 0; }
.auth-subtitle { color: #657184; margin-bottom: 20px; }

.auth-card label,
#profile-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-card input:not([type="checkbox"]):not([type="radio"]),
#profile-form input[type="text"],
#profile-form input[type="email"],
#profile-form input[type="tel"] {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font: inherit;
}

.auth-card input:not([type="checkbox"]):not([type="radio"]):focus,
#profile-form input:focus {
  outline: 2px solid rgb(24 119 242 / 25%);
  border-color: #1877f2;
}

#profile-form input:disabled {
  background: #f1f5f9;
  color: #657184;
}

.auth-card .primary-button { margin-top: 18px; }

.form-message[data-tipo="erro"] { color: #b91c1c; }
.form-message[data-tipo="sucesso"] { color: #15803d; }

.field-hint {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #657184;
}

/* Área do usuário */
.account-section {
  margin: 32px 0 48px;
  padding: 24px;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  background: #fff;
}

.account-section h1,
.account-section h2 { margin-top: 0; }

.interest-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.interest-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5eaf1;
  border-radius: 10px;
}

.interest-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  background: #eaf0f7;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: #657184;
}

.interest-info p { margin: 4px 0 0; }

.interest-name-link {
  color: #1877f2;
  font-weight: 700;
  text-decoration: none;
}
.interest-name-link:hover { text-decoration: underline; }

.interest-date { font-size: 0.85rem; color: #657184; }

@media (max-width: 600px) {
  .interest-thumb { width: 56px; height: 56px; }
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

.icon-button:hover {
  background: #f1f5f9;
  color: #b91c1c;      /* vermelho suave = "sair" */
  border-color: #fecaca;
}

.icon-button:focus-visible {
  outline: 2px solid #1877f2;
  outline-offset: 2px;
}

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

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 8px 0 24px;
  padding: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fff;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  flex: 1 1 180px;
}

.filter-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.filter-field input,
.filter-field select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font: inherit;
}

.filter-location {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgb(20 40 70 / 12%);
}

.autocomplete-list li {
  padding: 9px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

.autocomplete-list li:hover,
.autocomplete-list li:focus {
  background: #f1f5f9;
}