/* Growth features: contact actions, quick facts, reviews, claim flow, language switch.
   Builds on the tokens in discovery.css (--discover-*). */

:root {
  --g-wa: #16a34a;
  --g-wa-dark: #128a3e;
  --g-star: #f5a524;
  --g-star-off: #e3dccd;
  --g-ok-bg: #e9f6ee;
  --g-ok-ink: #1d6b45;
  --g-warn-bg: #fff4e5;
  --g-warn-ink: #8a4b0f;
  --g-err-ink: #b42318;
}

/* ── Hero actions ───────────────────────────────────────── */
.profile-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: inherit; font-size: 13px; font-weight: 800; line-height: 1; text-decoration: none; }
.profile-action svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.profile-action-wa { border-color: var(--g-wa); background: var(--g-wa); color: #fff; }
.profile-action-wa:hover { background: var(--g-wa-dark); color: #fff; }
.profile-action-lg { min-height: 48px; padding: 0 22px; font-size: 14px; }
.profile-badges .badge-rating { border-color: rgba(255, 214, 120, .45); background: rgba(245, 165, 36, .18); color: #ffe3a3; }
.profile-badges .badge-owner { border-color: rgba(140, 230, 180, .4); background: rgba(36, 113, 83, .35); color: #c9f5dc; }

.profile-missing-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 16px; padding: 9px 14px; border: 1px dashed rgba(255,255,255,.3); border-radius: 11px; background: rgba(0,0,0,.18); color: rgba(255,255,255,.8); font-size: 12px; }
.profile-missing-note a { color: #ffd08a; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }

/* ── Quick facts bar (overlaps the hero) ─────────────────── */
.profile-quickbar { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: -30px; border: 1px solid var(--discover-line); border-radius: 16px; background: var(--discover-paper); box-shadow: var(--discover-shadow); overflow: hidden; }
.profile-quickbar > * { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px 18px; border-right: 1px solid #eee8dc; color: var(--discover-ink); }
.profile-quickbar > *:last-child { border-right: 0; }
.profile-quickbar a:hover { background: #fff8ef; }
.qb-icon { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff1e6; font-size: 17px; }
.qb-icon.is-green { background: var(--g-ok-bg); }
.qb-icon.is-gold { background: #fff6dc; }
.qb-text { min-width: 0; }
.qb-label { display: block; color: var(--discover-muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.qb-value { display: block; overflow: hidden; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.qb-value.is-muted { color: var(--discover-muted); font-weight: 700; }

/* ── Key facts grid (About panel) ────────────────────────── */
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 18px; padding: 16px; border: 1px solid #eee8dc; border-radius: 13px; background: #fff; }
.facts-grid span { display: block; color: var(--discover-muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.facts-grid strong { color: var(--discover-ink); font-size: 13px; }
.facts-grid strong.is-ok { color: var(--g-ok-ink); }
.facts-title { margin: 18px 0 0; color: var(--discover-ink-soft); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

/* ── Stars ───────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 1px; color: var(--g-star); letter-spacing: 0; }
.stars .off { color: var(--g-star-off); }

/* ── Reviews panel ───────────────────────────────────────── */
.reviews-summary { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 18px 20px; border: 1px solid #eee8dc; border-radius: 15px; background: #fff; }
.reviews-score { text-align: center; }
.reviews-score strong { display: block; color: var(--discover-ink); font: 800 46px/1 "Baloo 2", sans-serif; }
.reviews-score .stars { font-size: 17px; }
.reviews-score small { display: block; margin-top: 3px; color: var(--discover-muted); font-size: 12px; font-weight: 700; }
.reviews-bars { display: grid; gap: 6px; }
.reviews-bar { display: grid; grid-template-columns: 26px 1fr 28px; gap: 9px; align-items: center; color: var(--discover-muted); font-size: 12px; font-weight: 800; }
.reviews-bar-track { height: 8px; border-radius: 999px; background: #f1ebe0; overflow: hidden; }
.reviews-bar-fill { height: 100%; border-radius: inherit; background: var(--g-star); }
.reviews-bar span:last-child { text-align: right; }

.reviews-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border: 1px dashed #e3d6c1; border-radius: 15px; background: #fffaf2; }
.reviews-empty p { margin: 0; color: var(--discover-ink-soft); font-size: 14px; line-height: 1.55; }
.reviews-empty strong { display: block; color: var(--discover-ink); font-size: 15px; }

.reviews-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.reviews-toolbar h3 { margin: 0; color: var(--discover-ink); font-size: 15px; font-weight: 900; }

.btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 1px solid #f1c7aa; border-radius: 11px; background: #fff3ea; color: var(--discover-saffron-dark); font-family: inherit; font-weight: 900; font-size: 12px; line-height: 1; cursor: pointer; text-decoration: none; }
.btn-soft:hover { background: #ffe7d6; color: var(--discover-saffron-dark); }
.btn-solid { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 11px; background: var(--discover-saffron); color: #fff; font-family: inherit; font-weight: 900; font-size: 13px; line-height: 1; cursor: pointer; text-decoration: none; }
.btn-solid:hover { background: var(--discover-saffron-dark); color: #fff; }
.btn-solid:disabled, .btn-soft:disabled { opacity: .6; cursor: wait; }
.btn-wa { background: var(--g-wa); }
.btn-wa:hover { background: var(--g-wa-dark); }
.btn-block { width: 100%; }

.review-list { display: grid; gap: 10px; }
.review-card { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 15px 16px; border: 1px solid #eee8dc; border-radius: 14px; background: #fff; }
.review-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fde7d6; color: var(--discover-saffron-dark); font-weight: 900; }
.review-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.review-head strong { color: var(--discover-ink); font-size: 14px; }
.review-head time { color: var(--discover-muted); font-size: 11px; font-weight: 700; }
.review-card .stars { margin-top: 2px; font-size: 13px; }
.review-card p { margin: 7px 0 0; color: var(--discover-ink-soft); font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }

/* Review form */
.review-form-wrap { margin-top: 16px; padding: 20px; border: 1px solid #eee8dc; border-radius: 15px; background: #fffaf3; }
.review-form-wrap[hidden] { display: none; }
.review-form-wrap h3 { margin: 0 0 4px; color: var(--discover-ink); font-size: 16px; font-weight: 900; }
.review-form-wrap > p { margin: 0 0 14px; color: var(--discover-muted); font-size: 12px; }
.star-picker { display: flex; align-items: center; gap: 4px; }
.star-picker button { padding: 2px; border: 0; background: none; color: var(--g-star-off); font-size: 34px; line-height: 1; cursor: pointer; transition: transform .12s, color .12s; }
.star-picker button:hover { transform: scale(1.12); }
.star-picker button.is-on { color: var(--g-star); }
.star-picker button:focus-visible { outline: 2px solid var(--discover-saffron); outline-offset: 2px; border-radius: 6px; }
.star-picker-label { min-height: 18px; margin: 4px 0 12px; color: var(--discover-saffron-dark); font-size: 12px; font-weight: 900; }

/* ── Form fields (shared by review + claim forms) ─────────── */
.g-form { display: grid; gap: 14px; }
.g-field { display: grid; gap: 6px; }
.g-field > label, .g-field > .g-label { color: var(--discover-ink); font-size: 12px; font-weight: 900; }
.g-field small { color: var(--discover-muted); font-size: 11px; line-height: 1.5; }
.g-input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #dcd2c2; border-radius: 11px; background: #fff; color: var(--discover-ink); font-family: inherit; font-weight: 500; font-size: 15px; line-height: 1.4; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.g-input { min-height: 96px; resize: vertical; }
.g-input:focus { border-color: var(--discover-saffron); box-shadow: 0 0 0 3px rgba(232, 100, 36, .15); }
.g-input[aria-invalid="true"] { border-color: var(--g-err-ink); }
.g-input:disabled { background: #f6f1e8; color: var(--discover-muted); cursor: not-allowed; }
.g-phone { display: flex; align-items: stretch; }
.g-phone > span { display: grid; place-items: center; padding: 0 12px; border: 1px solid #dcd2c2; border-right: 0; border-radius: 11px 0 0 11px; background: #f6f1e8; color: var(--discover-ink-soft); font-size: 14px; font-weight: 800; }
.g-phone .g-input { border-radius: 0 11px 11px 0; }
.g-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.g-check { display: flex; align-items: center; gap: 8px; color: var(--discover-ink-soft); font-size: 13px; font-weight: 700; cursor: pointer; }
.g-check input { width: 17px; height: 17px; accent-color: var(--discover-saffron); }

.g-alert { padding: 11px 14px; border-radius: 11px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.g-alert:empty { display: none; }
.g-alert-err { background: #fdecea; color: var(--g-err-ink); }
.g-alert-ok { background: var(--g-ok-bg); color: var(--g-ok-ink); }
.g-alert-warn { background: var(--g-warn-bg); color: var(--g-warn-ink); }

.g-success { padding: 26px 20px; text-align: center; }
.g-success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--g-ok-bg); color: var(--g-ok-ink); font-size: 26px; font-weight: 900; }
.g-success h3 { margin: 0 0 6px; color: var(--discover-ink); font: 800 22px/1.1 "Baloo 2", sans-serif; }
.g-success p { max-width: 420px; margin: 0 auto 16px; color: var(--discover-ink-soft); font-size: 14px; line-height: 1.6; }

/* ── Aside contact card variants ─────────────────────────── */
.profile-contact-card .contact-number { display: block; width: auto; min-height: 0; margin: 6px 0 2px; padding: 0; border-radius: 0; background: none; color: #fff; font: 800 26px/1.15 "Baloo 2", sans-serif; letter-spacing: .01em; text-decoration: none; }
.profile-contact-card .contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.profile-contact-card .contact-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 11px; color: #fff; font-weight: 900; font-size: 13px; text-decoration: none; }
.profile-contact-card .contact-actions .is-call { background: var(--discover-saffron); }
.profile-contact-card .contact-actions .is-wa { background: var(--g-wa); }
.profile-contact-card .contact-link { display: inline-block; margin-top: 12px; padding: 0; border: 0; background: none; color: #ffcfaa; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; width: auto; min-height: 0; line-height: 1.4; }
.claim-mini { padding: 20px; border: 1px solid #f0d2bb; border-radius: 19px; background: linear-gradient(160deg, #fff6ec, #fffdf8); }
.claim-mini strong { display: block; margin-bottom: 4px; color: var(--discover-ink); font: 800 20px/1.15 "Baloo 2", sans-serif; }
.claim-mini p { margin: 0 0 14px; color: var(--discover-ink-soft); font-size: 13px; line-height: 1.55; }
.owner-managed-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--g-ok-bg); color: var(--g-ok-ink); font-size: 12px; line-height: 1.55; }
.owner-managed-note strong { display: block; font-size: 13px; }

/* ── Claim CTA panel on the listing ──────────────────────── */
.claim-cta { position: relative; overflow: hidden; padding: 26px; border: 1px solid #f0d2bb; border-radius: 19px; background: linear-gradient(135deg, #fff6ec 0%, #fffdf8 55%, #eef7f1 100%); }
.claim-cta h3 { margin: 4px 0 6px; color: var(--discover-ink); font: 800 25px/1.1 "Baloo 2", sans-serif; }
.claim-cta > p { margin: 0 0 16px; color: var(--discover-ink-soft); font-size: 14px; line-height: 1.6; }
.benefit-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.benefit-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.75); color: var(--discover-ink-soft); font-size: 12px; line-height: 1.5; }
.benefit-list li > span { flex: 0 0 auto; font-size: 18px; line-height: 1.2; }
.benefit-list strong { display: block; color: var(--discover-ink); font-size: 13px; }

/* ── Claim page ──────────────────────────────────────────── */
.claim-page { padding-block: 28px 80px; }
.claim-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.claim-business { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; padding: 14px; border: 1px solid #eee8dc; border-radius: 14px; background: #fff; }
.claim-business img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; object-fit: cover; }
.claim-business strong { display: block; color: var(--discover-ink); font-size: 16px; }
.claim-business span { color: var(--discover-muted); font-size: 12px; font-weight: 700; }
.claim-page h1 { margin: 0 0 6px; color: var(--discover-ink); font: 800 clamp(28px, 4vw, 40px)/1.05 "Baloo 2", sans-serif; }
.claim-lead { margin: 0 0 20px; color: var(--discover-ink-soft); font-size: 14px; line-height: 1.6; }
.claim-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.claim-steps li { position: relative; padding: 0 0 18px 44px; color: var(--discover-ink-soft); font-size: 13px; line-height: 1.55; counter-increment: step; }
.claim-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--discover-saffron); color: #fff; font-weight: 900; font-size: 13px; }
.claim-steps li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px; background: #f1d9c6; }
.claim-steps li:last-child { padding-bottom: 0; }
.claim-steps li:last-child::after { display: none; }
.claim-steps strong { display: block; color: var(--discover-ink); font-size: 14px; }
.claim-trust { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eee8dc; color: var(--discover-muted); font-size: 12px; line-height: 1.6; }

/* ── Language switch ─────────────────────────────────────── */
.lang-switch { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px !important; border: 1px solid currentColor; border-radius: 999px; font-weight: 800; font-size: 12px; opacity: .9; }
.lang-switch:hover { opacity: 1; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 920px) {
  .claim-grid { grid-template-columns: 1fr; }
  .claim-aside { order: -1; }
}

/* Grid tracks must be allowed to shrink below their content, or long text widens the page on phones. */
.business-profile-main, .business-profile-aside { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 820px) {
  .business-profile-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .profile-quickbar { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -22px; }
  .profile-quickbar > * { padding: 12px 13px; border-bottom: 1px solid #eee8dc; }
  .profile-quickbar > *:nth-child(2n) { border-right: 0; }
  .reviews-summary { grid-template-columns: 1fr; gap: 14px; }
  .g-row-2 { grid-template-columns: 1fr; }
  .claim-cta { padding: 20px; }
  .review-form-wrap { padding: 16px; }

  .profile-quickbar > * { gap: 9px; }
  .qb-icon { flex-basis: 30px; width: 30px; height: 30px; font-size: 14px; }
  .qb-value { white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.3; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mobile-profile-actions { min-height: 66px; }
  .mobile-profile-actions a, .mobile-profile-actions button { align-content: center; row-gap: 3px; padding: 4px 2px; line-height: 1.15; }
  .mobile-profile-actions a.mpa-call { margin: 2px 4px; border-radius: 9px; background: var(--discover-saffron); color: #fff; }
  .mobile-profile-actions a.mpa-wa { margin: 2px 4px; border-radius: 9px; background: var(--g-wa); color: #fff; }
  .mobile-profile-actions a, .mobile-profile-actions button { gap: 2px; font-size: 11px; }
  .mobile-profile-actions .mpa-ico { font-size: 16px; line-height: 1; }
}

/* Letter-spacing breaks Devanagari conjuncts — drop it for Hindi. */
html[lang="hi-IN"] .discovery-eyebrow,
html[lang="hi-IN"] .qb-label,
html[lang="hi-IN"] .facts-grid span,
html[lang="hi-IN"] .facts-title,
html[lang="hi-IN"] .profile-facts dt,
html[lang="hi-IN"] .profile-contact-card > span,
html[lang="hi-IN"] .mobile-menu-label { letter-spacing: 0; }
html[lang="hi-IN"] .qb-label, html[lang="hi-IN"] .facts-grid span { font-size: 11px; }
