/* Bright Garden Nursery Finder — scoped public styles */
.tbg-nf {
  --tbg-nf-cream: #faf8f3;
  --tbg-nf-cream-2: #f3efe6;
  --tbg-nf-green: #1b4332;
  --tbg-nf-forest: #1f320a;
  --tbg-nf-teal: #2d7a77;
  --tbg-nf-teal-dark: #246663;
  --tbg-nf-sage: #52796f;
  --tbg-nf-border: #d8e2dc;
  --tbg-nf-muted: #6d7a6f;
  --tbg-nf-text: #2d3436;
  --tbg-nf-pink: #e8a4b8;
  --tbg-nf-pink-border: #e39aaf;
  --tbg-nf-header-offset: 72px;
  --tbg-nf-radius: 14px;
  background: #fff;
  color: var(--tbg-nf-text);
  font-family: Inter, "DM Sans", "Lato", system-ui, sans-serif;
  padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--tbg-nf-header-offset));
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .tbg-nf { --tbg-nf-header-offset: 133px; }
}

.tbg-nf *,
.tbg-nf *::before,
.tbg-nf *::after { box-sizing: border-box; }

.tbg-nf :focus-visible {
  outline: 3px solid #b8860b !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

.tbg-nf__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 420px) {
  .tbg-nf__container {
    padding: 0 0.9rem;
  }
}

.tbg-nf__back {
  margin: 1.1rem 0 0.35rem;
}

.tbg-nf__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tbg-nf-teal);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.tbg-nf__back-link:hover {
  color: var(--tbg-nf-teal-dark);
  text-decoration: underline;
}

.tbg-nf__back-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  flex: 0 0 auto;
}

.tbg-nf__back-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tbg-nf__breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0.65rem 0 1.5rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--tbg-nf-muted);
}

.tbg-nf__breadcrumbs li:not(:last-child)::after {
  content: "–";
  margin-left: 0.45rem;
  color: #9aa79f;
}

.tbg-nf__breadcrumbs a {
  color: var(--tbg-nf-sage);
  text-decoration: none;
}

.tbg-nf__breadcrumbs a:hover { color: var(--tbg-nf-green); }

.tbg-nf__eyebrow {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tbg-nf-teal);
}

.tbg-nf__lead {
  margin: 0 0 1.25rem;
  color: #3d4f48;
  line-height: 1.6;
  max-width: 62ch;
}

/* Hero */
.tbg-nf__hero-split {
  background: #fff;
  border-bottom: 1px solid rgba(31, 50, 10, 0.08);
  padding: 1.5rem 0 0.5rem;
}

.tbg-nf__hero-split-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .tbg-nf__hero-split-inner {
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
    min-height: 280px;
  }
}

.tbg-nf__hero-copy h1 {
  margin: 0 0 0.75rem;
  font-family: Domine, Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  color: #111;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tbg-nf__hero-copy p {
  margin: 0;
  color: var(--tbg-nf-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36ch;
}

.tbg-nf__hero-media {
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  background: var(--tbg-nf-cream-2);
}

.tbg-nf__hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

/* Search card */
.tbg-nf__search-card {
  background: var(--tbg-nf-cream);
  border: 1px solid var(--tbg-nf-border);
  border-radius: 22px;
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .tbg-nf__search-card { padding: 2.25rem 2rem 1.75rem; }
}

.tbg-nf__search-card h2 {
  margin: 0 0 0.65rem;
  font-family: Domine, Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: #1a1a1a;
  line-height: 1.15;
}

.tbg-nf__search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.tbg-nf__field {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #cfd8d3;
  border-radius: 12px;
  min-height: 52px;
  flex: 1 1 220px;
}

.tbg-nf__field--radius {
  flex: 0 0 244px;
  min-width: 244px;
  max-width: 100%;
}

.tbg-nf__field-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.9rem;
  color: var(--tbg-nf-teal);
  flex: 0 0 auto;
}

.tbg-nf__field-icon svg,
.tbg-nf__btn-icon svg,
.tbg-nf__chip-icon svg,
.tbg-nf__meta-icon svg,
.tbg-nf__trust-icon svg,
.tbg-nf__service-icon svg,
.tbg-nf__disclaimer svg,
.tbg-nf__verified svg,
.tbg-nf__map-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tbg-nf__field input,
.tbg-nf__field select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.85rem 0.9rem 0.85rem 0.55rem;
  font: inherit;
  color: inherit;
  appearance: none;
}

.tbg-nf__field select {
  padding-right: 2.35rem;
  text-overflow: clip;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2352796f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px 8px;
}

.tbg-nf__field--radius select {
  font-weight: 600;
  padding-left: 0.45rem;
}

.tbg-nf__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.tbg-nf__btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
}

.tbg-nf__btn--primary {
  background: var(--tbg-nf-teal);
  color: #fff;
}

.tbg-nf__btn--primary:hover {
  background: var(--tbg-nf-teal-dark);
  color: #fff;
  transform: translateY(-1px);
}

.tbg-nf__btn--outline {
  background: #fff;
  color: var(--tbg-nf-teal);
  border-color: var(--tbg-nf-teal);
}

.tbg-nf__btn--outline:hover {
  background: rgba(45, 122, 119, 0.06);
  color: var(--tbg-nf-teal-dark);
}

/*
 * The global My Garden List stylesheet turns `.tbg-mgl-save` into a 2rem
 * absolutely-positioned heart for card corners. On the detail page it is a
 * full-width labelled button, so those rules are overridden here rather than by
 * dropping the class the shared save script binds against.
 */
.tbg-nf .tbg-nf__btn--mgl.tbg-mgl-save,
.tbg-nf__btn--mgl {
  position: static;
  top: auto;
  right: auto;
  width: 100%;
  height: auto;
  min-height: 52px;
  margin-top: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--tbg-nf-pink-border);
  box-shadow: none;
  background: #fff;
  color: #c86b88;
}

.tbg-nf .tbg-nf__btn--mgl.tbg-mgl-save.is-saved,
.tbg-nf__btn--mgl.is-saved {
  background: #fff5f8;
}

.tbg-nf__link-btn {
  background: none;
  border: 0;
  color: var(--tbg-nf-teal);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
}

.tbg-nf__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.35rem 0 1rem;
}

.tbg-nf__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #d5ddd8;
  background: #fff;
  color: #31443c;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.tbg-nf__chip-icon {
  width: 1rem;
  height: 1rem;
  color: var(--tbg-nf-sage);
}

.tbg-nf__chip[aria-pressed="true"],
.tbg-nf__chip.is-active {
  background: var(--tbg-nf-green);
  border-color: var(--tbg-nf-green);
  color: #fff;
}

.tbg-nf__chip[aria-pressed="true"] .tbg-nf__chip-icon,
.tbg-nf__chip.is-active .tbg-nf__chip-icon { color: #fff; }

.tbg-nf__trust,
.tbg-nf__disclaimer,
.tbg-nf__verified {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  color: var(--tbg-nf-sage);
  font-size: 0.9rem;
}

.tbg-nf__trust { justify-content: center; }
.tbg-nf__trust-icon,
.tbg-nf__verified span,
.tbg-nf__disclaimer > span {
  width: 1rem;
  height: 1rem;
  color: #2f9e44;
  flex: 0 0 auto;
}

/* Results */
.tbg-nf__results-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.tbg-nf__results-title {
  margin: 0;
  font-family: Domine, Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #151515;
}

.tbg-nf__results-count {
  margin: 0.35rem 0 0;
  color: var(--tbg-nf-muted);
}

.tbg-nf__results-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.tbg-nf__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tbg-nf-muted);
  font-size: 0.92rem;
}

.tbg-nf__sort select {
  border: 1px solid #d5ddd8;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  background: #fff;
}

.tbg-nf__view-toggle {
  display: inline-flex;
  border: 1px solid #d5ddd8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.tbg-nf__view-toggle button {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #405349;
  cursor: pointer;
}

.tbg-nf__view-toggle button.is-active {
  background: var(--tbg-nf-green);
  color: #fff;
}

.tbg-nf__results-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tbg-nf__results-layout {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  max-width: 100%;
}

.tbg-nf__results-list-col {
  min-width: 0;
  max-width: 100%;
}

/* minmax(0,1fr) so map/card min-content cannot widen the track past the container. */
.tbg-nf__results-layout[data-tbg-nf-layout="split"] {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 992px) {
  .tbg-nf__results-layout[data-tbg-nf-layout="split"] {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: start;
  }
}

.tbg-nf__results-layout[data-tbg-nf-layout="list"] .tbg-nf__map-col { display: none; }

.tbg-nf__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.tbg-nf__card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-areas:
    "thumb body"
    "actions actions";
  gap: 0.75rem 0.85rem;
  align-items: start;
  padding: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #e1e7e3;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

@media (min-width: 420px) {
  .tbg-nf__card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.85rem 0.9rem;
    padding: 0.95rem 1rem;
  }
}

@media (min-width: 700px) {
  .tbg-nf__card {
    grid-template-columns: 104px minmax(0, 1fr) 140px;
    grid-template-areas: "thumb body actions";
    align-items: center;
  }
}

.tbg-nf__card.is-active,
.tbg-nf__card:hover {
  border-color: #7f9d8f;
  /* Inset ring so theme overflow-x:clip cannot trim the right edge. */
  box-shadow: inset 0 0 0 1px rgba(45, 122, 119, 0.18);
}

.tbg-nf__card.is-active {
  border-color: var(--tbg-nf-teal);
  box-shadow: inset 0 0 0 2px rgba(45, 122, 119, 0.2);
}

.tbg-nf__in-feed {
  list-style: none;
}

.tbg-nf__card-thumb {
  grid-area: thumb;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tbg-nf-cream-2);
  aspect-ratio: 1;
  width: 100%;
}

.tbg-nf__card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tbg-nf__card-thumb img.is-placeholder {
  object-fit: cover;
  opacity: 0.92;
}

.tbg-nf__marker-num {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #2f9e44;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

.tbg-nf__marker-num.is-google {
  background: #5b6b8c;
}

.tbg-nf__card--google {
  border-style: dashed;
  border-color: #b7c0d1;
  background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 42%);
}

.tbg-nf__card--google.is-active,
.tbg-nf__card--google:hover {
  border-color: #5b6b8c;
  box-shadow: inset 0 0 0 1px rgba(91, 107, 140, 0.22);
}

.tbg-nf__card-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.45rem;
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3d4a42;
}

.tbg-nf__card-rating-score {
  font-weight: 700;
  color: #24352e;
}

.tbg-nf__card-rating-star {
  color: #c4922a;
  font-size: 0.95em;
  line-height: 1;
}

.tbg-nf__card-rating-count,
.tbg-nf__card-rating-source {
  font-weight: 500;
  color: var(--tbg-nf-muted);
}

.tbg-nf__card-rating-source {
  white-space: nowrap;
}

.tbg-nf__google-attr {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.15rem 0.15rem;
  font-size: 0.78rem;
  color: var(--tbg-nf-muted);
}

.tbg-nf__card-body {
  grid-area: body;
  min-width: 0;
}

.tbg-nf__card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #151515;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tbg-nf__card-meta {
  margin: 0 0 0.45rem;
  color: var(--tbg-nf-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.tbg-nf__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  padding: 0;
  list-style: none;
}

.tbg-nf__card-tags li {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #eef2ef;
  color: #4a5c54;
  font-size: 0.75rem;
  font-weight: 600;
}

.tbg-nf__card-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--tbg-nf-sage);
}

.tbg-nf__card-hours svg {
  width: 0.95rem;
  height: 0.95rem;
}

.tbg-nf__card-hours.is-open { color: #2f9e44; }
.tbg-nf__card-hours.is-closed { color: #9a6b2f; }

.tbg-nf__card-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0;
  width: 100%;
  min-width: 0;
}

/* Stack actions full-width on the narrowest phones so labels don't clip. */
@media (max-width: 359px) {
  .tbg-nf__card-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) {
  .tbg-nf__card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 132px;
  }
}

.tbg-nf__card-actions .tbg-nf__btn {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.55rem;
  font-size: 0.84rem;
  border-radius: 10px;
  white-space: nowrap;
}

@media (min-width: 420px) {
  .tbg-nf__card-actions .tbg-nf__btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
  }
}

@media (min-width: 700px) {
  .tbg-nf__card-actions .tbg-nf__btn {
    min-height: 40px;
    padding: 0.45rem 0.75rem;
    white-space: normal;
  }
}

.tbg-nf__map-col {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--tbg-nf-header-offset) + 0.75rem);
  min-width: 0;
  max-width: 100%;
}

.tbg-nf__map {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 360px;
  height: min(70vh, 640px);
  border-radius: 16px;
  border: 1px solid #e1e7e3;
  background: #eef3ef;
  overflow: hidden;
}

.tbg-nf__map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 100%;
  min-height: 360px;
  padding: 1.5rem;
  text-align: center;
  color: var(--tbg-nf-muted);
  background:
    linear-gradient(180deg, rgba(250,248,243,0.65), rgba(238,243,239,0.95)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(82, 121, 111, 0.08) 28px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 27px,
      rgba(82, 121, 111, 0.08) 28px
    );
}

.tbg-nf__map-fallback strong {
  color: var(--tbg-nf-green);
  font-size: 1rem;
}

.tbg-nf__map-fallback span {
  max-width: 28ch;
  font-size: 0.9rem;
  line-height: 1.45;
}

.tbg-nf__ad-wrap {
  margin: 0 0 1.25rem;
}

.tbg-nf__ad-wrap--results { margin: 1rem 0 0; }
.tbg-nf__ad-wrap--detail { margin: 0 0 2rem; }

.tbg-nf-ad {
  border-radius: 12px;
  overflow: hidden;
  background: #f3f5f2;
}

.tbg-nf-ad--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 1px dashed #b7c4bc;
  background:
    repeating-linear-gradient(
      -45deg,
      #f7f8f5,
      #f7f8f5 10px,
      #eef1ec 10px,
      #eef1ec 20px
    );
  color: #6a7a70;
  text-align: center;
  padding: 1rem;
}

.tbg-nf-ad__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #4d5f55;
}

.tbg-nf-ad__hint {
  font-size: 0.8rem;
  color: #7a8a80;
}

.tbg-nf-ad--leaderboard { min-height: 90px !important; }
.tbg-nf-ad--results,
.tbg-nf-ad--detail { min-height: 250px !important; }
.tbg-nf-ad--in_feed { min-height: 90px !important; margin: 0.5rem 0; }

/* An unfilled slot must not leave a reserved grey block on the page. */
.tbg-nf-ad--live.is-unfilled {
  display: none !important;
  min-height: 0 !important;
}

.tbg-nf__ad-wrap:has(.tbg-nf-ad--live.is-unfilled),
.tbg-nf__in-feed:has(.tbg-nf-ad--live.is-unfilled) {
  display: none;
  margin: 0;
}

.tbg-nf.is-showing-results .tbg-nf__hero-split {
  display: none;
}

.tbg-nf.is-showing-results .tbg-nf__search-card {
  margin-top: 0.5rem;
}

.tbg-nf.is-showing-results .tbg-nf__search-card h2,
.tbg-nf.is-showing-results .tbg-nf__search-card .tbg-nf__lead,
.tbg-nf.is-showing-results .tbg-nf__search-card .tbg-nf__eyebrow,
.tbg-nf.is-showing-results .tbg-nf__search-card .tbg-nf__trust {
  display: none;
}

.tbg-nf.is-showing-results .tbg-nf__search-card {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  background: #fff;
  border-color: #e4ebe6;
}

.tbg-nf__status {
  margin: 0 0 0.75rem;
  color: var(--tbg-nf-muted);
}

.tbg-nf__empty {
  padding: 1.5rem;
  border: 1px dashed #cfd8d3;
  border-radius: 14px;
  background: var(--tbg-nf-cream);
  color: #3d4f48;
}

.tbg-nf__empty ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

/* Detail */
.tbg-nf__detail-hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 900px) {
  .tbg-nf__detail-hero {
    grid-template-columns: 1.15fr 0.95fr;
    align-items: stretch;
  }
}

.tbg-nf__detail-photo {
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
  background: var(--tbg-nf-cream-2);
}

.tbg-nf__detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

.tbg-nf__detail-card {
  border: 1px solid #e1e7e3;
  border-radius: 18px;
  padding: 1.5rem;
  background: #fff;
}

.tbg-nf__detail-card h1 {
  margin: 0 0 0.35rem;
  font-family: Domine, Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #151515;
  line-height: 1.15;
}

.tbg-nf__detail-place {
  margin: 0 0 1rem;
  color: var(--tbg-nf-muted);
}

.tbg-nf__detail-meta {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.tbg-nf__detail-meta li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: #31443c;
}

.tbg-nf__meta-icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--tbg-nf-teal);
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.tbg-nf__meta-icon--star {
  color: #c4922a;
}

.tbg-nf__detail-rating {
  align-items: center;
}

.tbg-nf__detail-rating .tbg-nf__meta-icon {
  margin-top: 0;
}

.tbg-nf__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.tbg-nf__rating-score {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2f28;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tbg-nf__stars {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #d7c39a;
}

.tbg-nf__stars-track,
.tbg-nf__stars-fill {
  display: block;
  white-space: nowrap;
}

.tbg-nf__stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  color: #c4922a;
  width: 0;
}

.tbg-nf__rating-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--tbg-nf-muted);
  font-size: 0.9rem;
}

.tbg-nf__rating-count {
  font-weight: 500;
}

.tbg-nf__rating-source {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #3d4d6d;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tbg-nf__detail-meta a {
  color: inherit;
  text-decoration: none;
}

.tbg-nf__detail-meta a:hover { text-decoration: underline; }

.tbg-nf__hours-state--open { color: #2f9e44; font-weight: 600; }
.tbg-nf__hours-state--closed { color: #9a6b2f; font-weight: 600; }

.tbg-nf__data-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.tbg-nf__detail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .tbg-nf__detail-actions { grid-template-columns: 1fr 1fr; }
}

.tbg-nf__detail-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

@media (min-width: 700px) {
  .tbg-nf__detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .tbg-nf__detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tbg-nf__panel {
  border: 1px solid #e1e7e3;
  border-radius: 16px;
  padding: 1.15rem;
  background: #fff;
  height: auto;
  align-self: start;
}

.tbg-nf__panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--tbg-nf-green);
}

.tbg-nf__prose {
  color: #3d4f48;
  line-height: 1.6;
  font-size: 0.95rem;
}

.tbg-nf__prose p:first-child { margin-top: 0; }
.tbg-nf__prose p:last-child { margin-bottom: 0; }

.tbg-nf__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 1rem;
}

.tbg-nf__gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.tbg-nf__service-list,
.tbg-nf__hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.tbg-nf__service-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #f3f6f4;
  font-size: 0.92rem;
}

.tbg-nf__service-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--tbg-nf-teal);
}

.tbg-nf__hours-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  color: #31443c;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eef2ef;
}

.tbg-nf__hours-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tbg-nf__hours-days {
  font-weight: 600;
  color: #24352e;
  white-space: nowrap;
}

.tbg-nf__hours-times {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
}

@media (max-width: 420px) {
  .tbg-nf__hours-list li {
    grid-template-columns: 1fr;
  }

  .tbg-nf__hours-times {
    text-align: left;
  }
}

.tbg-nf__panel--map {
  display: grid;
  gap: 0.85rem;
}

/* Tablet: map stays full-width under the 2-col panels. */
@media (min-width: 700px) and (max-width: 979.98px) {
  .tbg-nf__panel--map {
    grid-column: 1 / -1;
  }
}

/* Desktop: pull Location up beside FAQ (About | Plants | Hours / FAQ | Map spanning 2). */
@media (min-width: 980px) {
  .tbg-nf__detail-grid:has(.tbg-nf__panel--faq) .tbg-nf__panel--map {
    grid-column: 2 / -1;
  }

  .tbg-nf__detail-grid:not(:has(.tbg-nf__panel--faq)) .tbg-nf__panel--map {
    grid-column: 1 / -1;
  }

  .tbg-nf__detail-grid:has(.tbg-nf__panel--faq) .tbg-nf__detail-map {
    aspect-ratio: 16 / 10;
    min-height: 260px;
    max-height: none;
  }
}

.tbg-nf__map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.tbg-nf__map-titles h2 {
  margin: 0 0 0.25rem;
}

.tbg-nf__map-address {
  margin: 0;
  color: var(--tbg-nf-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.tbg-nf__map-cta {
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tbg-nf__map-cta-label {
  white-space: nowrap;
}

.tbg-nf__map-cta svg {
  width: 0.95rem;
  height: 0.95rem;
}

.tbg-nf__detail-map {
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 220px;
  max-height: 360px;
  border-radius: 12px;
  background: #eef3ef;
  border: 1px solid #e1e7e3;
  overflow: hidden;
}

@media (max-width: 699px) {
  .tbg-nf__detail-map {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .tbg-nf__map-cta {
    width: 100%;
  }
}

.tbg-nf__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  color: var(--tbg-nf-teal);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tbg-nf__map-link svg { width: 0.95rem; height: 0.95rem; }
.tbg-nf__map-link:hover { text-decoration: underline; }

.tbg-nf__muted { color: var(--tbg-nf-muted); }

.tbg-nf__nearby-head {
  margin-bottom: 1rem;
}

.tbg-nf__nearby-head h2 {
  margin: 0 0 0.35rem;
  font-family: Domine, Georgia, serif;
  font-size: 1.5rem;
  color: var(--tbg-nf-green);
}

.tbg-nf__nearby-head p {
  margin: 0;
  color: var(--tbg-nf-muted);
}

.tbg-nf__nearby-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .tbg-nf__nearby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tbg-nf__nearby-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e1e7e3;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.tbg-nf__nearby-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
}

.tbg-nf__nearby-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.tbg-nf__nearby-card span {
  color: var(--tbg-nf-muted);
  font-size: 0.9rem;
}

/* Directory hubs */
.tbg-nf__dir-hero {
  margin: 0.5rem 0 1.75rem;
}

.tbg-nf__dir-hero h1 {
  margin: 0 0 0.65rem;
  font-family: Domine, Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--tbg-nf-green);
}

.tbg-nf__chip-grid,
.tbg-nf__dir-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 700px) {
  .tbg-nf__chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tbg-nf__dir-chip,
.tbg-nf__dir-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e1e7e3;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.tbg-nf__dir-chip:hover,
.tbg-nf__dir-list a:hover {
  border-color: var(--tbg-nf-teal);
}

.tbg-nf__dir-chip-name,
.tbg-nf__dir-list strong { font-weight: 700; color: var(--tbg-nf-green); }
.tbg-nf__dir-chip-count,
.tbg-nf__dir-list span { color: var(--tbg-nf-muted); }

.tbg-nf__dir-list a {
  flex-direction: column;
  align-items: flex-start;
}

/* Mobile map/list switch helper bar */
@media (max-width: 991.98px) {
  .tbg-nf__map-col { position: static; }
  .tbg-nf__map { min-height: 280px; height: 50vh; }
  .tbg-nf__search-row .tbg-nf__btn { width: 100%; }
  .tbg-nf__field,
  .tbg-nf__field--radius { flex: 1 1 100%; }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
