:root {
  --rp-primary: #1f6f5c;
  --rp-primary-dark: #12463a;
  --rp-accent: #ff9d4d;
  --rp-bg: #f7f5f0;
  --rp-surface: #ffffff;
  --rp-ink: #17231f;
  --rp-muted: #6b7a75;
  --rp-border: #e5e2da;
  --rp-radius: 18px;
  --rp-shadow: 0 10px 30px -12px rgba(23, 35, 31, 0.18);
  --rp-shadow-sm: 0 4px 14px -6px rgba(23, 35, 31, 0.12);
}

* { box-sizing: border-box; }

body {
  background: var(--rp-bg);
  color: var(--rp-ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rp-primary); text-decoration: none; }
a:hover { color: var(--rp-primary-dark); }

/* ---------- Navbar ---------- */
.rp-navbar {
  background: linear-gradient(120deg, var(--rp-primary-dark), var(--rp-primary));
  padding: 14px 0;
  box-shadow: var(--rp-shadow-sm);
}
.rp-navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.rp-navbar .navbar-brand span { color: var(--rp-accent); }
.rp-navbar .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  margin: 0 4px;
}
.rp-navbar .nav-link:hover { color: #fff !important; }

/* ---------- Hero ---------- */
.rp-hero {
  background: radial-gradient(1200px 500px at 10% -10%, rgba(255,157,77,0.25), transparent),
              linear-gradient(120deg, var(--rp-primary-dark), var(--rp-primary));
  color: #fff;
  padding: 72px 0 88px;
  border-radius: 0 0 40px 40px;
  margin-bottom: -40px;
  position: relative;
  overflow: hidden;
}
.rp-hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
.rp-hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 620px; }
.rp-hero .stat-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(6px);
}

/* ---------- Cards ---------- */
.rp-card {
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.rp-card:hover { transform: translateY(-4px); box-shadow: var(--rp-shadow); }
.rp-card .rp-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  background: #eee;
}
.rp-card-body { padding: 18px 20px; }
.rp-card-body h3, .rp-card-body h5 { font-weight: 700; margin-bottom: 4px; }

/* ---------- Badges ---------- */
.badge-soft-success { background: #e3f4ec; color: #147a4a; font-weight: 600; }
.badge-soft-warning { background: #fff3e0; color: #b56a00; font-weight: 600; }
.badge-soft-danger  { background: #fdecea; color: #b0271f; font-weight: 600; }
.badge-soft-secondary { background: #eef0ee; color: #56635e; font-weight: 600; }
.badge-soft-primary { background: #e6f2ef; color: var(--rp-primary-dark); font-weight: 600; }

/* ---------- Stars ---------- */
.stars { color: var(--rp-accent); font-size: 1.05rem; letter-spacing: 1px; }

/* ---------- Filter panel ---------- */
.rp-filter-panel {
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: var(--rp-radius);
  padding: 20px;
  box-shadow: var(--rp-shadow-sm);
  position: sticky;
  top: 16px;
}
.rp-filter-panel label { font-weight: 600; font-size: 0.85rem; color: var(--rp-muted); text-transform: uppercase; letter-spacing: .04em; }
.rp-filter-panel .form-select, .rp-filter-panel .form-control {
  border-radius: 10px;
  border-color: var(--rp-border);
}

/* ---------- Buttons ---------- */
.btn-rp {
  background: var(--rp-primary);
  border-color: var(--rp-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 22px;
}
.btn-rp:hover { background: var(--rp-primary-dark); border-color: var(--rp-primary-dark); color: #fff; }
.btn-rp-accent {
  background: var(--rp-accent); border-color: var(--rp-accent); color: #1f1200; font-weight: 700; border-radius: 12px;
}
.btn-rp-accent:hover { filter: brightness(0.95); color: #1f1200; }
.btn-outline-rp { border: 2px solid var(--rp-primary); color: var(--rp-primary); border-radius: 12px; font-weight: 600; }
.btn-outline-rp:hover { background: var(--rp-primary); color: #fff; }

/* ---------- Section headers ---------- */
.rp-section-title { font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.rp-section-sub { color: var(--rp-muted); margin-bottom: 32px; }

/* ---------- Breadcrumb ---------- */
.rp-breadcrumb { padding: 14px 0; font-size: 0.9rem; }
.rp-breadcrumb .breadcrumb { margin: 0; }

/* ---------- Footer ---------- */
.rp-footer {
  background: var(--rp-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  margin-top: 64px;
}
.rp-footer a { color: #fff; }
.rp-footer h6 { color: #fff; font-weight: 700; margin-bottom: 14px; }

/* ---------- Profile hero (dog / vet detail) ---------- */
.rp-profile-photo {
  width: 100%;
  border-radius: var(--rp-radius);
  box-shadow: var(--rp-shadow);
  object-fit: cover;
  max-height: 380px;
}
.rp-fact-table th { color: var(--rp-muted); font-weight: 600; width: 42%; }

/* ---------- Review card ---------- */
.rp-review { border-bottom: 1px solid var(--rp-border); padding: 16px 0; }
.rp-review:last-child { border-bottom: none; }

/* ---------- Admin ---------- */
.rp-admin-sidebar { background: var(--rp-primary-dark); min-height: 100vh; color: #fff; }
.rp-admin-sidebar a { color: rgba(255,255,255,0.85); display: block; padding: 10px 18px; border-radius: 10px; margin: 2px 10px; }
.rp-admin-sidebar a:hover, .rp-admin-sidebar a.active { background: rgba(255,255,255,0.12); color: #fff; }

@media (max-width: 767px) {
  .rp-hero { padding: 48px 0 64px; border-radius: 0 0 26px 26px; }
  .rp-filter-panel { position: static; margin-bottom: 20px; }
}
