/* Майстер Поруч — сторінка оголошення: 1:1 з Base44 (біла сторінка, фото на всю ширину,
   аркуш контенту із заокругленим верхом, липка кнопка «Замовити»). */

body[data-view="listing"] { background: #fff; }
body[data-view="listing"] .topbar,
body[data-view="listing"] .bnav,
body[data-view="listing"] .footer { display: none; }
body[data-view="listing"] main.wrap { max-width: none; padding: 0; margin: 0; }

.ld { padding-bottom: 112px; }

/* верхні круглі кнопки поверх фото */
.ld-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; padding-top: calc(16px + env(safe-area-inset-top)); pointer-events: none;
}
.ld-top > * { pointer-events: auto; }
.ld-top-right { display: flex; align-items: center; gap: 8px; }
.ld-round {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: #222; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18); text-decoration: none;
}
.ld-round.on { color: var(--brand); }

/* фото */
.ld-hero { position: relative; margin: 0 auto; max-width: 768px; background: #F7F7F7; aspect-ratio: 4 / 5; overflow: hidden; }
.ld-hero img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.ld-hero .ph { height: 100%; display: grid; place-items: center; color: #B0B0B0; }
.ld-count {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.ld-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: #222; font-size: 20px; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.ld-arrow.left { left: 12px; }
.ld-arrow.right { right: 12px; }

/* аркуш контенту */
.ld-sheet {
  position: relative; margin: -24px auto 0; max-width: 768px; background: #fff;
  border-radius: 28px 28px 0 0; padding: 24px 20px 4px;
}
.ld-cat { display: inline-flex; align-items: center; gap: 6px; color: #717171; font-size: 12px; font-weight: 500; }
.ld-title { margin: 4px 0 0; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.2px; color: #222; }
.ld-sub { margin: 4px 0 0; font-size: 14px; color: #717171; }
.ld-rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; color: #222; }
.ld-rating span { font-weight: 400; color: #717171; }
.ld-hr { height: 1px; background: #EBEBEB; margin: 20px 0; }

/* майстер */
.ld-host { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.ld-host .av { position: relative; width: 48px; height: 48px; flex: none; }
.ld-host .av .avatar-md { width: 48px; height: 48px; font-size: 16px; }
.ld-host .av .live {
  position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%;
  background: #008A05; box-shadow: 0 0 0 2px #fff;
}
.ld-host b { display: block; font-size: 14px; font-weight: 700; color: #222; }
.ld-host i { font-style: normal; font-size: 12px; color: #717171; }
.ld-host .chev { margin-left: auto; color: #717171; }

/* переваги */
.ld-hl { display: flex; flex-direction: column; gap: 16px; }
.ld-hl-row { display: flex; align-items: flex-start; gap: 14px; }
.ld-hl-ico {
  width: 36px; height: 36px; flex: none; border-radius: 50%; background: #F7F7F7;
  display: grid; place-items: center; color: #222;
}
.ld-hl-row b { display: block; font-size: 14px; font-weight: 600; color: #222; }
.ld-hl-row i { font-style: normal; font-size: 12px; color: #717171; }

/* опис */
.ld-desc { margin: 0; font-size: 14px; line-height: 1.65; color: #222; white-space: pre-line; }
.ld-more {
  margin-top: 10px; border: 0; border-radius: 12px; background: #F7F7F7;
  padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 600; color: #222; cursor: pointer;
}
.ld-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ld-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #F7F7F7;
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 500; color: #222;
}

/* секції */
.ld-sec { margin-top: 28px; }
.ld-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ld-sec-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: #222; }
.ld-sec-head span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #717171; }
.ld-map { margin-top: 12px; height: 208px; border-radius: 20px; overflow: hidden; background: #F7F7F7; }
.ld-map #ld-map { width: 100%; height: 100%; }

/* відгуки */
.ld-empty-review { margin-top: 12px; border: 1px dashed #DDD; border-radius: 16px; padding: 24px; text-align: center; }
.ld-empty-review p { margin: 0; font-size: 14px; color: #717171; }
.ld-reviews { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ld-review { background: #F7F7F7; border-radius: 16px; padding: 16px; }
.ld-review .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ld-review .top b { font-size: 14px; font-weight: 600; color: #222; }
.ld-stars { display: inline-flex; gap: 2px; color: #DDD; }
.ld-stars .on { color: #222; }
.ld-review .type { margin-top: 4px; font-size: 12px; color: #717171; }
.ld-review p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #222; }

/* липка кнопка */
.ld-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff;
  border-top: 1px solid #EBEBEB; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
}
.ld-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 768px; margin: 0 auto; }
.ld-cta b { display: block; font-size: 15px; font-weight: 700; color: #222; }
.ld-cta b span { font-size: 14px; font-weight: 400; color: #717171; }
.ld-cta .micro { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; color: #717171; }
.ld-order {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px; background: #0f172a; color: #fff !important;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .25);
}

.ld-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60;
  background: #222; color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 999px;
  opacity: 0; transition: opacity .2s;
}
.ld-toast.on { opacity: 1; }

@media (min-width: 560px) {
  .ld-hero { aspect-ratio: 4 / 3; }
}