/* ==========================================================================
   MIAULY — Design System & Styles
   ========================================================================== */

/* Momo Trust Display Typeface (OFL v1.1) */
@font-face {
  font-family: 'Momo Trust Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('assets/fonts/momo-trust-display-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Momo Trust Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('assets/fonts/momo-trust-display-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --radius: 0.875rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;

  /* Colors based on Miauly OKLCH palette */
  --background: #fbf8f3;
  --foreground: #15243a;
  --ink: #15243a;
  --card: #ffffff;
  --card-foreground: #15243a;
  --popover: #ffffff;
  --popover-foreground: #15243a;
  
  --primary: #c94b3a;
  --primary-hover: #b33e2e;
  --primary-foreground: #faf6f0;
  
  --secondary: #d89b37;
  --secondary-hover: #c48b2d;
  --secondary-foreground: #15243a;
  
  --muted: #eee7de;
  --muted-foreground: #776e65;
  --muted-light: #f5f0e9;
  
  --border: rgba(21, 36, 58, 0.12);
  --input: rgba(21, 36, 58, 0.18);
  --ring: #d89b37;
  
  --forest: #235347;
  --forest-foreground: #fbf8f3;
  
  --map: #e5ece6;
  --map-road: #ffffff;

  /* Status Colors */
  --st-detected: #3575b5;
  --st-following: #d89b37;
  --st-rescue: #c94b3a;
  --st-vet: #2a9d8f;
  --st-shelter: #4b8b62;
  --st-adoption: #e09f3e;
  --st-adopted: #8338ec;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(21, 36, 58, 0.05);
  --shadow-md: 0 4px 12px rgba(21, 36, 58, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(21, 36, 58, 0.1), 0 4px 6px -2px rgba(21, 36, 58, 0.05);
  --shadow-xl: 0 20px 30px -5px rgba(21, 36, 58, 0.15);

  /* Fonts */
  --font-display: 'Momo Trust Display', 'Quicksand', system-ui, -apple-system, sans-serif;
  --font-sans: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-accent: 'Space Grotesk', system-ui, sans-serif;

  --header-height: 64px;
  --bottom-nav-height: 62px;
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  padding-bottom: var(--bottom-nav-height);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.925rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.nav-link {
  color: var(--muted-foreground);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--foreground);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201, 75, 58, 0.25);
  transition: background-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.header-cta-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.header-cta-btn:active {
  transform: translateY(0);
}

/* Mobile Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(21, 36, 58, 0.05);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: var(--bottom-nav-height);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
}

/* Section Hero */
.hero-section {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 3.5rem;
  }
}

.urgent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(201, 75, 58, 0.1);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-accent);
}

.urgent-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  margin-top: 1.25rem;
  font-size: 2.85rem;
  line-height: 0.98;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.8rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.text-secondary {
  color: var(--secondary);
}

.hero-subtitle {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--muted-foreground);
  max-width: 46ch;
  line-height: 1.5;
}

.hero-buttons {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.8rem 1.65rem;
  border-radius: var(--radius-full);
  font-size: 0.925rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(201, 75, 58, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--foreground);
  color: var(--background);
  padding: 0.8rem 1.65rem;
  border-radius: var(--radius-full);
  font-size: 0.925rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-dark:hover {
  background-color: rgba(21, 36, 58, 0.88);
  transform: translateY(-1px);
}

/* Metrics Grid */
.metrics-grid {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.metric-card {
  background-color: var(--card);
  padding: 1.15rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1;
}

.metric-label {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  font-weight: 600;
  font-family: var(--font-accent);
}

/* Hero Image Container */
.hero-image-wrap {
  position: relative;
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-image-wrap {
    margin-top: 0;
  }
}

.hero-cat-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-floating-card {
  position: absolute;
  bottom: -1.25rem;
  left: -0.75rem;
  background-color: var(--card);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
  display: block;
}

.hero-floating-card:hover {
  transform: translateY(-2px);
}

.floating-kicker {
  font-size: 0.685rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  font-weight: 700;
  font-family: var(--font-accent);
}

.floating-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Community Cases Section */
.cases-section {
  background-color: rgba(21, 36, 58, 0.04);
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
  font-family: var(--font-accent);
}

.section-title {
  font-size: 2.25rem;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-desc {
  margin-top: 0.35rem;
  font-size: 0.925rem;
  color: var(--muted-foreground);
}

.link-more {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

/* Map & Cards Grid */
.map-cases-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .map-cases-grid {
    grid-template-columns: 1.18fr 0.82fr;
  }
}

/* Map Component */
.map-texture {
  background-color: var(--map);
  background-image:
    linear-gradient(var(--map-road) 10px, transparent 10px),
    linear-gradient(90deg, var(--map-road) 8px, transparent 8px),
    linear-gradient(rgba(21, 36, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 36, 58, 0.04) 1px, transparent 1px);
  background-position: 0 70px, 90px 0, 0 0, 0 0;
  background-size: 100% 180px, 220px 100%, 36px 36px, 36px 36px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  user-select: none;
}

/* Parks / Sanctuary zones on map */
.map-patch-1 {
  position: absolute;
  left: 8%;
  top: 12%;
  width: 130px;
  height: 96px;
  border-radius: 40%;
  background-color: rgba(75, 139, 98, 0.3);
}

.map-patch-2 {
  position: absolute;
  right: 10%;
  bottom: 10%;
  width: 160px;
  height: 110px;
  border-radius: 45%;
  background-color: rgba(75, 139, 98, 0.25);
}

/* Map Pins */
.map-pin {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: var(--primary-foreground);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(251, 248, 243, 0.85), var(--shadow-md);
  cursor: pointer;
  z-index: 10;
  animation: pinBounce 3.2s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.15) !important;
  z-index: 20;
}

@keyframes pinBounce {
  0%, 100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 7px));
  }
}

.pin-tooltip {
  pointer-events: none;
  position: absolute;
  top: 100%;
  margin-top: 6px;
  background-color: var(--card);
  color: var(--foreground);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.map-pin:hover .pin-tooltip {
  opacity: 1;
  visibility: visible;
}

.map-location-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
  font-family: var(--font-accent);
  border: 1px solid var(--border);
  z-index: 20;
  pointer-events: none;
}

/* ==========================================================================
   INTERACTIVE MAP & GEOLOCATION (Google Maps & Leaflet Engine)
   ========================================================================== */
.map-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.map-view-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 380px;
  background-color: var(--map);
  z-index: 1;
}

@media (min-width: 1024px) {
  .map-wrapper.sticky-map {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

/* Map Toolbar (Top-right controls) */
.map-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-map-control {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-md);
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-map-control:hover {
  background-color: #ffffff;
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-map-control.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* User GPS Marker (Google Maps style pulsating blue dot) */
.user-gps-pulse {
  position: relative;
  width: 22px;
  height: 22px;
}

.user-gps-dot {
  width: 14px;
  height: 14px;
  background-color: #1a73e8;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.user-gps-wave {
  width: 28px;
  height: 28px;
  background-color: rgba(26, 115, 232, 0.28);
  border-radius: 50%;
  position: absolute;
  top: -3px;
  left: -3px;
  animation: gpsWave 2s infinite ease-out;
  z-index: 1;
}

@keyframes gpsWave {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Custom Interactive Leaflet Marker */
.custom-cat-pin {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(21, 36, 58, 0.3);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.custom-cat-pin:hover {
  transform: scale(1.22);
}

/* Leaflet Popup Custom Styling */
.leaflet-popup-content-wrapper {
  background: var(--card) !important;
  color: var(--card-foreground) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
}

.popup-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  max-width: 270px;
}

.popup-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.popup-info {
  flex: 1;
  min-width: 0;
}

.popup-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.popup-place {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}

.popup-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 6px;
}

.popup-link-btn {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
}

.popup-gmaps-link {
  font-size: 0.725rem;
  color: #1a73e8;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}

/* Report View Mini Map */
.report-map-wrap {
  margin-top: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.report-map-container {
  width: 100%;
  height: 220px;
  background-color: var(--map);
}

.btn-locate-me {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--muted-light);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-locate-me:hover {
  background-color: var(--card);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-gmaps {
  background-color: #ffffff;
  color: #1a73e8;
  border: 1px solid #dadce0;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
  transition: all 0.15s ease;
}

.btn-gmaps:hover {
  background-color: #f8fafd;
  border-color: #1a73e8;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
  transform: translateY(-1px);
}


/* Status dots & chips */
.dot-detected { background-color: var(--st-detected); }
.dot-following { background-color: var(--st-following); }
.dot-rescue { background-color: var(--st-rescue); }
.dot-vet { background-color: var(--st-vet); }
.dot-shelter { background-color: var(--st-shelter); }
.dot-adoption { background-color: var(--st-adoption); }
.dot-adopted { background-color: var(--st-adopted); }

.chip-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.725rem;
  font-weight: 700;
  white-space: nowrap;
}

.chip-status .dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.chip-detected { background-color: rgba(53, 117, 181, 0.15); color: var(--st-detected); }
.chip-following { background-color: rgba(216, 155, 55, 0.18); color: var(--foreground); }
.chip-rescue { background-color: rgba(201, 75, 58, 0.15); color: var(--st-rescue); }
.chip-vet { background-color: rgba(42, 157, 143, 0.15); color: var(--st-vet); }
.chip-shelter { background-color: rgba(75, 139, 98, 0.2); color: var(--forest); }
.chip-adoption { background-color: rgba(224, 159, 62, 0.2); color: var(--foreground); }
.chip-adopted { background-color: rgba(131, 56, 236, 0.15); color: var(--st-adopted); }

/* Cat Case Card */
.case-card {
  display: flex;
  gap: 1rem;
  background-color: var(--card);
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.case-card-img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.case-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.case-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.case-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.case-card-place {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.case-card-notes {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(21, 36, 58, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.case-card-footer {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.urgency-badge {
  border-radius: var(--radius-full);
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.urgency-badge.urgent {
  background-color: rgba(201, 75, 58, 0.12);
  color: var(--primary);
}

.urgency-badge.normal {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.reported-time {
  font-size: 0.725rem;
  color: var(--muted-foreground);
}

/* Sponsoring Section (Green Forest) */
.forest-section {
  background-color: var(--forest);
  color: var(--forest-foreground);
  padding: 4rem 0;
}

.forest-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .forest-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.forest-title {
  font-size: 2.4rem;
  color: var(--forest-foreground);
}

@media (min-width: 640px) {
  .forest-title {
    font-size: 2.85rem;
  }
}

.forest-desc {
  margin-top: 1rem;
  max-width: 44ch;
  opacity: 0.8;
  font-size: 1.05rem;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.8rem 1.65rem;
  border-radius: var(--radius-full);
  font-size: 0.925rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.forest-desc + .btn-secondary {
  margin-top: 1.5rem;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-1px);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.price-card {
  background-color: rgba(251, 248, 243, 0.1);
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 248, 243, 0.16);
  backdrop-filter: blur(4px);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  background-color: rgba(251, 248, 243, 0.15);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
}

.price-concept {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  opacity: 0.75;
}

/* Footer */
.site-footer {
  background-color: var(--ink);
  color: var(--background);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.footer-note {
  opacity: 0.65;
}

/* ==========================================================================
   PAGE: MAPA
   ========================================================================== */
.mapa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.785rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  transition: all 0.15s ease;
}

.filter-btn:hover {
  background-color: var(--muted-light);
}

.filter-btn.active {
  background-color: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.filter-btn .filter-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
}

.mapa-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .mapa-layout {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .sticky-map {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

.case-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   PAGE: REPORTAR UN GATO
   ========================================================================== */
.form-card {
  max-width: 680px;
  margin: 0 auto;
}

.report-form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.photo-uploader {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background-color: var(--muted);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.photo-uploader:hover {
  border-color: var(--primary);
  background-color: var(--muted-light);
}

.photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uploader-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.form-input, .form-textarea {
  width: 100%;
  background-color: var(--card);
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.925rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(216, 155, 55, 0.2);
}

.form-textarea {
  min-height: 105px;
  resize: vertical;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  width: 18px;
  height: 18px;
}

.input-with-icon .form-input {
  padding-left: 2.4rem;
}

.form-help {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Assistant Box */
.assistant-box {
  background-color: var(--card);
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.assistant-title {
  font-size: 0.925rem;
  font-weight: 700;
}

.assistant-desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.15rem;
}

.assistant-chips {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-toggle {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.785rem;
  font-weight: 600;
  color: var(--foreground);
  transition: all 0.15s ease;
}

.chip-toggle:hover {
  border-color: var(--secondary);
}

.chip-toggle.active {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary);
}

.suggestion-btn {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.suggestion-btn:hover {
  text-decoration: underline;
}

/* Urgency Selector */
.urgency-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.urgency-option {
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  text-align: center;
  transition: all 0.15s ease;
}

.urgency-option:hover {
  background-color: var(--muted-light);
}

.urgency-option.active-baja,
.urgency-option.active-media {
  background-color: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.urgency-option.active-alta,
.urgency-option.active-critica {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ==========================================================================
   PAGE: FICHA DE RESCATE (CASO DETALLE)
   ========================================================================== */
.back-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.back-link:hover {
  color: var(--foreground);
}

.caso-header-grid {
  display: grid;
  gap: 2rem;
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .caso-header-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.caso-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.caso-title {
  margin-top: 0.75rem;
  font-size: 3.25rem;
  color: var(--foreground);
}

.caso-meta {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: var(--muted-foreground);
}

.caso-notes {
  margin-top: 1rem;
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--foreground);
}

.caso-urgency-line {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* 7-Step Progress Timeline */
.timeline-stages {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.35rem;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.timeline-step-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--muted);
  transition: background-color 0.2s ease;
}

.timeline-step-label {
  margin-top: 0.35rem;
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--muted-foreground);
  font-family: var(--font-accent);
  display: none;
}

@media (min-width: 640px) {
  .timeline-step-label {
    display: block;
  }
}

.timeline-step.active .timeline-step-label {
  font-weight: 700;
  color: var(--foreground);
}

.caso-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Two Cards Grid */
.caso-details-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .caso-details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-card {
  background-color: var(--card);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.detail-card-title {
  font-size: 1.5rem;
  color: var(--foreground);
}

.detail-card-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.2rem;
}

.care-checklist {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  list-style: none;
}

.care-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.care-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.care-icon-badge.checked {
  background-color: rgba(75, 139, 98, 0.2);
  color: var(--forest);
}

.care-icon-badge.unchecked {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.care-treatment-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Field Notes (Timeline) */
.field-notes-list {
  margin-top: 1.25rem;
  border-left: 2px solid rgba(216, 155, 55, 0.45);
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  list-style: none;
}

.field-note-item {
  position: relative;
}

.field-note-date {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  font-weight: 700;
  font-family: var(--font-accent);
}

.field-note-text {
  font-size: 0.925rem;
  color: var(--foreground);
  margin-top: 0.15rem;
}

.add-note-btn {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.add-note-btn:hover {
  text-decoration: underline;
}

/* ==========================================================================
   PAGE: ADOPCIÓN
   ========================================================================== */
.adoption-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .adoption-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .adoption-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.adoption-card {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.adoption-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.adoption-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.adoption-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.adoption-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.adoption-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.adoption-meta {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: 0.2rem;
}

.adoption-character {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: rgba(21, 36, 58, 0.85);
}

/* Sponsorship box in Adopcion */
.sponsor-banner {
  margin-top: 3.5rem;
  background-color: var(--forest);
  color: var(--forest-foreground);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

@media (min-width: 640px) {
  .sponsor-banner {
    padding: 2.75rem;
  }
}

.sponsor-title {
  font-size: 2.25rem;
}

.sponsor-tags {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sponsor-tag {
  background-color: rgba(251, 248, 243, 0.12);
  border: 1px solid rgba(251, 248, 243, 0.2);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.785rem;
  font-weight: 600;
}

.sponsor-cats-grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .sponsor-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.sponsor-cat-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: rgba(251, 248, 243, 0.1);
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 248, 243, 0.16);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.sponsor-cat-pill:hover {
  transform: translateY(-2px);
  background-color: rgba(251, 248, 243, 0.18);
}

.sponsor-cat-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.sponsor-cat-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.sponsor-cat-price {
  font-size: 0.75rem;
  opacity: 0.75;
}

/* ==========================================================================
   PAGE: REFUGIOS / SANTUARIOS
   ========================================================================== */
.shelters-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .shelters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shelter-card {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.shelter-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.shelter-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
}

.shelter-dist-badge {
  background-color: var(--muted);
  color: var(--foreground);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.shelter-area {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.shelter-spots {
  margin-top: 1.15rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.shelter-spots-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.shelter-badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.shelter-badge {
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.shelter-badge.adults {
  background-color: rgba(75, 139, 98, 0.2);
  color: var(--forest);
}

.shelter-badge.community {
  background-color: rgba(216, 155, 55, 0.22);
  color: var(--foreground);
}

.shelter-btn {
  margin-top: 1.25rem;
  width: 100%;
  background-color: var(--foreground);
  color: var(--background);
  padding: 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.shelter-btn:hover {
  background-color: rgba(21, 36, 58, 0.85);
  transform: translateY(-1px);
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(30, 20, 15, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.6rem;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--muted);
  display: grid;
  place-items: center;
  color: var(--muted-foreground);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-close-btn:hover {
  background-color: var(--border);
  color: var(--foreground);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

@media (min-width: 768px) {
  .toast-container {
    bottom: 24px;
    right: 24px;
  }
}

.toast {
  pointer-events: auto;
  background-color: var(--ink);
  color: var(--background);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastIn 0.25s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   GOOGLE MAPS ENHANCEMENTS & NAVIGATION STYLES
   ========================================================================== */
.btn-streetview {
  background-color: #ffffff;
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
  transition: all 0.15s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-streetview:hover {
  background-color: var(--muted-light);
  border-color: var(--foreground);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(21, 36, 58, 0.15);
}

.shelter-marker-pin {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  background-color: var(--forest);
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(35, 83, 71, 0.35);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shelter-marker-pin:hover {
  transform: scale(1.22);
}

.report-map-toolbar {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  display: flex;
  gap: 0.35rem;
}

.report-coords-badge {
  font-family: var(--font-accent);
  font-size: 0.725rem;
  color: var(--muted-foreground);
  margin-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.report-coords-badge a {
  color: #1a73e8;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.report-coords-badge a:hover {
  text-decoration: underline;
}

.caso-map-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.caso-map-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.caso-mini-map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.shelter-map-wrapper {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.shelter-map-container {
  width: 100%;
  height: 280px;
  background-color: var(--map);
  z-index: 10;
}

/* ==========================================================================
   GOOGLE PLACES AUTOCOMPLETE STYLES
   ========================================================================== */
.pac-container {
  background-color: var(--card) !important;
  font-family: var(--font-sans) !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
  margin-top: 6px !important;
  z-index: 10000 !important;
  overflow: hidden;
  padding: 0.25rem 0 !important;
}

.pac-item {
  padding: 0.65rem 1rem !important;
  font-size: 0.875rem !important;
  color: var(--foreground) !important;
  border-top: 1px solid var(--border) !important;
  cursor: pointer;
  line-height: 1.4 !important;
  transition: background-color 0.12s ease;
}

.pac-item:first-child {
  border-top: none !important;
}

.pac-item:hover, .pac-item-selected, .pac-item-selected:hover {
  background-color: var(--muted-light) !important;
}

.pac-item-query {
  font-size: 0.875rem !important;
  color: var(--foreground) !important;
  font-weight: 700 !important;
  padding-right: 4px;
}

.pac-matched {
  font-weight: 800 !important;
  color: var(--primary) !important;
}

.pac-icon {
  margin-top: 2px !important;
}

/* ==========================================================================
   MIAULY — ADMIN PANEL, LOGIN & USER ROLES
   ========================================================================== */

/* Header & Footer Admin Links */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(21, 36, 58, 0.05);
  color: var(--foreground);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  border: 1px solid var(--border);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-admin-pill:hover, .header-admin-pill.active {
  background-color: var(--foreground);
  color: #ffffff;
  border-color: var(--foreground);
}

.header-admin-pill .admin-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2a9d8f;
  display: inline-block;
  box-shadow: 0 0 6px #2a9d8f;
}

.nav-link-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700 !important;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-admin-link {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.footer-admin-link:hover {
  color: var(--foreground);
  background-color: rgba(21, 36, 58, 0.05);
}

/* Admin Login View */
.admin-login-wrapper {
  max-width: 520px;
  margin: 3rem auto 4rem;
  padding: 0 1rem;
}

.admin-login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), #8338ec);
}

.admin-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: rgba(131, 56, 236, 0.08);
  color: #8338ec;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  font-family: var(--font-accent);
}

.admin-login-title {
  font-size: 1.85rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.admin-login-desc {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}
/* Auth Mode Toggle Tabs (Login / Register) */
.auth-toggle-bar {
  display: flex;
  background: var(--muted-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 1.5rem;
  gap: 4px;
}

.auth-toggle-btn {
  flex: 1;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.auth-toggle-btn:hover {
  color: var(--foreground);
}

.auth-toggle-btn.active {
  background: #ffffff;
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

.volunteer-exclusive-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(42, 157, 143, 0.12);
  color: #2a9d8f;
  border: 1px solid rgba(42, 157, 143, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Admin Dashboard Layout */
.admin-panel-container {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.admin-topbar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .admin-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.admin-title-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-icon-shield {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(201, 75, 58, 0.15), rgba(131, 56, 236, 0.15));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.admin-headline {
  font-size: 1.5rem;
  line-height: 1.2;
}

.admin-subtitle {
  font-size: 0.825rem;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.admin-user-capsule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--muted-light);
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem 0.4rem 0.75rem;
  border-radius: var(--radius-full);
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-user-meta {
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.1;
}

.admin-user-role-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

.btn-admin-logout {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-admin-logout:hover {
  color: var(--primary);
  background-color: rgba(201, 75, 58, 0.1);
}

/* Admin Tabs Navigation */
.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--muted-foreground);
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--foreground);
  background-color: rgba(21, 36, 58, 0.03);
}

.admin-tab-btn.active {
  color: var(--primary);
}

.admin-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px 3px 0 0;
}

.admin-badge-count {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  background-color: var(--muted);
  color: var(--foreground);
  font-family: var(--font-accent);
}

.admin-tab-btn.active .admin-badge-count {
  background-color: rgba(201, 75, 58, 0.15);
  color: var(--primary);
}

/* KPI Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.admin-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.admin-stat-lbl {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  font-family: var(--font-accent);
}

.admin-stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.admin-stat-val {
  font-size: 2.25rem;
  font-family: var(--font-display);
  color: var(--foreground);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.admin-stat-desc {
  font-size: 0.775rem;
  color: var(--muted-foreground);
}

/* Role Badges */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: var(--font-accent);
  white-space: nowrap;
}

.role-badge-admin {
  background-color: rgba(131, 56, 236, 0.1);
  color: #8338ec;
  border: 1px solid rgba(131, 56, 236, 0.25);
}

.role-badge-vet {
  background-color: rgba(42, 157, 143, 0.1);
  color: #2a9d8f;
  border: 1px solid rgba(42, 157, 143, 0.25);
}

.role-badge-shelter {
  background-color: rgba(75, 139, 98, 0.1);
  color: #4b8b62;
  border: 1px solid rgba(75, 139, 98, 0.25);
}

.role-badge-volunteer {
  background-color: rgba(216, 155, 55, 0.12);
  color: #c48b2d;
  border: 1px solid rgba(216, 155, 55, 0.25);
}

/* Admin Tables & Card Containers */
.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.admin-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .admin-card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.admin-card-title {
  font-size: 1.25rem;
  color: var(--foreground);
}

.admin-controls-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-search-input {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background-color: var(--muted-light);
  font-size: 0.825rem;
  font-family: var(--font-sans);
  color: var(--foreground);
  min-width: 200px;
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--ring);
  background-color: #ffffff;
}

.admin-table-container {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-table th {
  background-color: var(--muted-light);
  color: var(--muted-foreground);
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-accent);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: rgba(21, 36, 58, 0.02);
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.admin-user-fullname {
  font-weight: 700;
  color: var(--foreground);
}

.admin-user-subemail {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

.status-badge-active {
  background-color: rgba(42, 157, 143, 0.12);
  color: #2a9d8f;
}

.status-badge-inactive {
  background-color: rgba(119, 110, 101, 0.15);
  color: var(--muted-foreground);
}

.admin-status-dot-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.admin-select {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
}

.admin-select:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-table-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-table-action {
  background: var(--muted-light);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background-color: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-table-action.btn-danger:hover {
  background-color: rgba(201, 75, 58, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* Config Grid */
.admin-config-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .admin-config-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.config-box {
  background: var(--muted-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.config-box .btn-secondary {
  margin-top: 0;
}

.config-box-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.config-box-desc {
  font-size: 0.825rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.45;
}

/* ==========================================================================
   USER ROLES SYSTEM & CUSTOMIZED WORKSPACES
   ========================================================================== */

/* Header User Capsule */
.nav-user-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--muted-light);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.825rem;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.nav-user-capsule:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-user-avatar {
  font-size: 1.1rem;
  line-height: 1;
}

.nav-user-name {
  font-weight: 700;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Quick Role Switcher Bar (For Seamless Testing & Role Switching) */
.role-switcher-banner {
  background: linear-gradient(135deg, rgba(21, 36, 58, 0.04) 0%, rgba(201, 75, 58, 0.04) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 860px) {
  .role-switcher-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.role-switcher-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--foreground);
}

.role-switcher-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.15s ease;
}

.role-switch-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.role-switch-btn.active {
  background: var(--foreground);
  color: #ffffff;
  border-color: var(--foreground);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.role-switch-btn.active.role-btn-admin {
  background: #8338ec;
  border-color: #8338ec;
}

.role-switch-btn.active.role-btn-vet {
  background: #2a9d8f;
  border-color: #2a9d8f;
}

.role-switch-btn.active.role-btn-shelter {
  background: #4b8b62;
  border-color: #4b8b62;
}

.role-switch-btn.active.role-btn-volunteer {
  background: #d89b37;
  border-color: #d89b37;
}

/* Role Capabilities & Scope Info Card */
.role-scope-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.role-scope-notice.scope-admin {
  border-left: 4px solid #8338ec;
}

.role-scope-notice.scope-vet {
  border-left: 4px solid #2a9d8f;
}

.role-scope-notice.scope-shelter {
  border-left: 4px solid #4b8b62;
}

.role-scope-notice.scope-volunteer {
  border-left: 4px solid #d89b37;
}

.role-scope-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.role-scope-body h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.role-scope-body p {
  font-size: 0.825rem;
  color: var(--muted-foreground);
  line-height: 1.45;
  margin: 0;
}

/* Case Detail Role Action Card */
.role-case-action-card {
  margin-top: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.role-case-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-case-action-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--foreground);
}

.role-case-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Interactive Medical Checklist for Vets & Admin */
.care-item-interactive {
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.4rem;
}

.care-item-interactive:hover {
  background: rgba(42, 157, 143, 0.08);
}

.care-interactive-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #2a9d8f;
  margin-left: auto;
  opacity: 0.85;
}

/* Shelter Occupancy Meter */
.shelter-occupancy-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.shelter-meter-bar-track {
  width: 100%;
  height: 12px;
  background-color: var(--muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.75rem 0 0.5rem;
}

.shelter-meter-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #4b8b62 0%, #2a9d8f 100%);
  transition: width 0.4s ease;
}

.shelter-meter-bar-fill.fill-warning {
  background: linear-gradient(90deg, #d89b37 0%, #c94b3a 100%);
}

/* Requests Table & Chips */
.request-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
}

.request-chip-pending {
  background: rgba(216, 155, 55, 0.12);
  color: #b37d22;
  border: 1px solid rgba(216, 155, 55, 0.25);
}

.request-chip-approved {
  background: rgba(42, 157, 143, 0.12);
  color: #2a9d8f;
  border: 1px solid rgba(42, 157, 143, 0.25);
}

/* Field Notes Author Tag */
.field-note-author-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--muted-foreground);
  margin-left: 0.5rem;
  background: var(--muted-light);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* Permission Denied Card */
.permission-denied-card {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  max-width: 540px;
  margin: 2rem auto;
}

.permission-denied-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.permission-denied-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.permission-denied-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   CANINE / DOGS SECTION & SPECIES FILTER STYLES
   ========================================================================== */

/* Species Selector Tabs */
.species-tabs-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.species-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.species-tab-btn:hover {
  border-color: var(--primary);
  background: rgba(201, 75, 58, 0.05);
}

.species-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(201, 75, 58, 0.25);
}

.species-tab-btn.active-dog {
  background: #d89b37;
  color: #ffffff;
  border-color: #d89b37;
  box-shadow: 0 2px 8px rgba(216, 155, 55, 0.3);
}

.species-tab-btn.active-cat {
  background: #2a9d8f;
  color: #ffffff;
  border-color: #2a9d8f;
  box-shadow: 0 2px 8px rgba(42, 157, 143, 0.3);
}

/* Species Badges */
.species-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  line-height: 1.3;
}

.species-badge-dog {
  background-color: rgba(216, 155, 55, 0.15);
  color: #b37416;
  border: 1px solid rgba(216, 155, 55, 0.3);
}

.species-badge-cat {
  background-color: rgba(42, 157, 143, 0.15);
  color: #20756b;
  border: 1px solid rgba(42, 157, 143, 0.3);
}

/* Dog Size Badges */
.size-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--muted);
  color: var(--foreground);
}

/* Dogs Hero & Guide Cards */
.dogs-hero-card {
  background: linear-gradient(135deg, rgba(216, 155, 55, 0.12) 0%, rgba(201, 75, 58, 0.08) 100%);
  border: 1px solid rgba(216, 155, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .dogs-hero-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
  }
}

.dogs-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .dogs-guide-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dogs-guide-item {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dogs-guide-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(216, 155, 55, 0.15);
  color: #b37416;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}


