/* ────────────────────────────────────────────────────────────────
   The Dallas Registry — Places System
   Colors: #102a52 (navy) · #c9a551 (gold) · matches tdr-fsbo.css
 ──────────────────────────────────────────────────────────────── */

/* ────────────────────────────────────────────────────────────────
   NEARBY WIDGET  [tdr_nearby_grocery]
 ──────────────────────────────────────────────────────────────── */
.tdr-nearby-wrap {
  max-width: 960px;
  margin: 0 auto;
}

/* ── Status / loading state ─────────────────────────────────── */
.tdr-nearby-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 24px;
  text-align: center;
  color: #6b7280;
}
.tdr-nearby-status-msg {
  margin: 0;
  font-size: 15px;
}

/* Spinner */
.tdr-nearby-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--tdr-navy, #102a52);
  border-radius: 50%;
  animation: tdrNearbySpин 0.75s linear infinite;
}
@keyframes tdrNearbySpин {
  to { transform: rotate(360deg); }
}

/* ── Error state ────────────────────────────────────────────── */
.tdr-nearby-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px;
  text-align: center;
  background: #fff8f8;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #991b1b;
}
.tdr-nearby-err-icon { opacity: .6; }
.tdr-nearby-err-msg  { margin: 0; font-size: 14px; line-height: 1.5; }

/* ── Results header ─────────────────────────────────────────── */
.tdr-nearby-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tdr-nearby-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--tdr-navy, #102a52);
}
.tdr-nearby-count {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}
.tdr-nearby-none {
  text-align: center;
  color: #6b7280;
  padding: 32px;
  font-size: 15px;
}

/* ── Distance badge on cards ────────────────────────────────── */
.tdr-pc-dist-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  background: #fdf6e3;
  color: var(--tdr-navy, #102a52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid rgba(201,165,81,.4);
  white-space: nowrap;
  margin-bottom: 6px;
}
/* Row variant — sits inline, no bottom margin */
.tdr-pc-dist-badge-row {
  margin-bottom: 0;
  align-self: center;
}

/* ── Reset inside places ─────────────────────────────────────── */
.tdr-place-wrap *, .tdr-place-card *, .tdr-place-detail *,
.tdr-neighborhood-widget * {
  box-sizing: border-box;
}

/* ────────────────────────────────────────────────────────────────
   CATEGORY BADGE COLORS
   Reviewed against gold/navy card palette (Jul 2026).
   All badges use white text on dark backgrounds — WCAG AA on every
   value below.  Colors sit over the photo overlay (bottom-left of
   card), so primary context is a photo, not the cream/gray body.
   specialty was nudged from #117a8b → #0d697a (deeper navy-teal) to
   reduce cool-vs-warm tension against the #fdf6e3/#c9a551 gold accents.
 ──────────────────────────────────────────────────────────────── */
.tdr-place-cat-badge, .tdr-place-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--tdr-navy, #102a52);
}
.tdr-cat-grocery           { background: #2d7a3a; }
.tdr-cat-asian             { background: #c0392b; }
.tdr-cat-wine-spirits      { background: #6c3483; }
.tdr-cat-deli              { background: #a04000; }
.tdr-cat-butcher           { background: #7b241c; }
.tdr-cat-farmers-market    { background: #1e6b3c; }
.tdr-cat-specialty         { background: #0d697a; } /* was #117a8b — deeper navy-teal */
.tdr-cat-convenience       { background: #546e7a; }

/* ── Neighborhood pill ──────────────────────────────────────── */
.tdr-place-hood-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  background: #eef2f7;
  color: var(--tdr-navy, #102a52);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #d0d9e8;
  transition: background .15s, color .15s;
}
.tdr-place-hood-pill:hover {
  background: var(--tdr-navy, #102a52);
  color: #fff;
  text-decoration: none;
}

/* ── Verified / badge ───────────────────────────────────────── */
.tdr-place-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--tdr-navy, #102a52);
  color: #c9a551;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.tdr-place-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.tdr-badge-pending  { background: #fef3cd; color: #856404; border: 1px solid #ffc107; }
.tdr-badge-claimed  { background: #d4edda; color: #155724; border: 1px solid #28a745; }

/* ── Founding Member badge — gold/navy pill used on profiles & bylines ── */
.tdr-founding-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--tdr-navy, #102a52);
  color: #c9a551;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(201,165,81,.45);
  vertical-align: middle;
  line-height: 1.5;
  white-space: nowrap;
}

/* ── Star ratings ───────────────────────────────────────────── */
.tdr-stars { display: inline-flex; gap: 1px; line-height: 1; }
.tdr-star  { font-style: normal; font-size: 16px; }
.tdr-star-full  { color: #c9a551; }
.tdr-star-half  { color: #c9a551; opacity: .6; }
.tdr-star-empty { color: #d0d9e8; }

/* ────────────────────────────────────────────────────────────────
   FILTER BAR
 ──────────────────────────────────────────────────────────────── */
:root { --tdr-sage: #7a8c76; --tdr-sage-dark: #65776a; --tdr-sage-light: rgba(255,255,255,.15); }

.tdr-place-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: var(--tdr-sage);
  border: none;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.10);
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Filter controls are the shared signature search component —
   styles live in tdr-signature-search.css. */
.tdr-place-filters .tdr-sig { position: relative; z-index: 2; max-width: none; }
.tdr-place-filters #tdr-place-count { font-weight: 700; }

/* ── Add My Business button (sits below the map panel) ─────────── */
.tdr-add-business-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  height: 38px;
  border: 1.5px solid var(--tdr-navy, #102a52);
  border-radius: 6px;
  background: #fff;
  color: var(--tdr-navy, #102a52);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s;
  margin: 10px 0 4px auto;
  display: flex;
}
.tdr-add-business-btn:hover {
  background: var(--tdr-navy, #102a52);
  color: #c9a551 !important;
  text-decoration: none !important;
}

/* ── Hours status badge ──────────────────────────────────────────── */
.tdr-hs {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 3px 9px;
  border-radius: 5px;
  margin-bottom: 5px;
}
.tdr-hs:empty { display: none; }
.tdr-hs-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.tdr-hs-sub {
  font-size: 10px;
  font-weight: 500;
  opacity: .88;
  line-height: 1.3;
  white-space: nowrap;
}

/* Colors */
.tdr-hs-open    { background: #fdf6e3; color: #102a52; }
.tdr-hs-closing { background: #fff3cd; color: #b45309; }
.tdr-hs-opening { background: #fef9c3; color: #854d0e; }
.tdr-hs-closed  { background: #f3f4f6; color: #6b7280; }

/* Row variant — sits inline, no bottom margin */
.tdr-hs-row { margin: 0; align-self: center; flex-direction: row; gap: 4px; align-items: center; }
.tdr-hs-row .tdr-hs-sub::before { content: '·'; margin-right: 4px; opacity: .5; }

/* Opening Soon divider inside grid/list containers */
.tdr-opening-soon-divider {
  flex-basis: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #854d0e;
}
.tdr-opening-soon-divider::before,
.tdr-opening-soon-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f59e0b;
  opacity: .35;
}

/* ────────────────────────────────────────────────────────────────
   PLACE GRID
 ──────────────────────────────────────────────────────────────── */
/* Full-bleed breakout: the directory should be as wide as the top nav,
   not stuck inside the theme's narrow content column. Content centers
   at up to 1200px with a 24px minimum gutter. */
.tdr-place-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: max(24px, calc(50vw - 600px));
  padding-right: max(24px, calc(50vw - 600px));
  box-sizing: border-box;
  background: #fff;
}
.tdr-place-none { color: #6b7280; font-size: 15px; text-align: center; padding: 40px 0; }

/* ── Empty-section notice (shown by JS when all cards are filtered out) ── */
.tdr-filter-empty-msg {
  text-align: center;
  color: #6b7280;
  font-size: 15px;
  padding: 40px 0;
  margin: 0;
}

.tdr-place-grid {
  display: grid;
  gap: 22px;
}
.tdr-place-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tdr-place-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tdr-place-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .tdr-place-cols-3,
  .tdr-place-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .tdr-place-grid { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────────────────────────
   PLACE CARD  — redesigned
 ──────────────────────────────────────────────────────────────── */
.tdr-place-card {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(16,42,82,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.tdr-place-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(16,42,82,.13);
}

/* ── Photo (verified / claimed) ─────────────────────────────────── */
.tdr-pc-photo-wrap { display: block; text-decoration: none; position: relative; }
.tdr-pc-photo {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.tdr-place-card:hover .tdr-pc-photo { opacity: .95; }

/* Tier badge — top-left of photo */
.tdr-pc-top-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
/* Category + hood — bottom-left of photo */
.tdr-pc-bottom-badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  z-index: 2;
}

/* ── Card body — two-column layout ──────────────────────────────── */
.tdr-pc-body {
  padding: 16px 18px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}
.tdr-pc-body-left  { flex: 1; min-width: 0; }
.tdr-pc-body-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  max-width: 48%;
}

.tdr-pc-name {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--tdr-navy, #102a52) !important;
  margin: 0 0 3px !important;
  line-height: 1.3 !important;
}
.tdr-pc-name a { color: inherit !important; text-decoration: none !important; }
.tdr-pc-name a:hover { color: #c9a551 !important; }

.tdr-pc-type {
  font-size: 12px;
  color: #4b5563 !important;
  margin: 0 0 8px;
}
.tdr-pc-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.tdr-pc-rating-num { font-size: 13px; font-weight: 700; color: #1f2937 !important; }
.tdr-pc-rating-ct  { font-size: 11px; color: #6b7280 !important; }

.tdr-pc-addr {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  color: #4b5563 !important;
  margin: 0;
  line-height: 1.4;
  text-align: right;
}
.tdr-pc-addr svg { flex-shrink: 0; margin-top: 2px; color: #6b7280 !important; }

.tdr-pc-cta {
  font-size: 13px;
  font-weight: 700;
  color: #c9a551 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.tdr-pc-cta:hover { color: var(--tdr-navy, #102a52) !important; text-decoration: underline !important; }

/* ── Registry card (legacy, unused) ─────────────────────────────── */
.tdr-pc-reg-header { display: none; }

/* ── Unified list — all tiers live here ─────────────────────────── */
.tdr-place-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.tdr-place-list .tdr-place-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: #fff;
  border: none;
  border-left: 4px solid transparent;  /* reserve space; tier overrides colour */
  border-radius: 0;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: none;
  transition: background .15s;
}
.tdr-place-list .tdr-place-card:last-child { border-bottom: none; }
.tdr-place-list .tdr-place-card:hover { background: #fafafa; transform: none; box-shadow: none; }

/* Tier left-border colours */
.tdr-place-list .tdr-pc-verified { border-left-color: #c9a551; }   /* gold  — Featured  */
.tdr-place-list .tdr-pc-claimed  { border-left-color: var(--tdr-navy, #102a52); }   /* navy — Verified  */
.tdr-place-list .tdr-pc-registry { border-left-color: transparent; }

/* Inline tier pill */
.tdr-row-tier {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
  line-height: 1.6;
  white-space: nowrap;
}
.tdr-row-tier-featured {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #c9a551;
}
.tdr-row-tier-verified {
  background: var(--tdr-navy, #102a52);
  color: #c9a551;
  border: 1px solid rgba(201,165,81,.4);
}
.tdr-row-tier-basic {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.tdr-row-icon { flex-shrink: 0; display: flex; align-items: center; width: 36px; height: 36px; }
/* Always keep uploaded logos the same size as the initial-letter circles */
.tdr-row-icon img { width: 36px !important; height: 36px !important; object-fit: cover; flex-shrink: 0; border-radius: 50%; }
.tdr-row-initial {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--tdr-navy, #102a52);
  color: #c9a551;
  font-family: var(--tdr-serif, Georgia, serif);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}

.tdr-row-name {
  flex: 0 0 200px;
  min-width: 0;
}
.tdr-row-name a {
  font-size: 14px;
  font-weight: 700;
  color: var(--tdr-navy, #102a52) !important;
  text-decoration: none !important;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tdr-row-name a:hover { color: #c9a551 !important; }
.tdr-row-type {
  font-size: 11px;
  color: #6b7280;
  display: block;
  margin-top: 1px;
}

.tdr-row-addr {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #4b5563;
  min-width: 0;
  overflow: hidden;
}
.tdr-row-addr svg { flex-shrink: 0; color: #9ca3af; }
.tdr-row-addr-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}

.tdr-row-rating {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.tdr-row-rating-num { font-size: 13px; font-weight: 700; color: #1f2937; }
.tdr-row-rating-ct  { font-size: 11px; color: #9ca3af; }

.tdr-row-cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #c9a551 !important;
  text-decoration: none !important;
  white-space: nowrap;
  margin-left: auto;
  /* Reserve the row's right edge for the absolutely-positioned save
     heart. The footprint vars are emitted by tdr_saved_inline_css()
     (tdr-saved-places.php) — the single source of truth for the heart's
     size/offset. The card's own 18px right padding covers the inset part
     of the footprint, so reserving the heart size leaves an ~8px gap and
     the CTA never sits underneath it on short single-line rows. */
  margin-right: var(--tdr-heart-size, 44px);
}
.tdr-row-cta:hover { color: var(--tdr-navy, #102a52) !important; text-decoration: underline !important; }

/* Mobile: collapse rows to stacked mini-cards */
@media (max-width: 640px) {
  .tdr-place-list .tdr-place-card {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 14px;
  }
  /* Reserve the top-right corner for the absolutely-positioned save
     heart (footprint vars emitted by tdr_saved_inline_css()) so a
     long wrapping business name never runs underneath it. */
  .tdr-row-name  { flex: 1 1 calc(100% - var(--tdr-heart-footprint, 54px)); padding-right: var(--tdr-heart-size, 44px); }
  .tdr-row-addr  { flex: 1 1 100%; }
  .tdr-row-rating { flex: 1 1 auto; }
  .tdr-row-cta   { margin-left: 0; margin-right: 0; }
}

/* Shared rating aliases (old class names used elsewhere) */
.tdr-rating-num   { font-size: 13px; font-weight: 700; color: #1f2937; }
.tdr-rating-count { font-size: 12px; color: #9ca3af; }

/* ── Logo circle — shared by featured overlay and verified left ─── */
.tdr-pc-logo-circle {
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  display: block;
}

/* Featured (verified+photo): logo sits in body and pulls up into photo */
.tdr-pc-body-has-logo { padding-top: 6px; }
.tdr-pc-logo-holder {
  flex-shrink: 0;
  margin-top: -42px;
  position: relative;
  z-index: 3;
  align-self: flex-start;
  /* Lock the wrapper so an unusual-aspect-ratio image cannot stretch the circle */
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  border: 3px solid #fff;
  background: #fff;
}
.tdr-pc-logo-holder .tdr-pc-logo-circle {
  width: 70px !important;
  height: 70px !important;
  max-width: 70px !important;
  max-height: 70px !important;
  /* Remove duplicate decoration — wrapper handles it */
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.tdr-pc-logo-holder .tdr-pc-logo-placeholder,
.tdr-pc-claimed-logo .tdr-pc-logo-placeholder {
  /* Wrapper already provides the circle border and shadow — suppress inner decoration */
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Verified (claimed): logo on left, content on right */
.tdr-pc-body-claimed {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
}
.tdr-pc-claimed-logo {
  flex-shrink: 0;
  /* Lock the wrapper so an unusual-aspect-ratio image cannot stretch the circle */
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  border: 3px solid #fff;
  background: #fff;
}
.tdr-pc-logo-lg {
  width: 70px !important;
  height: 70px !important;
  max-width: 70px !important;
  max-height: 70px !important;
  object-fit: cover;
  /* Remove duplicate decoration — wrapper handles it */
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.tdr-pc-logo-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tdr-pc-claimed-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tdr-pc-top-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
}
.tdr-pc-claimed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.tdr-pc-claimed-footer .tdr-pc-addr { margin: 0; text-align: left; }

/* ────────────────────────────────────────────────────────────────
   TIER SECTION HEADINGS  (in grid)
 ──────────────────────────────────────────────────────────────── */
.tdr-tier-section { margin-bottom: 40px; }
.tdr-tier-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 14px;
  border-bottom: 2px solid #eef2f7;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tdr-tier-heading-icon { font-size: 18px; }
.tdr-tier-heading-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tdr-navy, #102a52);
}
.tdr-tier-heading-sub {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
}
.tdr-tier-verified .tdr-tier-heading { border-bottom-color: #c9a551; }
.tdr-tier-claimed  .tdr-tier-heading { border-bottom-color: var(--tdr-navy, #102a52); }
.tdr-tier-registry .tdr-tier-heading { border-bottom-color: #9ca3af; }

/* ── Card photo with overlay badges ─────────────────────────────── */
.tdr-pc-photo-wrap { display: block; text-decoration: none; flex-shrink: 0; position: relative; }
.tdr-pc-photo {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #eef2f7;
  position: relative;
}
.tdr-pc-no-photo {
  background: linear-gradient(135deg, #eef2f7 0%, #dde3ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tdr-pc-no-photo-icon { font-size: 40px; }
.tdr-place-card:hover .tdr-pc-photo { opacity: .93; }

.tdr-pc-overlay-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 2;
}
/* Tier badges on cards */
.tdr-gc-tier {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.tdr-gc-verified {
  background: rgba(16,42,82,.92);
  color: #c9a551;
  border: 1px solid rgba(201,165,81,.4);
}
.tdr-gc-claimed {
  background: rgba(16,42,82,.92);
  color: #c9a551;
}
.tdr-gc-registry {
  background: rgba(107,114,128,.85);
  color: #fff;
}
.tdr-pc-cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  background: var(--tdr-navy, #102a52);
}
.tdr-pc-hood {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255,255,255,.85);
  color: var(--tdr-navy, #102a52);
}

/* Claim CTA link style */
.tdr-cta-claim {
  color: var(--tdr-navy, #102a52) !important;
  border: 1px solid #dde3ec;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  background: #f8fafc;
  transition: background .15s, border-color .15s;
}
.tdr-cta-claim:hover {
  background: var(--tdr-navy, #102a52);
  border-color: var(--tdr-navy, #102a52);
  color: #c9a551 !important;
  text-decoration: none !important;
}

/* ────────────────────────────────────────────────────────────────
   TIER BADGES  (on single page hero card)
 ──────────────────────────────────────────────────────────────── */
.tdr-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
}
/* Scoped to badge only — section wrapper stays white */
.tdr-tier-badge.tdr-tier-verified { background: #111; color: #c9a551; }
.tdr-tier-badge.tdr-tier-claimed  { background: #111; color: #c9a551; }
.tdr-tier-badge.tdr-tier-registry { background: #444; color: #fff; }
.tdr-tier-section.tdr-tier-verified,
.tdr-tier-section.tdr-tier-claimed,
.tdr-tier-section.tdr-tier-registry { background: #fff; color: inherit; }

/* ────────────────────────────────────────────────────────────────
   SINGLE PLACE DETAIL — CENTERED CARD LAYOUT
 ──────────────────────────────────────────────────────────────── */
.tdr-place-detail {
  font-family: inherit;
  color: #1f2937;
  max-width: 820px;
  margin: 40px auto;
  padding: 0 24px;
}

/* Hero wrapper — note card style matching the grid cards */
.tdr-place-hero {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(16,42,82,.08);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
}
.tdr-hero-no-photo {
  grid-template-columns: 1fr;
}

/* Info card — sits inside the hero, transparent so card bg shows */
.tdr-place-hero-card {
  position: relative;
  background: transparent;
  padding: 28px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Save heart on the hero card (single place page) */
.tdr-phc-save {
  top: 11px;
  right: 11px;
  font-size: 26px;
}

/* Badge row — right padding reserves the save-heart corner (hero heart
   sits at top:11/right:11 with the shared --tdr-heart-size hit area,
   vars emitted by tdr_saved_inline_css()) so wrapping badges never run
   under it. 11px inset + heart size + ~1px breathing room = 56px. */
.tdr-phc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding-right: calc(var(--tdr-heart-size, 44px) + 12px);
}
.tdr-phc-cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c9a551;
  background: #111;
}
.tdr-phc-hood-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: #eef2f7;
  color: var(--tdr-navy, #102a52);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #d0d9e8;
  transition: background .15s, color .15s;
}
.tdr-phc-hood-pill:hover { background: var(--tdr-navy, #102a52); color: #fff; text-decoration: none; }

/* Name */
.tdr-phc-name {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--tdr-navy, #102a52) !important;
  margin: 0 0 4px !important;
  line-height: 1.2 !important;
}
.tdr-phc-type { font-size: 13px; color: #6b7280; margin: 0 0 10px; }

/* Rating */
.tdr-phc-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tdr-phc-rating-num { font-size: 16px; font-weight: 700; color: #1f2937; }
.tdr-phc-rating-ct  { font-size: 12px; color: #6b7280; }

/* Divider */
.tdr-phc-hr {
  border: none;
  border-top: 1px solid #eef2f7;
  margin: 12px 0;
}

/* Address block */
.tdr-phc-address-block { margin-bottom: 4px; }
.tdr-phc-addr-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 10px;
}
.tdr-phc-icon { flex-shrink: 0; margin-top: 2px; color: var(--tdr-navy, #102a52); }

.tdr-phc-dir-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tdr-navy, #102a52);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .15s;
}
.tdr-phc-dir-btn:hover { background: #1a3d6e; }

.tdr-phc-dist {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

/* Contact rows */
.tdr-phc-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}
.tdr-phc-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tdr-navy, #102a52);
  text-decoration: none;
  padding: 5px 0;
}
.tdr-phc-contact-row:hover { color: #c9a551; text-decoration: none; }

/* Social */
.tdr-phc-social {
  display: flex;
  gap: 8px;
  margin: 10px 0 6px;
  flex-wrap: wrap;
}
.tdr-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity .15s;
}
.tdr-social-btn:hover { opacity: .85; }
.tdr-social-fb { background: #1877f2; color: #fff !important; }
.tdr-social-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff !important; }

/* Visit Website button */
.tdr-phc-website-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--tdr-navy, #102a52);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  margin: 10px 0 4px;
  transition: background .15s;
  width: 100%;
  justify-content: center;
}
.tdr-phc-website-btn:hover { background: #1a3d6e; }

/* Email button (Verified) */
.tdr-phc-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #111;
  color: #c9a551 !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  margin: 10px 0 6px;
  transition: background .15s;
  width: 100%;
  justify-content: center;
}
.tdr-phc-email-btn:hover { background: #2a2a2a; }

/* Description */
.tdr-phc-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin: 8px 0 6px;
}

/* Claim box (Registry) */
.tdr-phc-claim-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 8px;
}
.tdr-phc-claim-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.tdr-phc-claim-inner strong {
  display: block;
  font-size: 13px;
  color: var(--tdr-navy, #102a52);
  margin-bottom: 4px;
}
.tdr-phc-claim-inner p { font-size: 12px; color: #6b7280; margin: 0; line-height: 1.5; }
.tdr-phc-claim-btn {
  display: block;
  background: var(--tdr-navy, #102a52);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  transition: background .15s;
}
.tdr-phc-claim-btn:hover { background: #1a3d6e; }

/* Featured footer */
.tdr-phc-featured {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #c9a551;
  font-weight: 600;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}
.tdr-phc-featured strong { color: var(--tdr-navy, #102a52); }

/* Hero photo (right side) */
.tdr-place-hero-photo {
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

/* ----------------------------------------------------------------
   Verified listing — featured photo as full-card background
   Left panel gets a white frosted overlay; right panel is a
   transparent window that lets the background photo show through.
---------------------------------------------------------------- */
.tdr-hero-featured-bg {
  background-size: cover;
  background-position: center;
  background-color: #1f2937; /* fallback while image loads */
  border-color: transparent;
  /* remove the flat gray card background so the photo dominates */
  background-blend-mode: normal;
}
.tdr-hero-featured-bg .tdr-place-hero-card {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  margin: 20px 0 20px 20px;
  border-radius: 10px;
}
/* Right panel: fully transparent — photo shows through from card bg */
.tdr-place-hero-photo-window {
  min-height: 420px;
  background: transparent;
}

/* ────────────────────────────────────────────────────────────────
   NEARBY PLACES
 ──────────────────────────────────────────────────────────────── */
.tdr-place-nearby {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.tdr-place-nearby h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tdr-navy, #102a52);
  margin: 0 0 12px;
}
.tdr-place-nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tdr-place-nearby-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.tdr-place-nearby-list li:last-child { border-bottom: none; }
.tdr-place-nearby-list a {
  color: var(--tdr-navy, #102a52);
  font-weight: 600;
  text-decoration: none;
  flex: 1;
}
.tdr-place-nearby-list a:hover { color: #c9a551; text-decoration: underline; }
.tdr-nearby-type {
  font-size: 12px;
  color: #9ca3af;
}
.tdr-nearby-rating {
  font-size: 13px;
  color: #c9a551;
  font-weight: 600;
  margin-left: auto;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────────
   HOURS BLOCK
 ──────────────────────────────────────────────────────────────── */
.tdr-phc-hours {
  margin: 10px 0 6px;
}
.tdr-phc-hours-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tdr-navy, #102a52);
}
.tdr-hours-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #9ca3af;
}
.tdr-hours-open .tdr-hours-dot   { background: #c9a551; }  /* gold = open */
.tdr-hours-closed .tdr-hours-dot { background: #ef4444; }  /* red  = closed */
.tdr-hours-open   .tdr-hours-label { color: var(--tdr-navy, #102a52); }
.tdr-hours-closed .tdr-hours-label { color: #b91c1c; }
.tdr-hours-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  transition: transform .2s;
}
.tdr-hours-toggle-open { transform: rotate(180deg); }
.tdr-hours-panel {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tdr-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #4b5563;
  padding: 3px 0;
  border-bottom: 1px solid #f3f4f6;
}
.tdr-hours-row:last-child { border-bottom: none; }
.tdr-hours-today { font-weight: 700; color: var(--tdr-navy, #102a52); }
.tdr-hours-day   { flex: 0 0 90px; }
.tdr-hours-time  { text-align: right; }

/* ────────────────────────────────────────────────────────────────
   ADDRESS — copy button & actions row
 ──────────────────────────────────────────────────────────────── */
.tdr-phc-addr-text {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
}
.tdr-phc-addr-text:hover .tdr-addr-copy-icon { opacity: 1; }
.tdr-addr-copy-icon {
  opacity: 0;
  transition: opacity .15s;
  color: #9ca3af;
  margin-top: 1px;
  flex-shrink: 0;
}
.tdr-phc-addr-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Call Now button */
.tdr-phc-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111;
  color: #c9a551 !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .15s;
}
.tdr-phc-call-btn:hover { background: #2a2a2a; }

/* Share button */
.tdr-phc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tdr-navy, #102a52);
  cursor: pointer;
  width: 100%;
  justify-content: center;
  margin: 10px 0 6px;
  transition: border-color .15s, color .15s;
}
.tdr-phc-share-btn:hover { border-color: #c9a551; color: #c9a551; }

/* Tooltip */
.tdr-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  z-index: 100;
}
.tdr-tooltip-show { opacity: 1; }

/* ────────────────────────────────────────────────────────────────
   NEIGHBORHOOD WIDGET (sidebar / inline article embed)
 ──────────────────────────────────────────────────────────────── */
.tdr-neighborhood-widget {
  background: #fff;
  border: 2px solid #eef2f7;
  border-top: 4px solid #c9a551;
  border-radius: 0 0 8px 8px;
  padding: 18px 20px;
  margin: 24px 0;
}
.tdr-nw-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--tdr-navy, #102a52) !important;
  margin: 0 0 14px !important;
  line-height: 1.3 !important;
}
.tdr-nw-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tdr-nw-item {
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.tdr-nw-item:last-child { border-bottom: none; }
.tdr-nw-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--tdr-navy, #102a52);
  text-decoration: none;
  margin-bottom: 3px;
}
.tdr-nw-name:hover { color: #c9a551; text-decoration: underline; }
.tdr-nw-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.tdr-nw-type {
  font-size: 12px;
  color: #6b7280;
}
.tdr-nw-rating {
  font-size: 12px;
  color: #c9a551;
  font-weight: 600;
}
.tdr-nw-addr {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}
.tdr-nw-see-all {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #c9a551;
  text-decoration: none;
}
.tdr-nw-see-all:hover { color: var(--tdr-navy, #102a52); text-decoration: underline; }

/* ────────────────────────────────────────────────────────────────
   SIDEBAR — hide on single place pages
 ──────────────────────────────────────────────────────────────── */
body.single-tdr_place #sidebar,
body.single-tdr_place #secondary,
body.single-tdr_place .widget-area,
body.single-tdr_place aside.widget-area,
body.single-tdr_place #left-area,
body.single-tdr_place #right-area,
body.single-tdr_place .et_pb_widget_area,
body.single-tdr_place .widget_search,
body.single-tdr_place .widget_recent_entries,
body.single-tdr_place .widget_recent_comments,
body.single-tdr_place .widget_archive,
body.single-tdr_place .widget_categories,
body.single-tdr_place .widget_meta { display: none !important; }

/* ────────────────────────────────────────────────────────────────
   RESPONSIVE
 ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tdr-place-name { font-size: 24px !important; }
  .tdr-place-claim-inner { flex-direction: column; align-items: flex-start; }
  .tdr-place-claim-btn { width: 100%; text-align: center; }

  /* ── Filter panel mobile overrides ── */
  .tdr-place-filters {
    padding: 14px 14px 14px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* ── Detail page ── */
  .tdr-place-detail {
    margin: 16px auto;
    padding: 0 14px;
  }

  /* Collapse hero grid to single column on mobile */
  .tdr-place-hero,
  .tdr-hero-featured-bg {
    grid-template-columns: 1fr;
  }

  /* Featured-bg: card fills full width with inset margin on all sides */
  .tdr-hero-featured-bg .tdr-place-hero-card {
    margin: 14px;
    border-radius: 10px;
    /* slight blur increase so text stays legible on small screens */
    background: rgba(255, 255, 255, 0.70);
  }

  /* Hide the transparent right-column spacer — photo bg shows behind the card */
  .tdr-place-hero-photo-window { display: none; }

  /* Non-featured photo: stack above the card on mobile */
  .tdr-place-hero-photo {
    min-height: 200px;
    order: -1;
  }

  /* Name — trim for narrow screens */
  .tdr-phc-name { font-size: 21px !important; }

  /* Action buttons — stack full width */
  .tdr-phc-addr-actions {
    flex-direction: column;
  }
  .tdr-phc-dir-btn,
  .tdr-phc-call-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Website + email buttons already full-width, just ensure on small screens */
  .tdr-phc-website-btn,
  .tdr-phc-email-btn { margin-top: 8px; }
}

/* ── Place-grid "Show more" expand pattern ──────────────────────────── */
.tdr-place-card.tdr-pg-hidden {
  display: none;
}

@keyframes tdrPgReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tdr-place-card.tdr-pg-revealing {
  animation: tdrPgReveal 0.3s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .tdr-place-card.tdr-pg-revealing {
    animation: none;
  }
}

.tdr-pg-show-more {
  display: block;
  margin: 24px auto 0;
  padding: 10px 28px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.tdr-pg-show-more:hover,
.tdr-pg-show-more:focus-visible {
  border-color: #6b7280;
  color: #111827;
  outline: none;
}

.tdr-pg-footer {
  margin-top: 8px;
  text-align: center;
}
.tdr-social-tw { background: #000; color: #fff !important; }
