/**
 * Pilbe Agent Profile (Unclaimed) — Phase 9b Phase 2
 *
 * Unclaimed-only overrides on top of pilbe-agency-claimed.css.
 * The full page chrome (breadcrumbs, dim strip, layout grid, listings card,
 * office card, sidebar, nearby/quicklinks) is reused verbatim from the claimed
 * stylesheet; only the bits below diverge:
 *
 *   - Hero accent tile: generic Pilbe "unclaimed" icon (white-on-warning swatch)
 *   - "Unclaimed Profile" notice card (warning-50 bg, warning-700 text/icon)
 *
 * Token-only colour references. No hardcoded hex outside pilbe-tokens.css.
 *
 * @package Pilbe
 * @version 1.0.0
 */

/* ──────────────────────────────────────────────────────────────────
   Hero accent — generic icon (overrides the navy default for unclaimed)
   ────────────────────────────────────────────────────────────────── */

.pilbe-agency-hero--unclaimed .pilbe-card-branded__accent {
  background: var(--pilbe-warning-50);
  color: var(--pilbe-warning-700);
}

.pilbe-agency-hero--unclaimed .pilbe-unclaimed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  color: var(--pilbe-warning-700);
}

/* Real agency logo in the unclaimed hero. Sized to fit comfortably in
   the cream warning swatch — capped at 180×120 so wide horizontal
   logos (e.g. Reeds Rains 220×118) aren't clipped, and tall logos
   stay within the visible accent area. Background stays warning-50 so
   the unclaimed messaging is still visually distinct. */
.pilbe-agency-hero--unclaimed .pilbe-agency-hero__logo {
  display: block;
  max-width: 180px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* The single Claim CTA gets a small chevron right of the label */
.pilbe-btn .pilbe-btn__arrow {
  font-size: 18px;
  line-height: 1;
}

/* ──────────────────────────────────────────────────────────────────
   Unclaimed notice card (warning-toned)
   Sits between the hero and the dual feature row.
   ────────────────────────────────────────────────────────────────── */

.pilbe-unclaimed-notice {
  margin-top: var(--pilbe-space-6);
  background: var(--pilbe-warning-50);
  border-color: var(--pilbe-warning-500);
}

.pilbe-unclaimed-notice__body {
  padding: var(--pilbe-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--pilbe-space-3);
}

.pilbe-unclaimed-notice__head {
  display: flex;
  align-items: center;
  gap: var(--pilbe-space-3);
}

.pilbe-unclaimed-notice__icon {
  flex: 0 0 auto;
  color: var(--pilbe-warning-700);
  display: inline-flex;
}

.pilbe-unclaimed-notice__title {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-h4);
  line-height: var(--pilbe-lh-h4);
  font-weight: 700;
  color: var(--pilbe-text-primary);
  margin: 0;
}

.pilbe-unclaimed-notice__lead {
  margin: 0;
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-base);
  line-height: var(--pilbe-lh-base);
  color: var(--pilbe-text-primary);
}

.pilbe-unclaimed-notice__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pilbe-space-1);
}

.pilbe-unclaimed-notice__list li {
  position: relative;
  padding-left: var(--pilbe-space-5);
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  line-height: var(--pilbe-lh-sm);
  color: var(--pilbe-text-secondary);
}

.pilbe-unclaimed-notice__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pilbe-warning-500);
  transform: translateY(-50%);
}

.pilbe-unclaimed-notice__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pilbe-space-4);
  margin-top: var(--pilbe-space-2);
}

.pilbe-unclaimed-notice__removal {
  font-family: var(--pilbe-font);
  font-size: var(--pilbe-text-sm);
  line-height: var(--pilbe-lh-sm);
  font-weight: 700;
  color: var(--pilbe-text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pilbe-unclaimed-notice__removal:hover {
  color: var(--pilbe-text-primary);
}

/* ──────────────────────────────────────────────────────────────────
   Unclaimed pill + tooltip (next to agency name in the hero)
   Mirrors home.co.uk's compact badge with a hover/focus tooltip
   listing why the profile is flagged.
   ────────────────────────────────────────────────────────────────── */

/* Flex wrapper around the H1 + pill so the pill renders inline with the
   agency name without nesting block-level tooltip content inside the H1. */
.pilbe-agency-hero__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pilbe-space-3);
}

.pilbe-agency-hero__name-row .pilbe-agency-hero__name {
  margin: 0;
}

.pilbe-unclaimed-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--pilbe-warning-50);
  color: var(--pilbe-warning-700);
  font-family: var(--pilbe-font);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
  cursor: help;
  border: 1px solid var(--pilbe-warning-500);
}

.pilbe-unclaimed-pill__label {
  display: inline-block;
}

.pilbe-unclaimed-pill:focus {
  outline: 2px solid var(--pilbe-warning-700);
  outline-offset: 2px;
}

.pilbe-unclaimed-pill__tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 280px;
  padding: var(--pilbe-space-4);
  background: #fff;
  border: 1px solid var(--pilbe-warning-500);
  border-radius: var(--pilbe-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  color: var(--pilbe-text-primary);
  font-size: var(--pilbe-text-sm);
  font-weight: 400;
  line-height: var(--pilbe-lh-sm);
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0.15s;
  z-index: 20;
}

.pilbe-unclaimed-pill:hover .pilbe-unclaimed-pill__tooltip,
.pilbe-unclaimed-pill:focus .pilbe-unclaimed-pill__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}

.pilbe-unclaimed-pill__tooltip::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--pilbe-warning-500);
  border-top: 1px solid var(--pilbe-warning-500);
}

.pilbe-unclaimed-pill__title {
  display: block;
  font-weight: 700;
  color: var(--pilbe-warning-700);
  margin-bottom: var(--pilbe-space-2);
}

.pilbe-unclaimed-pill__lead {
  display: block;
  margin-bottom: var(--pilbe-space-2);
  color: var(--pilbe-text-secondary);
}

.pilbe-unclaimed-pill__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 var(--pilbe-space-3) 0;
  padding: 0;
  color: var(--pilbe-text-secondary);
}

.pilbe-unclaimed-pill__list-item {
  display: block;
  position: relative;
  padding-left: var(--pilbe-space-4);
}

.pilbe-unclaimed-pill__list-item::before {
  content: '•';
  position: absolute;
  left: var(--pilbe-space-2);
  top: 0;
  color: var(--pilbe-warning-500);
  font-weight: 700;
}

.pilbe-unclaimed-pill__cta {
  display: inline-block;
  font-weight: 700;
  color: var(--pilbe-warning-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pilbe-unclaimed-pill__cta:hover,
.pilbe-unclaimed-pill__cta:focus {
  color: var(--pilbe-text-primary);
}

/* ──────────────────────────────────────────────────────────────────
   Listing row thumbnail: greyed preview + "Preview" overlay badge,
   or full-colour Pilbe-branded placeholder when no verified image.
   Mirrors home.co.uk's treatment of unclaimed-profile listings.
   ────────────────────────────────────────────────────────────────── */

.pilbe-listing-row__thumb--preview {
  position: relative;
}

.pilbe-listing-row__thumb--preview img {
  filter: grayscale(100%);
  opacity: 0.6;
}

.pilbe-listing-row__thumb-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: var(--pilbe-font);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 3px;
  pointer-events: none;
}

.pilbe-listing-row__thumb--placeholder {
  background: var(--pilbe-neutral-100);
}

.pilbe-listing-row__thumb--placeholder img {
  /* Placeholder SVGs are 4:3 line-art — let the illustration breathe
     inside the 100×80 thumb container rather than cropping it. */
  object-fit: contain !important;
  padding: 4px;
}

