/* =============================================================
   Pawa Search – Directory CSS v1.1
   Mobile-first, app-like design
   ============================================================= */

:root {
  --pws-primary:     #2563eb;
  --pws-primary-d:   #1d4ed8;
  --pws-secondary:   #f59e0b;
  --pws-success:     #10b981;
  --pws-danger:      #ef4444;
  --pws-dark:        #111827;
  --pws-gray:        #6b7280;
  --pws-gray-light:  #9ca3af;
  --pws-light:       #f9fafb;
  --pws-white:       #ffffff;
  --pws-border:      #e5e7eb;
  --pws-radius:      12px;
  --pws-radius-lg:   20px;
  --pws-shadow:      0 2px 12px rgba(0,0,0,.10);
  --pws-shadow-lg:   0 8px 32px rgba(0,0,0,.18);
  --pws-header-h:    60px;
  --pws-search-h:    120px;
  --pws-bottom-nav:  64px;
  --pws-transition:  .22s ease;
}

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

body.pws-canvas-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--pws-light);
  color: var(--pws-dark);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

/* ============================================================
   APP SHELL
   ============================================================ */
.pws-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */
.pws-header {
  background: var(--pws-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  position: sticky;
  top: 0;
  z-index: 100;
}
.pws-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--pws-header-h);
  padding: 0 20px;
}
.pws-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  text-decoration: none;
  color: #fff;
}
.pws-logo img { height: 34px; border-radius: 6px; }

/* Desktop nav */
.pws-nav { display: flex; gap: 4px; }
.pws-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--pws-transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.pws-nav a:hover, .pws-nav a.active {
  background: rgba(255,255,255,.2);
  color: #fff;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.pws-search-bar {
  background: var(--pws-white);
  border-bottom: 1px solid var(--pws-border);
  padding: 12px 20px 10px;
  position: sticky;
  top: var(--pws-header-h);
  z-index: 90;
}
.pws-search-inner {
  max-width: 1400px;
  margin: 0 auto 10px;
  display: flex;
  gap: 8px;
}
.pws-search-input-wrap {
  flex: 1;
  position: relative;
}
.pws-search-input-wrap .pws-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  color: var(--pws-gray);
}
.pws-search-input-wrap input[type=text] {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--pws-border);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color var(--pws-transition), box-shadow var(--pws-transition);
  background: var(--pws-light);
}
.pws-search-input-wrap input:focus {
  border-color: var(--pws-primary);
  background: var(--pws-white);
  box-shadow: 0 0 0 3px rgba(37,99,235,.13);
}

.pws-btn {
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--pws-transition), transform .1s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pws-btn:active { transform: scale(.97); }
.pws-btn:hover  { opacity: .88; }
.pws-btn-primary { background: var(--pws-primary); color: #fff; }
.pws-btn-geo     { background: var(--pws-success); color: #fff; }
.pws-btn-link    { background: none; border: none; color: var(--pws-gray); font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }

/* Filters row */
.pws-filters {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pws-filters select,
.pws-filters input[type=text] {
  padding: 8px 12px;
  border: 1.5px solid var(--pws-border);
  border-radius: 8px;
  font-size: 13px;
  background: var(--pws-white);
  color: var(--pws-dark);
  outline: none;
  transition: border-color var(--pws-transition);
  min-width: 130px;
}
.pws-filters select:focus,
.pws-filters input:focus { border-color: var(--pws-primary); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.pws-main {
  flex: 1;
  display: flex;
  overflow: hidden;
  max-height: calc(100vh - var(--pws-header-h) - var(--pws-search-h));
}
.pws-results-panel {
  width: 420px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 14px;
  border-right: 1px solid var(--pws-border);
  background: var(--pws-white);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.pws-results-panel::-webkit-scrollbar { width: 4px; }
.pws-results-panel::-webkit-scrollbar-thumb { background: var(--pws-border); border-radius: 2px; }
.pws-map-panel { flex: 1; position: relative; }
#pws-map { width: 100%; height: 100%; min-height: 400px; }

.pws-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--pws-gray);
  padding: 2px 0 4px;
}
.pws-results-count strong { color: var(--pws-dark); }

.pws-geo-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pws-geo-info select {
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 13px;
  background: #fff;
}

/* Loading */
.pws-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 12px;
  color: var(--pws-gray);
}
.pws-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--pws-border);
  border-top-color: var(--pws-primary);
  border-radius: 50%;
  animation: pws-spin .7s linear infinite;
}
@keyframes pws-spin { to { transform: rotate(360deg); } }

/* ============================================================
   ORG CARDS
   ============================================================ */
.pws-org-cards { display: flex; flex-direction: column; gap: 10px; }

.pws-org-card {
  background: var(--pws-white);
  border: 1.5px solid var(--pws-border);
  border-radius: var(--pws-radius);
  padding: 12px;
  cursor: pointer;
  transition: box-shadow var(--pws-transition), transform .15s, border-color var(--pws-transition);
  display: flex;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.pws-org-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background var(--pws-transition);
}
.pws-org-card:hover {
  box-shadow: var(--pws-shadow);
  transform: translateY(-1px);
  border-color: var(--pws-primary);
}
.pws-org-card:hover::before,
.pws-org-card.active::before { background: var(--pws-primary); }
.pws-org-card.active {
  border-color: var(--pws-primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,.18);
}

.pws-card-photo {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--pws-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pws-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.pws-card-photo-placeholder { font-size: 28px; }

.pws-card-body { flex: 1; min-width: 0; }
.pws-card-body h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.pws-type-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--pws-primary);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}
.pws-leader, .pws-location, .pws-phone {
  font-size: 12px;
  color: var(--pws-gray);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}
.pws-distance {
  font-size: 11px;
  background: #d1fae5;
  color: #065f46;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
  margin-top: 4px;
  display: inline-block;
}

/* ============================================================
   LIST PAGE
   ============================================================ */
.pws-list-container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.pws-list-top { margin-bottom: 30px; }
.pws-list-top h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.pws-alpha-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pws-alpha-nav a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pws-primary); color: #fff;
  border-radius: 8px; font-weight: 700; text-decoration: none;
  transition: opacity var(--pws-transition);
}
.pws-alpha-nav a:hover { opacity: .8; }
.pws-alpha-section { margin-bottom: 36px; }
.pws-alpha-title {
  font-size: 22px; font-weight: 800;
  color: var(--pws-primary);
  border-bottom: 2px solid var(--pws-primary);
  padding-bottom: 6px; margin-bottom: 16px;
}
.pws-list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }

/* ============================================================
   ORG DETAIL MODAL
   ============================================================ */
.pws-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  animation: pws-fade-in .18s ease;
}
@keyframes pws-fade-in { from { opacity: 0; } to { opacity: 1; } }

.pws-modal-box {
  background: var(--pws-white);
  border-radius: var(--pws-radius-lg);
  width: 90%;
  max-width: 700px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--pws-shadow-lg);
  position: relative;
  animation: pws-slide-up .22s ease;
}
@keyframes pws-slide-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pws-modal-close-float {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0;
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--pws-transition);
}
.pws-modal-close-float:hover { background: rgba(0,0,0,.7); }

/* Hero */
.pws-detail-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pws-primary) 0%, var(--pws-primary-d) 100%);
  border-radius: var(--pws-radius-lg) var(--pws-radius-lg) 0 0;
}
.pws-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.pws-detail-hero-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
  color: rgba(255,255,255,.4);
}
.pws-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%);
}
.pws-detail-hero-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255,255,255,.95);
  color: var(--pws-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Detail body */
.pws-detail-body { padding: 20px 24px 28px; }
.pws-detail-body h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; line-height: 1.2; }
.pws-detail-type {
  display: inline-block;
  background: #eff6ff;
  color: var(--pws-primary);
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.pws-detail-leader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  background: var(--pws-light);
  border-radius: 10px;
}
.pws-detail-leader-photo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pws-border);
  flex-shrink: 0;
}
.pws-detail-leader-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--pws-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.pws-detail-leader-info strong { display: block; font-size: 15px; font-weight: 700; }
.pws-detail-leader-info span { font-size: 13px; color: var(--pws-gray); }

.pws-detail-section { margin-bottom: 18px; }
.pws-detail-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--pws-gray-light);
  margin-bottom: 10px;
  font-weight: 600;
}
.pws-detail-description {
  font-size: 14px;
  color: #374151;
  line-height: 1.65;
  background: var(--pws-light);
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--pws-primary);
}
.pws-detail-schedule {
  font-size: 13px;
  color: #374151;
  background: #fefce8;
  border: 1px solid #fde68a;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: pre-line;
}

/* CTA buttons */
.pws-contact-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pws-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--pws-transition), transform .1s;
  border: none;
  cursor: pointer;
  flex: 1;
  justify-content: center;
  min-width: 120px;
}
.pws-cta-btn:active { transform: scale(.97); }
.pws-cta-btn:hover  { opacity: .87; }
.pws-btn-call  { background: var(--pws-primary); color: #fff; }
.pws-btn-wa    { background: #25d366; color: #fff; }
.pws-btn-mail  { background: #6b7280; color: #fff; }
.pws-btn-web   { background: #f3f4f6; color: var(--pws-dark); border: 1px solid var(--pws-border); }
.pws-btn-dir   { background: #ff6600; color: #fff; }

/* Social */
.pws-social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pws-social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1.5px solid var(--pws-border);
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  color: var(--pws-dark);
  transition: border-color var(--pws-transition), color var(--pws-transition);
  font-weight: 500;
}
.pws-social-link:hover { border-color: var(--pws-primary); color: var(--pws-primary); }

/* Address */
.pws-detail-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  padding: 10px 0;
}
.pws-detail-address-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* Mini map */
.pws-detail-map {
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--pws-border);
}

/* Gallery */
.pws-gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-top: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pws-gallery-strip::-webkit-scrollbar { display: none; }
.pws-gallery-strip img {
  height: 80px;
  width: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity var(--pws-transition);
}
.pws-gallery-strip img:hover { opacity: .85; }

/* Share / fav bar */
.pws-detail-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--pws-border);
  padding-top: 14px;
  margin-top: 4px;
}
.pws-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1.5px solid var(--pws-border);
  border-radius: 10px;
  background: var(--pws-white);
  cursor: pointer;
  font-size: 11px;
  color: var(--pws-gray);
  font-weight: 600;
  transition: border-color var(--pws-transition), color var(--pws-transition);
}
.pws-action-btn:hover { border-color: var(--pws-primary); color: var(--pws-primary); }
.pws-action-btn.active { border-color: var(--pws-secondary); color: var(--pws-secondary); background: #fef3c7; }
.pws-action-btn span { font-size: 18px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.pws-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--pws-gray);
}
.pws-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.pws-empty h3 { font-size: 17px; font-weight: 700; color: var(--pws-dark); margin-bottom: 6px; }
.pws-empty p { font-size: 14px; }

/* ============================================================
   FAB (Floating Action Button)
   ============================================================ */
.pws-fab {
  display: none;
  position: fixed;
  bottom: calc(var(--pws-bottom-nav) + 16px);
  right: 20px;
  width: 54px;
  height: 54px;
  background: var(--pws-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.pws-fab:hover { transform: scale(1.07); box-shadow: 0 6px 20px rgba(37,99,235,.5); }
.pws-fab:active { transform: scale(.95); }

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.pws-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--pws-bottom-nav);
  background: var(--pws-white);
  border-top: 1px solid var(--pws-border);
  z-index: 150;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.pws-bottom-nav-inner {
  display: flex;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.pws-bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--pws-gray);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  transition: color var(--pws-transition);
  padding: 6px 0;
  position: relative;
}
.pws-bnav-item .pws-bnav-icon { font-size: 20px; }
.pws-bnav-item.active { color: var(--pws-primary); }
.pws-bnav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--pws-primary);
  border-radius: 0 0 3px 3px;
}
.pws-bnav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  background: var(--pws-danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ============================================================
   MOBILE MAP TOGGLE
   ============================================================ */
.pws-map-toggle {
  display: none;
  position: fixed;
  bottom: calc(var(--pws-bottom-nav) + 72px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--pws-dark);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  z-index: 200;
  box-shadow: var(--pws-shadow-lg);
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

/* ============================================================
   TOAST
   ============================================================ */
.pws-toast {
  position: fixed;
  bottom: calc(var(--pws-bottom-nav) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--pws-dark);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9998;
  box-shadow: var(--pws-shadow-lg);
  animation: pws-toast-in .25s ease, pws-toast-out .3s ease 2.2s forwards;
  white-space: nowrap;
}
@keyframes pws-toast-in  { from { opacity: 0; transform: translateX(-50%) translateY(12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes pws-toast-out { from { opacity: 1; } to { opacity: 0; } }

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */
@media (max-width: 768px) {

  :root {
    --pws-header-h:  56px;
    --pws-search-h:  160px;
  }

  /* Hide desktop nav, show bottom nav */
  .pws-nav { display: none; }
  .pws-bottom-nav { display: flex; }
  .pws-fab { display: flex; }
  .pws-map-toggle { display: flex; }

  /* Header */
  .pws-header-inner { padding: 0 14px; }
  .pws-logo { font-size: 17px; }

  /* Search bar */
  .pws-search-bar { padding: 10px 12px 8px; }
  .pws-search-inner { flex-wrap: nowrap; gap: 6px; margin-bottom: 8px; }
  .pws-btn-geo span { display: none; } /* Hide text, keep icon */
  .pws-btn-geo { padding: 11px 14px; }
  .pws-btn-primary { display: none; } /* Hide desktop search btn on mobile (search on type) */
  .pws-filters { gap: 6px; }
  .pws-filters select,
  .pws-filters input[type=text] { min-width: 0; flex: 1; font-size: 12px; padding: 7px 10px; }

  /* Main layout: stack vertically */
  .pws-main {
    flex-direction: column;
    max-height: none;
    overflow: visible;
    padding-bottom: var(--pws-bottom-nav);
  }

  /* Results full-width on mobile */
  .pws-results-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--pws-border);
    max-height: none;
    overflow: visible;
    padding: 10px 12px;
  }

  /* Map hidden by default on mobile, toggled by button */
  .pws-map-panel {
    height: 55vh;
    display: none;
    order: -1;
  }
  .pws-map-panel.pws-map-visible { display: block; }

  /* Cards */
  .pws-org-card { padding: 10px; gap: 10px; border-radius: 10px; }
  .pws-card-photo { width: 60px; height: 60px; border-radius: 8px; }
  .pws-card-body h3 { font-size: 13px; }

  /* List page */
  .pws-list-container { padding: 16px 12px calc(var(--pws-bottom-nav) + 16px); }
  .pws-list-top h1 { font-size: 22px; }
  .pws-list-cards { grid-template-columns: 1fr; }

  /* Modal: slide up from bottom on mobile */
  .pws-modal { align-items: flex-end; padding: 0; }
  .pws-modal-box {
    width: 100%;
    max-width: 100%;
    max-height: 93vh;
    border-radius: var(--pws-radius-lg) var(--pws-radius-lg) 0 0;
    animation: pws-slide-up-mobile .25s cubic-bezier(.22,1,.36,1);
  }
  @keyframes pws-slide-up-mobile {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  /* Drag handle */
  .pws-modal-box::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--pws-border);
    border-radius: 2px;
    margin: 10px auto 0;
    position: sticky;
    top: 10px;
    z-index: 5;
  }
  .pws-detail-hero { height: 180px; border-radius: 0; }
  .pws-detail-body { padding: 14px 16px 24px; }
  .pws-detail-body h2 { font-size: 19px; }
  .pws-cta-btn { font-size: 13px; padding: 10px 12px; min-width: 100px; }
  .pws-contact-row { gap: 6px; }
  .pws-detail-actions { gap: 6px; }
  .pws-action-btn { font-size: 10px; padding: 8px 4px; }
}

@media (max-width: 420px) {
  .pws-cta-btn { min-width: 0; padding: 10px 8px; font-size: 12px; }
}
