/* Source parity: components/LocalBusinessesSection.tsx + styles/infoStyles.ts.
   Values are React Native logical units mapped to CSS px at 100% zoom.
   Native font metrics and shadows are approximations; see specifications. */

.btr-business-preview {
  --btr-bg: #F1F6F4;
  --btr-card: #FFFFFF;
  --btr-text: #0C1A17;
  --btr-subtext: #60716D;
  --btr-hairline: rgba(12,58,50,0.10);
  --btr-accent: #087F73;
  --btr-accent-soft: rgba(8,127,115,0.10);
  --btr-card-shadow: 0 7px 16px rgba(22,60,53,0.07);
  --btr-button-shadow: 0 8px 16px rgba(22,60,53,0.06);
  --btr-name-size: 16px;
  --btr-small-size: 12px;
  --btr-label-size: 11px;
  --btr-description-size: 14px;
  --btr-default-size: 14px;
  --btr-heading-size: 14px;
  box-sizing: border-box;
  width: 100%;
  color: var(--btr-text);
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--btr-default-size);
  font-weight: 400;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  direction: ltr;
  color-scheme: light;
}

.btr-business-preview[data-theme="dark"] {
  --btr-bg: #07110F;
  --btr-card: #13231F;
  --btr-text: #F4FAF8;
  --btr-subtext: #9FB0AC;
  --btr-hairline: rgba(220,255,247,0.10);
  --btr-accent: #45D6C4;
  --btr-accent-soft: rgba(69,214,196,0.14);
  --btr-card-shadow: 0 7px 16px rgba(0,0,0,0.20);
  --btr-button-shadow: 0 8px 16px rgba(0,0,0,0.06);
  color-scheme: dark;
}

.btr-business-preview[data-high-contrast="true"][data-theme="light"] {
  --btr-text: #06110F;
  --btr-subtext: #263F3A;
  --btr-hairline: rgba(6,35,30,0.24);
}
.btr-business-preview[data-high-contrast="true"][data-theme="dark"] {
  --btr-text: #FFFFFF;
  --btr-subtext: #E6F2EF;
  --btr-hairline: rgba(255,255,255,0.28);
}
.btr-business-preview[data-platform="android"] {
  font-family: Roboto, "Noto Sans", sans-serif;
  /* Browser approximation ONLY: native elevation 2 (card) / 1 (button).
     Android's system shadow renderer has no exact CSS equivalent. */
  --btr-card-shadow: 0 2px 4px rgba(22,60,53,0.14), 0 1px 2px rgba(22,60,53,0.12);
  --btr-button-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.10);
}
.btr-business-preview[data-platform="android"][data-theme="dark"] {
  --btr-card-shadow: 0 2px 4px rgba(0,0,0,0.14), 0 1px 2px rgba(0,0,0,0.12);
}

.btr-business-preview *, .btr-business-preview *::before, .btr-business-preview *::after {
  box-sizing: border-box;
}
.btr-business-preview [hidden] { display: none !important; }

/* Optional Info-screen envelope. The card itself has no maximum width. */
.btr-business-preview .btr-info-surface {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 0;
  background: var(--btr-bg);
}
.btr-business-preview .btr-business-section { display: flex; flex-direction: column; margin-top: 20px; }
.btr-business-preview .btr-section-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  margin-bottom: 10px;
}
.btr-business-preview .btr-section-title {
  margin: 0;
  font-size: var(--btr-heading-size);
  font-weight: 700;
  letter-spacing: 0.1px;
}
.btr-business-preview .btr-section-location {
  margin: 0 0 12px;
  color: var(--btr-subtext);
  font-size: var(--btr-default-size);
  white-space: pre-wrap;
}
.btr-business-preview .btr-business-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid var(--btr-hairline);
  border-radius: 22px;
  background: var(--btr-card);
  box-shadow: var(--btr-card-shadow);
  /* No overflow:hidden here: the native card does not clip its whole contents. */
}
.btr-business-preview .btr-banner-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  text-decoration: none;
  background: transparent;
}
.btr-business-preview .btr-banner-link:active { opacity: 0.8; }
.btr-business-preview .btr-banner {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 21px 21px 0 0;
  overflow: hidden;
  background: var(--btr-accent-soft);
}
.btr-business-preview .btr-banner img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}
.btr-business-preview .btr-business-body {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 10px;
}
.btr-business-preview .btr-business-details {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.btr-business-preview .btr-business-identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 130px;
  max-width: 100%;
  min-width: 0;
}
.btr-business-preview .btr-business-card[data-show-image="false"] .btr-business-identity {
  flex-basis: 190px;
}
.btr-business-preview .btr-business-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--btr-accent-soft);
  color: var(--btr-accent);
}
.btr-business-preview .btr-storefront-icon {
  display: block;
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.btr-business-preview .btr-identity-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-width: 0;
  gap: 4px;
}
.btr-business-preview .btr-card-text {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  /* No ellipsis, line-clamp or fixed height: these are absent in the app. */
}
.btr-business-preview .btr-business-name { font-size: var(--btr-name-size); font-weight: 800; color: var(--btr-text); }
.btr-business-preview .btr-business-category { font-size: var(--btr-small-size); font-weight: 400; color: var(--btr-subtext); }
.btr-business-preview .btr-business-sponsored { font-size: var(--btr-label-size); font-weight: 700; color: var(--btr-subtext); }
.btr-business-preview .btr-business-featured { font-size: var(--btr-label-size); font-weight: 700; color: var(--btr-accent); }
.btr-business-preview .btr-business-description { font-size: var(--btr-description-size); font-weight: 400; color: var(--btr-text); }
.btr-business-preview .btr-business-address { font-size: var(--btr-small-size); font-weight: 400; color: var(--btr-subtext); }
.btr-business-preview .btr-business-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 1;
}
.btr-business-preview .btr-business-action {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--btr-hairline);
  border-radius: 16px;
  background: var(--btr-card);
  color: var(--btr-text);
  box-shadow: var(--btr-button-shadow);
  font-family: inherit;
  font-size: var(--btr-default-size);
  font-weight: 700;
  font-style: normal;
  line-height: normal;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
  white-space: pre-wrap;
  cursor: pointer;
}
/* Keyboard accessibility only; the app does not define a mouse-hover treatment. */
.btr-business-preview a:focus-visible { outline: 2px solid var(--btr-accent); outline-offset: 2px; }

/* Standalone demonstration chrome only — never copy these into the app card. */
body.btr-export-page { margin: 0; background: #e7ece9; color: #0C1A17; font: 14px/1.5 system-ui, sans-serif; }
.btr-export-page .btr-demo-controls { max-width: 680px; margin: 20px auto; padding: 0 16px; }
.btr-export-page .btr-demo-controls h1 { font-size: 20px; margin: 0 0 8px; }
.btr-export-page .btr-demo-controls p { margin: 0 0 12px; }
.btr-export-page .btr-demo-options { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.btr-export-page .btr-demo-options label { display: flex; align-items: center; gap: 5px; }
.btr-export-page .btr-demo-controls select, .btr-export-page .btr-demo-controls button { font: inherit; padding: 5px; }
.btr-export-page .btr-demo-controls textarea { display: block; box-sizing: border-box; width: 100%; min-height: 200px; margin: 8px 0; font: 12px/1.5 monospace; }
.btr-export-page .btr-demo-controls output { display: block; margin-top: 8px; }
.btr-export-page .btr-demo-frame { width: 390px; max-width: 100%; margin: 0 auto 24px; }
body.btr-export-page[data-embedded="true"] { background: transparent; }
.btr-export-page[data-embedded="true"] .btr-demo-controls { display: none; }
.btr-export-page[data-embedded="true"] .btr-demo-frame { width: 100%; margin: 0; }
