/* Page */
.dashboard {
  background: #f4f7fb;
  padding-bottom: 90px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI";
}

/* Header */
.header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #dfe6ee;
  position: sticky;
  top: 0;
  z-index: 20;
}

.menu-btn img {
  width: 22px;
  height: 22px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.logo-wrapper img {
  width: 34px;
  height: 34px;
}

.logo-wrapper span {
  font-size: 20px;
  font-weight: 600;
  color: #244b7a;
}

/* Category Filters */
.category-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  overflow: hidden;
}

.chip {
  padding: 6px 16px;
  background: #e3eef9;
  border: 1px solid #d3e0f0;
  border-radius: 999px;
  font-size: 13px;
  color: #365983;
  flex-shrink: 0;
}

.chip--active {
  background: #7caae0;
  color: white;
  border-color: #7caae0;
}

.chip-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex: 1;
  white-space: nowrap;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.chip-scroll::-webkit-scrollbar {
  display: none;
}

.chip-scroll button {
  width: 80px;
  flex-shrink: 0;
}

/* Section Titles */
section h2 {
  padding: 0 16px 12px;
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #243657;
}

/* Grid */
.card-grid {
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Pet Card */
.pet-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* Image Block */
.pet-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.pet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Urgent Badge */
.urgent-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4b4b;
  padding: 6px 14px;
  color: white;
  border-radius: 999px;
  font-size: 12px;
  z-index: 6;
}

/* Paw Badge */
.paw-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  padding: 6px;
  border-radius: 999px;
  z-index: 6;
}

.paw-badge img {
  width: 20px;
}

/* Gradient Overlay */
.image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
  z-index: 4;
  pointer-events: none;
}

/* Overlay Text */
.info--overlay {
  position: absolute;
  bottom: 12px;
  left: 16px;
  color: white;
  z-index: 7;
}

.info--overlay h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.05;
}

.info--overlay p {
  font-size: 13px;
  color: #e1e5ea;
  line-height: 1.05;
}

/* Favorite Button */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border-radius: 999px;
  padding: 6px;
  border: none;
  z-index: 10;
}

.fav-btn img {
  width: 20px;
}
