/* Страница объявления — вид как Detail в canvas. Префикс nbd-. Скрываем старый вид до сборки js (html.nbf-ready). */
html.nb-on:not(.nbf-ready) .nb-detail #column1-wrap { visibility: hidden; }
.nb-detail .nbd-stash { display: none !important; }
.nb-detail .detail-bottom-block, .nb-detail .similar-notices { display: none !important; }

.nb-detail .nbd-crumbs { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 4px; font-size: 13px; color: #6b6b6b; margin: 0 0 12px; }
.nb-detail .nbd-crumbs > span, .nb-detail .nbd-crumbs > a { display: inline-flex; align-items: center; min-width: 0; white-space: nowrap; }
.nb-detail .nbd-crumbs a { color: inherit; text-decoration: none; }
.nb-detail .nbd-crumbs a:hover { color: #1d4ed8; }
.nb-detail .nbd-crumbs .nbd-cur { color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; max-width: 420px; display: inline-block; }
.nb-detail .nbd-sl { display: inline-flex; color: inherit; }
.nb-detail .nbd-sl svg { width: 12px; height: 12px; }
html.nb-dk .nb-detail .nbd-crumbs { color: #9ca3af; }
html.nb-dk .nb-detail .nbd-crumbs a:hover { color: #93c5fd; }
html.nb-dk .nb-detail .nbd-crumbs .nbd-cur { color: #f3f4f6; }
/* старая цепочка bx-breadcrumb (вне .nb-root) */
html.nb-on .bx-breadcrumb { display: none !important; }

.nb-detail .nbd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; width: 100%; max-width: none; margin: 0; }
.nb-detail .nbd-left, .nb-detail .nbd-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nb-detail .nbd-card { background: #fff; border-radius: 12px; padding: 16px; min-width: 0; }
html.nb-dk .nb-detail .nbd-card { background: #2c2c2e; }
.nb-detail .nbd-h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.25; }

.nb-detail .nbd-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nb-detail .nbd-title-l { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.nb-detail .nbd-h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; min-width: 0; }
.nb-detail .nbd-off { color: #dc2626; font-size: 14px; font-weight: 600; line-height: 1.35; }
html.nb-dk .nb-detail .nbd-off { color: #f87171; }
.nb-detail #btn-prolongate, .nb-detail #expiredText { display: none !important; }
.nb-detail .nbd-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.nb-detail .nbd-pill-stop { background: #dc2626; color: #fff; }
.nb-detail .nbd-pill-book { background: rgba(17,17,17,0.78); color: #fff; }
.nb-detail .nbd-pill-mort { background: #16a34a; color: #fff; }
.nb-detail .nbd-pill[hidden] { display: none; }
.nb-detail .nbd-main .nbd-pill-onph { position: absolute; top: 8px; left: 8px; z-index: 2; }
.nb-detail .nbd-phones { display: flex; flex-direction: column; gap: 8px; }
.nb-detail .nbd-phone-wrap { display: flex; flex-direction: column; gap: 4px; }
.nb-detail .nbd-phone-note { font-weight: 400; font-size: 12px; line-height: 1.35; opacity: .85; margin: 0; padding: 0 2px; }
.nb-detail .nbd-title-r { display: flex; gap: 8px; flex: none; }
.nb-detail .nbd-fav.is-on { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
.nb-detail .nbd-fav.is-on svg { fill: #ed1c24; stroke: #ed1c24; }
html.nb-dk .nb-detail .nbd-fav.is-on { background: #1e3a5f; color: #93c5fd; }

.nb-detail .nbd-gal { padding: 12px; }
.nb-detail .nbd-main { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e5e7eb; cursor: zoom-in; }
html.nb-dk .nb-detail .nbd-main { background: #3a3a3d; }
.nb-detail .nbd-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nb-detail .nbd-ths { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.nb-detail .nbd-th { flex: none; width: 76px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #e5e7eb; }
.nb-detail .nbd-th.is-on { border-color: #2563eb; }
.nb-detail .nbd-th img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nb-detail .nbd-p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; background: transparent !important; padding: 0 !important; }
.nb-detail .nbd-p:first-of-type { margin-top: 0; }
.nb-detail .nbd-chars { margin-top: 4px; }
.nb-detail .nbd-ch { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
.nb-detail .nbd-ch:last-child { border-bottom: 0; }
html.nb-dk .nb-detail .nbd-ch { border-bottom-color: #3f3f46; }
.nb-detail .nbd-ch-k { width: 130px; flex: none; color: #6b6b6b; }
html.nb-dk .nb-detail .nbd-ch-k { color: #9ca3af; }
.nb-detail .nbd-ch-v { font-weight: 500; min-width: 0; }
.nb-detail .nbd-props { margin: 8px 0 0; }
.nb-detail .nbd-props, .nb-detail .nbd-props * { background: transparent !important; box-shadow: none !important; }

.nb-detail .nbd-contact { display: flex; flex-direction: column; gap: 16px; }
.nb-detail .nbd-price { font-size: 28px; font-weight: 700; line-height: 1.2; }
.nb-detail .nbd-price .nb-rub { font-weight: 400; }
.nb-detail .nbd-price-note { font-size: 13px; font-weight: 400; color: #6b6b6b; margin-top: 2px; }
.nb-detail .nbd-pill-mort {
	display: inline-flex; align-items: center; justify-content: center;
	width: auto; max-width: max-content; align-self: flex-start;
	height: 22px; margin-top: 0; padding: 2px 8px;
	font-size: 12px; font-weight: 500; line-height: 1;
}
.nb-detail .nbd-pill-stop {
	display: inline-flex; align-items: center; justify-content: center;
	height: 22px; padding: 2px 8px; line-height: 1;
}
.nb-detail .nbd-contact > .nbd-pill-mort { align-self: flex-start; }
.nb-detail .nbd-share-wrap { position: relative; }
.nb-detail .nbd-share-pop {
	position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 220px;
	background: #fff; border-radius: 12px; border: 1px solid rgba(20,20,20,.12);
	box-shadow: 0 8px 20px rgba(0,0,0,.08); padding: 6px;
}
html.nb-dk .nb-detail .nbd-share-pop { background: #2c2c2e; border-color: #3f3f46; }
.nb-detail .nbd-share-pop[hidden] { display: none; }
.nb-detail .nbd-share-pop a, .nb-detail .nbd-share-pop button {
	display: block; width: 100%; box-sizing: border-box; text-align: left; padding: 9px 12px; margin: 0;
	border: 0; border-radius: 8px; background: transparent; color: inherit; font: 14px/1.3 inherit;
	cursor: pointer; text-decoration: none;
}
.nb-detail .nbd-share-pop a:hover, .nb-detail .nbd-share-pop button:hover { background: #f3f4f6; }
html.nb-dk .nb-detail .nbd-share-pop a:hover, html.nb-dk .nb-detail .nbd-share-pop button:hover { background: rgba(255,255,255,.08); }
.nb-detail .nbd-author { display: flex; align-items: center; gap: 12px; }
.nb-detail .nbd-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #e5e7eb; color: #6b6b6b; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.nb-detail .nbd-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-detail .nbd-an-n { font-size: 15px; font-weight: 600; color: inherit; }
.nb-detail a.nbd-an-n:hover { color: #2563eb; }
.nb-detail .nbd-an { min-width: 0; }
.nb-detail .nbd-an-s { font-size: 12px; color: #6b6b6b; line-height: 1.35; }
html.nb-dk .nb-detail .nbd-an-s { color: #9ca3af; }
.nb-detail .nbd-firm { margin-top: -6px; }
.nb-detail .nbd-av.nbd-av-firm { border-radius: 10px; background: #dbeafe; color: #1d4ed8; font-size: 20px; }
html.nb-dk .nb-detail .nbd-av.nbd-av-firm { background: #1e3a8a; color: #bfdbfe; }
.nb-detail a.nbd-an-n { text-decoration: none; }
.nb-detail .nbd-msgr { display: flex; flex-direction: column; gap: 10px; }
.nb-detail .nbd-msgr-a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #2563eb; text-decoration: none; }
.nb-detail .nbd-msgr-a:hover { text-decoration: underline; }
.nb-detail .nbd-msgr-a img { flex: none; display: block; }
html.nb-dk .nb-detail .nbd-msgr-a { color: #60a5fa; }
.nb-detail .nbd-meta-row { display: flex; align-items: center; gap: 16px; }
.nb-detail .nbd-map { height: 200px; margin-top: 0; border-radius: 8px; overflow: hidden; background: #e5e7eb; }
html.nb-dk .nb-detail .nbd-map { background: #3f3f46; }
.nb-detail .nbd-mapcard .nbd-h2 { display: none; }
.nb-detail .nbd-map .ymaps-2-1-searchbox,
.nb-detail .nbd-map .ymaps-2-1-trafficcontrol,
.nb-detail .nbd-map .ymaps-2-1-listbox,
.nb-detail .nbd-map .ymaps-2-1-geolocationcontrol,
.nb-detail .nbd-map .ymaps-2-1-fullscreencontrol,
.nb-detail .nbd-map .ymaps-2-1-gotocontrol,
.nb-detail .nbd-map .ymaps-2-1-routebutton,
.nb-detail .nbd-map [class*="searchbox"],
.nb-detail .nbd-map [class*="trafficcontrol"],
.nb-detail .nbd-map [class*="geolocationcontrol"],
.nb-detail .nbd-map [class*="fullscreencontrol"],
.nb-detail .nbd-map [class*="gotocontrol"],
.nb-detail .nbd-map [class*="routebutton"],
.nb-detail .nbd-map [class*="listbox"],
.nb-detail .nbd-map [class*="gototech"],
.nb-detail .nbd-map [class*="float-button"],
.nb-detail .nbd-map [class*="routeButton"],
.nb-detail .nbd-map [class*="routepanel"] { display: none !important; }
.nb-detail .nbd-phone, .nb-detail .nbd-msg { width: 100%; height: 40px; text-decoration: none !important; }
.nb-detail a.nbd-phone { color: #fff !important; }
.nb-detail .nbd-msg { color: #1a1a1a !important; background: #fff !important; border: 1px solid #d1d5db !important; }
html.nb-dk .nb-detail .nbd-msg { background: #2a2a2e !important; border-color: #3f3f46 !important; color: #f3f4f6 !important; }
.nb-detail .nbd-mail { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6b6b6b; word-break: break-all; }
.nb-detail .nbd-meta { display: flex; flex-direction: column; gap: 8px; }
.nb-detail .nbd-mi { display: inline-flex; align-items: center; gap: 6px; color: #6b6b6b; font-size: 13px; }
html.nb-dk .nb-detail .nbd-mi, html.nb-dk .nb-detail .nbd-mail, html.nb-dk .nb-detail .nbd-price-note { color: #9ca3af; }
.nb-detail .nbd-complain .complain-block { margin: 0; }
.nb-detail .nbd-complain a.button5 { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; margin: 0 !important; border-radius: 8px; border: 1px solid #d1d5db; background: transparent; color: #6b6b6b !important; font-size: 13px; text-decoration: none; }
html.nb-dk .nb-detail .nbd-complain a.button5 { border-color: #3f3f46; color: #9ca3af !important; }

/* управление объявлением (автор/админ) — OwnerPanel из canvas: карточка 16/12, кнопки 32px r6, сетка 2 колонки */
.nb-detail .nbd-owner { display: flex; flex-direction: column; gap: 12px; }
.nb-detail .nbd-promo { background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.nb-detail .nbd-promo br, .nb-detail .nbd-promo > div[style*="clear"] { display: none; }
.nb-detail .nbd-promo .promotion-block { float: none; width: 100%; }
.nb-detail .nbd-owner button.promote-show, .nb-detail .nbd-owner #btn-moveUp, .nb-detail .nbd-owner #promote_btn, .nb-detail .nbd-owner .nbd-owner-btns button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; width: 100%; min-height: 32px; height: auto; padding: 6px 10px;
	border-radius: 6px; border: 1px solid rgba(20,20,20,.2); background: rgba(20,20,20,.14); color: #1a1a1a;
	font: 500 14px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; text-decoration: none;
}
.nb-detail .nbd-owner #promote_btn { border-color: #2563eb; background: #2563eb; color: #fff; }
.nb-detail .nbd-owner #promote_btn:hover { background: #1d4ed8; }
.nb-detail .nbd-owner button.promote-show:hover, .nb-detail .nbd-owner #btn-moveUp:hover, .nb-detail .nbd-owner .nbd-owner-btns button:hover { background: rgba(20,20,20,.2); }
html.nb-dk .nb-detail .nbd-owner button.promote-show, html.nb-dk .nb-detail .nbd-owner #btn-moveUp, html.nb-dk .nb-detail .nbd-owner .nbd-owner-btns button { border-color: rgba(240,240,240,.2); background: rgba(240,240,240,.14); color: #f3f4f6; }
html.nb-dk .nb-detail .nbd-owner button.promote-show:hover, html.nb-dk .nb-detail .nbd-owner #btn-moveUp:hover, html.nb-dk .nb-detail .nbd-owner .nbd-owner-btns button:hover { background: rgba(240,240,240,.2); }
/* срок публикации и продление */
.nb-detail .nbd-left-w { display: flex; flex-direction: column; gap: 2px; }
.nb-detail .nbd-left-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.nb-detail .nbd-left-h.is-warn { color: #ed1c24; }
.nb-detail .nbd-left-s { font-size: 12px; color: #6b6b6b; }
html.nb-dk .nb-detail .nbd-left-s { color: #9ca3af; }
.nb-detail .nbd-extend { width: 100%; height: 32px; min-height: 32px; border-radius: 6px; }
.nbd-ov { position: fixed; inset: 0; z-index: 20040; background: rgba(28,28,30,.45); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow: auto; }
.nbd-modal { width: min(520px, 100%); background: #fff; color: #111; border-radius: 16px; overflow: hidden; }
html.nb-dk .nbd-modal { background: #2c2c2e; color: #f3f4f6; }
.nbd-modal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(20,20,20,.08); font-size: 18px; font-weight: 700; }
html.nb-dk .nbd-modal-h { border-color: rgba(240,240,240,.12); }
.nbd-modal-x { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nbd-modal-b { padding: 16px; display: flex; flex-direction: column; gap: 16px; max-height: 640px; overflow: auto; }
.nbd-modal-mh { font-size: 14px; font-weight: 700; }
.nbd-media-card { display: flex; align-items: flex-start; gap: 12px; border: 1px solid rgba(20,20,20,.12); border-radius: 12px; padding: 12px; }
html.nb-dk .nbd-media-card { border-color: rgba(240,240,240,.12); }
.nbd-media-t { font-size: 14px; font-weight: 700; line-height: 1.3; }
.nbd-media-s { margin-top: 2px; font-size: 12px; color: #6b6b6b; }
html.nb-dk .nbd-media-s { color: #9ca3af; }
.nbd-media-nets { display: flex; gap: 6px; flex: none; }
.nbd-media-nets a { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(20,20,20,.12); display: flex; align-items: center; justify-content: center; background: #fff; }
html.nb-dk .nbd-media-nets a { background: #3a3a3d; border-color: rgba(240,240,240,.12); }
.nbd-ov .nbf-days { display: flex; flex-wrap: wrap; gap: 8px; }
.nbd-ov .nbf-day {
	height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(20,20,20,0.12);
	background: #fff; color: #111; font: 600 13px/32px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	cursor: pointer;
}
.nbd-ov .nbf-day.is-on, .nbd-ov .nbf-day:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
html.nb-dk .nbd-ov .nbf-day { background: rgba(255,255,255,0.08); border-color: rgba(240,240,240,0.12); color: #f3f4f6; }
html.nb-dk .nbd-ov .nbf-day.is-on, html.nb-dk .nbd-ov .nbf-day:hover { background: #2563eb; color: #fff; }
.nbd-ov .nbf-place-h { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.35; color: #6b6b6b; }
.nbd-ov .nbf-place-h[hidden] { display: none !important; }
.nbd-ov .nbf-place-h svg { flex: none; margin-top: 2px; }
html.nb-dk .nbd-ov .nbf-place-h { color: #9ca3af; }
.nbd-ov .nbf-place-note { font-size: 12px; color: #6b6b6b; }
html.nb-dk .nbd-ov .nbf-place-note { color: #9ca3af; }
.nbd-ov .nbf-ch-list { display: flex; flex-direction: column; gap: 10px; }
.nbd-ov .nbf-ch { display: flex; align-items: center; gap: 12px; }
.nbd-ov .nbf-ch-ico {
	width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(20,20,20,.12);
	display: flex; align-items: center; justify-content: center; background: #fff; flex: none;
}
html.nb-dk .nbd-ov .nbf-ch-ico { background: #3a3a3d; border-color: rgba(240,240,240,.12); }
.nbd-ov .nbf-ch-ico img { display: block; width: 20px; height: 20px; }
.nbd-ov .nbf-ch-txt { min-width: 0; }
.nbd-ov .nbf-ch-txt a { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: #2563eb; text-decoration: none; }
.nbd-ov .nbf-ch-txt a:hover { color: #1d4ed8; }
html.nb-dk .nbd-ov .nbf-ch-txt a { color: #93c5fd; }
.nbd-ov .nbf-ch-net { font-size: 12px; color: #6b6b6b; }
html.nb-dk .nbd-ov .nbf-ch-net { color: #9ca3af; }
.nbd-modal-f { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: 8px; }
.nbd-modal-f .nbf-bal { width: 100%; }
.nbd-modal-f .nb-btn { min-width: 200px; }
.nbd-ov .nbf-bal { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid rgba(20,20,20,0.12); background: #fff; }
html.nb-dk .nbd-ov .nbf-bal { background: #3a3a3d; border-color: rgba(240,240,240,0.12); }
.nbd-ov .nbf-bal-ico { width: 40px; height: 40px; border-radius: 12px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.nbd-ov .nbf-bal-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nbd-ov .nbf-bal-l { font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #6b6b6b; }
.nbd-ov .nbf-bal-v { font-size: 17px; font-weight: 700; }
.nbd-ov .nbf-bal-plus {
	width: 36px; height: 36px; flex: none; border-radius: 10px; background: #dbe4ff; color: #2563eb !important;
	font-size: 22px; font-weight: 600; line-height: 1; display: flex; align-items: center; justify-content: center; text-decoration: none !important;
}
.nb-detail .nbd-extend-msg[hidden] { display: none; }
.nb-detail .nbd-promo p { margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #6b6b6b; line-height: 1.4; }
html.nb-dk .nb-detail .nbd-promo p { color: #9ca3af; }
.nb-detail .nbd-promo .promotion { margin-top: 10px; }
.nb-detail .nbd-owner-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nb-detail .nbd-owner-btns a { display: flex; text-decoration: none; min-width: 0; }
.nb-detail .nbd-owner-btns a:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (max-width: 900px) {
	.nb-detail .nbd-grid { grid-template-columns: minmax(0, 1fr); }
	.nb-detail .nbd-title { flex-direction: column; }
	.nb-detail .nbd-h1 { font-size: 20px; }
	.nb-detail .nbd-side { order: 2; }
	.nb-detail .nbd-ch { flex-direction: column; gap: 2px; }
	.nb-detail .nbd-ch-k { width: auto; }
}
