/* ==========================================================================
   Страница анкеты в раскладке макета (front.listing_detail).
   Базовые элементы (.panelw, .btn, .chips, .tier, .fav) — из spa-tpl.css.
   ========================================================================== */

.tpld { color: var(--mist); padding-bottom: 30px; }
.tpld h1, .tpld h2, .tpld h3 { color: var(--mist); font-weight: 900; margin: 0; }
.tpld p { margin: 0; }
.tpld a { text-decoration: none; }

.tpld .back { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-weight: 800; padding-top: 18px; }
.tpld .back:hover { color: var(--gold); }

.tpld .pro { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; padding-top: 16px; align-items: start; }
.tpld .pro > * { min-width: 0; }

/* Галерея */
.tpld .gallery { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; }
.tpld .gallery.single { grid-template-columns: minmax(0, 1fr); }
.tpld .thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow: auto; scrollbar-width: none; }
.tpld .thumbs button { border: 3px solid transparent; border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer; aspect-ratio: 1; background: none; opacity: .65; transition: opacity .2s, border-color .2s; flex-shrink: 0; }
.tpld .thumbs button[aria-pressed="true"] { border-color: var(--gold); opacity: 1; }
.tpld .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tpld .main-pic { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; background: #0B0F14; display: block; }
.tpld .main-pic img.big { width: 100%; height: 100%; object-fit: cover; }
.tpld .main-pic .tier { height: 42px; top: 14px; left: 12px; }
.tpld .main-pic .cap { position: absolute; left: 16px; bottom: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(11, 15, 20, .72); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.tpld .main-pic .cap i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }

/* Факты под фото */
.tpld .facts4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.tpld .facts4 > div { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--r-md); background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.tpld .facts4 img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.tpld .facts4 b { display: block; font-weight: 900; font-size: 17px; line-height: 1.15; color: var(--mist); }
.tpld .facts4 span { color: var(--dim); font-size: 12.5px; font-weight: 700; }

/* Блоки */
.tpld .blk { margin-top: 22px; padding: 26px; }
.tpld .blk h2 { font-size: 23px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.tpld .blk h2 img { width: 32px; height: 32px; object-fit: contain; }

/* Иконки разделов: собственные SVG вместо картинок прежней «массажной» темы
   (лотос, флакон масла) — платформа универсальная, содержание разное */
.tpld .blk h2 .h2-ico { width: 26px; height: 26px; flex: 0 0 auto; color: var(--gold, #3F7A00); opacity: .85; }
.tpld .about { color: var(--dim); font-size: 16.5px; font-weight: 600; max-width: 70ch; line-height: 1.6; }
.tpld .kinds { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tpld .kinds a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 8px; border-radius: 999px; background: linear-gradient(180deg, #F8FAFC, #E2E8F0); color: var(--ink); font-weight: 800; font-size: 14px; box-shadow: var(--gloss); }
.tpld .kinds a img { width: 26px; height: 26px; object-fit: contain; }
.tpld .kinds a:hover { filter: brightness(1.05); }
.tpld .amen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tpld .amen span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(168, 255, 59, .08); font-weight: 700; font-size: 13.5px; }
.tpld .amen span::before { content: "✓"; color: var(--mint); font-weight: 900; }
.tpld .socials { display: flex; gap: 8px; margin-top: 16px; }
.tpld .socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: var(--gold); }
.tpld .safety { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(91, 217, 107, .08); border: 1px solid rgba(91, 217, 107, .3); color: var(--dim); font-size: 14px; font-weight: 600; }

/* Цены */
.tpld .svc { width: 100%; border-collapse: collapse; }
.tpld .svc td { padding: 11px 0; border-bottom: 1px dashed var(--line-2); vertical-align: middle; font-weight: 700; color: var(--mist); background: none; }
.tpld .svc tr:last-child td { border-bottom: 0; }
.tpld .svc td span { display: block; color: var(--faint); font-size: 13px; font-weight: 600; }
.tpld .svc td.p { text-align: right; font-weight: 900; font-size: 18px; white-space: nowrap; padding-left: 12px; color: var(--gold); }
.tpld .svc-empty { color: var(--dim); font-weight: 600; }

/* Отзывы */
.tpld .rev-sum { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; padding: 20px; border-radius: var(--r-md); background: rgba(0, 0, 0, .22); margin-bottom: 10px; }
.tpld .rev-sum .big { font-weight: 900; font-size: 58px; line-height: 1; color: var(--gold); }
.tpld .rev-sum .big small { display: block; font-size: 14px; color: var(--dim); font-weight: 700; margin-top: 6px; }
.tpld .bars { display: grid; gap: 6px; }
.tpld .bars div { display: grid; grid-template-columns: 18px 1fr 30px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--dim); font-weight: 700; }
.tpld .bars i { height: 8px; border-radius: 8px; background: rgba(245, 246, 232, .12); overflow: hidden; position: relative; }
.tpld .bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--goldg); border-radius: 8px; }
.tpld .rev { padding: 18px 0; border-bottom: 1px dashed var(--line-2); }
.tpld .rev:last-child { border-bottom: 0; }
.tpld .rev-h { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.tpld .av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--gold); background: #E2E8F0; }
.tpld .av img { width: 100%; height: 100%; object-fit: cover; }
.tpld .rev-h b { font-weight: 900; }
.tpld .rev-h span { color: var(--faint); font-size: 13px; display: block; font-weight: 700; }
.tpld .rev .stars { margin-left: auto; color: #A8FF3B; letter-spacing: 2px; font-size: 17px; }
.tpld .rev p { color: var(--dim); font-weight: 600; }
.tpld .rev-none { color: var(--dim); font-weight: 600; }
.tpld .rev-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.tpld .rev-form h3 { font-size: 19px; }
.tpld .rev-note { color: var(--dim); font-weight: 700; }
.tpld .rev-note a { color: var(--gold); }
.tpld .rate-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.tpld .rate-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tpld .rate-pick label { font-size: 30px; line-height: 1; color: rgba(245, 246, 232, .25); cursor: pointer; transition: color .15s; }
.tpld .rate-pick input:checked ~ label, .tpld .rate-pick label:hover, .tpld .rate-pick label:hover ~ label { color: #A8FF3B; }
body.spa-theme .tpld textarea.area { width: 100%; min-height: 120px; padding: 14px 16px; border-radius: 14px !important; border: 1.5px solid var(--line-2) !important; background: rgba(245, 246, 232, .06) !important; color: var(--mist) !important; font-weight: 600; resize: vertical; }

/* Правая панель */
.tpld .side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.tpld .book { padding: 24px; position: relative; overflow: hidden; }
.tpld .book h1 { font-size: 30px; line-height: 1.08; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-right: 70px; }
.tpld .book h1 .ver { width: 26px; height: 26px; }
.tpld .book .sub { color: var(--dim); margin-top: 6px; font-size: 15px; font-weight: 700; }
.tpld .book .row-r { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: 15px; flex-wrap: wrap; font-weight: 800; }
.tpld .book .row-r img { height: 30px; width: auto; }
.tpld .book .row-r .star { color: #A8FF3B; }
.tpld .book .row-r small { color: var(--dim); font-weight: 700; font-size: 14px; }
.tpld .book .from { margin: 18px 0 16px; padding: 14px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tpld .book .from b { font-weight: 900; font-size: 30px; color: var(--gold); }
.tpld .book .from span { color: var(--dim); font-size: 14px; font-weight: 700; }
.tpld .book .btns { display: grid; gap: 10px; }
.tpld .book .btns .btn { height: 52px; font-size: 16px; width: 100%; }
.tpld .book .two { display: grid; grid-template-columns: 52px 1fr; gap: 10px; }
.tpld .book .fav { position: static; width: 52px; height: 52px; border: 2px solid var(--rose); background: rgba(255, 92, 138, .08); }
.tpld .book .fav svg { stroke: var(--rose); }
.tpld .book .fav[aria-pressed="true"] { background: #fff; border-color: #fff; }
.tpld .book .fav[aria-pressed="true"] svg { fill: var(--rose); }
.tpld .book .deco { position: absolute; right: -14px; top: -12px; width: 100px; opacity: .9; pointer-events: none; }
.tpld .book .report { margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; color: var(--faint); font-size: 13.5px; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; }
.tpld .book .report:hover { color: var(--rose); }
.tpld .side .blk { margin: 0; padding: 20px 22px; }
.tpld .side .blk h2 { font-size: 20px; margin-bottom: 10px; }
.tpld .side .blk h2 img { width: 28px; height: 28px; }
.tpld .loc p { color: var(--dim); font-weight: 700; display: flex; gap: 8px; align-items: flex-start; }
.tpld .loc p img { width: 22px; height: 22px; flex-shrink: 0; }
.tpld .loc .btn { margin-top: 14px; width: 100%; }

/* Похожие */
.tpld .similar { margin-top: 56px; }
.tpld .similar-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tpld .similar-head h2 { font-size: clamp(24px, 2.4vw, 30px); }
.tpld .similar-head a { color: var(--gold); font-weight: 800; }

/* Модалки (Bootstrap) в тёмной теме */
body.spa-theme .modal_listing_detail .modal-content { background: linear-gradient(180deg, #0B0F14, #0B0F14); border: 1px solid var(--line-2); border-radius: 24px; color: var(--mist); }
body.spa-theme .modal_listing_detail .modal-header { border-bottom: 1px solid var(--line); }
body.spa-theme .modal_listing_detail .modal-title { color: var(--mist); font-weight: 900; }
body.spa-theme .modal_listing_detail .btn-close { filter: invert(1); }
body.spa-theme .modal_listing_detail label { color: var(--dim); font-weight: 800; font-size: 14px; margin-bottom: 4px; }
body.spa-theme .modal_listing_detail .form-control { background: rgba(245, 246, 232, .06) !important; border: 1.5px solid var(--line-2) !important; color: var(--mist) !important; border-radius: 14px; min-height: 48px; }
body.spa-theme .modal_listing_detail .form-group { margin-bottom: 12px; }

@media (max-width: 1100px) {
    .tpld .pro { grid-template-columns: minmax(0, 1fr); }
    .tpld .side { position: static; }
    .tpld .pro-main { display: contents; }
    .tpld .gallery { order: 1; }
    .tpld .side { order: 2; }
    .tpld .facts4, .tpld .pro-main > .blk { order: 3; }
}
@media (max-width: 760px) {
    .tpld .gallery { grid-template-columns: minmax(0, 1fr); padding: 8px; }
    .tpld .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
    .tpld .thumbs button { width: 70px; }
    .tpld .facts4 { grid-template-columns: 1fr 1fr; }
    .tpld .rev-sum { grid-template-columns: 1fr; gap: 16px; }
    .tpld .blk { padding: 20px 16px; }
    .tpld .book h1 { font-size: 26px; }
}
