/* ==========================================================================
   Listing page: the claim card (owner handoff 2026-11-19, docs/IP-Handoff-Listing-Claim-Card-Hours-Dividers.md, docs/IP-Reference.md section CF;
   design boards H1 / J1 / J2; and the owner's correction of 2026-11-20, section CH: the title block stays in the left column, the card is at the top
   of the right one)
   ==========================================================================
   Loaded by web/listing-detail.blade.php alone, after web.css, so no other page can be touched by it. Every selector starts from a class that exists
   only on this page (.listing-claim-card*). Colours, radii, shadow and spacing come from tokens.css; the few numbers the boards
   draw that have NO token (the 10px and 20px gaps, the 14px picture padding, the 28px check circle, the 10px dot - a design-system step is 4 / 8 / 12 /
   16 / 24 / 32) are kept exactly as drawn and gathered in the custom properties just below, so the owner can round them to the scale in one place.
   Not here: the grid itself (web.css .listing-grid), the title block (the first thing of the left column, as it always was: web.css, ip-listing-card.css), the
   buttons' look (.btn, ip-outline.css), the map (public/css/ip-listing-map.css - since the follow-up handoff of the same day the map is in the left column and the
   card is the right column's one block). */

/* 1. The claim card: the right column's one block ------------------------------------------------------------------------------------------------- */
.listing-claim-card {
  --claim-card-gap: 20px;       /* between the three blocks of the body (boards H1 / J1) - no token */
  --claim-card-gap-tight: 10px; /* check circle to title, benefit dot to text, benefit to benefit, button to button - no token */
  --claim-card-art-pad: 14px;   /* above and below the picture - no token */
  --claim-card-art-height: 100px;
  --claim-card-check-size: 28px;
  --claim-card-dot-size: 10px;
  --claim-card-max-width: 380px; /* the boards' card width (board H1) - no token; the cap below 992px, see the end of this block */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin-top: var(--space-5, 24px);
  overflow: hidden;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #dedede);
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--elevation-2, 0 4px 8px rgba(68, 85, 91, 0.14));
  color: var(--ink, #44555b);
  font-family: var(--font-sans);
}
/* The card is the first thing in the column (the map is in the left column now) and needs no gap above it: its top edge is the top of the page content,
   level with the top of the title block in the left column (owner 2026-11-20: "pushed to the top"). */
.listing-grid__side > .listing-claim-card:first-child {
  margin-top: 0;
}
/* The Social links / Business hours sections below keep the 32px they had under the map (web.css), the card being what sits above them now. */
.listing-grid__side .listing-claim-card + .listing-section {
  margin-top: var(--space-6, 32px);
}
/* Below 992px the grid is ONE column, so between 700 and 991px the card would be as wide as the page (720px at 768) and its drawing, which is drawn to
   be stretched, looked wide and flat (the owner, 2026-11-20: "add the fix"). The boards draw the card 380px wide: it is never wider than that. On
   a phone the column is narrower than 380px anyway, so nothing changes there; from 992px the right column is 360px. */
@media (max-width: 991px) {
  .listing-claim-card {
    max-width: var(--claim-card-max-width);
  }
}

/* The picture: the amber tint strip, the drawing stretched across the card's width (it is drawn to be stretched). */
.listing-claim-card__art {
  display: flex;
  padding: var(--claim-card-art-pad) 0;
  background: var(--category-amber-tint, #f8f0da);
}
.listing-claim-card__art svg {
  display: block;
  width: 100%;
  height: var(--claim-card-art-height);
}

.listing-claim-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--claim-card-gap);
  min-width: 0;
  padding: var(--space-5, 24px);
}

/* Block 1 - free, in the success look. The titles are drawn in Lato Black (900); the site loads Lato 300 / 400 / 700, so they show as Bold until
   the heavier weight is loaded - nothing else to change then. */
.listing-claim-card__free {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
  padding: var(--space-4, 16px);
  background: var(--success-bg, #f3f8ee);
  border: 1px solid var(--success-border, #dbebcb);
  border-radius: var(--radius-lg, 12px);
  color: var(--success-text, #294a09);
}
.listing-claim-card__free-head {
  display: flex;
  align-items: center;
  gap: var(--claim-card-gap-tight);
}
.listing-claim-card__check {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--claim-card-check-size);
  height: var(--claim-card-check-size);
  border-radius: var(--ip-radius-round, 50%);
  background: var(--secondary-dark, #47810f);
  color: var(--ink-inverse, #ffffff);
}
.listing-claim-card .listing-claim-card__free-title {
  margin: 0;
  font: 900 20px/26px var(--font-sans);
  color: var(--success-text, #294a09);
}
.listing-claim-card .listing-claim-card__free-text {
  margin: 0;
  font: 400 14px/20px var(--font-sans);
  color: var(--success-text, #294a09);
}

/* Block 2 - the paid plan, three benefits. */
.listing-claim-card__plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
  padding: var(--space-4, 16px);
  background: var(--sponsored-card-bg, #f5f8fb);
  border: 1px solid var(--info-border, #d3e2ec);
  border-radius: var(--radius-lg, 12px);
}
.listing-claim-card__plan-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 4px);
}
.listing-claim-card .listing-claim-card__plan-title {
  margin: 0;
  font: 900 18px/24px var(--font-sans);
  color: var(--brand-blue-dark, #295b84);
}
.listing-claim-card .listing-claim-card__plan-intro {
  margin: 0;
  font: 400 14px/20px var(--font-sans);
  color: var(--ink, #44555b);
}
.listing-claim-card__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--claim-card-gap-tight);
  margin: 0;
  padding: 0;
  list-style: none;
}
.listing-claim-card__benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--claim-card-gap-tight);
  margin: 0;
  padding: 0;
}
/* All three dots are the same brand blue. The 5px puts the dot's middle on the first line of the title (20px line, 10px dot). */
.listing-claim-card__dot {
  flex: none;
  width: var(--claim-card-dot-size);
  height: var(--claim-card-dot-size);
  margin-top: 5px;
  border-radius: var(--ip-radius-round, 50%);
  background: var(--brand-blue, #3270a2);
}
.listing-claim-card__benefit {
  min-width: 0;
  font: 400 13px/18px var(--font-sans);
  color: var(--ink, #44555b);
}
.listing-claim-card__benefit-title {
  display: block;
  font: 700 14px/20px var(--font-sans);
  color: var(--brand-blue-dark, #295b84);
}

/* Block 3 - the two buttons side by side at EVERY width, each half of the row. They are the design system's smallest button (.btn.btn-sm, the one the
   owner asked for on 2026-11-19) - only the row's layout is set here: equal halves that may shrink, no margin of their own (the legacy .btn has
   10px above and below), and a label that wraps to a second line on a narrow phone instead of being cut (32px is then a minimum, not a height).
   Manage is Primary, Report is Tertiary (the outline family, ip-outline.css) - their colours and states are theirs. */
.listing-claim-card__actions {
  display: flex;
  gap: var(--claim-card-gap-tight);
}
.listing-claim-card .listing-claim-card__actions .btn {
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  min-height: 32px;
  margin: 0;
  padding: var(--space-1, 4px) var(--space-2, 8px);
  white-space: normal;
  text-align: center;
}
/* While a claim is waiting or the page is archived the card has no Manage button: Report is then alone in the row and keeps its own width instead of
   stretching across the card. */
.listing-claim-card .listing-claim-card__actions .btn:only-child {
  flex: 0 1 auto;
}
/* The short note in place of Manage (the old standalone row's text-muted paragraph, unchanged words and colour): only its size and spacing are set here. */
.listing-claim-card .listing-claim-card__notice {
  margin: 0;
  font: 400 13px/18px var(--font-sans);
}
/* The buttons and, only when it cannot be claimed, the note under them: one block of the card's body (an ordinary listing has just the row). */
.listing-claim-card__act {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
  min-width: 0;
}
