/* Shore Finds (ShoreFinds/Index, Details, Edit, Mine; Admin > Shore Finds).
   Each kind has its colours: places teal-blue, dishes coral-amber, products
   violet-pink, on card bands, map pins and the kind picker. */

.sf-kind-place {
  --sf-a: #0f766e;
  --sf-b: #2563eb;
  --sf-soft: #e0f2fe;
  --sf-ink: #075985;
}

.sf-kind-dish {
  --sf-a: #ea580c;
  --sf-b: #f59e0b;
  --sf-soft: #ffedd5;
  --sf-ink: #9a3412;
}

.sf-kind-product {
  --sf-a: #7c3aed;
  --sf-b: #db2777;
  --sf-soft: #f3e8ff;
  --sf-ink: #6b21a8;
}

.sf-form [hidden],
.sf-place-results[hidden] {
  display: none !important;
}

/* ---------- Hero: a short banner with the search ---------- */

.sf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  align-items: center;
  margin: 1.25rem 0 1.5rem;
  padding: 1.6rem 2rem;
  border-radius: 1.25rem;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(253, 186, 116, 0.45), transparent 42%),
    radial-gradient(circle at 5% 100%, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(135deg, #0f766e, #0e7490 45%, #c2410c);
  overflow: hidden;
}

.sf-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sf-hero h1 {
  margin: 0.35rem 0 0.3rem;
  color: #fff;
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 900;
}

.sf-hero p {
  max-width: 40rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.sf-hero-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 42rem;
  margin-top: 1rem;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.sf-hero-search input,
.sf-hero-search select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 0.95rem;
  outline: none;
}

.sf-hero-search input {
  flex: 1 1 auto;
  padding: 0.45rem 0.25rem;
}

.sf-hero-search select {
  flex: 0 1 9.5rem;
  padding: 0.45rem 0.6rem;
  border-left: 1px solid #e2e8f0;
  cursor: pointer;
}

.sf-hero-search button {
  flex: none;
  padding: 0.55rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
}

.sf-hero-search button:hover {
  background: #115e59;
}

.sf-hero-search:focus-within {
  box-shadow: 0 0 0 3px rgba(253, 186, 116, 0.8), 0 10px 30px rgba(15, 23, 42, 0.25);
}

.sf-hero-side {
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
}

.sf-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.9rem;
  background: #fff;
  color: #9a3412;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sf-hero-cta:hover {
  color: #7c2d12;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.sf-hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.sf-hero-stats strong {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.sf-hero-link {
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.sf-hero-link:hover {
  color: #fde68a;
}

.sf-hero .sf-hero-note {
  font-size: 0.85rem;
  text-align: center;
}

.sf-premium-badge {
  margin-left: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8edc8, #e3c15c);
  color: #7d6318;
  font-size: 0.75rem;
  font-weight: 800;
  vertical-align: middle;
}

/* ---------- Section headings ---------- */

.sf-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.75rem;
}

.sf-section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.sf-count {
  margin: 0;
  color: #64748b;
  font-weight: 600;
}

.sf-count a {
  margin-left: 0.5rem;
}

/* ---------- In the spotlight: big banner finds ---------- */

.sf-spotlight {
  margin-bottom: 1.75rem;
}

.sf-spotlight-nav {
  display: flex;
  gap: 0.35rem;
}

.sf-spotlight-nav button {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--bb-sage-200);
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 1.4rem;
  line-height: 1;
}

.sf-spotlight-nav button:hover {
  border-color: #0f766e;
  color: #0f766e;
}

.sf-spotlight-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, calc((100% - 2rem) / 2.4));
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.sf-spot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 1.1rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.15);
}

.sf-spot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sf-spot:hover img {
  transform: scale(1.05);
}

.sf-spot-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, 0.85) 100%);
}

.sf-spot-chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sf-ink, #0f172a);
  font-size: 0.78rem;
  font-weight: 800;
}

.sf-spot-likes {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.9);
  font-size: 0.8rem;
  font-weight: 800;
}

.sf-spot-text {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  left: 1rem;
  display: grid;
  gap: 0.1rem;
}

.sf-spot-text strong {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.sf-spot-text span {
  font-size: 0.88rem;
  opacity: 0.92;
}

.sf-spot-text em {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.88rem;
  opacity: 0.88;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* ---------- Toolbar: kinds, good for, Near me, Map ---------- */

.sf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 0.8rem;
}

.sf-toolbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.sf-tag-form {
  display: flex;
  gap: 0.35rem;
}

.sf-tag-form .form-select {
  min-width: 11rem;
  border-radius: 999px;
}

.sf-tool-btn {
  padding: 0.38rem 0.9rem;
  border: 1px solid var(--bb-sage-200);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
}

.sf-tool-btn:hover,
.sf-tool-btn.is-on {
  border-color: #0f766e;
  background: #f0fdfa;
  color: #0f766e;
}

.sf-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sf-kind {
  padding: 0.45rem 1rem;
  border: 1px solid var(--bb-sage-200);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sf-kind:hover {
  background: var(--bb-sage-100);
  color: #0f172a;
}

.sf-kind.is-active {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

/* My Finds uses the kind tabs on their own. */
.sf-kinds:not(.sf-toolbar .sf-kinds) {
  margin-bottom: 0.9rem;
}

.sf-cats {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
}

.sf-cats > a {
  flex: none;
  white-space: nowrap;
}

.sf-cats > a:last-child {
  margin-right: 2rem;
}

.sf-cat-chip {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--bb-sage-200);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.sf-cat-chip:hover {
  border-color: #0f766e;
  color: #0f766e;
}

.sf-cat-chip.is-active {
  border-color: #0f766e;
  background: #ccfbf1;
  color: #115e59;
}

/* ---------- The map panel: folded away until asked for ---------- */

.sf-map-panel {
  margin-bottom: 1.5rem;
  border: 1px solid var(--bb-sage-200);
  border-radius: 1.1rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.sf-map-panel[hidden] {
  display: none;
}

.sf-map-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  border-bottom: 1px solid var(--bb-sage-100);
}

.sf-map-panel-status {
  flex: 1;
  color: #0f766e;
  font-size: 0.88rem;
  font-weight: 600;
}

.sf-map-close {
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
}

.sf-map-close:hover {
  background: #e2e8f0;
}

.sf-map {
  height: min(26rem, 60vh);
  min-height: 16rem;
  background: #e5eadb;
  z-index: 0;
}

/* ---------- The grid of banner cards ---------- */

.sf-list {
  margin-bottom: 2rem;
}

.sf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.1rem;
}

.sf-empty {
  padding: 2.5rem 1.5rem;
  border: 2px dashed var(--bb-sage-200);
  border-radius: 1.1rem;
  background: #fff;
  text-align: center;
}

.sf-empty > span {
  font-size: 2.6rem;
}

.sf-empty h2 {
  margin: 0.4rem 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.sf-empty p {
  color: #64748b;
}

/* ---------- The card: a banner on top ---------- */

.sf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bb-sage-200);
  border-radius: 1.1rem;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, outline-color 0.15s ease;
  outline: 3px solid transparent;
}

.sf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.sf-card.is-highlight {
  outline-color: var(--sf-b);
}

.sf-card.is-moderated {
  opacity: 0.88;
}

.sf-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  background: var(--sf-soft, #f1f5f9);
}

.sf-card-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sf-card-img[hidden] {
  display: none;
}

.sf-card:hover .sf-card-img {
  transform: scale(1.04);
}

/* A find without a picture gets a banner in its kind's colours. */
.sf-card-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.35), transparent 45%),
    radial-gradient(circle at 10% 110%, rgba(255, 255, 255, 0.2), transparent 50%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 14px, transparent 14px 28px),
    linear-gradient(120deg, var(--sf-a), var(--sf-b));
}

.sf-card-art > span {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
  font-size: 2.1rem;
}

.sf-card-chip,
.sf-card-price {
  position: absolute;
  top: 0.65rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.sf-card-chip {
  left: 0.65rem;
  max-width: calc(100% - 7.5rem);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  color: var(--sf-ink, #0f172a);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-card-price {
  right: 0.65rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
}

.sf-card-price[hidden] {
  display: none;
}

.sf-card-body {
  flex: 1;
  padding: 0.85rem 1rem 0.5rem;
}

.sf-card-title {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.sf-card-title a {
  color: #0f172a;
  text-decoration: none;
}

/* The title's link covers the whole card, so a click anywhere opens the find. */
.sf-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sf-card-title a:focus-visible {
  outline: none;
}

.sf-card:has(.sf-card-title a:focus-visible) {
  outline-color: #93c5fd;
}

/* Buttons and links on the card stay clickable above it. */
.sf-card-actions,
.sf-status {
  position: relative;
  z-index: 2;
}

.sf-card-title a:hover {
  color: var(--sf-a);
}

.sf-card-where {
  margin: 0 0 0.5rem;
  color: #64748b;
  font-size: 0.88rem;
}

.sf-card-note {
  display: -webkit-box;
  margin: 0 0 0.6rem;
  overflow: hidden;
  color: #334155;
  font-style: italic;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-tags li {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--sf-soft, #f1f5f9);
  color: var(--sf-ink, #334155);
  font-size: 0.78rem;
  font-weight: 600;
}

.sf-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem 0.8rem;
  border-top: 1px solid #f1f5f9;
}

.sf-card-by {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: #64748b;
  font-size: 0.82rem;
}

.sf-avatar {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sf-a, #0f766e), var(--sf-b, #2563eb));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.sf-card-actions {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.sf-react,
.sf-chip-btn {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}

.sf-react:hover,
.sf-chip-btn:hover {
  border-color: var(--sf-a, #0f766e);
  color: var(--sf-a, #0f766e);
}

.sf-react.is-on {
  border-color: #fda4af;
  background: #fff1f2;
  color: #e11d48;
}

.sf-react[data-sf-react="Save"].is-on {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #b45309;
}

.sf-react.is-pop {
  animation: sf-pop 0.35s ease;
}

@keyframes sf-pop {
  40% {
    transform: scale(1.18);
  }
}

.sf-react-lg {
  padding: 0.45rem 0.95rem;
  font-size: 0.95rem;
}

.sf-reports {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 800;
}

.sf-status {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  font-size: 0.85rem;
}

.sf-status-hidden {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.sf-status-removed {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.sf-status-pending {
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #075985;
}

.sf-status-paused {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.sf-status-hint {
  opacity: 0.85;
  font-size: 0.8rem;
}

/* ---------- Closing call to action ---------- */

.sf-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 0 0 2.5rem;
  padding: 1.6rem 2rem;
  border-radius: 1.25rem;
  color: #fff;
  background:
    radial-gradient(circle at 95% 50%, rgba(253, 186, 116, 0.4), transparent 45%),
    linear-gradient(120deg, #1e3a8a, #0f766e);
}

.sf-promo h2 {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
}

.sf-promo p {
  max-width: 38rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Map pins ---------- */

.sf-pin {
  border: 0;
  background: none;
}

.sf-pin span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--sf-a), var(--sf-b));
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
  font-size: 17px;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

/* The emoji stands upright inside the turned pin. */
.sf-pin i {
  display: block;
  font-style: normal;
  line-height: 1;
  transform: rotate(45deg);
}

.sf-pin-place {
  --sf-a: #0f766e;
  --sf-b: #2563eb;
}

.sf-pin-dish {
  --sf-a: #ea580c;
  --sf-b: #f59e0b;
}

.sf-pin-product {
  --sf-a: #7c3aed;
  --sf-b: #db2777;
}

.sf-pin.is-active span {
  transform: rotate(-45deg) scale(1.25) translate(3px, -3px);
}

.sf-cluster {
  border: 0;
  background: none;
}

.sf-cluster span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e, #c2410c);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.2), 0 4px 10px rgba(15, 23, 42, 0.25);
  color: #fff;
  font-weight: 900;
}

.sf-popup {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sf-popup-icon {
  font-size: 1.3rem;
}

.sf-popup-name {
  font-weight: 800;
}

/* ---------- Teaser (visitors, when an account is needed) ---------- */

.sf-teaser {
  margin-bottom: 2rem;
}

.sf-teaser-wall {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 22rem;
  margin-top: 1rem;
  border-radius: 1.25rem;
  overflow: hidden;
}

.sf-teaser-map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 38%, #0f766e 0 7px, transparent 8px),
    radial-gradient(circle at 63% 30%, #ea580c 0 7px, transparent 8px),
    radial-gradient(circle at 48% 66%, #7c3aed 0 7px, transparent 8px),
    radial-gradient(circle at 80% 72%, #2563eb 0 7px, transparent 8px),
    radial-gradient(circle at 35% 80%, #f59e0b 0 7px, transparent 8px),
    repeating-linear-gradient(32deg, transparent 0 46px, rgba(255, 255, 255, 0.7) 46px 52px),
    repeating-linear-gradient(-58deg, transparent 0 70px, rgba(255, 255, 255, 0.55) 70px 75px),
    linear-gradient(135deg, #d9e7d0, #cfe3ee);
  filter: blur(3px);
  transform: scale(1.05);
}

.sf-teaser-box {
  position: relative;
  max-width: 28rem;
  margin: 1.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.sf-teaser-icon {
  font-size: 2.4rem;
}

.sf-teaser-box h2 {
  margin: 0.3rem 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 900;
}

.sf-teaser-box p {
  color: #475569;
}

.sf-teaser-login {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* ---------- A find's page ---------- */

.sf-back {
  display: inline-block;
  margin: 1.25rem 0 0.75rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.sf-detail {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
}

.sf-detail.has-map {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.sf-detail-card {
  border: 1px solid var(--bb-sage-200);
  border-radius: 1.25rem;
  background: #fff;
  overflow: hidden;
}

.sf-detail-img {
  display: block;
  width: 100%;
  max-height: 20rem;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.sf-link-btn {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-detail-band {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem 1.5rem 1.35rem;
  color: #fff;
  background:
    radial-gradient(circle at 92% -10%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(120deg, var(--sf-a), var(--sf-b));
}

.sf-detail-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  font-size: 2rem;
}

.sf-detail-cat {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.92;
}

.sf-detail-band h1 {
  margin: 0.15rem 0;
  color: #fff;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 900;
}

.sf-detail-where {
  margin: 0;
  opacity: 0.92;
}

.sf-detail-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.sf-detail-note {
  margin: 0 0 1rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 4px solid var(--sf-b);
  color: #1e293b;
  font-size: 1.15rem;
  font-style: italic;
  white-space: pre-line;
}

.sf-detail-address {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
}

.sf-detail-by {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.9rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.sf-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.1rem;
}

.sf-map-detail {
  height: 26rem;
  min-height: 0;
}

.sf-detail-map-wrap {
  position: sticky;
  top: 1rem;
}

.sf-report,
.sf-reported {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
}

.sf-reported {
  color: #64748b;
}

.sf-report summary {
  color: #94a3b8;
  cursor: pointer;
}

.sf-report form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.sf-staff {
  margin-top: 1.4rem;
  padding: 1rem;
  border: 1px dashed #fca5a5;
  border-radius: 0.9rem;
  background: #fffbfb;
}

.sf-staff h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sf-staff-reports {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

/* Ratings and feedback (the star summary, picker and list come from site.css, as on the blog). */
.sf-feedback {
  margin-bottom: 2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--bb-sage-200);
  border-radius: 1.25rem;
  background: #fff;
  scroll-margin-top: 1rem;
}

.sf-feedback h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.sf-feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.sf-feedback-form {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--bb-sage-200);
  border-radius: 0.9rem;
  background: var(--bb-sage-50);
}

.sf-feedback-form h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.sf-feedback-comment {
  margin: 0.5rem 0 0.25rem;
  white-space: pre-line;
}

.sf-card-rating {
  margin: -0.25rem 0 0.4rem;
  font-size: 0.85rem;
}

@media (max-width: 767.98px) {
  .sf-feedback-grid {
    grid-template-columns: 1fr;
  }
}

.sf-nearby {
  margin-bottom: 2.5rem;
}

.sf-nearby h2 {
  margin-bottom: 0.9rem;
  font-size: 1.3rem;
  font-weight: 800;
}

/* ---------- Staff moderation ---------- */

.sf-mod-box summary {
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.sf-mod-box form,
.sf-mod-box[open] > textarea {
  margin-top: 0.6rem;
}

.sf-mod-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.sf-mod-quick button {
  padding: 0.15rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
}

.sf-mod-quick button:hover {
  border-color: #b91c1c;
  color: #b91c1c;
}

.sf-mod-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.sf-mod-help {
  margin: 0.4rem 0 0;
  color: #64748b;
  font-size: 0.78rem;
}

.sf-mod-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: flex-start;
}

.sf-mod-pending > .sf-mod-box {
  flex: 1;
  min-width: 14rem;
}

.sf-mod-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.sf-mod-box-inline {
  flex: 1;
  min-width: 12rem;
}

/* ---------- The recommend form ---------- */

.sf-compose {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.sf-form {
  padding: 1.5rem;
  border: 1px solid var(--bb-sage-200);
  border-radius: 1.25rem;
  background: #fff;
}

.sf-form h1 {
  margin: 0 0 0.25rem;
  font-size: 1.8rem;
  font-weight: 900;
}

.sf-form-intro {
  color: #64748b;
}

.sf-errors:empty,
.sf-errors.validation-summary-valid {
  display: none;
}

.sf-step {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

/* Bootstrap floats a legend and clears only the element right after it; here
   that can be a hidden block, which left the next one squeezed beside it. */
.sf-step legend {
  float: none;
  width: 100%;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.sf-step-no {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  font-size: 0.85rem;
}

.sf-kind-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.sf-kind-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  padding: 1rem 0.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.sf-kind-card:hover {
  transform: translateY(-2px);
}

.sf-kind-card input {
  position: absolute;
  opacity: 0;
}

.sf-kind-card-icon {
  font-size: 2rem;
}

.sf-kind-card small {
  color: #64748b;
}

.sf-kind-card:has(input:checked) {
  border-color: #0f766e;
  background: #f0fdfa;
}

.sf-kind-card:has(input:focus-visible) {
  outline: 3px solid #93c5fd;
}

.sf-cat-pick,
.sf-tag-pick,
.sf-price-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sf-cat-option,
.sf-tag-option,
.sf-price-pick label {
  position: relative;
  cursor: pointer;
}

.sf-cat-option input,
.sf-tag-option input,
.sf-price-pick input {
  position: absolute;
  opacity: 0;
}

.sf-cat-option span,
.sf-tag-option span,
.sf-price-pick span {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sf-cat-option:hover span,
.sf-tag-option:hover span,
.sf-price-pick label:hover span {
  border-color: #0f766e;
}

.sf-cat-option input:checked + span,
.sf-tag-option input:checked + span,
.sf-price-pick input:checked + span {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.sf-cat-option input:focus-visible + span,
.sf-tag-option input:focus-visible + span,
.sf-price-pick input:focus-visible + span {
  outline: 3px solid #93c5fd;
}

.sf-tag-option.is-disabled span {
  opacity: 0.45;
  cursor: not-allowed;
}

.sf-locate {
  position: relative;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--bb-sage-50);
}

.sf-search-box {
  position: relative;
}

.sf-search-box > span {
  position: absolute;
  top: 50%;
  left: 0.8rem;
  transform: translateY(-50%);
}

.sf-search-box input {
  padding-left: 2.3rem;
}

.sf-place-results {
  position: absolute;
  right: 1rem;
  left: 1rem;
  z-index: 1000;
  max-height: 20rem;
  margin: 0.25rem 0 0;
  padding: 0.3rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  list-style: none;
  overflow-y: auto;
}

.sf-place-option {
  display: grid;
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

.sf-place-option span {
  overflow: hidden;
  color: #64748b;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-place-option:hover,
.sf-place-option.is-active {
  background: #f0fdfa;
}

.sf-place-manual {
  margin-top: 0.2rem;
  border-top: 1px solid #f1f5f9;
  color: #0f766e;
  font-size: 0.88rem;
  font-weight: 600;
}

.sf-place-status {
  min-height: 1.2rem;
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.85rem;
}

.sf-pin-map-wrap {
  margin-top: 0.5rem;
  transition: opacity 0.2s ease;
}

.sf-pin-map-wrap.is-off {
  opacity: 0.35;
  pointer-events: none;
}

.sf-pin-map {
  height: 15rem;
  min-height: 0;
}

.sf-pin-hint {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
}

.sf-optional {
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sf-image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-bottom: 0.5rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

.sf-image-drop {
  position: relative;
  display: block;
  padding: 0.8rem 1rem;
  border: 2px dashed #cbd5e1;
  border-radius: 0.9rem;
  background: #f8fafc;
  cursor: pointer;
}

.sf-image-drop:hover,
.sf-image-drop:focus-within {
  border-color: #0f766e;
  background: #f0fdfa;
}

.sf-image-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.sf-image-drop small {
  display: block;
  color: #64748b;
}

.sf-image-error {
  margin: 0.4rem 0 0;
  color: #b91c1c;
  font-size: 0.85rem;
}

.sf-field-hint {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
}

.sf-counter {
  margin-top: 0.25rem;
  color: #94a3b8;
  font-size: 0.8rem;
  text-align: right;
}

.sf-wave-share {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #bae6fd;
  border-radius: 0.9rem;
  background: #f0f9ff;
  cursor: pointer;
}

.sf-wave-share input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex: none;
}

.sf-wave-share span {
  display: grid;
}

.sf-wave-share small {
  color: #475569;
}

.sf-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.sf-preview {
  position: sticky;
  top: 1rem;
}

.sf-preview-label {
  margin-bottom: 0.5rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sf-preview .sf-card:hover {
  transform: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.sf-preview-note {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.85rem;
}

/* ---------- My Finds, admin ---------- */

.sf-mine-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.sf-mine-head h1 {
  margin: 0;
  font-weight: 900;
}

/* My Finds: how many finds are live, out of the most allowed. */
.sf-live-meter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid #a7f3d0;
  border-radius: 0.9rem;
  background: #ecfdf5;
  color: #065f46;
}

.sf-live-meter.is-full {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.sf-live-dots {
  display: inline-flex;
  gap: 0.3rem;
}

.sf-live-dots i {
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.45;
}

.sf-live-dots i.is-on {
  background: currentColor;
  opacity: 1;
}

.sf-mine-actions form {
  display: inline;
}

.sf-mine-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sf-mine-item > .sf-card {
  flex: 1;
}

.sf-mine-item.is-new > .sf-card {
  outline-color: #f59e0b;
}

.sf-mine-actions {
  display: flex;
  gap: 0.4rem;
}

.sf-admin-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.2rem;
  background: #f8fafc;
}

.sf-admin-meta {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 991.98px) {
  .sf-hero,
  .sf-compose,
  .sf-detail.has-map {
    grid-template-columns: 1fr;
  }

  .sf-spotlight-track {
    grid-auto-columns: minmax(16rem, 85%);
  }

  .sf-map-detail {
    height: 18rem;
  }

  .sf-preview {
    position: static;
    order: -1;
  }

  .sf-preview .sf-card {
    max-width: 24rem;
  }
}

@media (max-width: 575.98px) {
  .sf-hero,
  .sf-promo {
    padding: 1.25rem 1.1rem;
  }

  .sf-hero-search {
    flex-wrap: wrap;
    border-radius: 1rem;
    padding: 0.5rem;
  }

  .sf-hero-search input {
    flex-basis: calc(100% - 2rem);
  }

  .sf-hero-search select {
    flex: 1 1 auto;
    border-left: 0;
    border-top: 1px solid #e2e8f0;
  }

  .sf-toolbar-end,
  .sf-tag-form,
  .sf-tag-form .form-select {
    width: 100%;
  }

  .sf-form {
    padding: 1.1rem;
  }

  .sf-kind-pick {
    grid-template-columns: 1fr;
  }

  .sf-kind-card {
    grid-template-columns: auto 1fr;
    justify-items: start;
    column-gap: 0.75rem;
    text-align: left;
  }

  .sf-kind-card-icon {
    grid-row: span 2;
    font-size: 1.6rem;
  }

  .sf-report form {
    grid-template-columns: 1fr;
  }

  .sf-detail-band {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-card,
  .sf-card-img,
  .sf-spot img,
  .sf-hero-cta,
  .sf-kind-card,
  .sf-pin span {
    transition: none;
  }

  .sf-card:hover .sf-card-img,
  .sf-spot:hover img {
    transform: none;
  }
}
