/* Item + service detail pages. Builds on theme.css + home.css */

.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px; align-items: start; margin-top: 8px;
}
.detail-media { position: sticky; top: 104px; }
.detail-media img {
  width: 100%; display: block; object-fit: cover;
  border-radius: 12px; background: var(--soft);
}
.detail-media img.square { aspect-ratio: 1 / 1; }
.detail-media img.wide { aspect-ratio: 16 / 11; }

.d-label { font-size: 14px; font-weight: 600; color: var(--green-dark); }
.d-title { margin: 6px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.15; }
.d-price { margin-top: 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.2px; }
.d-price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.d-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.d-fact {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 8px;
  background: var(--soft); font-size: 14px; font-weight: 500;
}
.d-fact svg { width: 16px; height: 16px; color: var(--muted); }

.d-actions { display: flex; gap: 10px; margin-top: 24px; }
.d-chat {
  flex: 1; height: 52px; border-radius: 8px; border: 0;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.d-chat:hover { background: var(--accent-hover); }
.d-chat svg { width: 20px; height: 20px; }
.d-icon {
  width: 52px; height: 52px; border-radius: 8px; flex: none;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.d-icon:hover { background: var(--soft); }
.d-icon svg { width: 22px; height: 22px; }
.d-icon[aria-pressed="true"] { color: var(--green-dark); border-color: var(--green-dark); }
.d-icon[aria-pressed="true"] svg { fill: currentColor; }

.d-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.d-section h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.d-section p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }

.person {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: 10px; border: 1px solid var(--line);
}
.person .av {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--green-tint); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
}
.person-info { min-width: 0; flex: 1; }
.person-name { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.person-name svg { width: 16px; height: 16px; color: var(--green-dark); }
.person-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }

.prices { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.prices li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; font-size: 15px; }
.prices li + li { border-top: 1px solid var(--line); }
.prices li span:last-child { font-weight: 700; white-space: nowrap; }

.report {
  margin-top: 20px; border: 0; background: none; padding: 0;
  font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer;
}
.report:hover { color: var(--ink); }

.more { margin-top: 64px; }
.more h2 { margin: 0 0 20px; font-size: 18px; font-weight: 700; letter-spacing: -0.4px; }

.not-found { padding: 80px 0; text-align: center; }
.not-found h1 { margin: 0 0 8px; font-size: 22px; }
.not-found p { margin: 0 0 20px; color: var(--muted); }
.not-found a { font-weight: 600; }

.d-chat { text-decoration: none; }
.d-chat:disabled { opacity: .5; cursor: default; }
.d-secondary {
  height: 52px; padding: 0 18px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; flex: none;
}
.d-secondary:hover { background: var(--soft); }
.sold-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  padding: 4px 10px; border-radius: 6px; background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 700; letter-spacing: 0;
}
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb {
  flex: none; width: 68px; height: 68px; padding: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: var(--soft); cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb[aria-pressed="true"] { border-color: var(--green-dark); }

.action-bar { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  padding: 12px 20px; border-radius: 8px; background: var(--ink); color: var(--bg);
  font-weight: 600; z-index: 30;
}

/* Phone */
@media (max-width: 760px) {
  .detail-page .bottom-nav { display: none; }
  .detail-page .content { padding-bottom: 110px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 0; }
  .detail-media { position: static; margin: -12px -16px 0; }
  .detail-media > img { border-radius: 0; }
  .thumbs { padding: 0 16px; }
  .d-title { font-size: 20px; }
  .d-price { font-size: 22px; }
  .d-actions { display: none; }
  .more { margin-top: 40px; }

  .action-bar {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 12px 16px 20px; background: var(--bg); border-top: 1px solid var(--line);
  }
  .toast { bottom: 100px; }
}
a.report { display: inline-block; }
