/* Scoped styles for Pet Adoption Search */
.peta-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.peta-main {
  padding: 1.5rem 1rem 3rem;
}

.peta-container {
  max-width: 1000px;
  margin: 0 auto;
}

.peta-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.peta-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.peta-desc {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
}

/* Search Card */
.peta-search-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.peta-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.peta-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.peta-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.peta-select {
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  cursor: pointer;
}

.peta-select:focus {
  border-color: #0284c7;
}

/* Profile Card */
.peta-profile-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.peta-profile-top {
  margin-bottom: 1rem;
}

.peta-profile-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.peta-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.peta-pet-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.peta-species-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.peta-badge-dog {
  background: #e0f2fe;
  color: #0284c7;
}

.peta-badge-cat {
  background: #fef3c7;
  color: #d97706;
}

.peta-badge-small {
  background: #f3e8ff;
  color: #7e22ce;
}

.peta-fee-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.peta-pet-breed {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.peta-traits-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.peta-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
}

.peta-bio-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid #0284c7;
}

.peta-subhead {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.35rem;
}

.peta-bio-text {
  font-size: 0.95rem;
  color: #334155;
  margin: 0;
  line-height: 1.6;
}

.peta-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.peta-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.peta-info-head {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.peta-info-val {
  font-size: 0.9rem;
  color: #1e293b;
  margin: 0;
  line-height: 1.5;
}

/* Catalog Grid */
.peta-catalog-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.peta-section-head {
  margin-bottom: 1rem;
}

.peta-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.peta-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.peta-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.peta-card:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.peta-card-selected {
  border-color: #0284c7;
  background: #f0f9ff;
}

.peta-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.peta-card-species {
  color: #64748b;
}

.peta-card-fee {
  color: #166534;
}

.peta-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.peta-card-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

.peta-card-tags {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.peta-tag {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Calculator */
.peta-calc-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.peta-calc-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.25rem;
}

.peta-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.peta-calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.peta-calc-output {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.peta-out-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #475569;
}

.peta-out-label {
  font-size: 0.9rem;
  color: #475569;
}

.peta-out-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.peta-out-total {
  border-top: 2px solid #cbd5e1;
  padding-top: 0.75rem;
  color: #0f172a;
  font-weight: 700;
}

.peta-out-total .peta-out-val {
  color: #0284c7;
  font-size: 1.35rem;
}

/* Ad slots */
.peta-ad-slot {
  margin: 1.75rem 0;
  min-height: 280px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .peta-calc-grid {
    grid-template-columns: 1fr;
  }
}
