/* ============================================================================
   Evotic — Directory pages (/jobs /news /ads /pharma /lost) · Phase 9 v2
   One shared CSS for all 5 directory types (window.DIRECTORY_TYPE switch).
   ============================================================================ */

.dir-body {
  padding: 0;
  background: var(--bg);
  padding-bottom: calc(100px + var(--safe-bottom));
  min-height: 100dvh;
  background-image:
    radial-gradient(circle at -10% 100%, rgba(255, 167, 38, 0.04), transparent 50%);
  background-attachment: fixed;
}

/* Header (shared) — re-declared for isolation */
.app-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-top);
  box-shadow: var(--shadow-header);
}
.app-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-4);
}
.app-header-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.app-header-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-header-sub {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hdr-back {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  flex-shrink: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.hdr-back:hover { background: var(--skeleton); }
.hdr-back:active { transform: scale(0.92); }

/* Pharma "De garde" toggle (header right) */
.dir-toggle-btn {
  width: auto;
  margin: 0;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--r-pill);
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.dir-toggle-btn:hover:not(.active) {
  background: var(--primary);
  color: #fff;
}
.dir-toggle-btn:active { transform: scale(0.94); }
.dir-toggle-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red-dark);
  box-shadow: 0 2px 8px rgba(239, 83, 80, 0.32);
}

/* Section title + err shared utilities (mirror) */
.section-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--sp-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-title i { color: var(--primary); }
.err {
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  min-height: 18px;
}
.empty-state {
  text-align: center;
  padding: var(--sp-7) var(--sp-4);
  color: var(--text-muted);
  font-weight: 600;
  background: var(--card-bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
}
.empty-state p { margin: 6px 0; font-size: 14px; }
.empty-state .hint { font-size: 12px; color: var(--text-faint); }
.empty-icon {
  font-size: 36px;
  color: var(--text-faint);
  display: block;
  margin: 0 auto var(--sp-3);
  opacity: 0.7;
}

/* ============================================================================
   Directory main shell + items
   ============================================================================ */
.dir-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.dir-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.dir-item {
  background: var(--card-bg);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  border: 1px solid transparent;
  transition: border-color var(--t-fast), box-shadow var(--t-base), transform var(--t-fast);
  animation: dirItemIn 0.3s ease-out;
}
.dir-item:hover {
  border-color: var(--primary-bg);
  box-shadow: var(--shadow-card-hover);
}
@keyframes dirItemIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dir-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
}
.dir-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.dir-head small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dir-head small strong {
  color: var(--primary);
  font-weight: 800;
}

/* Body text (scoped to .dir-item to avoid clashing with the body-class .dir-body) */
.dir-item .dir-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
  white-space: pre-wrap;
  background: transparent;
  padding: 0;
  padding-bottom: 0;
  font-weight: 600;
  word-wrap: break-word;
}

.dir-media {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
  background: var(--skeleton);
}

.dir-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dir-extra-kv {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-soft);
  color: var(--text-soft);
  border-radius: var(--r-pill);
  font-weight: 700;
  border: 1px solid var(--border);
  letter-spacing: 0.01em;
}
.dir-extra-kv strong {
  color: var(--text-muted);
  margin-right: 4px;
  font-weight: 800;
}

/* Pharma "de garde" badge — pulse rouge dramatique */
.badge-garde {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.03em;
  animation: gardePulse 1.8s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(239, 83, 80, 0.3);
}
@keyframes gardePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 83, 80, 0.55),
                0 2px 8px rgba(239, 83, 80, 0.3);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 83, 80, 0),
                0 2px 8px rgba(239, 83, 80, 0.3);
  }
}

/* Contact button (gradient orange, prominent) */
.dir-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--primary-grad);
  color: #fff;
  border-radius: var(--r-lg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow-primary);
  transition: transform var(--t-fast), box-shadow var(--t-base);
  align-self: flex-start;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}
.dir-contact:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-lg);
}
.dir-contact:active { transform: scale(0.96); }

/* Soft-delete (auteur uniquement) */
.dir-delete-btn {
  width: auto;
  align-self: flex-start;
  padding: 7px 14px;
  margin: 0;
  background: var(--card-bg);
  color: var(--red-dark);
  border: 1.5px solid var(--red-bg);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.dir-delete-btn:hover { background: var(--red-bg); border-color: var(--red); }
.dir-delete-btn:active { transform: scale(0.94); }
.dir-delete-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================================
   Pharma — Two-section layout (Phase 10 polish v2)
   Top: horizontal "De garde" cards (orange theme)
   Below: vertical "À proximité" list (compact cards)
   ============================================================================ */

.pharma-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* ─────────────────────────────────────────────────────────────────
   Phase 11.8 — Cache status bar (offline-first pharma)
   ───────────────────────────────────────────────────────────────── */
.pharma-status-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
  padding: 0;
}
.pharma-cache-status {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  transition: background var(--t-fast), color var(--t-fast);
  min-width: 0;
}
.pharma-cache-status i { font-size: 11px; flex-shrink: 0; }
.pharma-cache-status span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pharma-cache-status[data-state="fresh"] {
  background: #E8F5E9;
  color: #2E7D32;
}
.pharma-cache-status[data-state="stale"] {
  background: #FFF3E0;
  color: #E65100;
}
.pharma-cache-status[data-state="offline"] {
  background: #FFEBEE;
  color: #C62828;
}
.pharma-refresh-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.pharma-refresh-btn:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary);
}
.pharma-refresh-btn:active { transform: scale(0.92); }
.pharma-refresh-btn.spinning i {
  animation: pharmaSpin 1s linear infinite;
}
@keyframes pharmaSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.pharma-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
  padding: 0 var(--sp-1);
}
.pharma-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pharma-section-title i { color: var(--primary); font-size: 11px; }
.pharma-garde-section .pharma-section-title { color: var(--primary-dark); }
.pharma-garde-section .pharma-section-title i { color: var(--primary); }
.pharma-section-meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Live "de garde" dot in section title */
.pharma-garde-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 2px;
  animation: pharmaGardeDotPulse 1.4s ease-in-out infinite;
}
@keyframes pharmaGardeDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 83, 80, 0.55); opacity: 1; }
  50%      { box-shadow: 0 0 0 6px rgba(239, 83, 80, 0); opacity: 0.7; }
}

/* ─────────────────────────────────────────────────────────────────
   Horizontal scroll list — "De garde"
   ───────────────────────────────────────────────────────────────── */
.pharma-garde-list {
  list-style: none;
  padding: 4px 4px 8px;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: var(--sp-3);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
}
.pharma-garde-list::-webkit-scrollbar { display: none; }

.pharma-garde-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  padding: var(--sp-4);
  border-radius: var(--r-xl);
  background: var(--primary-grad);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  box-shadow: var(--shadow-primary);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: pharmaGardeIn 0.32s ease-out;
}
.pharma-garde-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.pharma-garde-card > * { position: relative; z-index: 1; }
@keyframes pharmaGardeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pharma-garde-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pharma-garde-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pharmaGardeWhitePulse 1.4s ease-in-out infinite;
}
@keyframes pharmaGardeWhitePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}
.pharma-garde-dist {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
}

.pharma-garde-name {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pharma-garde-loc {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.4;
}
.pharma-garde-loc i { font-size: 9px; margin-top: 3px; opacity: 0.85; flex-shrink: 0; }

.pharma-garde-phones {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}
.pharma-garde-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-dark);
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform var(--t-fast), background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.pharma-garde-phone:hover { background: var(--card-bg); transform: translateY(-1px); }
.pharma-garde-phone:active { transform: scale(0.96); }
.pharma-garde-phone i { font-size: 10px; opacity: 0.78; }

/* ─────────────────────────────────────────────────────────────────
   Vertical "À proximité" list — compact cards (existing pattern)
   ───────────────────────────────────────────────────────────────── */
.pharma-near-list {
  margin: 0;
}

/* ============================================================================
   Compact unified card (nearby section — Phase 10 polish v1 preserved)
   ============================================================================ */

.pharma-card-compact {
  padding: var(--sp-3) var(--sp-4);
  gap: var(--sp-2);
  border-radius: var(--r-lg);
  position: relative;
}
/* Layout 2 colonnes : info à gauche (flex:1), itin button à droite (action centrale) */
.pharma-card-row {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
}
.pharma-card-row .pharma-main {
  flex: 1 1 auto;
  min-width: 0;          /* anti-overflow flexbox */
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.pharma-itin-side {
  flex: 0 0 auto;
  align-self: stretch;
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  background: linear-gradient(135deg, #6750A4, #7F67BE);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(103, 80, 164, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-weight: 800;
  font-size: 9px;
  text-align: center;
}
.pharma-itin-side i {
  font-size: 16px;
  margin-bottom: 1px;
}
.pharma-itin-side-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.pharma-itin-side:active { transform: scale(0.97); }
.pharma-itin-side:hover {
  box-shadow: 0 6px 14px rgba(103, 80, 164, 0.32);
  transform: translateY(-1px);
}
@media (max-width: 360px) {
  .pharma-itin-side { width: 50px; padding: 5px 3px; }
  .pharma-itin-side i { font-size: 15px; }
  .pharma-itin-side-label { font-size: 8px; }
}

.pharma-head {
  margin: 0;
}
.pharma-name {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.01em;
  padding-right: 28px; /* leave room for delete-btn if present */
}

.pharma-loc {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.4;
}
.pharma-loc i {
  color: var(--text-faint);
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}

.pharma-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.pharma-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.pharma-meta-pill i { font-size: 9px; }
.pharma-dist {
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 1px solid rgba(103, 80, 164, 0.18);
}
.pharma-hours {
  background: var(--green-bg);
  color: var(--green-dark);
  border: 1px solid rgba(76, 175, 80, 0.18);
}

.pharma-media {
  max-height: 200px;
  border-radius: var(--r-md);
  margin: 0;
}

.pharma-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pharma-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  background: var(--primary-grad);
  color: #fff;
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: var(--shadow-primary-sm);
  transition: transform var(--t-fast), box-shadow var(--t-base);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
.pharma-phone:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}
.pharma-phone:active { transform: scale(0.96); }
.pharma-phone i { font-size: 10px; opacity: 0.85; }

/* Inline delete (top-right) for user posts only */
.pharma-del {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--red);
  border: 1px solid var(--red-bg);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.pharma-del:hover { background: var(--red-bg); }
.pharma-del:active { transform: scale(0.92); }

/* ============================================================================
   Drawer reuse — head row + close X + sheet form (also shared by map/stories)
   ============================================================================ */
.drawer-head-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
}
.drawer-head-row .drawer-title { margin: 0; flex: 1; }

.drawer-x {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--skeleton);
  color: var(--text-soft);
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.drawer-x:hover { background: var(--skeleton-strong); }
.drawer-x:active { background: var(--red-bg); color: var(--red); transform: scale(0.92); }

/* Sheet form (post-sheet) — uses auth-label/auth-field structure for parity */
.sheet-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.sheet-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.sheet-field .auth-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sheet-field .auth-label i {
  color: var(--primary);
  font-size: 11px;
  width: 14px;
  text-align: center;
}
.sheet-field textarea,
.sheet-field input[type="text"],
.sheet-field input[type="file"] {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--card-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  resize: vertical;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.sheet-field input::placeholder,
.sheet-field textarea::placeholder { color: var(--text-faint); font-weight: 500; }
.sheet-field textarea:focus,
.sheet-field input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--primary-bg-soft);
  box-shadow: 0 0 0 3px rgba(103, 80, 164, 0.10);
}

.sheet-form .btn { margin-top: var(--sp-2); width: 100%; }

.sheet-form .hint {
  margin: 0;
  padding: 9px 12px;
  background: var(--primary-bg);
  border-radius: var(--r-md);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.sheet-form .hint i { color: var(--primary); flex-shrink: 0; }

/* ============================================================================
   Page-level FAB (post-btn for directory/map/stories) — bottom-center floating
   ============================================================================ */
.page-fab {
  position: fixed;
  left: 50%;
  bottom: max(var(--sp-5), calc(var(--safe-bottom) + var(--sp-4)));
  transform: translateX(-50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: var(--primary-grad);
  color: #fff;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-primary-lg);
  z-index: 100;
  padding: 0;
  margin: 0;
  transition: transform var(--t-spring), box-shadow var(--t-base);
  -webkit-tap-highlight-color: transparent;
}
.page-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  pointer-events: none;
}
.page-fab:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(103, 80, 164, 0.45);
}
.page-fab:active { transform: translateX(-50%) scale(0.94); }
