/* Single dog page (/dogs/{name}/) — designed post-prototype in the crayon
   language. Status pill mirrors .dog-card .photo[data-status] from crayon.css;
   tag chips reuse the base .dog-tags/.dog-tag classes. */

.dog-profile { padding-top: 40px; }
.dp-back { margin-bottom: 28px; }

.dp-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: start; margin-top: 24px;
}

/* --- gallery --- */
.dp-photo {
  position: relative; aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  background-color: var(--paper-2);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
}
.dp-photo[data-status]::before {
  content: attr(data-status);
  position: absolute; top: 14px; left: 14px;
  padding: 6px 14px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  font: 800 12px/1 'Nunito', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.dp-photo[data-status="Reserved"]::before { background: var(--soft-yellow); }

.dp-thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.dp-thumb {
  width: 72px; height: 72px; padding: 0; cursor: pointer;
  background-size: cover; background-position: center;
  background-color: var(--paper-2);
  border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.dp-thumb:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.dp-thumb.on { background-color: var(--yellow); box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }

/* --- info column --- */
.dp-eyebrow { color: var(--red); font-size: 26px; display: inline-block; transform: rotate(-2deg); }
.dp-name { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; margin: 6px 0 10px; }
.dp-meta { font: 700 17px/1.4 'Nunito', sans-serif; color: rgba(26,20,16,0.65); }

.dp-facts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.dp-status {
  padding: 7px 16px; border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--soft-green);
  font: 800 13px/1 'Nunito', sans-serif; text-transform: uppercase; letter-spacing: 0.05em;
}
.dp-status[data-status="Reserved"] { background: var(--soft-yellow); }
.dp-location {
  display: inline-flex; gap: 7px; align-items: center;
  font: 700 14px/1 'Nunito', sans-serif; color: rgba(26,20,16,0.7);
}

.dp-tags { margin-top: 16px; }

.dp-story { margin-top: 22px; font-size: 16px; line-height: 1.65; }
.dp-story p { margin-bottom: 14px; }

/* Reserved dogs: honest signpost that backup applications are welcome */
.dp-reserved {
  margin-top: 22px; padding: 14px 18px;
  font-size: 15px; line-height: 1.55;
  background: var(--soft-yellow);
  border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.dp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.dp-note {
  margin-top: 14px; font-size: 13px; color: rgba(26,20,16,0.6);
}

@media (max-width: 900px) {
  .dp-grid { grid-template-columns: 1fr; gap: 32px; }
  .dp-name { font-size: clamp(2.6rem, 9vw, 3.4rem); }
}

/* --- "More dogs" strip (parts/dogs-strip.php) ---------------------------
   A quiet browsing shelf below the profile: compact cards, native scroll
   with snap, arrow nudges on desktop, swipe on touch. No autoplay ever. */
.dogs-strip .ds-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; margin-bottom: 24px;
}
.dogs-strip .ds-eyebrow { color: var(--red); font-size: 24px; display: inline-block; transform: rotate(-2deg); }
.dogs-strip .ds-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2px; }
.dogs-strip .ds-arrows { display: flex; gap: 10px; flex: 0 0 auto; }
.dogs-strip .ds-arrow {
  width: 44px; height: 44px; cursor: pointer;
  font: 800 18px/1 'Nunito', sans-serif; color: var(--ink);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s, opacity 0.15s;
}
.dogs-strip .ds-arrow:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.dogs-strip .ds-arrow:disabled { opacity: 0.35; cursor: default; box-shadow: 1px 1px 0 var(--ink); }

.dogs-strip .ds-track {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  /* breathing room so the cards' hard shadows aren't clipped by the
     scroll container, and a snap padding so cards align inside it */
  padding: 4px 8px 10px 4px;
  scroll-padding-left: 4px;
  scrollbar-width: none; /* arrows + peeking card signal scrollability */
}
.dogs-strip .ds-track::-webkit-scrollbar { display: none; }
.dogs-strip .ds-track:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }

.dogs-strip .mini-dog {
  flex: 0 0 220px; scroll-snap-align: start;
  text-decoration: none; color: var(--ink);
}
.dogs-strip .md-photo {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  background-color: var(--paper);
  border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.dogs-strip .mini-dog:hover .md-photo { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.dogs-strip .md-name { font-family: 'Caprasimo', serif; font-size: 18px; margin-top: 10px; }
.dogs-strip .md-meta { font: 700 13px/1.4 'Nunito', sans-serif; color: rgba(26,20,16,0.65); margin-top: 2px; }

@media (max-width: 700px) {
  /* Touch scrolling does the work on phones; a peeking card is the cue */
  .dogs-strip .ds-arrows { display: none; }
  .dogs-strip .mini-dog { flex-basis: 180px; }
}

/* --- Main image is a button now (tap to enlarge) ------------------------ */
.dp-photo {
  appearance: none; -webkit-appearance: none;
  display: block; width: 100%; padding: 0;
  font: inherit; color: var(--ink); cursor: zoom-in;
}
.dp-photo:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }
.dp-zoom {
  position: absolute; bottom: 14px; right: 14px;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink); opacity: 0.92;
  transition: transform 0.1s;
}
.dp-photo:hover .dp-zoom { transform: translate(-1px, -1px) rotate(-6deg); }
.dp-zoom svg { width: 20px; height: 20px; }

/* --- Lightbox (full-screen enlarge; swipe / arrows / Esc) --------------- */
.dp-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; background: rgba(26, 20, 16, 0.92);
}
.dp-lightbox[hidden] { display: none; }
.dp-lb-img {
  max-width: min(92vw, 1100px); max-height: 86vh;
  object-fit: contain; background: var(--paper);
  border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
}
.dp-lb-btn {
  flex: 0 0 auto; cursor: pointer;
  width: 52px; height: 52px;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font: 800 20px/1 'Nunito', sans-serif;
  transition: transform 0.1s, box-shadow 0.1s;
}
.dp-lb-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.dp-lb-btn:focus-visible { outline: 3px dashed var(--paper); outline-offset: 3px; }
.dp-lb-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; }
.dp-lb-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--paper); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 5px 16px; font: 800 13px/1 'Nunito', sans-serif;
}
@media (max-width: 700px) {
  /* On phones, swipe moves between photos — the side arrows step aside */
  .dp-lb-prev, .dp-lb-next { display: none; }
  .dp-lightbox { padding: 14px; }
  .dp-lb-img { max-width: 94vw; max-height: 82vh; }
}

/* =====================================================================
   Share row — "know someone perfect for {name}?" under the apply CTAs.
   Plain-link share buttons (no Meta SDK), styled as crayon sticker pills.
   ===================================================================== */
.dp-share {
  margin-top: 26px; padding-top: 20px;
  border-top: 2px dashed rgba(26,20,16,0.3);
}
.dp-share .dps-note {
  display: block; color: var(--blue); font-size: 24px;
  margin-bottom: 10px; transform: rotate(-1deg);
}
.dps-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dps-btn { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px 9px 10px; font-size: 14px; }
.dps-btn svg { width: 24px; height: 24px; display: block; }
