:root {
  --cream-bg: #F5F0E7;
  --cream-panel: #FCF9F3;
  --cream-card: #F2EADD;
  --cream-light: #EFE5D5;
  --brown: #9B6E4B;
  --brown-deep: #43301F;
  --brown-mid: #B38B6A74;
  --brown-soft: #A98767;
  --brown-line: #E4D6C2;
  --brown-text: #5E4633;
  --shadow: 0 4px 18px rgba(67, 48, 31, 0.10);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--cream-bg);
  color: var(--brown-deep);
  font-family: 'Lora', Georgia, serif;
}

h1, h2, h3, .brand-text h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(16px, 4vw, 48px) 14px;
  background: var(--cream-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.account-btn,
.get-listed-btn {
  font-family: 'Lora', serif;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--brown);
  background: var(--brown);
  color: var(--cream-light);
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.account-btn:hover,
.get-listed-btn:hover { opacity: 0.88; }

.account-btn.outline {
  background: transparent;
  color: var(--brown);
}

.account-avatar-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Lora', serif;
  font-size: 14px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--brown-line);
  background: var(--cream-panel);
  color: var(--brown-deep);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.account-avatar-btn .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px rgba(67, 48, 31,0.15));
}

.brand-text h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
  letter-spacing: 0.5px;
}

.tagline {
  margin: 4px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--brown-soft);
  letter-spacing: 0.3px;
}

/* ---------- Search + Filters ---------- */
.search-bar-wrap {
  padding: 0 clamp(16px, 4vw, 48px) 18px;
  background: var(--cream-bg);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.search-bar {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream-panel);
  border: 1px solid var(--brown-line);
  border-radius: 999px;
  padding: 11px 20px;
  box-shadow: var(--shadow);
}

.search-icon { color: var(--brown-soft); flex-shrink: 0; }

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Lora', serif;
  font-size: 15px;
  color: var(--brown-deep);
  width: 100%;
}

.search-bar input::placeholder { color: #C4A48A; }

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  font-family: 'Lora', serif;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--brown-line);
  background: var(--cream-panel);
  color: var(--brown);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.filter-tab:hover { box-shadow: var(--shadow); }

.filter-tab.active {
  background: var(--brown);
  color: var(--cream-light);
  border-color: var(--brown);
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--cream-panel);
  border: 1px solid var(--brown-line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lora', serif;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--brown-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.view-tab.active {
  background: var(--brown);
  color: var(--cream-light);
}

/* ---------- Refine bar ---------- */
.refine-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0 clamp(16px, 4vw, 48px) 18px;
  background: var(--cream-bg);
}

.refine-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 195px;
  min-height: 40px;
  background: var(--cream-panel);
  border: 1px solid var(--brown-line);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: var(--shadow);
  color: var(--brown-soft);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.refine-pill:hover,
.refine-pill:focus-within {
  border-color: var(--brown-soft);
}

.refine-icon { flex-shrink: 0; pointer-events: none; }

.refine-pill select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--brown-deep);
  cursor: pointer;
  padding: 0 36px 0 40px;
}

.refine-chevron { flex-shrink: 0; margin-left: auto; color: var(--brown-soft); pointer-events: none; }

.refine-status {
  font-size: 12.5px;
  font-style: italic;
  color: var(--brown-soft);
}

.discount-info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lora', serif;
  font-size: 12.5px;
  color: var(--brown-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.discount-info-link:hover { color: var(--brown); }

/* ---------- Main layout ---------- */
.main-layout {
  display: flex;
  height: calc(100vh - 150px);
  min-height: 480px;
  padding: 0 clamp(16px, 4vw, 48px) 20px;
  gap: 18px;
}

.results-panel {
  flex: 0 0 400px;
  max-width: 42%;
  display: flex;
  flex-direction: column;
  background: var(--cream-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brown-line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.results-count {
  padding: 16px 20px 10px;
  font-size: 13px;
  color: var(--brown-soft);
  border-bottom: 1px solid var(--brown-line);
  font-style: italic;
}

.results-list {
  overflow-y: auto;
  padding: 10px;
  flex: 1;
}

/* ---------- Browse (masonry grid) ---------- */
.browse-panel {
  padding: 0 clamp(16px, 4vw, 48px) 20px;
}

.browse-panel .results-count {
  padding: 0 0 14px;
  border-bottom: none;
}

.browse-grid {
  column-count: 4;
  column-gap: 16px;
}

@media (max-width: 1200px) { .browse-grid { column-count: 3; } }
@media (max-width: 860px) { .browse-grid { column-count: 2; } }
@media (max-width: 540px) { .browse-grid { column-count: 2; column-gap: 10px; } }

.browse-card {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-panel);
  border: 1px solid var(--brown-line);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.browse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(67, 48, 31, 0.18);
}

.browse-card-photo {
  position: relative;
  width: 100%;
  display: block;
}

.browse-card-photo img {
  width: 100%;
  display: block;
}

.browse-card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 238, 227, 0.9);
  color: var(--brown-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.browse-card-fav svg { width: 15px; height: 15px; }
.browse-card-fav svg path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.browse-card-fav.saved { color: var(--brown); }
.browse-card-fav.saved svg path { fill: var(--brown); stroke: var(--brown); }

.browse-card-body {
  padding: 12px 14px 14px;
}

.browse-card-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--brown-deep);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.browse-card-body .denom-mark { flex-shrink: 0; }

.browse-card-meta {
  font-size: 12px;
  color: var(--brown-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.listing-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  border: 1px solid transparent;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--brown-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

.fav-btn:hover { background: var(--cream-card); }
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn svg path { fill: none; stroke: currentColor; stroke-width: 1.6; transition: fill 0.15s, stroke 0.15s; }
.fav-btn.saved { color: var(--brown); }
.fav-btn.saved svg path { fill: var(--brown); stroke: var(--brown); }

.profile-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lora', serif;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--brown-line);
  background: var(--cream-panel);
  color: var(--brown);
  cursor: pointer;
  margin-bottom: 18px;
}
.profile-fav-btn svg { width: 15px; height: 15px; }
.profile-fav-btn svg path { fill: none; stroke: currentColor; stroke-width: 1.6; }
.profile-fav-btn.saved { background: var(--brown); color: var(--cream-light); border-color: var(--brown); }
.profile-fav-btn.saved svg path { fill: var(--cream-light); stroke: var(--cream-light); }

.listing-card:hover {
  background: var(--cream-card);
  border-color: var(--brown-line);
}

.listing-card.selected {
  background: var(--cream-card);
  border-color: var(--brown-soft);
}

.avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 16px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body { min-width: 0; padding-right: 26px; }

.card-name-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
}

.card-name-row h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--brown-deep);
  line-height: 1.25;
}

.card-meta {
  font-size: 12.5px;
  color: var(--brown-soft);
  margin: 3px 0 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--brown-line);
  color: var(--brown);
  background: var(--cream-light);
  letter-spacing: 0.2px;
}

.badge.online { color: #6B7F5E; border-color: #C9D6BC; background: #EEF3E8; }
.badge.discount { color: #8A6A1A; border-color: #E3CD8F; background: #FBF1D6; }

.denom-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 11.5px;
  font-style: italic;
  color: var(--brown-soft);
  white-space: nowrap;
}
.denom-mark svg { width: 12px; height: 12px; color: var(--brown); flex-shrink: 0; }

.profile-content h2 { display: inline; }
.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 4px;
  min-width: 0;
}

.profile-name-row h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-name-row .denom-mark { font-size: 13px; }
.profile-name-row .denom-mark svg { width: 14px; height: 14px; }

.card-snippet {
  font-size: 13px;
  color: var(--brown-text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--brown-soft);
  font-style: italic;
}

.empty-state .get-listed-cta {
  display: inline-block;
  margin-top: 14px;
  font-style: normal;
  font-size: 13.5px;
  color: var(--brown);
  border: 1px solid var(--brown);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  background: var(--cream-panel);
}
.empty-state .get-listed-cta:hover { background: var(--cream-card); }

.search-hint {
  display: none;
  margin: 10px 14px 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream-card);
  border: 1px solid var(--brown-line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--brown-deep);
}
.search-hint.visible { display: block; }

/* ---------- Map ---------- */
.map-panel {
  position: relative;
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--brown-line);
  box-shadow: var(--shadow);
}

.map-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--brown-line);
  background: var(--cream-panel);
  color: var(--brown-soft);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.map-control-btn:hover { color: var(--brown); }
.map-control-btn svg { width: 19px; height: 19px; }
.map-control-btn svg path { fill: none; stroke: currentColor; stroke-width: 1.8; }

.map-control-btn.active {
  background: var(--brown);
  color: var(--cream-light);
  border-color: var(--brown);
}
.map-control-btn.active svg path { fill: var(--cream-light); stroke: var(--cream-light); }

.you-are-here-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3B82F6;
  border: 3px solid var(--cream-panel);
  box-shadow: 0 0 0 2px #3B82F6, 0 2px 6px rgba(0,0,0,0.3);
}

#map { width: 100%; height: 100%; background: var(--cream-card); }

.pin-icon {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: var(--brown);
  transform: rotate(-45deg);
  border: 2px solid var(--cream-panel);
  box-shadow: 0 2px 6px rgba(67, 48, 31,0.35);
  display: flex; align-items: center; justify-content: center;
}
.pin-icon span {
  transform: rotate(45deg);
  color: var(--cream-light);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 12px;
}
.pin-icon.product { background: #7A6A3F; }
.pin-icon.organization { background: #B08D45; }

.leaflet-popup-content-wrapper {
  background: var(--cream-panel);
  border-radius: var(--radius-sm);
  font-family: 'Lora', serif;
  color: var(--brown-deep);
}
.leaflet-popup-tip { background: var(--cream-panel); }
.map-popup strong { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--brown); }
.map-popup .popup-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--brown);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Profile overlay ---------- */
.profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(67, 48, 31, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.profile-overlay.open { display: flex; }

.profile-card {
  position: relative;
  background: var(--cream-panel);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 34px 30px 30px;
  box-shadow: 0 20px 50px rgba(67, 48, 31,0.35);
  border: 1px solid var(--brown-line);
}

.profile-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(251, 238, 227, 0.9);
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--brown-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-close:hover { color: var(--brown); }

.profile-gallery {
  margin: -34px -30px 22px;
  padding: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.profile-gallery img {
  flex: 0 0 auto;
  width: 270px;
  height: 210px;
  object-fit: cover;
  scroll-snap-align: start;
}

.profile-gallery img:first-child { border-top-left-radius: var(--radius-lg); }
.profile-gallery img:last-child { border-top-right-radius: var(--radius-lg); }

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 16px;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--brown-text);
  font-style: italic;
  margin: 0 0 16px;
}

.profile-content h2 {
  font-size: 26px;
  color: var(--brown-deep);
  margin-bottom: 4px;
}

.profile-industry {
  font-size: 14px;
  color: var(--brown-soft);
  font-style: italic;
  margin-bottom: 14px;
}

.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.profile-bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--brown-text);
  margin-bottom: 16px;
}

.profile-story {
  background: var(--cream-card);
  border-left: 3px solid var(--brown);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.profile-story h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
  margin: 0 0 6px;
}

.profile-story p {
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
  color: var(--brown-text);
  margin: 0;
}

.profile-divider {
  border-top: 1px solid var(--brown-line);
  margin: 0 0 18px;
}

.profile-detail-row {
  display: flex;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--brown-deep);
}

.profile-detail-row .label {
  color: var(--brown-soft);
  min-width: 78px;
  flex-shrink: 0;
}

.profile-detail-row a { color: var(--brown); }

/* ---------- Sign-in / account panels ---------- */
.signin-card h2 {
  font-size: 24px;
  color: var(--brown-deep);
  margin-bottom: 8px;
}

.signin-sub {
  font-size: 13.5px;
  color: var(--brown-soft);
  line-height: 1.5;
  margin: 0 0 22px;
}

.photo-field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.photo-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream-card);
  border: 1px solid var(--brown-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-style: italic;
  color: var(--brown-soft);
  overflow: hidden;
  flex-shrink: 0;
}

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

.photo-field-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.photo-upload-btn {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--brown);
  color: var(--brown);
  background: var(--cream-panel);
  cursor: pointer;
  text-align: center;
}
.photo-upload-btn:hover { background: var(--cream-card); }

.photo-remove-btn {
  background: none;
  border: none;
  color: var(--brown-soft);
  font-family: 'Lora', serif;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.form-field {
  display: block;
  margin-bottom: 16px;
}

.form-field span {
  display: block;
  font-size: 12.5px;
  color: var(--brown-soft);
  font-style: italic;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: 'Lora', serif;
  font-size: 15px;
  color: var(--brown-deep);
  background: var(--cream-card);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 1.5px solid var(--brown-soft); }

.form-field-row {
  display: flex;
  gap: 12px;
}
.form-field-row .form-field { flex: 1; }
.form-field-row .form-field span {
  line-height: 1.3;
  min-height: 33px;
}

.get-listed-success {
  text-align: center;
  padding: 20px 0 10px;
}
.get-listed-success h2 { margin-bottom: 10px; }
.get-listed-success p { color: var(--brown-soft); font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }
.get-listed-success p strong { color: var(--brown-deep); }

.status-badge {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #8A6A1A;
  border-color: #E3CD8F;
  background: #FBF1D6;
}

.get-listed-next {
  text-align: left;
  background: var(--cream-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.gl-next-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--brown-deep);
}
.gl-next-row + .gl-next-row { margin-top: 12px; }

.gl-next-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream-light);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.get-listed-note {
  font-size: 12px;
  font-style: italic;
  color: var(--brown-soft);
  margin-bottom: 20px;
}

.signin-submit {
  width: 100%;
  margin-top: 6px;
  padding: 12px 22px;
}

.account-name { font-size: 24px; color: var(--brown-deep); margin-bottom: 4px; }
.account-jurisdiction { font-size: 13.5px; color: var(--brown-soft); font-style: italic; margin-bottom: 16px; }

.account-contact-block {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--brown-line);
}

.account-edit-btn {
  width: 100%;
  margin-bottom: 20px;
  padding: 10px 22px;
}

.account-favorites-heading {
  font-size: 13px;
  color: var(--brown-soft);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-top: 1px solid var(--brown-line);
  padding-top: 18px;
  margin-bottom: 12px;
}

.account-signout {
  margin-top: 22px;
  background: none;
  border: none;
  color: var(--brown-soft);
  font-family: 'Lora', serif;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--brown-line);
  padding: 28px clamp(16px, 4vw, 48px) 24px;
  background: var(--cream-bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand-text { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--brown); font-weight: 700; }

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13.5px;
  color: var(--brown-soft);
  text-decoration: none;
}
.footer-links a:hover { color: var(--brown); text-decoration: underline; }

.footer-copyright {
  max-width: 1100px;
  margin: 18px auto 0;
  font-size: 12px;
  color: #C4A48A;
  text-align: center;
}

/* ---------- Secondary page layout (about / contact / privacy) ---------- */
.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 48px);
  background: var(--cream-bg);
}
.page-nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.page-nav .brand-mark { width: 40px; height: 40px; }
.page-nav .brand-name { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--brown); font-weight: 700; }
.page-nav-links { display: flex; gap: 20px; }
.page-nav-links a {
  font-size: 14px;
  color: var(--brown-soft);
  text-decoration: none;
}
.page-nav-links a:hover, .page-nav-links a.current { color: var(--brown); text-decoration: underline; }

.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 48px) 80px;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  color: var(--brown-deep);
  margin-bottom: 10px;
}
.page-hero .page-lede {
  font-size: 17px;
  color: var(--brown-soft);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}

.page-section {
  margin-top: 40px;
}
.page-section h2 {
  font-size: 24px;
  color: var(--brown);
  margin-bottom: 12px;
}
.page-section p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--brown-text);
  margin-bottom: 14px;
}
.page-section ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.page-section li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--brown-text);
  margin-bottom: 6px;
}

.page-cta {
  margin-top: 40px;
  padding: 26px;
  background: var(--cream-card);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.page-cta p { margin-bottom: 16px; color: var(--brown-deep); }
.page-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.contact-form { margin-top: 30px; }
.contact-success {
  margin-top: 60px;
  text-align: center;
}
.contact-success h2 { font-size: 26px; color: var(--brown-deep); margin-bottom: 10px; }
.contact-success p { color: var(--brown-soft); font-size: 15px; }

/* ---------- Admin dashboard ---------- */
.admin-page { max-width: 920px; }

.admin-nav-label {
  font-size: 13px;
  font-style: italic;
  color: var(--brown-soft);
  margin-right: 8px;
}

.admin-gate {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}
.admin-gate[hidden] { display: none; }

.admin-gate-card {
  max-width: 420px;
  width: 100%;
  background: var(--cream-panel);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  text-align: center;
}
.admin-gate-card h1 { font-size: 28px; color: var(--brown-deep); margin-bottom: 10px; }
.admin-gate-card .page-lede { font-size: 15px; margin-bottom: 14px; }
.admin-gate-card .form-field { text-align: left; margin-top: 18px; }

.admin-gate-note {
  font-size: 12.5px;
  color: var(--brown-soft);
  line-height: 1.5;
  background: var(--cream-card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.admin-gate-error {
  color: #9A4B3F;
  font-size: 13px;
  margin-top: 10px;
}

.admin-gate-card .signin-submit { margin-top: 18px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin: 30px 0 44px;
}

.admin-stat {
  background: var(--cream-panel);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px 14px;
  text-align: center;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.admin-stat:hover { transform: translateY(-2px); border-color: var(--brown); box-shadow: 0 8px 20px rgba(67, 48, 31,.16); }
.admin-stat:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.admin-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
}
.admin-stat-label {
  font-size: 12px;
  color: var(--brown-soft);
  margin-top: 6px;
}

.admin-section { margin-top: 48px; }

.admin-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.admin-section-head h2 { font-size: 22px; color: var(--brown); margin: 0; }
.admin-section-count {
  font-size: 13px;
  color: var(--brown-soft);
  font-style: italic;
}

.admin-section-sub {
  font-size: 13.5px;
  color: var(--brown-soft);
  margin-bottom: 18px;
}

.admin-add-form {
  background: var(--cream-card);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-md);
  padding: 20px 20px 6px;
  margin-bottom: 22px;
}
.admin-add-form .account-btn { margin-bottom: 18px; }

.industry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.industry-pill {
  font-family: 'Lora', serif;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--brown-line);
  background: var(--cream-panel);
  color: var(--brown);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.industry-pill span {
  font-size: 11px;
  color: var(--brown-soft);
  background: var(--cream-card);
  border-radius: 999px;
  padding: 1px 7px;
}
.industry-pill.active {
  background: var(--brown);
  color: var(--cream-light);
  border-color: var(--brown);
}
.industry-pill.active span {
  background: rgba(251, 238, 227, 0.25);
  color: var(--cream-light);
}

.prospect-group { margin-bottom: 30px; }
.prospect-group-head {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.prospect-group-head span {
  font-family: 'Lora', serif;
  font-size: 12.5px;
  font-style: italic;
  color: var(--brown-soft);
}

.prospect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.prospect-card {
  background: var(--cream-panel);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.prospect-card:hover {
  box-shadow: 0 8px 20px rgba(67, 48, 31, 0.16);
  border-color: var(--brown-soft);
}
.prospect-card select,
.prospect-card button {
  cursor: pointer;
}

.prospect-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.prospect-card-title strong { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: var(--brown-deep); }

.prospect-card-notes {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prospect-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.prospect-card-actions .admin-status-select { flex: 1; min-width: 0; }

.admin-publish-btn {
  margin-top: 14px;
  width: 100%;
  font-size: 13px;
  padding: 9px 14px;
  text-align: center;
}

.publish-card { max-width: 560px; }

.notes-card { max-width: 480px; }

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 22px;
  max-height: 300px;
  overflow-y: auto;
}

.note-item {
  background: var(--cream-card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.note-item-date {
  font-size: 11.5px;
  font-style: italic;
  color: var(--brown-soft);
  margin-bottom: 4px;
}

.note-item-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--brown-deep);
  margin: 0;
  white-space: pre-wrap;
}

.admin-checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--brown-deep);
  cursor: pointer;
}
.admin-checkbox-field input { width: 16px; height: 16px; accent-color: var(--brown); cursor: pointer; }

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: var(--cream-panel);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.admin-row-clickable {
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.admin-row-clickable:hover {
  box-shadow: 0 8px 20px rgba(67, 48, 31, 0.16);
  border-color: var(--brown-soft);
}
.admin-row-clickable select,
.admin-row-clickable button,
.admin-row-clickable a {
  cursor: pointer;
}
.admin-row-handled { opacity: 0.6; }

.admin-row-main { min-width: 0; flex: 1; }

.admin-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.admin-row-title strong { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--brown-deep); }

.admin-row-meta {
  font-size: 12.5px;
  color: var(--brown-soft);
  margin-bottom: 6px;
}
.admin-row-meta a { color: var(--brown-soft); }

.admin-row-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--brown-text);
  margin: 6px 0;
}

.admin-row-contact {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--brown);
}
.admin-row-contact a { color: var(--brown); }

.admin-row-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
  width: 190px;
}
.admin-row-actions .admin-status-select { width: 100%; }
.admin-row-actions .admin-handle-btn,
.admin-row-actions .admin-publish-btn {
  width: 100%;
  white-space: normal;
}

.admin-status-select {
  font-family: 'Lora', serif;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--brown-line);
  background: var(--cream-card);
  color: var(--brown-deep);
  cursor: pointer;
}

.admin-handle-btn {
  font-size: 12.5px;
  padding: 7px 14px;
  white-space: nowrap;
}

.admin-delete-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--brown-line);
  background: var(--cream-panel);
  color: var(--brown-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.admin-delete-btn:hover { color: #9A4B3F; border-color: #E3B7AC; }

.status-pill { font-weight: 600; }
.status-pending { color: #8A6A1A; border-color: #E3CD8F; background: #FBF1D6; }
.status-positive { color: #4E6B3E; border-color: #C9D6BC; background: #EEF3E8; }
.status-neutral { color: var(--brown); border-color: var(--brown-line); background: var(--cream-light); }
.status-negative { color: #9A4B3F; border-color: #E3B7AC; background: #F5E1DC; }

@media (max-width: 700px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-row { flex-direction: column; }
  .admin-row-actions { width: 100%; justify-content: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .main-layout {
    flex-direction: column;
    height: auto;
  }
  .results-panel {
    max-width: 100%;
    flex: none;
    max-height: 46vh;
  }
  .map-panel {
    flex: none;
    height: 46vh;
    width: 100%;
  }
}

/* ---------- Phone: collapse filter rows into horizontal scrollers ---------- */
@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px 10px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .brand-text h1 {
    font-size: 24px;
  }
  .tagline {
    font-size: 11px;
  }
  .header-actions .account-btn,
  .header-actions .get-listed-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .search-bar-wrap {
    padding: 0 16px 12px;
    gap: 10px;
  }

  .filter-tabs,
  .refine-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar,
  .refine-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .refine-bar {
    padding: 0 16px 12px;
    gap: 10px;
  }
  .refine-pill {
    flex-shrink: 0;
    min-width: 178px;
  }
  .discount-info-link {
    flex-shrink: 0;
    margin-left: 0;
    white-space: nowrap;
  }
}

/* Small Orthodox cross in the header, just left of the Get Listed button / nav links — serif-style, drawn to match the Steward lettering */
.wood-cross {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  color: var(--brown);
}

/* Welcome strip: explains the two ways in (sign up vs. get listed) */
.welcome-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 clamp(16px, 4vw, 48px) 14px;
  padding: 10px 16px;
  background: var(--cream-card);
  border: 1px solid var(--brown-line);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--brown-deep);
}
.welcome-strip strong { color: var(--brown); }
.strip-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.strip-link:hover { color: var(--brown-deep); }
.strip-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--brown-soft);
  cursor: pointer;
}
.strip-close:hover { color: var(--brown); }

/* Account modal (log in / sign up) */
.form-field[hidden] { display: none; }
.auth-msg {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin: 4px 0 12px;
}
.auth-msg[hidden] { display: none; }
.auth-msg.error { color: #9A4B3F; background: #F5E1DC; border: 1px solid #E3B7AC; }
.auth-msg.info { color: var(--brown-deep); background: var(--cream-card); border: 1px solid var(--brown-line); }
.auth-switch {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--brown-soft);
}

/* Profile panel buttons: make link-style buttons (Owner Dashboard) match the Edit Profile button */
a.account-edit-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
}

/* Link-style buttons inside modals/cards */
a.signin-submit {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 16px;
}

.header-actions { align-items: center; }
.header-actions .wood-cross { margin-right: 4px; }
.page-nav-links { align-items: center; }

/* Long first names shouldn't push the header off-screen */
.account-name-text {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Get Listed: the parish block (vetting details, never shown publicly) */
.form-group { border: 1px solid var(--border, rgba(67, 48, 31,.18)); border-radius: 12px; padding: 12px 14px 4px; margin: 0 0 14px; min-width: 0; }
.form-group legend { padding: 0 6px; font-weight: 600; font-size: 0.9rem; color: var(--brown); }
.form-hint { margin: 0 0 10px; font-size: 0.8rem; line-height: 1.4; color: var(--muted, #7a6a5e); }

/* Address search dropdown (Get Listed parish field) */
.addr-wrap { position: relative; }
.addr-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--cream-panel); border: 1px solid var(--brown-line); border-radius: 10px; box-shadow: 0 10px 28px rgba(67, 48, 31,.22); max-height: 260px; overflow-y: auto; }
.addr-list[hidden] { display: none; }
.addr-list li { padding: 9px 10px; border-radius: 7px; cursor: pointer; line-height: 1.3; }
.addr-list li strong { display: block; font-weight: 600; color: var(--brown); font-size: 0.92rem; }
.addr-list li span { display: block; font-size: 0.8rem; color: var(--brown-soft); margin-top: 1px; }
.addr-list li:hover, .addr-list li.active { background: rgba(155, 110, 75,.10); }
.addr-list li.addr-note { cursor: default; font-size: 0.82rem; color: var(--brown-soft); font-style: italic; }
.addr-list li.addr-note:hover { background: none; }

/* Brief highlight on the section a stat box jumped to */
.admin-section { scroll-margin-top: 20px; border-radius: var(--radius-md); }
@keyframes sectionFlash { 0% { background: rgba(155, 110, 75,.16); } 100% { background: transparent; } }
.admin-section.section-flash { animation: sectionFlash 1.5s ease-out; }

/* Prospect that is already published: a tag plus an edit button instead of Publish */
.prospect-live-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.prospect-live-row .account-btn { margin: 0; }

/* =====================================================================
   Owner Dashboard v2 — compact, tabbed. One section at a time, tight rows,
   done items filtered out. (Overrides the older roomy admin styles above.)
   ===================================================================== */
.page-content.admin-page { max-width: 1080px; padding-top: 8px; padding-bottom: 40px; }

.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 4px 0 12px; }
.admin-topbar h1 { font-size: 24px; color: var(--brown-deep); margin: 0; }

.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tab {
  font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 14px; border-radius: 999px; border: 1px solid var(--brown-line);
  background: var(--cream-panel); color: var(--brown); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.admin-tab:hover { border-color: var(--brown); }
.admin-tab:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.admin-tab.active { background: var(--brown); border-color: var(--brown); color: var(--cream-light); }
.admin-tab-n { font-size: 12px; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(155, 110, 75,.13); text-align: center; line-height: 1.5; }
.admin-tab.active .admin-tab-n { background: rgba(255,255,255,.22); }
.admin-tab.has-alert:not(.active) .admin-tab-n { background: #9A4B3F; color: #fff; }

.admin-section { margin-top: 0; }
.admin-section[hidden], .admin-add-form[hidden] { display: none; }

.admin-toolbar { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.chip {
  font: inherit; font-size: 13px; padding: 4px 6px 4px 12px; border-radius: 999px;
  border: 1px solid var(--brown-line); background: var(--cream-card); color: var(--brown-soft); cursor: pointer;
}
.chip span { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: rgba(155, 110, 75,.10); font-size: 12px; }
.chip:hover { border-color: var(--brown-soft); }
.chip.active { background: var(--cream-light); border-color: var(--brown); color: var(--brown-deep); font-weight: 600; }
.admin-toolbar .admin-status-select { max-width: 210px; }
.admin-toolbar > .account-btn { padding: 6px 14px; font-size: 13px; margin: 0; }

/* rows */
.admin-list { gap: 6px; margin-top: 0; }
.admin-row { padding: 9px 14px; gap: 12px; align-items: center; border-radius: 10px; box-shadow: none; }
.admin-row-clickable:hover { box-shadow: none; }
.admin-row-title { gap: 4px 8px; margin-bottom: 1px; }
.admin-row-title strong { font-size: 16px; }
.admin-row-title .admin-row-meta { margin: 0; }
.admin-row-meta { font-size: 12.5px; margin-bottom: 0; }
.admin-row-contact { gap: 2px 12px; font-size: 12.5px; margin-top: 1px; }
.admin-row-text {
  font-size: 13px; line-height: 1.4; margin: 2px 0 0; color: var(--brown-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.admin-row-text.open { display: block; -webkit-line-clamp: unset; cursor: zoom-out; }
.admin-row-actions { flex-direction: row; align-items: center; width: auto; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.admin-row-actions .admin-status-select { width: auto; }
.admin-row-actions .admin-handle-btn,
.admin-row-actions .admin-publish-btn { width: auto; white-space: nowrap; }
.admin-row-actions .account-btn,
.admin-list .account-btn { padding: 6px 12px; font-size: 13px; margin: 0; white-space: nowrap; }

/* prospects: one tight line each */
.prospect-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center;
  padding: 8px 14px; background: var(--cream-panel); border: 1px solid var(--brown-line);
  border-radius: 10px; cursor: pointer; transition: border-color .12s;
}
.prospect-row:hover { border-color: var(--brown-soft); }
.pr-main { min-width: 0; }
.pr-title { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
.pr-title strong { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--brown-deep); }
.pr-industry { font-size: 12.5px; color: var(--brown-soft); font-style: italic; }
.pr-sub { font-size: 12.5px; color: var(--brown-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-sub a { color: var(--brown); }

/* add-prospect form: compact grid, hidden until asked for */
.admin-add-form { padding: 12px 14px 12px; margin-bottom: 10px; }
.admin-add-grid { display: grid; gap: 0 10px; grid-template-columns: 2fr 1.5fr 1fr 1fr; }
.admin-add-grid.two { grid-template-columns: 1fr 1fr; }
.admin-add-form .form-field { margin: 0 0 8px; min-width: 0; }
.admin-add-form .form-field span { font-size: 12px; margin-bottom: 2px; }
.admin-add-form .form-field input, .admin-add-form .form-field select, .admin-add-form .form-field textarea { padding: 8px 10px; font-size: 14px; }
.admin-add-actions { display: flex; gap: 8px; }
.admin-add-actions .account-btn { margin: 0; padding: 7px 16px; font-size: 13px; }

.empty-state { padding: 18px; text-align: center; }

.chip { white-space: nowrap; }
@media (max-width: 760px) {
  .chips { flex: 1 1 100%; }
  .admin-toolbar .admin-status-select { flex: 1; max-width: none; min-width: 0; }
  .admin-toolbar > .account-btn { flex-shrink: 0; }
  .admin-add-grid, .admin-add-grid.two { grid-template-columns: 1fr 1fr; }
  .prospect-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .prospect-row .pr-main { grid-column: 1 / -1; }
  .admin-row { flex-wrap: wrap; align-items: flex-start; }
  .admin-row-actions { justify-content: flex-start; }
}

/* Header links (About, Contact) on the directory page */
.header-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; margin-right: 26px; }
.header-nav a {
  font-size: 14.5px; color: var(--brown-soft); text-decoration: none;
  padding: 6px 1px; border-bottom: 1px solid transparent; transition: color .12s, border-color .12s;
}
.header-nav a:hover, .header-nav a:focus-visible { color: var(--brown); border-bottom-color: currentColor; outline: none; }
@media (max-width: 860px) {
  .header-nav { order: 3; width: 100%; margin: 0; gap: 22px; }
}
@media (max-width: 640px) {
  /* Phone: logo on row 1; About/Contact (left) and the buttons (right) share row 2. */
  .site-header .brand { flex: 0 1 auto; }
  .header-nav { order: 2; width: auto; flex: 1; gap: 16px; }
  .header-actions { order: 3; }
  .header-nav a { font-size: 13.5px; }
}


/* ---------- Phone: one Filters button instead of a stack of rows ---------- */
.filters-btn, .filters-done, .strip-short { display: none; }

@media (max-width: 640px) {
  .search-bar-wrap { flex-wrap: wrap; row-gap: 10px; column-gap: 8px; }
  .search-bar { flex: 1 1 0; min-width: 0; padding: 10px 14px; }
  .filters-btn {
    display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; position: relative;
    padding: 10px 15px; border-radius: 999px; border: 1px solid var(--brown-line); background: var(--cream-panel);
    color: var(--brown); font: inherit; font-size: 14px; box-shadow: var(--shadow); cursor: pointer;
  }
  .filters-btn[aria-expanded="true"] { background: var(--brown); border-color: var(--brown); color: var(--cream-light); }
  .filters-count {
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brown); color: var(--cream-light);
    font-size: 11px; line-height: 18px; text-align: center; font-weight: 600;
  }
  .filters-count[hidden] { display: none; }
  .filters-btn[aria-expanded="true"] .filters-count { background: var(--cream-light); color: var(--brown); }

  /* everything under the search box lives behind the button until it's opened */
  .view-toggle, .filter-tabs, .refine-bar { display: none; }
  body.filters-open .view-toggle { display: inline-flex; }
  body.filters-open .filter-tabs { display: flex; }
  body.filters-open .refine-bar { display: flex; }
  body.filters-open .filter-tabs, body.filters-open .view-toggle { flex: 1 1 100%; }
  body.filters-open .view-toggle { width: fit-content; flex: 0 0 auto; }
  body.filters-open .filters-done {
    display: block; flex: 1 1 100%; margin-top: 2px; padding: 11px 16px; border: 0; border-radius: 999px;
    background: var(--brown); color: var(--cream-light); font: inherit; font-size: 14px; cursor: pointer;
  }
  body.filters-open .refine-bar { flex-wrap: wrap; overflow: visible; padding-bottom: 14px; }
  body.filters-open .refine-pill { flex: 1 1 calc(50% - 6px); min-width: 0; }
  body.filters-open .refine-pill select { width: 100%; min-width: 0; }
  body.filters-open .filter-tabs { flex-wrap: wrap; overflow: visible; }

  /* the welcome banner becomes a single line */
  .welcome-strip { padding: 8px 14px; font-size: 13px; line-height: 1.4; align-items: center; }
  .strip-long { display: none; }
  .strip-short { display: inline; }
  .welcome-strip .strip-close { flex-shrink: 0; }
}
