/* ==========================================================================
   PetHub+ Styles
   Sections
   --------------------------------------------------------------------------
   1. CSS variables & base
   2. Layout & typography
   3. Shared cards & buttons
   4. Forms
   5. Home tab
   6. Pets tab
   7. Vets tab
   8. Insurance tab
   9. Calendar tab
  10. AI tab
  11. Shop tab
  12. Bottom navigation
  13. Responsive/mobile tweaks
   ========================================================================== */

/* style.css extracted from index.html */

:root {
  --purple: #372345;
  --purple-soft: #f1e6ff;
  --bg-home: #f5f3ff;
  --bg-pets: #fef6e7;
  --bg-vets: #e9f7ff;
  --bg-insurance: #f4f8ff;
  --bg-calendar: #f4fff7;
  --bg-ai: #f7f3ff;
  --bg-shop: #fff7f5;
  --card-bg: #ffffff;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.10);
  --muted: #6b7280;
  --danger: #b33939;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-home);
  color: #111827;
}

body.section-home {
  background: var(--bg-home);
}
body.section-pets {
  background: var(--bg-pets);
}
body.section-vets {
  background: var(--bg-vets);
}
body.section-insurance {
  background: var(--bg-insurance);
}
body.section-calendar {
  background: var(--bg-calendar);
}
body.section-ai {
  background: var(--bg-ai);
}
body.section-shop {
  background: var(--bg-shop);
}

.app-shell {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative; /* needed for ::before */
}

/* Paw watermark in the background for the whole app */
.app-shell::before {
  content: "";
  position: fixed;                    /* stick to viewport */
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 380px 380px;
  opacity: 0.06;                      /* very gentle on main app */
  pointer-events: none;
}

header.app-header {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #6a4bc3 0%, #1b102b 100%);
  color: white;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.app-title-icon {
  display: inline-block;
  width: 29px;
  height: 29px;
  margin-right: 2px;
  background: url("paw-logo-white-bold.png") no-repeat center center;
  background-size: contain;
}


.app-title h1 {
  margin: 0;
  font-size: 1.9rem;
}

.app-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
}

main {
  flex: 1;
  padding: 12px 12px 70px;
}

h2.section-title {
  margin: 6px 0 10px;
  font-size: 1.25rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 8px;
}

h2.section-title span.label-pill {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(55, 35, 69, 0.1);
  color: var(--purple);
}

p.muted,
small.muted {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 4px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(55, 35, 69, 0.06);
  color: #374151;
  font-size: 0.8rem;
}

.pill strong {
  font-weight: 600;
}

/* Make FullCalendar title smaller and cleaner */
.fc .fc-toolbar-title {
  font-size: 1rem !important;
  font-weight: 600;
  color: #372345;
}

/* Optional: slightly tighten up toolbar spacing */
.fc .fc-toolbar {
  margin-bottom: 0.4rem;
}

/* Fix header actions & Home button layout */
.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
}

.header-home-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 0.8rem !important;
  padding: 3px 10px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  flex: 0 0 auto !important;
  max-width: 120px !important;
  white-space: nowrap;
}
.header-home-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.header-home-btn.active {
  background: #f9fafb;
  color: #111827;
}
/* ---------- Shared card style (Pets/Vets/Insurance/Calendar/AI/Shop) ---------- */
.card,
.pet-card,
.vet-card,
.insurance-card,
.calendar-card,
.ai-card,
.shop-card,
.home-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  margin-bottom: 18px;
  transition: transform 0.14s ease, box-shadow 0.14s ease,
    background 0.15s ease;
}

.card:hover,
.pet-card:hover,
.vet-card:hover,
.insurance-card:hover,
.calendar-card:hover,
.ai-card:hover,
.shop-card:hover,
.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.25);
}

.card:active,
.pet-card:active,
.vet-card:active,
.insurance-card:active,
.calendar-card:active,
.ai-card:active,
.shop-card:active,
.home-card:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-title-main {
  font-weight: 600;
  margin-bottom: 4px;
}

.card-subline {
  font-size: 0.85rem;
  color: var(--muted);
}

/* -------- Family sharing page -------- */

.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
}

.bullet-list li {
  margin-bottom: 2px;
}

/* Family invite / join card */
.family-card {
  margin-top: 16px;
}

.family-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.family-code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.family-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-top: 2px;
}

.family-code-placeholder {
  color: #9ca3af;
}

.join-family-form {
  margin-top: 6px;
}

.join-family-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.join-family-row input {
  flex: 1;
}

.btn-text {
  transition: transform 0.12s ease, background 0.12s ease;
  background: none;
  border: none;
  padding: 0;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--purple);
  cursor: pointer;
  text-decoration: underline;
}


/* ---------- Buttons ---------- */

button,
.btn {
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  transition: background 0.14s ease, transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 10px 24px rgba(55, 35, 69, 0.35);
}
.btn-primary:hover {
  background: #2d1b3b;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(55, 35, 69, 0.45);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(55, 35, 69, 0.3);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  transition: background 0.14s ease, transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
}
.btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}
.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.btn-danger {
  background: #fee2e2;
  color: var(--danger);
}

.btn-small {
  transition: transform 0.12s ease, background 0.12s ease;
  font-size: 0.78rem;
  padding: 4px 10px;
}

.btn-ghost {
  transition: transform 0.12s ease, background 0.12s ease;
  background: transparent;
  color: #374151;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  background: #eef2ff;
  color: #4338ca;
}

/* ---------- Home layout ---------- */
#section-home {
  display: block;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.home-card {
  cursor: pointer;
}

.home-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.home-card-title {
  font-weight: 600;
}

.home-card-icon {
  font-size: 1.3rem;
}

/* NEW: Vet quick actions */
.home-quick-actions {
  margin-top: 6px;
  display: none; /* shown when at least one quick action exists */
}

.home-quick-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.home-quick-actions-meta {
  font-size: 0.8rem;
}

/* ---------- Layouts: split list/detail ---------- */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 14px;
}

@media (max-width: 840px) {
  .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel {
  border-radius: 18px;
  padding: 12px 12px;
}



/* Stronger home card tints for clear hierarchy (Home + Admin) */
#section-home .home-grid .home-card:nth-child(1) { /* Pets */
  background: linear-gradient(135deg, #ffc470, #fff3dd);
}
#section-home .home-grid .home-card:nth-child(2) { /* Vets */
  background: linear-gradient(135deg, #c9d9ff, #f3f6ff);
}
#section-home .home-grid .home-card:nth-child(3) { /* Insurance */
  background: linear-gradient(135deg, #cfdcff, #f4f7ff);
}
#section-home .home-grid .home-card:nth-child(4) { /* Calendar */
  background: linear-gradient(135deg, #ffbac4, #ffecef);
}
#section-home .home-grid .home-card:nth-child(5) { /* AI Advice */
  background: linear-gradient(135deg, #ddc8ff, #f4edff);
}
#section-home .home-grid .home-card:nth-child(6) { /* Shops & links */
  background: linear-gradient(135deg, #ffd3a1, #fff2e2);
}
#section-home .home-grid .home-card:nth-child(7) { /* Pet-friendly places */
  background: linear-gradient(135deg, #a4f3d5, #e4fff1);
}
#section-home .home-grid .home-card:nth-child(8) { /* Admin */
  background: linear-gradient(135deg, #c4c2ff, #f1efff);
}



/* Admin page cards */
#section-admin .home-grid .home-card:nth-child(1) { /* Family sharing */
  background: linear-gradient(135deg, #c7f0ff, #ecf9ff);
}
#section-admin .home-grid .home-card:nth-child(2) { /* Subscription */
  background: linear-gradient(135deg, #cec6ff, #f1efff);
}
#section-admin .home-grid .home-card:nth-child(3) { /* Account & password */
  background: linear-gradient(135deg, #d8e1ee, #f3f7fb);
}
#section-admin .home-grid .home-card:nth-child(4) { /* Delete my account */
  background: linear-gradient(135deg, #fde2e2, #fff5f5);
}

/* Section card tints to match home tiles */
#section-pets .card {
  background: linear-gradient(135deg, #ffc470, #fff3dd);
}

#section-vets .card {
  background: linear-gradient(135deg, #c9d9ff, #f3f6ff);
}

#section-insurance .card {
  background: linear-gradient(135deg, #cfdcff, #f4f7ff);
}

#section-calendar .card {
  background: linear-gradient(135deg, #ffbac4, #ffecef);
}

#section-ai .card {
  background: linear-gradient(135deg, #ddc8ff, #f4edff);
}

#section-shop .card {
  background: linear-gradient(135deg, #ffd3a1, #fff2e2);
}


#section-places .card {
  background: linear-gradient(135deg, #a4f3d5, #e4fff1);
}


#section-family .card {
  background: linear-gradient(135deg, #c7f0ff, #ecf9ff);
}

#section-subscription .card {
  background: linear-gradient(135deg, #cec6ff, #f1efff);
}
/* Pets list & detail containers use cards inside panels */
.empty-state {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 0;
}

/* ---------- Form layout ---------- */
form {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

label {
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 7px 9px;
  font-size: 0.9rem;
  font-family: inherit;
}

textarea {
  min-height: 70px;
  resize: vertical;
}

input[type="file"] {
  font-size: 0.85rem;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

/* ---------- Pets ---------- */
#section-pets {
  display: none;
}

.pet-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eef1f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.pet-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

#petProfilePhoto {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: #eef1f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

#petProfileName {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- Vets ---------- */
#section-vets {
  display: none;
}

/* ---------- Insurance ---------- */
#section-insurance {
  display: none;
}

/* ---------- Calendar ---------- */
#section-calendar {
  display: none;
}

/* Calendar filter row */
.calendar-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 6px 0 10px;
  font-size: 0.85rem;
}
.calendar-filter-row label {
  color: #6b7280;
}
.calendar-filter-select {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(55, 35, 69, 0.25);
  background: #ffffff;
  font-size: 0.85rem;
  outline: none;
}
.calendar-filter-select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px rgba(55, 35, 69, 0.15);
}

/* Birthday & insurance event accents in calendar */
.fc-event.calendar-birthday-event,
.calendar-birthday-event .fc-event-main-frame {
  background: #f97316;
  border-color: #ea580c;
  color: #ffffff;
}
.fc-event.calendar-insurance-event,
.calendar-insurance-event .fc-event-main-frame {
  background: #0ea5e9;
  border-color: #0284c7;
  color: #ffffff;
}
.calendar-reminder-birthday {
  border-color: #ea580c;
  background: #fff7ed;
}

.fc-toolbar-title {
  font-size: 1.1rem;
  font-weight: 600;
}
@media (max-width: 600px) {
  .fc-toolbar-title {
    font-size: 1rem;
  }
}

/* ---------- Home: upcoming birthdays / today / this week ---------- */
.home-birthdays-card {
  margin-bottom: 16px;
}
.home-birthday-list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-birthday-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(55, 35, 69, 0.12);
}
.home-birthday-item:last-child {
  border-bottom: none;
}
.home-birthday-name {
  font-weight: 600;
}
.home-birthday-date {
  font-weight: 500;
}
.home-birthday-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-left: 8px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .home-birthdays-card {
    margin-bottom: 12px;
  }
  .home-birthday-item {
    font-size: 0.85rem;
  }
}

/* ---------- AI tab ---------- */
.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 12px;
}
.ai-sidebar {
  max-height: 450px;
  overflow-y: auto;
}
.ai-messages {
  max-height: 450px;
  overflow-y: auto;
  padding: 6px 0 4px;
}
.ai-conversation-card {
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: rgba(55, 35, 69, 0.02);
  cursor: pointer;
  border: 1px solid transparent;
}
.ai-conversation-card.active {
  border-color: var(--purple);
}
.ai-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ai-input-row input[type="text"] {
  flex: 1;
}

/* Mobile layout for AI */
@media (max-width: 600px) {
  .ai-layout {
    grid-template-columns: 1fr !important;
  }
  .ai-sidebar {
    max-height: unset;
    margin-bottom: 20px;
  }
  .ai-messages {
    max-height: 350px;
  }
  #section-ai {
    padding: 10px;
  }
}

/* ---------- Shop tab ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.shop-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.shop-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-card-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.shop-card-url {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: #6b7280;
  word-break: break-all;
}

.shop-card-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.shop-card-actions button {
  font-size: 0.75rem;
}

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

/* Bottom navigation */
.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding:  10px 16px;
  background: linear-gradient(135deg, #6a4bc3 0%, #1b102b 100%);
  display: flex;
  justify-content: center;
  z-index: 20;
}

/* Bottom nav: 2 rows max, up to 4 per row */
.tab-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 columns = 2 rows for 7 tabs */
  column-gap: 4px;
  row-gap: 4px;
  width: 100%;
  max-width: 900px;
}

/* Slightly tighter tabs so 4 per row fits on phones */
.tab-btn {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 4px 0;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
}

.tab-btn span.icon {
  font-size: 1rem;
}

.tab-btn.active {
  background: #f9fafb;
  color: #111827;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  main {
    padding: 10px 10px 70px;
  }
}



/* ---------- Onboarding / Auth overlay with paw watermark ---------- */

/* Full-screen onboarding overlay */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;

  /* Gradient background */
  background: radial-gradient(circle at top, #6a4bc3 0, #1b102b 55%, #08050d 100%);
}

/* Paw watermark behind the slides */
.onboarding-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("paw-logo-white-bold.svg");
  background-repeat: no-repeat;
  background-position: center 40%;   /* slightly above centre */
  background-size: 320px 320px;      /* fixed size so WebView is happy */
  opacity: 0.18;                     /* subtle, so text is readable */
  pointer-events: none;
}

/* Make sure the slide content is above the watermark */
.onboarding-inner {
  position: relative;
  z-index: 1;
}

.onboarding-slide {
  position: relative;
  z-index: 1; /* keep text above watermark */
}

.onboarding-slide h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.onboarding-slide p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.onboarding-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.onboarding-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-right: 4px;
}

.onboarding-dots span.active {
  background: #ffffff;
}

.onboarding-nav button {
  min-width: 70px;
  font-size: 0.85rem;
  padding: 6px 10px;
}

/* Auth form inside onboarding */
#authForm {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#authForm input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
}

#authForm button[type="submit"],
#authForm #createAccountBtn,
#applyPromoBtn {
  border-radius: 999px;
  border: none;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.promo-block {
  margin-top: 8px;
}

.promo-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.promo-message {
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Slightly tighter padding on very small screens so watermark doesn't feel cramped */
@media (max-width: 480px) {
  .onboarding-inner {
    padding: 20px 16px 14px;
  }
}

/* ---------- Family sharing card ---------- */
.family-card {
  margin: 12px 0 20px;
}

.family-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.family-code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.family-code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-top: 2px;
}

.family-code-placeholder {
  color: #9ca3af;
}

.join-family-form {
  margin-top: 6px;
}

.join-family-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.join-family-row input {
  flex: 1;
}

/* Text-style button (used for "Join a family with a code") */
.btn-text {
  transition: transform 0.12s ease, background 0.12s ease;
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--purple);
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .family-card {
    margin: 8px 0 16px;
  }
}

.text-list {
  margin: 6px 0 4px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #4b5563;
}
.text-list li + li {
  margin-top: 2px;
}





/* Pet-friendly places map */
.places-map-wrapper {
  margin-top: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #a4f3d5, #e4fff1);
  min-height: 260px;
}

.places-map-canvas {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

@media (max-width: 600px) {
  .places-map-canvas {
    height: 260px;
  }
}

/* Pet-friendly places filters */
.places-filter-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.places-filter-pill {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(55, 35, 69, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: #372345;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  transition: background 0.18s ease, box-shadow 0.18s ease,
    transform 0.12s ease;
}

.places-filter-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.places-filter-pill.is-active {
  background: linear-gradient(135deg, #a4f3d5, #e4fff1);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
}


.places-filters {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.places-filter-btn {
  padding: 6px 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 0.9rem;
}

.places-filter-btn:hover {
  background: #f1f1f1;
}

/* Pet-friendly places disclaimer text */
.places-disclaimer {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Pet-friendly places map view selector */
.places-view-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.places-view-label {
  font-size: 0.75rem;
}

.places-view-select {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(55, 35, 69, 0.2);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}
