/* ============================================================
   ДОСКА ОБЪЯВЛЕНИЙ — стили в стиле каталога (/shop/page.css)
   Использует переменные из /style.css
   ============================================================ */

/* ---------- Раскладка: фильтр + список ---------- */
.board-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .board-layout { grid-template-columns: 260px 1fr; gap: 24px; }
}

/* ---------- Левый фильтр ---------- */
.board-filters {
  position: relative;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: fit-content;
}

@media (min-width: 900px) {
  .board-filters {
    position: sticky;
    top: 90px;
  }
}

.board-filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.board-filters__head h3 {
  font-size: 16px;
  margin: 0;
  color: var(--text);
  letter-spacing: -.01em;
}

.board-filters__reset {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.board-filters__reset:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.board-filters__group {
  margin-bottom: 14px;
}

.board-filters__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.board-filters__input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.board-filters__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.board-filters__btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), #ff8a33);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(255,107,0,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}

.board-filters__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,107,0,.45);
}

/* ---------- Список объявлений ---------- */
/* Базовая сетка — 3 колонки на десктопе (для страницы категории) */
.board-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .board-items { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .board-items { grid-template-columns: repeat(3, 1fr); }
}

/* Главная: 4 колонки на десктопе (фильтра нет, места больше) */
.board-layout--home .board-items {
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .board-layout--home .board-items { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .board-layout--home .board-items { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .board-layout--home .board-items { grid-template-columns: repeat(4, 1fr); }
}

.board-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
}

.board-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

/* ---------- Карточка объявления ---------- */
.board-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.board-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,107,0,.4);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.board-card__photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--card-2);
  overflow: hidden;
  position: relative;
}

.board-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.board-card__nophoto {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}

.board-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.board-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-height: 2.6em;   /* ← 2 строки × 1.3 */
}

.board-card__price {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.01em;
  margin-top: auto;   /* ← цена прижата к низу карточки */
}

.board-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.board-card__tags span {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255,107,0,.3);
  border-radius: 8px;
}

.board-card__meta {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Пагинация ---------- */
.board-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.board-pagination__btn {
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.board-pagination__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.board-pagination__info {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Модалки ---------- */
.board-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  padding: 16px;
  overflow-y: auto;
}

.board-modal--open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
}

.board-modal__box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  width: 100%;
  max-width: 560px;
  margin: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: modalIn .2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.board-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: background .15s ease, transform .15s ease;
}

.board-modal__close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

/* ---------- Форма в модалке ---------- */
.board-form-group {
  margin-bottom: 14px;
}

.board-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .board-form-row { grid-template-columns: 1fr 1fr; }
}

.board-form-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.board-form-label .req {
  color: var(--accent);
}

.board-form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.board-form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea.board-form-input {
  resize: vertical;
  min-height: 70px;
}

.board-form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

.board-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 12px;
  cursor: pointer;
  color: var(--text);
}

.board-form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.board-form-checkbox a {
  color: var(--accent);
  text-decoration: underline;
}

.board-form-msg {
  margin-top: 10px;
  font-size: 13px;
  min-height: 18px;
}

/* ---------- Карточка одного объявления (/board/{token}) ---------- */
.board-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

.board-page__back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}

.board-page__back:hover {
  text-decoration: underline;
}

.board-page__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.board-page__gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--card-2);
  cursor: zoom-in;
}

.board-page__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 800px) {
  .board-page__main { grid-template-columns: 1fr 300px; gap: 24px; }
}

.board-page__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.board-page__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -.02em;
}

.board-page__meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.board-page__attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.board-page__attrs span {
  padding: 4px 10px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
}

.board-page__desc {
  white-space: pre-wrap;
  line-height: 1.65;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 14px;
}

.board-page__contacts {
  position: sticky;
  top: 90px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

@media (max-width: 800px) {
  .board-page__contacts {
    position: static;
  }
}

.board-page__phone-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #ff8a33);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(255,107,0,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}

.board-page__phone-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,107,0,.45);
}

.board-page__note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---------- Скрытая карта (details/summary) ---------- */
.board-page__map {
  margin-top: 16px;
}

.board-page__map summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
  padding: 6px 0;
  user-select: none;
}

.board-page__map summary:hover {
  text-decoration: underline;
}

.board-page__map #ymap {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  margin-top: 8px;
  background: var(--card-2);
}

/* ---------- Мелочи ---------- */
#heroAddBtn {
  margin-top: 12px;
}

#adPhotos::-webkit-file-upload-button {
  border: 1px solid var(--border);
  background: var(--card-2);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  margin-right: 10px;
  font-family: inherit;
  color: var(--text);
}

/* ============ Блок категорий на главной ============ */
.board-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .board-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.board-cat-card {
  display: block;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}

.board-cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,107,0,.4);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

.board-cat-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.board-cat-card__count {
  font-size: 12px;
  color: var(--muted);
}

/* ============ Дерево фильтра на странице категории ============ */
.board-filters__tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.board-filter-node {
  border-bottom: 1px solid var(--border);
}

.board-filter-node:last-child {
  border-bottom: 0;
}

.board-filter-node summary {
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.board-filter-node summary::-webkit-details-marker { display: none; }

.board-filter-node summary::after {
  content: '▸';
  color: var(--muted);
  font-size: 12px;
  transition: transform .15s;
}

.board-filter-node[open] summary::after {
  transform: rotate(90deg);
}

.board-filter-node__body {
  padding: 0 0 12px;
}

.board-filter-node__body select,
.board-filter-node__body input {
  width: 100%;
}

/* ============ Карточка на главной: имя категории ============ */
.board-card__cat {
  font-size: 11px;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ============ Кнопка «Разместить» в section-head ============ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.board-layout--home {
  grid-template-columns: 1fr !important;
}

.board-layout--home .board-filters {
  position: static;
}

.board-filter-sizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.board-filter-field {
  display: block;
  min-width: 0;
}

.board-filter-extra { margin-top: 12px; }
.board-card__meta { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.board-pickup-map { height: 240px; margin: 8px 0; }

.board-service-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.board-service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.board-service-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.board-service-card .board-service-card__audience {
  color: var(--text);
  font-size: .875rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--card-2);
}
.board-service-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.board-service-card__action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 18px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
#boardLayout { scroll-margin-top: 90px; }

@media (min-width: 800px) {
  .board-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-service-card { padding: 20px; }
}

.board-delivery-banner {
  margin: 14px 0 20px;
  padding: 18px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--card, #151922);
}

.board-delivery-banner h2 { margin: 0 0 8px; font-size: 1.25rem; }
.board-delivery-banner p { margin: 0 0 8px; }
#boardDeliveryService #boardDeliveryOpen { display: block; margin: 14px auto 0; }
.board-delivery-dialog { width: min(100%, 520px); }
.board-delivery-dialog h2 { padding-right: 32px; }
.board-delivery-product { margin: 6px 0 14px; color: var(--muted); }
.board-delivery-summary {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.board-delivery-summary > span { color: var(--muted); }
.board-delivery-summary .board-page__price { display: block; margin: 5px 0 10px; }
.board-delivery-summary dl { margin: 0; }
.board-delivery-summary dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.board-delivery-summary dd { margin: 0; white-space: nowrap; font-weight: 700; }
.board-delivery-tip { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.board-delivery-tip summary, .board-delivery-how summary { cursor: pointer; }
.board-delivery-tip p { margin: 6px 0 0; }
.board-delivery-how { margin: 16px 0; }
.board-delivery-how summary { font-weight: 700; }
.board-delivery-how ol { margin: 8px 0; padding-left: 22px; }
.board-delivery-how li { margin-bottom: 6px; }
.board-delivery-form { display: grid; gap: 16px; }
.board-delivery-form[hidden] { display: none; }
.board-delivery-form .board-form-label { display: block; margin-bottom: 6px; }
.board-delivery-form .board-form-checkbox { margin: 4px 0; }
.board-delivery-location { padding-top: 8px; }
.board-delivery-location > p:not(:empty) { margin: 6px 0; }

@media (max-width: 480px), (min-width: 900px) {
  .board-layout:not(.board-layout--home) .board-filter-sizes { grid-template-columns: 1fr; }
}

/* Кнопка «Разместить бесплатно» в section-head */
.board-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #ff8a33);
  color: #fff;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,107,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
  width: auto !important;
  flex: 0 0 auto;
}

.board-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,107,0,.4);
}

.board-add-btn__icon {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 560px) {
  .board-add-btn {
    width: 100% !important;
    justify-content: center;
    margin-top: 8px;
  }
}

/* Активная категория */
.board-cat-card--active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent) inset;
}

.board-cat-card--active .board-cat-card__name {
  color: var(--accent);
}

/* Ссылка «Ко всем объявлениям» */
.board-back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.board-back-link:hover {
  text-decoration: underline;
}
/* ============ Карточка объявления — новая раскладка ============ */
.board-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.board-page__crumbs {
  margin-bottom: 16px;
  font-size: 14px;
}

.board-page__back {
  color: var(--accent);
  text-decoration: none;
}

.board-page__back:hover {
  text-decoration: underline;
}

.board-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .board-page__layout {
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
  }
}

.board-page__col-main {
  min-width: 0;
}

.board-page__main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--card-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 10px;
}

.board-page__main-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.board-page__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.board-page__thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
}

.board-page__thumbs img.is-active {
  border-color: var(--accent);
}

.board-page__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
  color: var(--text);
}

.board-page__attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.board-page__attrs span {
  padding: 6px 12px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.board-page__desc {
  white-space: pre-wrap;
  line-height: 1.65;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.board-page__meta-bottom {
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

/* Правая колонка */
.board-page__col-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 90px;
}

@media (max-width: 900px) {
  .board-page__col-side {
    position: static;
  }
}

.board-page__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.board-page__phone-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #ff8a33);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255,107,0,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}

.board-page__phone-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,107,0,.45);
}

.board-page__delete-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(248,113,113,.3);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}

.board-page__delete-btn:hover {
  background: rgba(248,113,113,.08);
}

.board-page__note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0;
}

/* Карта */
.board-page__map {
  margin-bottom: 20px;
}

.board-page__map summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
  padding: 6px 0;
}

.board-page__map #ymap {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  margin-top: 8px;
  background: var(--card-2);
}

/* Лайтбокс для фото */
.board-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}

.board-lightbox.is-open {
  display: flex;
}

.board-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.board-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  transition: background .15s ease;
}

.board-lightbox__close:hover {
  background: var(--accent);
}
