:root {
  --bg: #fdf5ff;
  --panel: #ffffff;
  --primary: #ff8db3;
  --primary-strong: #ff5f97;
  --accent: #7ad7f0;
  --text: #2f2a2e;
  --muted: #6f6870;
  --shadow: 0 12px 35px rgba(0,0,0,0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, #ffe7f3 0, #fdf5ff 25%, #f7f8ff 55%, #ffffff 100%);
  font-family: 'Nunito', 'Baloo 2', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Baloo 2', 'Nunito', sans-serif; margin: 0; }
a { color: inherit; text-decoration: none; }

.bg-bubbles {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120px at 10% 20%, rgba(255,182,193,0.26), transparent 70%),
    radial-gradient(180px at 80% 10%, rgba(255,217,102,0.24), transparent 70%),
    radial-gradient(220px at 90% 70%, rgba(122,215,240,0.3), transparent 70%),
    radial-gradient(160px at 30% 80%, rgba(255,143,184,0.22), transparent 70%);
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  padding: 64px clamp(20px, 6vw, 80px) 32px;
}

.hero__text .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary-strong); font-weight: 700; margin-bottom: 8px; }
.hero__text h1 { font-size: clamp(40px, 6vw, 64px); }
.hero__text .lede { max-width: 540px; color: var(--muted); margin: 12px 0 24px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__card {
  position: relative;
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 20px;
  overflow: hidden;
}
.hero__card .badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent);
  color: #06445c;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.hero__pet {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255,141,179,0.2);
}
.hero__pet img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__note { margin-top: 12px; color: var(--muted); font-size: 14px; }

main { padding: 0 clamp(20px, 6vw, 80px) 60px; }

.cat-nav {
  display: flex;
  gap: 10px;
  padding: 0 clamp(20px, 6vw, 80px) 16px;
  position: sticky;
  top: 0;
  z-index: 8;
  backdrop-filter: blur(12px);
}
.cat-btn {
  border: 1px solid rgba(255,141,179,0.35);
  background: rgba(255,255,255,0.82);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cat-btn.active {
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,141,179,0.35);
}

.panel {
  background: var(--panel);
  margin-bottom: 28px;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.panel::after {
  content: '';
  position: absolute;
  inset: 12px 16px;
  border: 1px dashed rgba(255,141,179,0.18);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.section { display: none; }
.section.active { display: block; }
.panel__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hint { color: var(--muted); margin: 4px 0 0; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: #ff6fa5; margin: 0; }

.form { display: flex; flex-direction: column; gap: 12px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--text); }
.field input, .field select, .field textarea {
  border: 1px solid #f1d9e7;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff7fb;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,141,179,0.22);
}
.uploader {
  border: 1.5px dashed #f1d9e7;
  border-radius: 14px;
  padding: 12px;
}
.uploader__preview {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
  border-radius: 10px;
}
.uploader__preview img { max-width: 100%; max-height: 200px; display: block; border-radius: 10px; }

.btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 12px;
  transition: transform 0.1s ease, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn.primary { background: linear-gradient(120deg, var(--primary), var(--primary-strong)); color: #fff; box-shadow: 0 8px 20px rgba(255,141,179,0.35); }
.btn.ghost { background: rgba(255,255,255,0.75); border: 1px solid rgba(255,141,179,0.25); color: var(--text); }
.btn.pill { border-radius: 999px; padding: 10px 14px; }
.btn.subtle { background: #fff4fa; color: var(--primary-strong); border: 1px solid rgba(255,141,179,0.3); }
.btn:hover { transform: translateY(-1px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.report-card {
  background: linear-gradient(180deg, #fff, #fff8fb);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.report-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,141,179,0.35);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.report-card__thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffe3f1;
  display: grid;
  place-items: center;
}
.report-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.report-card__info h3 { margin: 0; font-size: 17px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(255,141,179,0.16); color: #c13b78; font-weight: 700; font-size: 13px; }
.report-card__meta { color: var(--muted); font-size: 13px; margin: 2px 0; }

.message-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.message {
  padding: 12px;
  border-radius: 12px;
  background: #fff8fd;
  border: 1px solid rgba(255,141,179,0.28);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffb3d1, #ffd3a5);
  display: grid; place-items: center;
  font-weight: 800; color: #fff;
}
.message__body { flex: 1; }
.message__meta { color: var(--muted); font-size: 13px; }

#mapContainer {
  width: 100%;
  height: 400px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255,141,179,0.1);
}
.map-controls { display: grid; gap: 12px; margin-bottom: 12px; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.input-row input { width: 100%; }
.map-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.range { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); }
.range input[type="range"] { accent-color: var(--primary); width: 160px; }
.map-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}
.map-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,141,179,0.25);
  background: #fff8fd;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.map-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  border-color: rgba(255,141,179,0.45);
}
.map-card__name { margin: 0; font-weight: 800; }
.map-card__meta { margin: 2px 0; color: var(--muted); font-size: 13px; }
.map-card__distance { font-weight: 800; color: var(--primary-strong); white-space: nowrap; }
.status { color: var(--muted); font-weight: 700; }

.shop .panel__header { align-items: center; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.product {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product img { width: 100%; aspect-ratio: 4/3; border-radius: 10px; object-fit: cover; }
.price { font-weight: 800; color: var(--primary-strong); }
.tag { background: #e7f9ff; color: #0b607d; padding: 4px 8px; border-radius: 10px; font-weight: 700; font-size: 12px; }

.footer {
  padding: 24px clamp(20px, 6vw, 80px) 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}
.footer__links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer__links a { padding: 6px 10px; border-radius: 10px; background: #fff4fa; border: 1px solid rgba(255,141,179,0.25); }

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
}
.modal.hidden { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: min(520px, 90vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  padding: 16px;
}
.modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--muted);
}
.modal__img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: #ffe3f1;
  margin-bottom: 12px;
}
.modal__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__body h3 { margin: 4px 0 8px; }
.modal__body p { margin: 4px 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}
