/* ── daycare-detail-modern.css ───────────────────────────────
 * Scoped redesign for daycare detail pages.
 * All selectors are prefixed with .daycare-detail-modern
 * to avoid leaking into schools, homepage, or other sections.
 * ────────────────────────────────────────────────────────── */

.daycare-detail-modern {
  --ddm-primary: #2563eb;
  --ddm-primary-light: #dbeafe;
  --ddm-primary-dark: #1e40af;
  --ddm-bg: #f8f7f4;
  --ddm-surface: #ffffff;
  --ddm-text: #1a1a2e;
  --ddm-text-secondary: #64748b;
  --ddm-border: #e2e8f0;
  --ddm-radius: 12px;
  --ddm-radius-sm: 8px;
  --ddm-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --ddm-shadow-lg: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.03);
  --ddm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ddm-accent-green: #059669;
  --ddm-accent-amber: #d97706;
  --ddm-accent-purple: #7c3aed;

  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  font-family: var(--ddm-font);
  color: var(--ddm-text);
  line-height: 1.5;
}

/* ── Hero ───────────────────────────────────────────────── */

.ddm-hero {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--ddm-surface);
  border-radius: var(--ddm-radius);
  box-shadow: var(--ddm-shadow);
  border: 1px solid var(--ddm-border);
}

.ddm-hero-info {
  flex: 1;
  min-width: 0;
}

.ddm-hero h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ddm-text);
  font-family: var(--ddm-font);
}

.ddm-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ddm-text-secondary);
}

.ddm-location svg {
  flex-shrink: 0;
}

.ddm-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.ddm-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.ddm-badge--type {
  background: #fef3c7;
  color: #92400e;
}

.ddm-badge--language {
  background: #dbeafe;
  color: #1e40af;
}

.ddm-badge--years {
  background: #d1fae5;
  color: #065f46;
}

.ddm-badge--rank {
  background: #ede9fe;
  color: #5b21b6;
}

.ddm-badge--cwelcc {
  background: #d1fae5;
  color: #065f46;
}

.ddm-badge--custom {
  background: #f3e8ff;
  color: #6b21a8;
}

.ddm-photo {
  flex: 0 0 320px;
  max-width: 100%;
}

.ddm-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--ddm-radius-sm);
  background: #f1f5f9;
  display: block;
}

.ddm-photo-placeholder {
  width: 100%;
  height: 220px;
  border-radius: var(--ddm-radius-sm);
  background: linear-gradient(135deg, #e0e7ff 0%, #f0f0f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.ddm-hero-cta {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--ddm-primary);
  color: #fff;
  border-radius: var(--ddm-radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.ddm-hero-cta:hover {
  background: var(--ddm-primary-dark);
}

.ddm-hero-cta--secondary {
  background: var(--ddm-surface);
  color: var(--ddm-primary);
  border: 1px solid var(--ddm-border);
}

.ddm-hero-cta--secondary:hover {
  background: var(--ddm-primary-light);
}

.ddm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ── Stat Cards Row ─────────────────────────────────────── */

.ddm-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.ddm-stat-card {
  background: var(--ddm-surface);
  border: 1px solid var(--ddm-border);
  border-radius: var(--ddm-radius);
  padding: 1.25rem;
  box-shadow: var(--ddm-shadow);
  text-align: center;
}

.ddm-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ddm-primary);
  line-height: 1.2;
}

.ddm-stat-value--amber {
  color: var(--ddm-accent-amber);
}

.ddm-stat-value--green {
  color: var(--ddm-accent-green);
}

.ddm-stat-value--purple {
  color: var(--ddm-accent-purple);
}

.ddm-stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--ddm-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ── Card Grid (2-column on desktop) ────────────────────── */

.ddm-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.ddm-card-grid .ddm-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.ddm-card {
  background: var(--ddm-surface);
  border: 1px solid var(--ddm-border);
  border-radius: var(--ddm-radius);
  padding: 1.5rem;
  box-shadow: var(--ddm-shadow);
}

.ddm-card--full {
  grid-column: 1 / -1;
}

.ddm-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ddm-text);
  font-family: var(--ddm-font);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ddm-primary-light);
}

.ddm-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ddm-text-secondary);
  font-family: var(--ddm-font);
}

/* ── Chips/Tags ──────────────────────────────────────────── */

.ddm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ddm-chip {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: #f1f5f9;
  color: var(--ddm-text);
}

.ddm-chip--blue {
  background: var(--ddm-primary-light);
  color: var(--ddm-primary-dark);
}

.ddm-chip--green {
  background: #d1fae5;
  color: #065f46;
}

.ddm-chip--amber {
  background: #fef3c7;
  color: #92400e;
}

.ddm-chip--purple {
  background: #ede9fe;
  color: #5b21b6;
}

/* ── Field rows (key-value lists) ────────────────────────── */

.ddm-field-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ddm-field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.ddm-field-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ddm-field-row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.ddm-field-row--stack .ddm-field-value {
  text-align: left;
  width: 100%;
}

.ddm-field-label {
  font-size: 0.85rem;
  color: var(--ddm-text-secondary);
  flex-shrink: 0;
}

.ddm-field-value {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.ddm-field-value a {
  color: var(--ddm-primary);
  text-decoration: none;
}

.ddm-field-value a:hover {
  text-decoration: underline;
}

/* ── Contact items ──────────────────────────────────────── */

.ddm-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ddm-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.ddm-contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--ddm-text-secondary);
}

.ddm-contact-text {
  font-size: 0.9rem;
}

.ddm-contact-text a {
  color: var(--ddm-primary);
  text-decoration: none;
}

.ddm-contact-text a:hover {
  text-decoration: underline;
}

/* ── Location & Contact — combined card ─────────────────── */

.ddm-card--location h2 {
  margin-bottom: 1rem;
}

.ddm-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.ddm-location-contact-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ddm-loc-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ddm-loc-address .ddm-loc-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.ddm-loc-address a,
.ddm-loc-row a {
  color: var(--ddm-primary);
  text-decoration: none;
}

.ddm-loc-address a:hover,
.ddm-loc-row a:hover {
  text-decoration: underline;
}

.ddm-loc-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.ddm-loc-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--ddm-primary);
}

.ddm-location-map-col {
  min-height: 220px;
}

.ddm-map-loading {
  min-height: 220px;
}

.ddm-map-skeleton {
  width: 100%;
  height: 220px;
  border-radius: var(--ddm-radius);
  background: linear-gradient(110deg, #e2e8f0 30%, #f1f5f9 50%, #e2e8f0 70%);
  background-size: 200% 100%;
  animation: ddm-skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes ddm-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ddm-map-show-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: #fff;
  color: var(--ddm-primary);
  border: 1px solid var(--ddm-primary);
  border-radius: var(--ddm-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

.ddm-map-show-btn:hover {
  background: var(--ddm-primary-light);
}

.ddm-map-show-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ddm-map-container {
  width: 100%;
  height: 220px;
  border-radius: var(--ddm-radius);
  overflow: hidden;
}

.ddm-map-disclaimer {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--ddm-text-secondary);
  line-height: 1.4;
}

.ddm-map-unavailable {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ddm-text-secondary);
}

.ddm-map-unavailable a {
  color: var(--ddm-primary);
  text-decoration: none;
}

.ddm-map-unavailable a:hover {
  text-decoration: underline;
}

/* ── Nearby daycares table ───────────────────────────────── */

.ddm-nearby-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ddm-nearby-table thead th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ddm-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--ddm-border);
}

.ddm-nearby-table tbody td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.ddm-nearby-table tbody tr:last-child td {
  border-bottom: none;
}

.ddm-nearby-table tbody tr:hover {
  background: #f8fafc;
}

.ddm-nearby-table a {
  color: var(--ddm-primary);
  text-decoration: none;
  font-weight: 500;
}

.ddm-nearby-table a:hover {
  text-decoration: underline;
}

.ddm-nearby-table .ddm-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Footer / Data Sources (restyled from original) ─────── */

.ddm-data-sources {
  margin-top: 1.5rem;
}

.ddm-data-sources h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ddm-text);
  font-family: var(--ddm-font);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ddm-primary-light);
}

.ddm-data-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ddm-data-sources li {
  padding: 0.6rem 0.75rem;
  background: #f8fafc;
  border-radius: var(--ddm-radius-sm);
  font-size: 0.85rem;
  color: var(--ddm-text-secondary);
  line-height: 1.5;
}

.ddm-data-sources li strong {
  color: var(--ddm-text);
}

.ddm-data-sources a {
  color: var(--ddm-primary);
  text-decoration: none;
}

.ddm-data-sources a:hover {
  text-decoration: underline;
}

.ddm-related-links {
  margin-top: 1.5rem;
}

.ddm-related-links h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ddm-text);
  font-family: var(--ddm-font);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ddm-primary-light);
}

.ddm-related-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ddm-related-links li {
  display: inline;
}

.ddm-related-links a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: #f1f5f9;
  border-radius: var(--ddm-radius-sm);
  font-size: 0.85rem;
  color: var(--ddm-primary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s;
}

.ddm-related-links a:hover {
  background: var(--ddm-primary-light);
}

.ddm-badge--subsidy {
  background: #ede9fe;
  color: #5b21b6;
}

/* ── Rich data cards (when ?richDaycare=1) ───────────────── */

.ddm-capacity-hero {
  text-align: center;
  padding: 0.75rem 0;
}

.ddm-capacity-hero-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ddm-primary);
  line-height: 1.2;
}

.ddm-capacity-hero-label {
  font-size: 0.85rem;
  color: var(--ddm-text-secondary);
  margin-top: 0.25rem;
}

.ddm-capacity-header {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ddm-text);
  padding: 0.5rem 0 0.75rem;
}

.ddm-field-value--violation {
  color: #dc2626;
  font-weight: 600;
}

.ddm-field-value--clean {
  color: #16a34a;
}

.ddm-rich-source {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--ddm-text-secondary);
  font-style: italic;
}

.ddm-rich-disclaimer {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--ddm-text-secondary);
  font-style: italic;
  line-height: 1.4;
}

body.daycare-modern-ready .school-header,
body.daycare-modern-ready .school-detail {
  display: none;
}

body.daycare-modern-ready .daycare-image {
  display: none;
}

/* ── Hide legacy review intro after modern render ──────── */
body.daycare-modern-ready .ddm-review-hidden {
  display: none !important;
}

/* ── Province-specific accent overrides ─────────────────── */

.province-ontario .ddm-stat-value {
  color: var(--ddm-primary);
}

.province-quebec .ddm-stat-value {
  color: #7c3aed;
}

.province-british-columbia .ddm-stat-value {
  color: #059669;
}

.province-alberta .ddm-stat-value {
  color: #d97706;
}

/* ── Layout v2 (behind ?daycareLayout2=1) ──────────────────────── */

/* ── Two-column independent stacks ──────── */
.ddm-layout2 .ddm-main-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 1.5rem;
}

.ddm-layout2 .ddm-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cards inside columns — full width within their column */
.ddm-layout2 .ddm-main-col > .ddm-card {
  width: 100%;
  box-sizing: border-box;
}

/* Cards outside columns (full-width) — consistent gap */
.ddm-layout2 .ddm-main-columns + .ddm-card,
.ddm-layout2 .ddm-main-columns + .ddm-data-sources {
  margin-top: 0.5rem;
}

/* ── Typography: larger small text ──────── */
.ddm-layout2 .ddm-field-label {
  font-size: 0.85rem;
}

.ddm-layout2 .ddm-field-value {
  font-size: 0.92rem;
}

.ddm-layout2 .ddm-card h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
}

.ddm-layout2 .ddm-rich-source {
  font-size: 0.78rem;
}

.ddm-layout2 .ddm-rich-disclaimer {
  font-size: 0.76rem;
}

/* ── Services sub-sections ──────── */
.ddm-layout2 .ddm-svc-section {
  margin-bottom: 1.1rem;
}

.ddm-layout2 .ddm-svc-section:last-child {
  margin-bottom: 0;
}

.ddm-layout2 .ddm-svc-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ddm-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ddm-layout2 .ddm-facility-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ddm-layout2 .ddm-fact {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: #f8fafc;
  color: var(--ddm-text);
}

/* ── Callout boxes ──────── */
.ddm-layout2 .ddm-callout {
  padding: 0.7rem 0.9rem;
  background: #f8fafc;
  border-radius: var(--ddm-radius-sm);
  font-size: 0.9rem;
  color: var(--ddm-text);
  line-height: 1.6;
}

.ddm-layout2 .ddm-callout--hours {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.ddm-layout2 .ddm-callout-icon {
  flex-shrink: 0;
  color: var(--ddm-text-secondary);
  margin-top: 2px;
}

/* ── Licensing: compact + subtle amber accent ──────── */
.ddm-layout2 .ddm-card--compact .ddm-field-list {
  gap: 0.35rem;
}

.ddm-layout2 .ddm-card--compact .ddm-field-row {
  padding-bottom: 0.35rem;
}

.ddm-layout2 .ddm-card--compact h2 {
  border-bottom-color: #fef3c7;
}

/* Licence Status pill */
.ddm-layout2 .ddm-field-value--pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.ddm-layout2 .ddm-pill--active {
  background: #d1fae5;
  color: #065f46;
}

/* ── Inspection: subtle indigo accent ──────── */
.ddm-layout2 .ddm-card--inspection h2 {
  border-bottom-color: #e0e7ff;
}

.ddm-layout2 .ddm-card--inspection .ddm-field-row {
  padding-bottom: 0.4rem;
}

.ddm-layout2 .ddm-field-value--violation {
  color: #dc2626;
  font-weight: 600;
}

.ddm-layout2 .ddm-field-value--clean {
  color: #16a34a;
  font-weight: 600;
}

/* Richer inspection source text */
.ddm-layout2 .ddm-card--inspection .ddm-rich-source {
  font-size: 0.78rem;
  margin-top: 0.75rem;
}

.ddm-layout2 .ddm-card--inspection .ddm-rich-disclaimer {
  font-size: 0.78rem;
  line-height: 1.45;
}

/* ── Capacity card: subtle green accent ──────── */
.ddm-layout2 .ddm-card--capacity h2 {
  border-bottom-color: #d1fae5;
}

/* ── Location & Contact (full-width below columns) ──────── */
.ddm-layout2 .ddm-card--location-l2 {
  grid-column: 1 / -1;
  margin: 0 0 28px 0;
  width: 100%;
  box-sizing: border-box;
}

.ddm-layout2 .ddm-card--location-l2 h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom-color: #dbeafe;
}

/* Contact row labels */
.ddm-layout2 .ddm-loc-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ddm-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.ddm-layout2 .ddm-loc-address,
.ddm-layout2 .ddm-loc-row {
  margin-bottom: 0.65rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.ddm-layout2 .ddm-loc-address .ddm-loc-icon,
.ddm-layout2 .ddm-loc-row .ddm-loc-icon {
  display: none;
}

.ddm-layout2 .ddm-loc-address a,
.ddm-layout2 .ddm-loc-row a {
  font-size: 0.92rem;
}

/* Map fallback — compact */
.ddm-layout2 .ddm-map-unavailable {
  padding: 1rem 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ddm-text-secondary);
  background: #f8fafc;
  border-radius: var(--ddm-radius-sm);
}

.ddm-layout2 .ddm-map-unavailable a {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 500;
}

/* ── Layout2 responsive ──────── */
@media (max-width: 768px) {
  .ddm-layout2 .ddm-main-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ddm-layout2 .ddm-main-col {
    gap: 16px;
  }

  .ddm-layout2 .ddm-facility-facts {
    gap: 0.4rem;
  }

  .ddm-layout2 .ddm-fact {
    font-size: 0.8rem;
  }

  .ddm-layout2 .ddm-card--location-l2 .ddm-location-grid {
    grid-template-columns: 1fr;
  }

  .ddm-layout2 .ddm-card--location-l2 .ddm-location-map-col {
    min-height: 200px;
  }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .ddm-hero {
    flex-direction: column-reverse;
    padding: 1.25rem;
  }

  .ddm-photo {
    flex: none;
    width: 100%;
  }

  .ddm-photo img,
  .ddm-photo-placeholder {
    height: 180px;
  }

  .ddm-hero h1 {
    font-size: 1.4rem;
  }

  .ddm-card-grid {
    grid-template-columns: 1fr;
  }

  .ddm-location-grid {
    grid-template-columns: 1fr;
  }

  .ddm-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .ddm-stat-card {
    padding: 1rem;
  }

  .ddm-stat-value {
    font-size: 1.25rem;
  }

  .ddm-nearby-table thead {
    display: none;
  }

  .ddm-nearby-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    background: #fff;
    border: 1px solid var(--ddm-border);
    border-radius: var(--ddm-radius);
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.5rem;
  }

  .ddm-nearby-table tbody td {
    padding: 0;
    border: none;
  }

  /* Name — full width, primary link, no label prefix */
  .ddm-nearby-table tbody td:first-child {
    flex: 0 0 100%;
    margin-bottom: 0.25rem;
  }

  .ddm-nearby-table tbody td:first-child::before {
    display: none;
  }

  .ddm-nearby-table tbody td:first-child a {
    font-weight: 600;
    font-size: 0.95rem;
  }

  /* Other columns — inline with label prefix */
  .ddm-nearby-table tbody td:not(:first-child) {
    font-size: 0.82rem;
    color: var(--ddm-text-secondary);
    padding-right: 1rem;
  }

  .ddm-nearby-table tbody td:not(:first-child)::before {
    content: attr(data-label) ": ";
    font-weight: 500;
    color: var(--ddm-text);
    min-width: auto;
    margin-right: 0.2rem;
  }
}
