/*
 * pawsumes-shelters.css — Shelter directory + org profile styles
 * Pawsumes 毛緣 · FurLifeHub
 *
 * Depends on: pawsumes.css (must load first)
 *
 * Contents:
 *   1.  Page switcher (demo prototype only — remove in production)
 *   2.  Directory hero
 *   3.  Directory filter bar
 *   4.  Directory sidebar
 *   5.  Org cards (full layout)
 *   6.  Onboarding CTA card
 *   7.  Profile hero
 *   8.  Profile stats bar
 *   9.  Profile tabs
 *   10. Profile body sections
 *   11. Pet mini cards
 *   12. Need items
 *   13. Aside / contact card
 *   14. Data sync chip
 */


/* ══════════════════════════════════════════════════════════
   1. PAGE SWITCHER
   Prototype-only top bar for toggling between pages.
   Remove in production; each page will be its own URL.
══════════════════════════════════════════════════════════ */

.paw-switcher {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 20px;
}

.paw-sw-label {
  color: rgba(255,255,255,0.3);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: 4px;
}

.paw-sw-btn {
  padding: 5px 15px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.18s;
  white-space: nowrap;
}

.paw-sw-btn:hover       { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); }
.paw-sw-btn.active      { background: #fff; color: #111; border-color: #fff; font-weight: 600; }

.paw-page               { display: none; padding-top: 48px; min-height: 100vh; }
.paw-page.active        { display: block; }


/* ══════════════════════════════════════════════════════════
   2. DIRECTORY HERO
══════════════════════════════════════════════════════════ */

.dir-hero {
  background-color: var(--paw-forest);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.dir-hero::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 85% 50%, rgba(168,197,160,0.09) 0%, transparent 55%);
}

/* Large watermark character */
.dir-hero-watermark {
  position: absolute; right: -10px; top: -10px;
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(160px, 18vw, 260px);
  font-weight: 900;
  color: transparent;
  line-height: 1;
  -webkit-text-stroke: 1.5px rgba(168,197,160,0.08);
  pointer-events: none;
  user-select: none;
}

.dir-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paw-mint);
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}

.dir-hero-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--paw-mint); }

.dir-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.dir-hero-title em  { font-style: italic; color: var(--paw-mint); }

.dir-hero-zh {
  font-family: 'Noto Serif TC', serif;
  font-size: 15px;
  color: rgba(168,197,160,0.65);
  letter-spacing: 0.12em;
  font-weight: 300;
  margin-bottom: 28px;
}

.dir-hero-sub { font-size: 13px; color: rgba(255,255,255,0.45); font-weight: 300; line-height: 1.65; }

/* Stats in hero */
.dir-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 30px; font-weight: 700;
  color: #fff; line-height: 1;
}

.dir-stat-label { font-size: 11px; color: rgba(168,197,160,0.7); margin-top: 3px; }


/* ══════════════════════════════════════════════════════════
   3. DIRECTORY FILTER BAR
══════════════════════════════════════════════════════════ */

.dir-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--paw-divider);
  padding: 14px 0;
  /* position: sticky; */
  /* top: 68px; */
  /* z-index: 100; */
}

.dir-search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--paw-cream-dk);
  border: 1px solid var(--paw-divider);
  border-radius: 10px;
  padding: 0 14px;
  height: 42px;
  flex: 1;
}

.dir-search-wrap input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--paw-ink);
  flex: 1;
}

.dir-search-wrap input::placeholder { color: var(--paw-bark-xlt); opacity: 0.8; }

.dir-filter-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--paw-cream-dk);
  border: 1px solid var(--paw-divider);
  color: var(--paw-bark);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.dir-filter-chip:hover   { border-color: rgba(74,55,40,0.22); }
.dir-filter-chip.chip-on { background: var(--paw-forest); border-color: var(--paw-forest); color: #fff; }

.dir-sort-select {
  border: 1px solid var(--paw-divider);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--paw-bark);
  background: var(--paw-cream-dk);
  cursor: pointer;
  outline: none;
}

/* Source legend pills */
.src-legend-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--paw-divider);
  font-size: 11px;
  color: var(--paw-bark);
  background: #fff;
}

.src-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════
   4. DIRECTORY SIDEBAR
══════════════════════════════════════════════════════════ */

.dir-sidebar-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paw-bark-xlt);
  font-weight: 600;
  margin-bottom: 12px;
}

.dir-filter-opt {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px;
  color: var(--paw-bark);
  cursor: pointer;
  margin-bottom: 7px;
}

.dir-filter-opt input { accent-color: var(--paw-forest); width: 15px; height: 15px; cursor: pointer; }
.dir-opt-count        { margin-left: auto; font-size: 11px; color: var(--paw-bark-xlt); }
.dir-sidebar-divider  { height: 1px; background: var(--paw-divider); margin: 18px 0; }

/* Map preview placeholder */
.dir-map-preview {
  height: 120px;
  background: var(--paw-cream-dk);
  border: 1px solid var(--paw-divider);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.dir-map-preview:hover { border-color: var(--paw-sage); }


/* ══════════════════════════════════════════════════════════
   5. ORG CARDS (full layout — directory listing)
══════════════════════════════════════════════════════════ */

.org-card {
  background: #fff;
  border: 1px solid var(--paw-card-bdr);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s;
  margin-bottom: 16px;
  position: relative;
}

.org-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(44,95,45,0.09) !important;
  border-color: rgba(44,95,45,0.15);
}

/* Featured variant */
.org-card-featured {
  border-color: rgba(44,95,45,0.2);
  background: linear-gradient(135deg, #fff 0%, #F5FAF5 100%);
}

.org-card-featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--paw-forest);
  border-radius: 18px 18px 0 0;
}

.org-card-logo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  background: var(--logo-bg, var(--paw-cream-dk));
  min-height: 100px;
}

.org-card-body        { padding: 20px 22px; }
.org-card-type-row    { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.org-card-name        { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--paw-ink); margin-bottom: 2px; line-height: 1.2; }
.org-card-name-en     { font-size: 13px; color: var(--paw-bark-lt); margin-bottom: 8px; }
.org-card-meta        { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.org-card-meta-item   { font-size: 12px; color: var(--paw-bark-lt); display: flex; align-items: center; gap: 5px; }
.org-card-desc        { font-size: 13px; color: var(--paw-bark); line-height: 1.65; font-weight: 300; margin-bottom: 14px; }
.org-card-tags        { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.org-card-tag         { background: var(--paw-cream-dk); color: var(--paw-bark); padding: 3px 10px; border-radius: 100px; font-size: 11px; }
.org-card-tag.tag-green { background: #EDF3ED; color: var(--paw-forest); }
.org-card-footer      { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 14px; border-top: 1px solid var(--paw-divider); }
.org-card-contacts    { display: flex; align-items: center; gap: 12px; }
.org-card-contact-link { font-size: 12px; color: var(--paw-sage); text-decoration: none; display: flex; align-items: center; gap: 4px; transition: color 0.18s; }
.org-card-contact-link:hover { color: var(--paw-forest); }

/* Stat pill inside org card footer */
.org-stat-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--paw-divider);
  background: var(--paw-cream-dk);
  font-size: 12px;
  color: var(--paw-bark);
}

.org-stat-pill-num { font-weight: 700; color: var(--paw-forest); }
.org-stat-pill-warning { font-weight: 700; color: var(--paw-bark-xlt); }
.org-stat-pill-danger { font-weight: 700; color: var(--paw-coral-dk); }


/* ══════════════════════════════════════════════════════════
   6. ONBOARDING CTA CARD
   Appears in sidebar — invites orgs to claim/create profile
══════════════════════════════════════════════════════════ */

.onboard-cta {
  background: var(--paw-forest);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 20px;
}

.onboard-cta-title  { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.onboard-cta-sub    { font-size: 13px; color: var(--paw-mint); opacity: 0.85; line-height: 1.65; margin-bottom: 18px; font-weight: 300; }
.onboard-cta-steps  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.onboard-cta-step   { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.7); }

.onboard-cta-step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--paw-mint);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════
   7. PROFILE HERO
══════════════════════════════════════════════════════════ */

.profile-hero {
  background: var(--paw-forest);
  padding: 52px 0 0;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 50%, rgba(168,197,160,0.08) 0%, transparent 55%);
}

.profile-hero-logo {
  width: 88px; height: 88px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.profile-hero-type {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paw-mint);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}

.profile-hero-type::before { content: ''; width: 14px; height: 1px; background: var(--paw-mint); }

.profile-hero-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.profile-hero-name em { font-style: italic; color: var(--paw-mint); }

.profile-hero-zh {
  font-family: 'Noto Serif TC', serif;
  font-size: 15px;
  color: rgba(168,197,160,0.7);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  font-weight: 300;
}

.profile-hero-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  margin-right: 6px; margin-bottom: 6px;
  display: inline-block;
}

.profile-hero-tag.tag-verified {
  background: rgba(168,197,160,0.2);
  border-color: rgba(168,197,160,0.35);
  color: var(--paw-mint);
}

.profile-hero-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.18s;
  margin-right: 8px; margin-bottom: 8px;
  display: inline-block;
}

.profile-hero-btn:hover         { background: rgba(255,255,255,0.22); }
.profile-hero-btn.btn-adopt     { background: var(--paw-coral); border-color: var(--paw-coral); }
.profile-hero-btn.btn-adopt:hover { background: var(--paw-coral-dk); }


/* ══════════════════════════════════════════════════════════
   8. PROFILE STATS BAR
══════════════════════════════════════════════════════════ */

.profile-stats-bar {
  display: flex;
  background: var(--paw-cream-dk);
  border-bottom: 1px solid var(--paw-divider);
}

.profile-stat {
  flex: 1;
  padding: 18px 24px;
  text-align: center;
  border-right: 1px solid var(--paw-divider);
}

.profile-stat:last-child { border-right: none; }

.profile-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700;
  color: var(--paw-forest);
  line-height: 1;
}

.profile-stat-label { font-size: 11px; color: var(--paw-bark-lt); margin-top: 4px; }


/* ══════════════════════════════════════════════════════════
   9. PROFILE TABS
══════════════════════════════════════════════════════════ */

.profile-tabs { background: #fff; border-bottom: 1px solid var(--paw-divider); }

.profile-tab {
  padding: 16px 24px;
  font-size: 13px;
  color: var(--paw-bark-lt);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: inline-block;
  transition: all 0.18s;
  background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: -1px;
}

.profile-tab:hover  { color: var(--paw-ink); }
.profile-tab.active { color: var(--paw-forest); border-bottom-color: var(--paw-forest); font-weight: 500; }


/* ══════════════════════════════════════════════════════════
   10. PROFILE BODY SECTIONS
══════════════════════════════════════════════════════════ */

.profile-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700;
  color: var(--paw-ink);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--paw-divider);
}

.profile-desc         { font-size: 15px; line-height: 1.8; color: var(--paw-bark); font-weight: 300; }
.profile-desc strong  { font-weight: 500; color: var(--paw-ink); }


/* ══════════════════════════════════════════════════════════
   11. PET MINI CARDS (inside org profile)
══════════════════════════════════════════════════════════ */

.pet-mini {
  background: #fff;
  border: 1px solid var(--paw-card-bdr);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.pet-mini:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(44,95,45,0.09) !important; }

.pet-mini-photo {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  background: var(--photo-bg, var(--paw-cream-dk));
  position: relative;
}

.pet-mini-urgent {
  position: absolute; top: 8px; left: 8px;
  background: rgba(196,58,42,0.9);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pet-mini-body  { padding: 10px 12px; }
.pet-mini-name  { font-size: 14px; font-weight: 600; color: var(--paw-ink); margin-bottom: 2px; }
.pet-mini-sub   { font-size: 11px; color: var(--paw-bark-lt); }


/* ══════════════════════════════════════════════════════════
   12. NEED ITEMS (volunteer / donation requests)
══════════════════════════════════════════════════════════ */

.need-item {
  background: #fff;
  border: 1px solid var(--paw-card-bdr);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.need-item:hover {
  border-color: rgba(44,95,45,0.2);
  box-shadow: 0 4px 14px rgba(44,95,45,0.06) !important;
}

.need-icon  { font-size: 22px; flex-shrink: 0; }
.need-title { font-size: 14px; font-weight: 500; color: var(--paw-ink); margin-bottom: 2px; }
.need-sub   { font-size: 12px; color: var(--paw-bark-lt); }

.btn-need {
  margin-left: auto;
  background: var(--paw-forest);
  color: #fff !important;
  border: none;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}




/* ══════════════════════════════════════════════════════════
   14. DATA SYNC CHIP
   Shows APIS live-sync status on profile page
══════════════════════════════════════════════════════════ */

.data-sync-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--paw-cream-dk);
  border-radius: 10px;
  font-size: 12px;
  color: var(--paw-forest);
  font-weight: 500;
}

.data-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2C7A2C;
  flex-shrink: 0;
  animation: paw-pulse 2s infinite;
}
