﻿body {
    background-color: #FFFFFF!important;
}

.custom-icon {
    margin-left: 5px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.jstree, .jstree-container-ul {
    display: block !important;
    visibility: visible !important;
}    

.company-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.company-card {
    flex: 1 1 300px; /* до 300px, но может быть меньше */
    max-width: 350px;
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.company-card:hover {
    transform: translateY(-4px);
}

.company-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.company-card p {
    font-size: 14px;
    margin: 0;
    color: #555;
}

#FilterBt {
    background-color: blue;
    color: yellow;
    text-aling: center;
    padding: 10px;
    margin-top: 10px;
    font-weight: bold;
    width: 100px;
}

#FilterClearBt {
    background-color: red;
    color: white;
    text-aling: center;
    padding: 10px;
    margin-top: 10px;
    font-weight: bold;
    width: 100px;
}

.span-3lines {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* максимум 3 строки */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em;      /* высота строки */
  max-height: calc(1.5em * 3); /* ограничиваем 3 строки */
  min-height: calc(1.5em * 3); /* резервируем место под 3 строки */
}


/* ================================
   MetallurgPro – Filter UI (v2)
   Targets markup in nv-search/pages/category-template.php
   ================================ */

.filter-sidebar.mp-filter {
  width: 320px;
  flex: 0 0 320px;
}

@media (max-width: 1100px) {
  .filter-sidebar.mp-filter {
    width: 100%;
    flex: 0 0 auto;
    margin-bottom: 16px;
  }
}

.filter-block.mp-filter__panel {
  background: #F7F9FC;
  border: 1px solid #E6EAF3;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(10, 24, 54, 0.08);
  padding: 18px;
}

.filter-title.mp-filter__title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: #1F2A44;
  margin: 2px 0 14px;
}

.mp-filter__cats {
  background: #FFFFFF;
  border: 1px solid #E7ECF6;
  border-radius: 16px;
  padding: 10px;
}

/* Accordion blocks */
.mp-filter__accordion {
  margin: 0;
}

/* jQuery UI accordion adds its own icon span on headers — hide it to avoid
   the "лишнюю стрелочку" (extra arrow) near the categories block */
.mp-filter__accordion .ui-accordion-header-icon{
  display: none !important;
}

/* Safety: remove default list markers/paddings if any wrappers are UL/LI */
.mp-filter__cats,
.mp-filter__subcats{
  list-style: none;
  padding-left: 0;
}

.mp-filter__cat-head {
  margin: 0 0 6px;
}

.mp-filter__cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #E7ECF6;
  border-radius: 14px;
  background: #F4F7FF;
  color: #24314D;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(14, 47, 106, 0.06);
  transition: all .15s ease;
}

.mp-filter__cat-btn:hover {
  background: #EEF3FF;
  border-color: #DCE5F7;
}

.mp-filter__cat-btn.is-active {
  background: linear-gradient(180deg, #2F80ED, #1F6FE3);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(31, 111, 227, 0.25);
}

.mp-filter__cat-title {
  flex: 1 1 auto;
  text-align: left;
}

.mp-filter__chev {
  width: 10px;
  height: 10px;
  position: relative;
  margin-right: 2px;
}

.mp-filter__chev:before {
  content: '';
  position: absolute;
  inset: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 60% 60%;
  opacity: 0.75;
}

/* rotates when parent active – we toggle via JS by adding .is-open on parent wrapper */
.mp-filter__accordion .ui-accordion-header-active .mp-filter__cat-btn .mp-filter__chev:before,
.mp-filter__cat-btn.is-open .mp-filter__chev:before {
  transform: rotate(-135deg);
}

.mp-filter__badge {
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(31, 111, 227, 0.12);
  color: #1F6FE3;
}

.mp-filter__cat-btn.is-active .mp-filter__badge {
  background: rgba(255,255,255,0.18);
  color: #FFFFFF;
}

/* Panels */
.mp-filter__cat-panel {
  margin: -2px 0 8px;
  padding: 8px;
  background: #FFFFFF;
  border: 1px solid #E7ECF6;
  border-radius: 14px;
}

.mp-filter__subcat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 10px; 
  line-height: 1.25;
  border-radius: 12px;
  text-decoration: none;
  color: #24314D;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease, box-shadow .15s ease;
}

.mp-filter__subcat:hover {
  background: #F4F7FF;
}

.mp-filter__subcat.is-active {
  background: linear-gradient(90deg, rgba(47,128,237,0.18), rgba(47,128,237,0.05));
  box-shadow: inset 0 0 0 1px rgba(47,128,237,0.25);
  color: #1F6FE3;
}

.mp-filter__subcat--all {
  font-weight: 700;
  color: #1F6FE3;
  background: rgba(31,111,227,0.07);
  margin-bottom: 6px;
}

.mp-filter__subcats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-filter__check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(31,111,227,0.14);
  position: relative;
  flex: 0 0 22px;
}

.mp-filter__check:before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #1F6FE3;
  border-bottom: 2px solid #1F6FE3;
  transform: rotate(-45deg);
}

/* Section */
.mp-filter__section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(31, 42, 68, 0.08);
}

.mp-filter__section-title {
  font-size: 18px;
  font-weight: 800;
  color: #1F2A44;
  margin-bottom: 6px;
}

.mp-filter__section-hint {
  font-size: 13px;
  font-weight: 600;
  color: rgba(31, 42, 68, 0.65);
  margin: 0 0 12px;
}

.mp-filter__field {
  margin-bottom: 14px;
}

.mp-filter__field-label {
  font-size: 14px;
  font-weight: 700;
  color: #24314D;
  margin-bottom: 6px;
}

.mp-filter__slider {
  margin: 8px 0 10px;
}

/* jQuery UI slider */
.mp-filter__slider.ui-slider {
  height: 8px;
  border-radius: 999px;
  background: rgba(31,111,227,0.15);
  border: none;
}

.mp-filter__slider .ui-slider-range {
  background: linear-gradient(90deg, #2F80ED, #1F6FE3);
  border-radius: 999px;
}

.mp-filter__slider .ui-slider-handle {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #FFFFFF;
  background: #2F80ED;
  box-shadow: 0 8px 16px rgba(31,111,227,0.25);
  top: -6px;
}

.mp-filter__slider .ui-slider-handle:focus {
  outline: none;
}

.mp-filter__field-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.mp-filter__num {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #E7ECF6;
  background: #FFFFFF;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #24314D;
}

.mp-filter__numwrap {
  position: relative;
}

.mp-filter__numarrow {
  /* remove the small chevron inside value fields (user request) */
  display: none;
}

.mp-filter__sep {
  text-align: center;
  color: rgba(31,42,68,0.55);
  font-weight: 800;
}

.mp-filter__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mp-filter__btn {
  height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}

.mp-filter__btn:active {
  transform: translateY(1px);
}

.mp-filter__btn--apply {
  background: linear-gradient(180deg, #2F80ED, #1F6FE3);
  color: #FFFFFF;
  box-shadow: 0 12px 24px rgba(31,111,227,0.25);
}

.mp-filter__btn--apply:hover {
  box-shadow: 0 14px 28px rgba(31,111,227,0.28);
}

.mp-filter__btn--reset {
  background: linear-gradient(180deg, rgba(255, 77, 79, 0.14), rgba(255, 77, 79, 0.06));
  color: #E14444;
  border-color: rgba(225, 68, 68, 0.22);
  box-shadow: 0 10px 22px rgba(225, 68, 68, 0.10);
}

.mp-filter__btn--reset:hover {
  background: linear-gradient(180deg, rgba(255, 77, 79, 0.18), rgba(255, 77, 79, 0.08));
}

.mp-filter__btn-ico {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
}

.mp-filter__btn--reset .mp-filter__btn-ico {
  background: rgba(225, 68, 68, 0.12);
}

/* Safety overrides for legacy styles */
#accordion p.category-title,
#accordion p.category-title[style] {
  background: transparent !important;
}





/* ================================
   MetallurgPro – Catalog UI (mock-like)
   Only affects category-template page
   ================================ */

body.page-template-category-template,
body.page-template-category-template-php{
  background: radial-gradient(1000px 500px at 70% 0%, rgba(160, 190, 255, .55), rgba(255,255,255,0) 60%),
              linear-gradient(180deg, #F5F7FC 0%, #FFFFFF 55%, #FFFFFF 100%) !important;
}

/* Layout */
body.page-template-category-template .main-content,
body.page-template-category-template-php .main-content{
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 16px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

@media (max-width: 1100px){
  body.page-template-category-template .main-content,
  body.page-template-category-template-php .main-content{
    flex-direction: column;
  }
}

body.page-template-category-template .catalog-content,
body.page-template-category-template-php .catalog-content{
  flex: 1 1 auto;
  min-width: 0;
}

/* Breadcrumbs: keep for SEO, hide visually */
body.page-template-category-template .breadcumbs,
body.page-template-category-template-php .breadcumbs{
  display: none;
}

/* HERO */
.mp-hero{
  border-radius: 22px;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  border: 1px solid rgba(231,236,246,0.9);
  box-shadow: 0 14px 46px rgba(21, 37, 74, .10);
  backdrop-filter: blur(10px);
}

.mp-hero__top{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

@media (max-width: 820px){
  .mp-hero__top{ flex-direction: column; }
}

.mp-hero__title{
font-size: 36px;
  line-height: 1.08;
  font-weight: 900;
  margin: 4px 0 8px;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-hero__meta{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.mp-hero__meta .mp-hero__desc{
  flex: 1 1 auto;
  min-width: 0;
}

.mp-hero__meta .mp-hero__count{
  flex: 0 0 auto;
  padding-top: 2px;
}



.mp-hero__count{
  font-size: 13px;
  font-weight: 800;
  color: rgba(15, 23, 42, .62);
  margin: 0;
  white-space: nowrap;
  text-align: right;
}

.mp-hero__desc{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(15, 23, 42, .68);
}

/* Search inputs (hero + toolbar) */
.mp-hero__search,
.mp-toolbar__search{
  position: relative;
  flex: 0 0 360px;
  max-width: 420px;
}

@media (max-width: 820px){
  .mp-hero__search,
  .mp-toolbar__search{
    width: 100%;
    flex: 1 1 auto;
    max-width: none;
  }
}

.mp-search__input{
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(231,236,246,1);
  background: rgba(255,255,255,0.92);
  padding: 0 46px 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  box-shadow: 0 10px 26px rgba(21, 37, 74, .08);
}

.mp-search__input:focus{
  outline: none;
  border-color: rgba(15, 118, 255, .45);
  box-shadow: 0 14px 30px rgba(15, 118, 255, .14);
}

.mp-search__btn{
  position: absolute;
  top: 50%;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, .08);
}

.mp-search__btn:before{
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(15, 23, 42, .65);
  border-radius: 999px;
  top: 9px;
  left: 9px;
}

.mp-search__btn:after{
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: rgba(15, 23, 42, .65);
  transform: rotate(45deg);
  right: 8px;
  bottom: 10px;
  border-radius: 2px;
}

.mp-search__btn:hover{
  background: rgba(15, 23, 42, .12);
}

.mp-search__input--sm{ height: 40px; padding-right: 42px; }
.mp-search__btn--sm{ width: 30px; height: 30px; right: 8px; }
.mp-search__btn--sm:before{ width: 13px; height: 13px; top: 8px; left: 8px; }
.mp-search__btn--sm:after{ right: 7px; bottom: 9px; }

/* Tags (tabs) block: 2 lines + "Показать все" without JS */
.mp-tagsbox{
  margin-top: 10px;
}

.mp-tabs{
  display: flex;
  column-gap: 8px; /* горизонталь */
  row-gap: 2px;    /* вертикаль */
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(231,236,246,0.9);
  box-shadow: 0 10px 30px rgba(21, 37, 74, .08);
  max-height: 98px; /* fallback (JS will set exact height) */
  overflow: hidden;
}

.mp-tabs.is-expanded{
  max-height: none;
  overflow: visible;
}

/* Hard reset for tabs container to prevent legacy theme/plugin rules
   from fixing width/height or turning it into a circle */
#mpTabsContainer{
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  min-height: 0 !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  border-radius: 18px !important;
}

.mp-tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(15, 23, 42, .78);
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
}

.mp-tab:hover{
  background: rgba(15, 23, 42, .06);
}

.mp-tab--active{
  background: linear-gradient(180deg, #2A3240 0%, #141A24 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(20, 26, 36, 0.20);
}

.mp-tabs__more{
  margin-top: 10px;
  font-weight: 800;
  color: rgba(15, 118, 255, .95);
}

/* Catalog list container */
.mp-catlist{
  margin-top: 12px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(231,236,246,0.95);
  border-radius: 20px;
  box-shadow: 0 14px 46px rgba(21, 37, 74, .10);
  overflow: hidden;
}

.mp-catlist__head{
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 160px 160px;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(245,247,252,0.95);
  border-bottom: 1px solid rgba(238,242,251,1);
}

.mp-catlist__h{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, .55);
}

.mp-catlist__h--action{ text-align: right; }

.mp-catrow{
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 160px 160px;
  gap: 12px;
  padding: 14px 16px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid rgba(238,242,251,1);
  transition: background .12s ease;
}

.mp-catrow:last-child{ border-bottom: 0; }

.mp-catrow:hover{ background: #F7F9FC; }

.mp-catrow--highlight{
  background: linear-gradient(90deg, rgba(255, 246, 180, .55), rgba(255,255,255,1));
}

.mp-catrow__company{
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.mp-catrow__info{ min-width: 0; }

.mp-catrow__logo{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #F4F7FF;
  border: 1px solid rgba(231,236,246,1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mp-catrow__logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-catrow__name{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  color: #0F172A;
  margin-bottom: 6px;
  text-decoration: none;
}

.mp-catrow__name:hover{ text-decoration: underline; }

.mp-catrow__addr{
  font-size: 13px;
  line-height: 1.35;
  color: rgba(15, 23, 42, .58);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-catrow__tel{
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
  font-size: 15px;
  color: rgba(15, 23, 42, .92);
  text-decoration: none;
}

.mp-catrow__muted{
  color: rgba(15, 23, 42, .35);
  font-weight: 800;
}

.mp-ratingline{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mp-stars{ color: #F1C40F; white-space: nowrap; }
.mp-ratingnum{ font-weight: 900; color: rgba(15, 23, 42, .92); }

.mp-reviews{
  font-size: 12px;
  color: rgba(15, 23, 42, .50);
}

.mp-status{
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid transparent;
}

.mp-status--na{
  background: rgba(154, 168, 199, 0.18);
  border-color: rgba(154, 168, 199, 0.26);
  color: rgba(15, 23, 42, .55);
}

.mp-status--empty{
  padding: 0;
  border: 0;
  background: transparent;
}

.mp-catrow__action{
  display: flex;
  justify-content: flex-end;
}

.mp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.mp-btn:active{ transform: translateY(1px); }

.mp-btn--primary{
  background: linear-gradient(180deg, #2A3240 0%, #141A24 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(20, 26, 36, 0.18);
}

.mp-btn--primary:hover{
  box-shadow: 0 16px 30px rgba(20, 26, 36, 0.22);
}

/* Responsive list */
@media (max-width: 1024px){
  .mp-catlist__head{ display:none; }
  .mp-catrow{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "c c"
      "p r"
      "a a";
    align-items: start;
  }
  .mp-catrow__company{ grid-area: c; }
  .mp-catrow__phone{
  min-width: 0;
grid-area: p;
}
  .mp-catrow__rating{ grid-area: r; }
  .mp-catrow__action{ grid-area: a; justify-content:flex-end; }
}

@media (max-width: 640px){
  .mp-catrow{
    grid-template-columns: 1fr;
    grid-template-areas:
      "c"
      "p"
      "r"
      "a";
  }
  .mp-catrow__action{ justify-content:flex-start; }
  .mp-btn{ width: 100%; }
}

@media (max-width: 1024px){
  .mp-hero__title{white-space: normal;}
}

.mp-catrow__phone .mp-catrow__tel{font-size:15px;}


/* ===== PART5: Hero header layout fix ===== */
.catalog-header.mp-hero{
  display: block !important; /* override any theme flex/grid on .catalog-header */
}

.catalog-header.mp-hero .mp-hero__title{
  width: 100%;
  max-width: 100%;
  white-space: normal;       /* allow natural wrapping; no side-by-side with desc */
  overflow: visible;
  text-overflow: clip;
  margin-bottom: 10px;
}

.catalog-header.mp-hero .mp-hero__meta{
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 820px){
  .catalog-header.mp-hero .mp-hero__meta{
    flex-direction: column;
    align-items: flex-start;
  }
  .catalog-header.mp-hero .mp-hero__count{ text-align:left; }
}






/* ══════════════════════════════════════════════════════
   Премиум / Highlight компании в каталоге
   ══════════════════════════════════════════════════════ */

/* Карточка в каталоге */
.nvr-card--highlight {
    position: relative;
    border: 2px solid #f59e0b !important;
    background: linear-gradient(160deg, #fffbeb 0%, #fff 55%) !important;
    box-shadow: 0 4px 24px rgba(245, 158, 11, .18) !important;
}

/* Бейдж «Премиум» рядом с названием */
.nvr-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 10px 3px 7px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .35);
    vertical-align: middle;
    margin-left: 6px;
    line-height: 1;
}

.nvr-premium-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    fill: #fff;
}

/* Строка названия с бейджем */
.nvr-v1__name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 2px;
}

/* ── Админка: подсветка строк таблицы ─────────────────── */
.wp-list-table tr.is-premium > td,
.wp-list-table tr.is-premium > th {
    background: #fffbeb !important;
    border-top: 1px solid #fde68a !important;
    border-bottom: 1px solid #fde68a !important;
}

.wp-list-table tr.is-premium > td:first-child {
    border-left: 3px solid #f59e0b !important;
}

/* Бейдж в таблице админки */
.nvr-premium-badge-admin {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 5px;
    vertical-align: middle;
}

/* ══════════════════════════════════════════════════════
   end premium/highlight
   ══════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════
   NVC Breadcrumb — каталог (те же стили что в карточке)
   ══════════════════════════════════════════════════════ */
.nvc-breadcrumb {
    margin: 16px 0 14px;
}

.nvc-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
}

.nvc-breadcrumb__item {
    display: flex;
    align-items: center;
    color: rgba(31, 42, 68, 0.55);
}

.nvc-breadcrumb__item + .nvc-breadcrumb__item::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid rgba(31, 42, 68, 0.3);
    border-top: 1.5px solid rgba(31, 42, 68, 0.3);
    transform: rotate(45deg);
    margin: 0 9px;
    flex-shrink: 0;
}

.nvc-breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1F6FE3;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
    white-space: nowrap;
}

.nvc-breadcrumb__link:hover {
    color: #1558c0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nvc-breadcrumb__icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: .75;
}

.nvc-breadcrumb__item--current span {
    color: #1F2A44;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

@media (max-width: 600px) {
    .nvc-breadcrumb__list { font-size: 12px; }
    .nvc-breadcrumb__item--current span { max-width: 180px; }
}

/* ══════════════════════════════════════════════════════
   Бейджи «Проверена» / «Самовывоз» / «Доставка» — единый размер
   ══════════════════════════════════════════════════════ */

/* Общая база — все три бейджа одинакового размера */
.nvr-verified-badge,
.nvr-tag--blue,
.nvr-tag--green {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    height: 26px;
    padding: 0 12px;
    border-radius: 20px;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid transparent;
    box-sizing: border-box;
}

/* Проверена — зелёный */
.nvr-verified-badge {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
    padding-left: 8px; /* чуть меньше из-за иконки */
}

.nvr-verified-badge svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* Самовывоз — синий */
.nvr-tag--blue {
    background: #eff6ff;
    color: #1d6fd8;
    border-color: #bfdbfe;
}

/* Доставка — оранжевый (отличается от Проверена) */
.nvr-tag--green {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

/* Скрываем старый nvr-verify если вдруг остался */
.nvr-verify--off { display: none; }


/* ══════════════════════════════════════════════════════
   NVC Карта каталога
   ══════════════════════════════════════════════════════ */

/* Превью-прямоугольник с кнопкой */
.nvc-map-trigger {
    margin: 0 0 16px;
}

.nvc-map-preview {
    position: relative;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid #dce7f8;
    background: #f0f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nvc-map-preview:hover .nvc-map-btn {
    background: #1F6FE3;
    color: #fff;
    border-color: #1558c0;
    box-shadow: 0 4px 16px rgba(31,111,227,.3);
}

.nvc-map-preview__bg {
    position: absolute;
    inset: 0;
}

.nvc-map-preview__grid {
    display: block;
}

.nvc-map-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1F6FE3;
    border: 1.5px solid #c7d9f8;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(31,111,227,.12);
}

.nvc-map-btn:hover {
    background: #1F6FE3;
    color: #fff;
    border-color: #1558c0;
    box-shadow: 0 4px 16px rgba(31,111,227,.3);
}

/* Оверлей на весь экран */
.nvc-map-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0; /* JS перезапишет через paddingTop */
    z-index: 9999;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: flex-end;
    padding-top: 60px; /* Fallback — JS подставит точную высоту шапки */
    box-sizing: border-box;
}

/* Обёртка карты */
.nvc-map-wrap {
    display: flex;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: 0 -4px 32px rgba(15,23,42,.18);
}

/* Левая панель */
.nvc-map-sidebar {
    width: 300px;
    min-width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8edf5;
    background: #fff;
    overflow: hidden; /* Важно для внутренней прокрутки */
}

.nvc-map-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #e8edf5;
    flex-shrink: 0;
    gap: 8px;
}

.nvc-map-sidebar__title {
    font-size: 14px;
    font-weight: 700;
    color: #1F2A44;
}

.nvc-map-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f1f5fd;
    border: none;
    border-radius: 8px;
    color: #1F2A44;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
}
.nvc-map-close:hover { background: #dce7fb; }

/* Кнопка «Рядом со мной» */
.nvc-map-near-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eff6ff;
    border: 1.5px solid #c7d9f8;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #1F6FE3;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
    transition: background .15s, border-color .15s;
}
.nvc-map-near-btn:hover { background: #dce7fb; border-color: #1F6FE3; }
.nvc-map-near-btn:disabled { opacity: .6; cursor: default; }

/* Крестик поверх карты (левый верхний угол) */
.nvc-map-close-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #dce7f8;
    border-radius: 10px;
    padding: 7px 14px 7px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1F2A44;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(15,23,42,.12);
    transition: background .15s, box-shadow .15s;
}
.nvc-map-close-overlay:hover {
    background: #f1f5fd;
    box-shadow: 0 4px 16px rgba(15,23,42,.16);
}

/* Дистанция в карточке */
.nvc-map-card__dist {
    display: inline-block;
    background: #eff6ff;
    color: #1F6FE3;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 5px;
    margin-right: 2px;
}

/* Список компаний — прокрутка только здесь */
.nvc-map-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    min-height: 0; /* Критично для flex+overflow */
}

.nvc-map-loading {
    padding: 24px 16px;
    color: rgba(31,42,68,.5);
    font-size: 13px;
    text-align: center;
}

/* Карточка компании в панели */
.nvc-map-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f4fb;
    transition: background .12s;
}
.nvc-map-card:hover,
.nvc-map-card.is-active {
    background: #eff6ff;
}
.nvc-map-card.is-active {
    border-left: 3px solid #1F6FE3;
    padding-left: 11px;
}

.nvc-map-card__logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5fd;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nvc-map-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nvc-map-card__no-logo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dce7fb, #c7d9f8);
}

.nvc-map-card__info {
    flex: 1;
    min-width: 0;
}
.nvc-map-card__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1F6FE3;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.nvc-map-card__name:hover { text-decoration: underline; }

.nvc-map-card__stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 3px;
}
.nvc-map-card__stars span {
    margin-left: 4px;
    font-weight: 600;
    color: #1F2A44;
}

.nvc-map-card__addr {
    font-size: 12px;
    color: rgba(31,42,68,.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Холст карты */
.nvc-map-canvas {
    flex: 1;
    height: 100%;
    min-height: 0;
    position: relative;
}

/* Мобильные */
@media (max-width: 700px) {
    .nvc-map-wrap { flex-direction: column; height: calc(100vh - 56px); }
    .nvc-map-sidebar {
        width: 100%;
        height: 40%;
        border-right: none;
        border-bottom: 1px solid #e8edf5;
    }
    .nvc-map-canvas { height: 60%; }
}
/* ══════════════════════════════════════════════════════
   end NVC Карта каталога
   ══════════════════════════════════════════════════════ */




/* ══════════════════════════════════════════════════════
   FAQ блок (mp-faq) — аккордеон
   ══════════════════════════════════════════════════════ */
.mp-faq {
    margin: 32px 0;
    padding: 28px 32px 32px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(18, 32, 58, 0.05);
}

.mp-faq__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.mp-faq__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.28);
}

.mp-faq__icon svg {
    width: 22px;
    height: 22px;
}

.mp-faq__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a2744;
    letter-spacing: -0.2px;
}

.mp-faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mp-faq__item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.mp-faq__item:hover {
    border-color: #90caf9;
    box-shadow: 0 4px 18px rgba(21, 101, 192, 0.09);
}

.mp-faq__item--open {
    border-color: #1e88e5;
    box-shadow: 0 4px 18px rgba(21, 101, 192, 0.13);
}

.mp-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 17px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 14px;
}

.mp-faq__q-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.mp-faq__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1e88e5;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.mp-faq__item--open .mp-faq__dot {
    opacity: 1;
}

.mp-faq__q-text {
    font-size: 15px;
    font-weight: 600;
    color: #1a2744;
    line-height: 1.4;
}

.mp-faq__chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mp-faq__chevron svg {
    width: 14px;
    height: 14px;
    color: #1e88e5;
    transition: transform 0.3s ease;
}

.mp-faq__item--open .mp-faq__chevron {
    background: #1e88e5;
}

.mp-faq__item--open .mp-faq__chevron svg {
    color: #ffffff;
    transform: rotate(180deg);
}

.mp-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mp-faq__item--open .mp-faq__answer {
    max-height: 400px;
}

.mp-faq__answer-inner {
    padding: 0 20px 18px;
    border-top: 1px solid #eef2f7;
    padding-top: 14px;
}

.mp-faq__answer-inner p {
    margin: 0;
    font-size: 14.5px;
    color: #4a5568;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .mp-faq {
        padding: 20px 16px 24px;
        border-radius: 14px;
    }
    .mp-faq__title { font-size: 18px; }
    .mp-faq__question { padding: 14px 14px; }
    .mp-faq__q-text { font-size: 14px; }
}
/* ══════════════════════════════════════════════════════
   end FAQ блок
   ══════════════════════════════════════════════════════ */
