@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  --primary: #B2DFDB;
  --primary-light: #80CBC4;
  --primary-lighter: #4DB6AC;
  --primary-dark: #00796B;
  --bg: #E0F2F1;
  --bg-light: #FFF0F5;
  --white: #FFFFFF;
  --text: #4A1A2E;
  --text-light: #8E4C6A;
  --text-muted: #B07A94;
  --border: #F8BBD0;
  --border-light: #FCE4EC;
  --shadow: rgba(136, 14, 79, 0.08);
  --shadow-md: rgba(136, 14, 79, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== APP CONTAINER ===== */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
.app-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.header-content {
  position: relative;
  z-index: 1;
}

.app-title {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(136, 14, 79, 0.3);
}

.app-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ===== TAB NAVIGATION ===== */
.tab-nav {
  display: flex;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.tab-btn {
  flex: 1;
  padding: 0.85rem 0.5rem;
  border: none;
  background: transparent;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.tab-btn:hover {
  color: var(--primary);
  background: var(--bg);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--bg-light);
}

.tab-icon {
  font-size: 1.2rem;
}

.tab-label {
  font-size: 0.75rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ===== FILTERS ===== */
.filters-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 12px var(--shadow);
}

.search-box {
  position: relative;
  margin-bottom: 1rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.6;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-light);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(236, 64, 122, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-select,
.filter-input {
  flex: 1;
  min-width: 140px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(236, 64, 122, 0.08);
}

.clear-filters-btn {
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  border: none;
  background: var(--primary-lighter);
  color: var(--primary-dark);
  border-radius: var(--radius-xs);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.clear-filters-btn:hover {
  background: var(--primary-light);
  color: var(--white);
}

/* ===== PET CARDS GRID ===== */
.pet-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ===== PET CARD ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pet-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--shadow-md);
  border-color: var(--primary-lighter);
}

.pet-card-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary-lighter) 100%);
}

.pet-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pet-card:hover .pet-card-image {
  transform: scale(1.05);
}

.pet-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-emoji {
  font-size: 4rem;
  opacity: 0.6;
}

.pet-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.4rem;
}

.badge {
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.badge-species {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fav-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fav-btn:hover {
  transform: scale(1.15);
}

.fav-btn.fav-active {
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(236, 64, 122, 0.4);
}

.pet-card-body {
  padding: 1.25rem;
}

.pet-name {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.pet-breed {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.pet-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
}

.chip-icon {
  font-size: 0.85rem;
}

.temperament-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.temp-tag {
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.pet-description {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pet-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.adoption-fee {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  flex-direction: column;
}

.fee-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'Quicksand', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-inquire {
  padding: 0.6rem 1.1rem;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(236, 64, 122, 0.3);
}

.btn-inquire:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(236, 64, 122, 0.4);
}

.btn-delete {
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--primary-lighter);
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-delete:hover {
  background: var(--bg);
  border-color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn-primary {
  padding: 0.75rem 1.5rem;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(236, 64, 122, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(236, 64, 122, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  background: var(--bg-light);
}

/* ===== MANAGE SECTION ===== */
.manage-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.manage-header h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--text);
}

/* ===== FAVORITES ===== */
.favorites-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.favorites-header h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--text);
}

.fav-count {
  padding: 0.35rem 0.85rem;
  background: var(--primary-lighter);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ===== RESULTS COUNT ===== */
.results-count {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-state h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-light);
  max-width: 360px;
  margin: 0 auto;
}

/* ===== SKELETON LOADING ===== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

.skeleton-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton-image {
  height: 200px;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg-light) 50%, var(--bg) 100%);
  background-size: 200px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line {
  height: 14px;
  margin: 1rem;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg-light) 50%, var(--bg) 100%);
  background-size: 200px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-line.wide { width: 80%; }
.skeleton-line.medium { width: 60%; }
.skeleton-line.short { width: 40%; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(136, 14, 79, 0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(136, 14, 79, 0.2);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

/* ===== ADD PET FORM ===== */
.add-pet-form {
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-group.full-width {
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(236, 64, 122, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

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

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  margin-top: 0.5rem;
}

/* ===== PHOTO UPLOAD ===== */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.photo-upload-area:hover {
  border-color: var(--primary-light);
}

.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.file-input {
  display: none;
}

.upload-placeholder {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.photo-preview-wrap {
  position: relative;
}

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

.remove-photo {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== INQUIRY MODAL ===== */
.inquiry-body {
  padding: 1.5rem;
}

.inquiry-pet-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.inquiry-pet-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.inquiry-pet-placeholder {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--primary-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.inquiry-pet-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.inquiry-pet-info strong {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.inquiry-pet-info span {
  font-size: 0.82rem;
  color: var(--text-light);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inquiry-success {
  padding: 3rem 2rem;
  text-align: center;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.inquiry-success h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.inquiry-success p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .app-title {
    font-size: 1.5rem;
  }

  .app-subtitle {
    font-size: 0.82rem;
  }

  .tab-label {
    font-size: 0.68rem;
  }

  .main-content {
    padding: 1rem;
  }

  .pet-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skeleton-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-select,
  .filter-input {
    min-width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .manage-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .pet-card-footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .card-actions {
    width: 100%;
  }

  .btn-inquire,
  .btn-delete {
    flex: 1;
    text-align: center;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: var(--radius-sm);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .pet-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to PawFinder! This is your personal pet adoption board. Browse available pets in the card grid.", "view": "user", "highlight_selector": ".pet-cards-grid", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Use the search bar and filters to find pets by species, breed, temperament, or maximum adoption fee.", "view": "user", "highlight_selector": ".filters-bar", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "Tap the heart on any pet card to save it to your Favorites.", "view": "user", "highlight_selector": ".fav-btn", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Click 'Inquire' to send an adoption inquiry for a pet you're interested in.", "view": "user", "highlight_selector": ".btn-inquire", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Switch to the Favorites tab to see all your saved pets in one place.", "view": "user", "highlight_selector": ".tab-btn:nth-child(2)", "wait_for": "user_interaction"},
  {"step": 6, "narration": "Go to the Manage Listings tab to add new pets. Click '+ Add Pet' to create a listing with photo, name, breed, age, temperament, and adoption fee.", "view": "user", "highlight_selector": ".tab-btn:nth-child(3)", "wait_for": "user_interaction"},
  {"step": 7, "narration": "Fill out the pet details form, upload a photo, and your new listing will appear immediately in the browse grid.", "view": "user", "highlight_selector": ".add-pet-form", "wait_for": "tap_to_continue"}
]
-->

.shelter-map-panel {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
}

.shelter-map-panel-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.shelter-map-panel-header h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.shelter-map-panel-header p {
  font-size: 0.82rem;
  color: var(--text-light);
}

.shelter-map {
  width: 100%;
  height: 280px;
}

.shelter-map-fallback {
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
  color: var(--text-light);
  text-align: center;
  padding: 1.5rem;
}

.shelter-map-fallback-icon {
  font-size: 2rem;
}

.shelter-map-fallback strong {
  color: var(--text);
  font-family: 'Nunito', sans-serif;
}

.shelter-map-fallback p {
  font-size: 0.85rem;
  max-width: 320px;
}

@media (max-width: 640px) {
  .shelter-map {
    height: 220px;
  }

  .shelter-map-fallback {
    height: 220px;
  }
}

.pet-card-with-reactions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.reaction-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0 0.25rem;
}

.reaction-btn {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--shadow);
}

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

.reaction-btn-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(236, 64, 122, 0.25);
}

.reaction-btn-want {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.matchmaker-panel {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
}

.matchmaker-header h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.matchmaker-header p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.matchmaker-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.matchmaker-btn {
  align-self: flex-start;
}

.matchmaker-error {
  font-size: 0.85rem;
  color: #B00020;
  font-weight: 600;
}

.matchmaker-summary {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.match-results-banner {
  background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg-light) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.match-results-banner strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.match-results-banner p {
  font-size: 0.82rem;
  color: var(--text-light);
}

.match-score-chip {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
  border: 1px solid var(--border-light);
}

.match-score-chip span {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.match-score-chip p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.45;
}

.share-pet-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 0.25rem;
}

.share-btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.share-btn:focus-visible,
.reaction-btn:focus-visible,
.clear-filters-btn:focus-visible {
  outline: 3px solid rgba(236, 64, 122, 0.25);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .share-pet-actions {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
  }
}
