/* CAL premium appraiser card — navy + gold + white + green
   Built from a design reference Gemini mockup. Real HTML/CSS, real data.
   Used on: directory, shared-list, state pages, public list (via _card.html).
   Not used on home-page Top-4 (those stay compact). */

:root {
  --pc-navy: #0e2a47;
  --pc-navy-2: #0a1628;
  --pc-navy-3: #1a3a5c;
  --pc-gold: #d4a93a;        /* brighter, more luminous */
  --pc-gold-2: #f0d77a;
  --pc-gold-3: #b88a1f;
  --pc-gold-dim: #8c6f33;
  --pc-green: #047857;
  --pc-green-bg: #ecfdf5;
  --pc-green-border: #a7f3d0;
}

/* Topbar restyled dark navy + gold to match the design reference */
body .site-header {
  background: linear-gradient(180deg, var(--pc-navy-2) 0%, var(--pc-navy) 100%);
  border-bottom: 2px solid var(--pc-gold);
}
body .site-header .brand {
  color: var(--pc-gold);
  letter-spacing: .06em;
  font-weight: 800;
  display: inline-flex; align-items: center; gap: 10px;
}
body .site-header .brand::before {
  content: "⚖";
  color: var(--pc-gold-2);
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
body .site-nav a { color: #f1f5f9; }
body .site-nav a:hover { color: var(--pc-gold-2); }

/* Outer card — replaces the previous lighter card look */
.ump-card.pc-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(14, 42, 71, 0.10);
  transition: box-shadow .15s ease, transform .15s ease;
}
.ump-card.pc-card:hover {
  box-shadow: 0 14px 36px rgba(14, 42, 71, 0.16);
}
.ump-card.pc-card.selected {
  outline: 2px solid var(--pc-gold);
  outline-offset: -2px;
}
.ump-card.pc-card.ump-card--upvoted { border-left: none; }
.ump-card.pc-card.ump-card--private  { border-left: 5px solid #d97706; }

/* Old corner-tab "Select" — hidden, replaced by the new vertical ADD TO LIST sidebar */
.pc-card .sel-cb-wrap { display: none; }

/* ============ ADD TO LIST sidebar (vertical, dark navy / carbon fiber) ============ */
.ump-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  margin-bottom: 22px;
}
@media (max-width: 1100px) {
  .ump-row { grid-template-columns: 1fr; }
  .ump-row .add-to-list-bar {
    flex-direction: row !important;
    border-radius: 14px 14px 0 0 !important;
    border: 1.5px solid #1f3a5c !important;
    border-bottom: 0 !important;
    padding: 10px 16px !important;
    justify-content: center !important;
    gap: 4px;
  }
  .ump-row .add-to-list-bar .atl-gap { display: none; }
  .ump-row .add-to-list-bar .atl-arrow { margin: 0 6px; transform: rotate(-90deg); }
  .ump-row .ump-card { border-radius: 0 0 14px 14px !important; }
}

/* Card sits flush against the sidebar — flat left edge */
.ump-row .ump-card { border-radius: 0 14px 14px 0; margin-bottom: 0; }

.add-to-list-bar {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; gap: 2px;
  padding: 18px 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #1a3a5c 0%, #0e2a47 45%, #0a1628 100%);
  border-radius: 14px 0 0 14px;
  border: 1.5px solid #1f3a5c;
  border-right: 0;
  box-shadow:
    inset 0 0 18px rgba(56,189,248,.10),
    inset 2px 0 0 rgba(255,255,255,.06),
    inset -1px 0 0 rgba(0,0,0,.3);
  cursor: pointer;
  user-select: none;
  transition: filter .15s, box-shadow .2s;
}
.add-to-list-bar:hover {
  filter: brightness(1.18);
  box-shadow:
    inset 0 0 24px rgba(56,189,248,.22),
    inset 2px 0 0 rgba(255,255,255,.10),
    inset -1px 0 0 rgba(0,0,0,.3);
}
.add-to-list-bar input {
  position: absolute; opacity: 0; pointer-events: none;
  width: 1px; height: 1px;
}

.atl-letters {
  color: #cbd5e1;
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.65), 0 0 4px rgba(56,189,248,.15);
}
.atl-gap { display: block; height: 11px; flex-shrink: 0; }

.atl-arrow {
  color: #38bdf8;
  font-size: 0.9rem;
  line-height: 1;
  margin-top: 10px; margin-bottom: 8px;
  filter: drop-shadow(0 0 6px rgba(56,189,248,.6));
  flex-shrink: 0;
}

.atl-check {
  width: 26px; height: 26px;
  border: 2px solid #94a3b8;
  border-radius: 5px;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: transparent;
  transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.add-to-list-bar input:checked ~ .atl-check {
  background: linear-gradient(180deg, #60c8ff 0%, #38bdf8 100%);
  border-color: #7dd3fc;
  color: #0a1628;
  box-shadow: 0 0 8px rgba(56,189,248,.6), inset 0 1px 0 rgba(255,255,255,.3);
}
.add-to-list-bar input:checked ~ .atl-check::after { content: "✓"; }

/* When the row is selected, glow the bar's right edge */
.ump-row.selected .add-to-list-bar {
  box-shadow:
    inset 0 0 28px rgba(56,189,248,.30),
    inset 2px 0 0 rgba(255,255,255,.10),
    inset -2px 0 0 #38bdf8,
    0 0 12px rgba(56,189,248,.20);
}
.ump-row.selected .ump-card {
  box-shadow: 0 12px 30px rgba(14, 42, 71, 0.18), 0 0 0 1px #38bdf8;
}

/* Main 3-column grid — right column gets more breathing room */
.pc-grid {
  display: grid;
  grid-template-columns: 300px 1fr 290px;
  gap: 0;
}
@media (max-width: 1100px) {
  .pc-grid { grid-template-columns: 1fr; }
}

/* ============ LEFT COLUMN: photo panel ============
   The photo IS the panel — rectangular portrait fills the full area,
   with PROFESSIONAL APPRAISER tag and [COMMUNITY UPVOTED] badge overlaying
   the top and bottom of the photo. */
.pc-photo-panel {
  position: relative;
  background: #0a1226;  /* sampled directly from SNAG-1449 reference (avg ~#050c1c..#161e31) */
  min-height: 400px;
  overflow: hidden;
  border-radius: 14px 0 0 14px;  /* matches card outer-left corners */
  padding: 14px;  /* navy frame visible around the photo */
}
/* When card is inside the ADD-TO-LIST .ump-row wrapper, kill the left rounding
   since the sidebar covers that edge. */
.ump-row .pc-photo-panel { border-radius: 0; }
@media (max-width: 1100px) {
  /* mobile: stack — panel becomes the top of the card */
  .pc-photo-panel { border-radius: 14px 14px 0 0; min-height: 340px; }
  .ump-row .pc-photo-panel { border-radius: 0; }
}

/* Photo nearly fills the panel — navy frame visible around it as a card-in-card.
   Slight rounding so corners are chamfered like the reference. */
.pc-photo {
  position: absolute; inset: 14px;
  width: calc(100% - 28px); height: calc(100% - 28px);
  object-fit: cover;
  border: 0; border-radius: 8px;
  background: var(--pc-navy-2);
  display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.2);
}
.pc-photo--initials {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pc-navy-3), var(--pc-navy));
  color: #fff; font-size: 5rem; font-weight: 800; letter-spacing: -.02em;
}

/* PROFESSIONAL APPRAISER — overlays the top center of the photo */
.pc-top-badge {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  background: linear-gradient(180deg, var(--pc-gold-2) 0%, var(--pc-gold) 55%, var(--pc-gold-3) 100%);
  color: var(--pc-navy-2);
  font-size: .72rem; font-weight: 900; letter-spacing: .14em;
  padding: 6px 16px; border-radius: 4px;
  box-shadow:
    0 3px 10px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -1px 0 rgba(0,0,0,.12);
  text-transform: uppercase;
  white-space: nowrap;
  /* Soft scrim behind for legibility against any photo */
  text-shadow: 0 1px 1px rgba(255,255,255,.2);
}

/* [COMMUNITY UPVOTED] — polished silver plaque with bronze beveled frame,
   shield+laurel+checkmark on the left, gold stars under the text on the right.
   Award-medal look per the SNAG-1454 reference. */
.pc-vote-badge {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  /* Brushed silver bg */
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #e5e7eb 0%, #c1c5cc 45%, #9aa0a8 100%);
  /* Bronze/gold beveled border */
  border: 3px solid transparent;
  border-radius: 9px;
  padding: 7px 14px 8px 8px;
  background-clip: padding-box;
  display: flex; align-items: center; gap: 10px;
  min-width: 230px;
  box-shadow:
    0 5px 14px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -2px 0 rgba(0,0,0,.18),
    /* gold rim effect via outer + inner box-shadows */
    0 0 0 1px #8c6f33,
    0 0 0 4px #c9a04e,
    0 0 0 5px #6b4f1c;
}
/* Shield + laurel SVG block */
.pc-vote-badge .pc-shield {
  width: 42px; height: 42px; flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.3));
}
.pc-vote-badge .pc-vote-text {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
}
.pc-vote-badge .vlabel {
  color: var(--pc-navy-2); font-size: .78rem; font-weight: 900;
  letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
.pc-stars {
  color: #d4a93a; font-size: 1.05rem; letter-spacing: 3px;
  line-height: 1; margin-top: 2px;
  text-shadow: 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(140,111,51,.4);
}

/* No vignette — flat solid navy panel per user's instruction */

/* ============ CENTER COLUMN: info + contact ============ */
.pc-info {
  padding: 18px 22px 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.pc-trusted-line {
  color: var(--pc-gold-dim); font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; justify-content: flex-start;
}
.pc-trusted-line svg { width: 14px; height: 14px; color: var(--pc-gold); flex-shrink: 0; }

.pc-name {
  margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 900; color: var(--pc-navy);
  letter-spacing: -.02em; line-height: 1;
}
.pc-name a { color: inherit; text-decoration: none; }
.pc-name a:hover { color: var(--pc-gold-dim); }
.pc-title {
  color: #4b5563; font-size: .85rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}

.pc-quote {
  margin: 4px 0 6px;
  color: #374151; font-style: italic; font-size: .98rem;
  line-height: 1.45;
  position: relative; padding-left: 22px;
  border-left: none;
}
.pc-quote::before {
  content: "\201C";  /* opening curly quote */
  position: absolute; left: 0; top: -6px;
  color: var(--pc-gold); font-size: 1.8rem; font-weight: 700;
  font-family: Georgia, serif; line-height: 1;
}

/* Contact rows */
.pc-contact {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 8px 12px;
}
.pc-contact .pc-c-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--pc-navy); color: var(--pc-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pc-contact .pc-c-icon svg { width: 18px; height: 18px; }
.pc-contact .pc-c-data { min-width: 0; }
.pc-contact .pc-c-label {
  color: #64748b; font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.pc-contact .pc-c-value {
  color: var(--pc-navy); font-size: 1.1rem; font-weight: 800; line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-contact .pc-c-value a { color: inherit; text-decoration: none; }
.pc-contact .pc-c-value a:hover { color: var(--pc-gold-dim); text-decoration: underline; }
.pc-c-cta {
  background: linear-gradient(180deg, var(--pc-gold-2), var(--pc-gold) 60%, var(--pc-gold-dim));
  color: var(--pc-navy-2);
  font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 6px;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.pc-c-cta:hover { filter: brightness(1.08); color: var(--pc-navy-2); text-decoration: none; }
.pc-c-cta svg { width: 12px; height: 12px; }

.pc-cv-link {
  font-size: .82rem; color: var(--pc-navy); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--pc-gold);
  text-underline-offset: 3px;
}
.pc-cv-link:hover { color: var(--pc-gold-dim); }

.pc-trait-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.pc-trait-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--pc-green); color: var(--pc-green);
  padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.pc-trait-pill svg { width: 12px; height: 12px; }

/* ============ RIGHT COLUMN: votes + actions + verified ============ */
.pc-actions {
  padding: 22px 20px 20px;
  background: linear-gradient(180deg, #fafbfc 0%, #f0f4f8 100%);
  border-left: 1px solid #e5e7eb;
  display: flex; flex-direction: column; gap: 12px;
  align-items: stretch;
}
@media (max-width: 1000px) {
  .pc-actions { border-left: none; border-top: 1px solid #e5e7eb; }
}
.pc-upvote-card {
  background: #fff;
  border: 2px solid var(--pc-gold);
  border-radius: 10px; padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 3px 10px rgba(212,169,58,.25);
  cursor: pointer; font-family: inherit;
  transition: transform .1s ease, box-shadow .15s;
}
.pc-upvote-card:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(212,169,58,.35); }
.pc-upvote-thumb {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--pc-gold-2) 0%, var(--pc-gold) 60%, var(--pc-gold-3) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(212,169,58,.4), inset 0 1px 0 rgba(255,255,255,.4);
}
.pc-upvote-thumb svg { width: 26px; height: 26px; color: var(--pc-navy-2); }
.pc-upvote-num { color: var(--pc-navy); font-size: 2.2rem; font-weight: 900; line-height: 1; display: block; }
.pc-upvote-lab {
  color: #64748b; font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; margin-top: 3px;
}

.pc-btn {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  background: #fff; color: var(--pc-navy);
  border: 2px solid var(--pc-gold);
  border-radius: 10px; padding: 11px 16px 11px 8px;
  font-size: .88rem; font-weight: 800; letter-spacing: .06em;
  text-decoration: none; text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(212,169,58,.18);
  transition: background .12s, color .12s, transform .1s, box-shadow .15s;
}
.pc-btn:hover {
  background: linear-gradient(180deg, var(--pc-gold-2), var(--pc-gold));
  color: var(--pc-navy-2); text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(212,169,58,.4);
}
.pc-btn .pc-btn-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pc-navy); color: var(--pc-gold);
  display: flex; align-items: center; justify-content: center;
}
.pc-btn:hover .pc-btn-icon { background: var(--pc-navy-2); }
.pc-btn .pc-btn-icon svg { width: 18px; height: 18px; }

.pc-verified-card {
  margin-top: 8px;
  background: #fff; border: 1.5px solid var(--pc-green-border); border-radius: 10px;
  padding: 14px 14px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 6px rgba(4,120,87,.1);
}
.pc-verified-shield {
  width: 56px; height: 56px; flex-shrink: 0; color: var(--pc-green);
  filter: drop-shadow(0 1px 2px rgba(4,120,87,.2));
}
.pc-verified-text {
  color: var(--pc-green); font-weight: 900; font-size: 1.05rem; line-height: 1.15;
}

/* ============ BOTTOM ATTRIBUTE STRIP ============ */
.pc-attr-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: #e5e7eb;
  border-top: 1px solid #e5e7eb;
}
.pc-attr {
  background: #f8fafc;
  padding: 16px 10px 14px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
}
.pc-attr-ico {
  width: 26px; height: 26px; color: var(--pc-navy); margin-bottom: 4px;
}
.pc-attr-lab {
  color: #64748b; font-size: .72rem; font-weight: 600; line-height: 1.25;
  min-height: 1.65em;
}
.pc-attr-val {
  color: var(--pc-navy); font-size: 1.4rem; font-weight: 900; letter-spacing: -.01em;
}
.pc-attr-desc {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--pc-green); font-size: .76rem; font-weight: 700;
}
.pc-attr-desc::before { content: "✓"; font-weight: 900; }

/* ============ FOOTER GREEN BAND ============ */
.pc-footer-band {
  background: linear-gradient(180deg, #064e3b 0%, var(--pc-green) 100%);
  color: #fff;
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-size: .82rem;
}
.pc-footer-band .pc-fb-left {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: .04em;
}
.pc-footer-band .pc-fb-left svg { width: 18px; height: 18px; flex-shrink: 0; }
.pc-footer-band .pc-fb-right {
  color: #d1fae5; font-style: italic; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

/* Submitted-by-sender badge (when private appraiser in shared list) — keep visible but recolored */
.pc-card .private-badge {
  position: absolute; top: 10px; right: 14px; z-index: 4;
  background: #d97706; color: #fff;
  border: none;
  padding: 4px 10px; border-radius: 4px;
}
