/*
 * Lad i Mir Agro — Branches page
 * Page-specific styles only. Shared tokens/buttons live in ladimir-ui.css.
 */

.lm-branches-page {
  --branches-container: 1316px;
  --branches-purple: #7b35b8;
  --branches-purple-dark: #5f218f;
  --branches-purple-soft: #f8f3fb;
  --branches-text: #17151b;
  --branches-muted: #69646d;
  --branches-line: #ded9e1;
  --branches-shadow: 0 14px 38px rgba(53, 27, 67, 0.07);

  color: var(--branches-text);
  font-family: inherit;
  background: #fff;
}

.lm-branches-page .lm-container {
  width: min(100% - 64px, var(--branches-container));
}

.lm-kicker {
  margin: 0;
  color: #d4badf;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lm-kicker--dark {
  color: var(--branches-purple);
}

/* =========================================================
   HERO
   ========================================================= */
.lm-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  color: #fff;
  background: url("https://www.ladimiragro.com.ua/wp-content/uploads/2026/08/header.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.lm-hero::after {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}

.lm-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(440px, 0.94fr);
  gap: 82px;
  align-items: center;
}

.lm-hero h1 {
  max-width: 620px;
  margin: 15px 0 18px;
  font-size: 58px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.lm-hero h1 span {
  color: #c99ae9;
}

.lm-hero p {
  max-width: 555px;
  margin: 0;
  color: #ded2e3;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

.lm-hero__actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.lm-hero__actions .lm-btn{
  min-height: 42px;
  padding-inline: 18px;
  font-size: 16px;
  font-weight: 500;
  background-color: #ffffff12;
  border: 1px solid #ffffff20;
  color: white;
}

.lm-hero__actions .lm-btn:hover {
  color: #17131B;
  border-color: #D9D9D9;
  background: #FFFFFF;
}

.lm-hero__actions .lm-btn:hover svg{
  stroke: #17131B;
}

.lm-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lm-hero__stats-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}


.lm-hero__stats > div {
  min-height: 122px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(5px);
}

.lm-hero__stats small {
  display: block;
  color: #c7a9d6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.lm-hero__stats strong {
  display: inline-block;
  margin-top: 15px;
  font-size: 30px;
  line-height: 1;
}

.lm-hero__stats span {
  margin-left: 5px;
  color: #cdbdd4;
  font-size: 11px;
}

/* =========================================================
   COMMON SECTION HEAD
   ========================================================= */
.lm-section {
  padding: 68px 0;
}

.lm-section-head h2,
.lm-service-intro h2 {
  margin: 8px 0 11px;
  color: var(--branches-text);
  font-size: 39px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.lm-section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--branches-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   FINDER / MAP
   ========================================================= */
.lm-finder {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--branches-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--branches-shadow);
}

.lm-finder__toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 16px 15px;
  border-bottom: 1px solid var(--branches-line);
  background: #fff;
}

.lm-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--branches-line);
  border-radius: 8px;
  background: #fff;
}

.lm-search svg,
.lm-meta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.lm-search svg {
  color: #9c8da4;
}

.lm-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--branches-text);
  font: inherit;
  font-size: 12px;
}

.lm-search input::placeholder {
  color: #aaa2ae;
}

.lm-filter-toggle {
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--branches-purple);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lm-region-chips {
  grid-column: 1 / 2;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 2px;
  scrollbar-width: none;
}

.lm-region-chips::-webkit-scrollbar {
  display: none;
}

.lm-region-chips button {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--branches-line);
  border-radius: 25px;
  background: #fff;
  color: #716876;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.lm-region-chips button.is-active {
  border-color: #d8c2e6;
  background: #f2eaf8;
  color: var(--branches-purple);
  font-weight: 700;
}

.lm-finder__count {
  position: absolute;
  right: 18px;
  bottom: 19px;
  color: #8b808f;
  font-size: 10px;
}

.lm-finder__body {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  height: 536px;
}

.lm-map {
  min-width: 0;
  height: 100%;
  background: #eaf2e8;
}

.lm-finder-list {
  overflow-y: auto;
  border-left: 1px solid var(--branches-line);
  background: #fff;
  padding-left: 20px;
}

/* =========================================================
   BRANCH CARDS
   ========================================================= */
.lm-branch-card {
  position: relative;
  padding: 20px 22px 18px;
  border: 1px solid var(--branches-line);
  border-radius: 13px;
  background: #fff;
}

.lm-branch-card-map{
  background: #fff;
  border-bottom: 1px solid var(--branches-line);
  padding: 15px 0px;
}

.lm-branch-card-map h3{
font-weight: 700;
font-size: 14px;
}

.lm-branch-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.lm-branch-card__eyebrow {
  color: #9A91A0;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
}

.lm-branch-card h3 {
  margin: 5px 0 10px;
  color: var(--branches-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.lm-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.lm-status.is-open {
  background: #eaf9ef;
  color: #16864a;
}

.lm-status.is-closed {
  background: #f5eff3;
  color: #8b6778;
}

.lm-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 7px 0;
  color: #615767;
  font-size: 14px;
  line-height: 1.45;
}

.lm-meta svg {
  margin-top: 1px;
  color: var(--branches-purple);
}

.lm-phones a {
  color: #493d50;
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
}

.lm-phones b {
  margin: 0 4px;
  color: #9b8ca2;
}

.lm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 11px 0 0;
}

.lm-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #F8F4FA;
  color: #8A45BB;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.lm-card-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 7px;
  margin-top: 13px;
}

.lm-card-actions .lm-btn {
  min-height: 37px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 400;
}

/* =========================================================
   LEAFLET
   ========================================================= */
.lm-marker-wrap {
  border: 0 !important;
  background: none !important;
}

.lm-marker {
  display: block;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #8a35c0;
  box-shadow: 0 1px 5px rgba(0,0,0,.3);
  transform: rotate(-45deg);
}

.lm-marker-wrap.is-active .lm-marker{
  background: #37B878;
}

.lm-popup strong {
  font-size: 14px;
}

.lm-popup p {
  margin: 6px 0;
  font-size: 11px;
  line-height: 1.4;
}

.lm-popup a {
  display: inline-block;
  margin-top: 4px;
  color: var(--branches-purple);
  font-size: 11px;
  font-weight: 700;
}

.lm-branches-page .leaflet-container img,
.lm-branches-page .leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

.lm-branches-page .leaflet-container {
  font: inherit;
}

/* =========================================================
   SERVICE SECTION — MATCHES PROVIDED DESIGN
   ========================================================= */
.lm-service-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0 86px;
  background:
    radial-gradient(circle at -7% 22%, rgba(119,57,177,.065) 0 20%, transparent 20.3%),
    radial-gradient(circle at 10% 105%, rgba(119,57,177,.045) 0 25%, transparent 25.3%),
    linear-gradient(180deg, #fbf9fc 0%, #f9f6fb 100%);
}

.lm-service-section::before {
  content: "";
  position: absolute;
  left: -190px;
  top: -115px;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(111,47,167,.035);
  border-radius: 50%;
  pointer-events: none;
}

.lm-service-section .lm-container {
  position: relative;
  z-index: 1;
}

.lm-service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
  column-gap: 70px;
  row-gap: 42px;
  align-items: start;
}

.lm-service-intro {
  max-width: 720px;
}

.lm-service-intro .lm-kicker {
  margin-bottom: 12px;
  font-size: 10px;
}

.lm-service-intro h2 {
  margin: 0;
  max-width: 720px;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lm-service-intro h2 span {
  color: var(--branches-purple);
}

/* Existing markup contains one note div. Style it as the right column. */
.lm-service-note {
  position: relative;
  align-self: center;
  justify-self: stretch;
  min-height: 92px;
  padding: 0 0 0 0;
  border-radius: 0;
  background: transparent;
  color: var(--branches-muted);
  font-size: 15px;
  line-height: 1.5;
}

.lm-service-note .lm-service-note-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: #56d69a;
  box-shadow: 0 0 0 6px rgba(86,214,154,.12);
  vertical-align: 1px;
}

.lm-service-note {
  color: var(--branches-text);
  font-size: 12px;
  font-weight: 700;
}

.lm-service-note .lm-service-note-title{
    border: 1px solid #D9D9D9;
    border-radius: 25px;
    padding: 12px 25px;
    background: #FFFFFF;
    display: inline-block;
    font-size: 13px;
}

.lm-service-note .lm-service-note-content {
  display: block;
  max-width: 470px;
  margin-top: 18px;
  color: #68616b;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.lm-services {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.lm-services article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 326px;
  padding: 40px 24px 21px;
  overflow: hidden;
  border: 1px solid #dcd6df;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(64,36,75,.025);
}

.lm-services article::before {
  position: absolute;
  top: 42px;
  left: 24px;
  color: #d7a9ee;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
}

.lm-services article:nth-child(1)::before { content: "01"; }
.lm-services article:nth-child(2)::before { content: "02"; }
.lm-services article:nth-child(3)::before { content: "03"; }
.lm-services article:nth-child(4)::before { content: "04"; }

.lm-services article:nth-child(2)::after {
  content: "ГОЛОВНА ПЕРЕВАГА";
  position: absolute;
  top: 40px;
  left: 56px;
  color: var(--branches-purple);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
}

.lm-services article > svg,
.lm-services article > img,
.lm-services article > .lm-service-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  display: block;
  width: 44px;
  height: 44px;
  padding: 12px;
  border-radius: 10px;
  background: #fbf7fd;
  object-fit: contain;
}

.lm-services article > svg {
  fill: none;
  stroke: var(--branches-purple);
  stroke-width: 1.55;
}

.lm-services h3 {
  margin: 60px 0 13px;
  color: var(--branches-text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lm-services p {
  margin: 0;
  color: #666168;
  font-size: 15px;
  line-height: 1.48;
}

.lm-services article:nth-child(2) p strong,
.lm-services article:nth-child(2) p b {
  font-weight: 800;
}

.lm-services a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #d9d4dc;
  color: var(--branches-purple);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.lm-services a::after {
  content: "→";
  flex: 0 0 auto;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

/* Hide the arrow character from legacy link text visually if present. */
.lm-services a {
  text-indent: 0;
}

/* =========================================================
   NETWORK
   ========================================================= */
.lm-network {
  padding-top: 84px;
  padding-bottom: 86px;
  background: #fff;
}

.lm-region-group {
  margin-top: 34px;
}

.lm-region-group__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 13px;
  border: 0;
  border-bottom: 1px solid var(--branches-line);
  background: none;
  color: var(--branches-text);
  text-align: left;
  cursor: default;
}

.lm-region-group__head small {
  display: block;
  margin-bottom: 3px;
  color: #967c9d;
  font-size: 8px;
  line-height: 1;
  letter-spacing: .12em;
}

.lm-region-group__head strong {
  font-size: 24px;
  line-height: 1.2;
}

.lm-region-group__head > span:last-child {
  color: #6e6571;
  font-size: 10px;
}

.lm-region-group__content {
  padding-top: 14px;
}

.lm-network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* =========================================================
   CTA
   ========================================================= */
.lm-cta-section {
  padding: 0 0 70px;
  background: #fff;
}

.lm-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 25px;
  padding: 26px 32px;
  border-radius: 14px;
  color: #fff;
  background: url("https://www.ladimiragro.com.ua/wp-content/uploads/2026/08/background.png");
  background-repeat: no-repeat;
  background-size: cover;
}
.lm-cta small{
    color: #D8AAF0;
    font-size: 11px;
    font-weight: 700;
}
.lm-cta h2 {
  margin: 4px 0 5px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
}

.lm-cta p {
  max-width: 650px;
  margin: 0;
  color: #cdbbd5;
  font-size: 16px;
  line-height: 1.5;
}

.lm-cta > div:last-child {
  display: grid;
  gap: 7px;
  min-width: 270px;
}

.lm-cta span{
  width: 24px;
  height: 18px;
  border-radius: 5px;
  opacity: 1;
  padding-top: 2px;
  padding-bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  background: #ffffff1a;
}
.lm-cta a {
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.lm-no-results {
  padding: 30px;
  color: #817486;
  text-align: center;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1100px) {
  .lm-branches-page .lm-container {
    width: min(100% - 40px, var(--branches-container));
  }

  .lm-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
    gap: 48px;
  }

  .lm-hero h1 {
    font-size: 48px;
  }

  .lm-service-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .75fr);
    gap: 36px 48px;
  }

  .lm-service-intro h2 {
    font-size: 43px;
  }

  .lm-services h3 {
    font-size: 18px;
  }

  .lm-services p {
    font-size: 13px;
  }
}

/* =========================================================
   MOBILE / TABLET STACK
   ========================================================= */
@media (max-width: 900px) {
  .lm-branches-page .lm-container {
    width: min(100% - 28px, var(--branches-container));
  }

  .lm-hero {
    padding: 36px 0 34px;
  }

  .lm-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lm-hero h1 {
    max-width: none;
    font-size: 38px;
  }

  .lm-hero__stats {
    gap: 9px;
  }

  .lm-hero__stats > div {
    min-height: 94px;
    padding: 15px;
  }

  .lm-hero__stats strong {
    font-size: 24px;
  }

  .lm-section {
    padding: 46px 0;
  }

  .lm-section-head h2,
  .lm-service-intro h2 {
    font-size: 31px;
  }

  .lm-finder__toolbar {
    grid-template-columns: 1fr;
  }

  .lm-filter-toggle {
    width: 100%;
  }

  .lm-region-chips,
  .lm-finder__count {
    grid-column: 1 / -1;
  }

  .lm-finder__count {
    position: static;
  }

  .lm-finder__body {
    grid-template-columns: 1fr;
    height: auto;
  }

  .lm-map {
    height: 320px;
  }

  .lm-finder-list {
    max-height: none;
    border-top: 1px solid var(--branches-line);
    border-left: 0;
  }

  .lm-finder-list .lm-branch-card {
    display: none;
  }

  .lm-finder-list .lm-branch-card:not([hidden]):first-of-type {
    display: block;
  }

  .lm-service-section {
    padding: 58px 0 56px;
  }

  .lm-service-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .lm-service-intro {
    max-width: none;
  }

  .lm-service-intro h2 {
    max-width: 620px;
  }

  .lm-service-note {
    max-width: 620px;
    min-height: 0;
  }

  .lm-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .lm-services article {
    min-height: 300px;
  }

  .lm-network-grid {
    grid-template-columns: 1fr;
  }

  .lm-region-group {
    margin-top: 14px;
    border-bottom: 1px solid var(--branches-line);
  }

  .lm-region-group__head {
    padding: 14px 0;
    border-bottom: 0;
    cursor: pointer;
  }

  .lm-region-group__head strong {
    font-size: 17px;
  }

  .lm-region-group__content {
    display: none;
    padding: 0 0 15px;
  }

  .lm-region-group.is-open .lm-region-group__content {
    display: block;
  }

  .lm-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .lm-cta > div:last-child {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   PHONE — close to supplied mobile design
   ========================================================= */
@media (max-width: 620px) {
  .lm-branches-page .lm-container {
    width: min(100% - 24px, var(--branches-container));
  }

  .lm-hero h1 {
    margin-top: 12px;
    font-size: 35px;
    line-height: 1;
  }

  .lm-hero p {
    font-size: 13px;
  }

  .lm-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .lm-finder {
    margin-top: 20px;
    border-radius: 12px;
  }

  .lm-finder__toolbar {
    padding: 10px;
  }

  .lm-map {
    height: 270px;
  }

  .lm-branch-card,
  .lm-branch-card.is-compact {
    padding: 15px 14px;
  }

  .lm-branch-card__head {
    display: block;
  }

  .lm-status {
    margin-bottom: 8px;
  }

  .lm-card-actions {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .lm-card-actions .lm-btn {
    min-height: 35px;
    padding-inline: 5px;
    font-size: 9px;
  }

  .lm-service-section {
    padding: 50px 0 48px;
  }

  .lm-service-section::before {
    left: -340px;
    top: -150px;
  }

  .lm-service-intro .lm-kicker {
    margin-bottom: 9px;
    font-size: 9px;
  }

  .lm-service-intro h2 {
    font-size: 32px;
    line-height: 1.08;
  }

  .lm-service-note {
    font-size: 11px;
  }

  .lm-service-note::after {
    margin-top: 13px;
    font-size: 13px;
  }

  .lm-services {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lm-services article {
    min-height: 0;
    padding: 36px 20px 18px;
    border-radius: 15px;
  }

  .lm-services article::before {
    top: 38px;
    left: 20px;
  }

  .lm-services article:nth-child(2)::after {
    top: 36px;
    left: 50px;
    font-size: 9px;
  }

  .lm-services article > svg,
  .lm-services article > img,
  .lm-services article > .lm-service-icon {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }

  .lm-services h3 {
    margin-top: 68px;
    font-size: 19px;
  }

  .lm-services p {
    font-size: 13px;
  }

  .lm-services a {
    margin-top: 24px;
    padding-top: 15px;
    font-size: 11px;
  }

  .lm-network {
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .lm-cta h2 {
    font-size: 22px;
  }
}

.lm-branches-page .leaflet-popup-content-wrapper {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(30, 19, 37, 0.16);
}

.lm-branches-page .leaflet-popup-content {
    width: 290px !important;
    margin: 0;
}

.lm-branches-page .leaflet-popup-tip {
    box-shadow: none;
}

.branch-popup {
    padding: 18px;
    color: var(--lm-text);
}

.branch-popup__title {
    display: block;
    margin: 0 0 5px;
    color: var(--lm-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.branch-popup__status {
    display: flex;
    gap: 6px;
    align-items: center;

    color: var(--lm-green);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.branch-popup__status i {
    display: block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--lm-green);
}

.branch-popup__row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    margin-top: 13px;
    color: #77727d;
    font-size: 13px;
    line-height: 1.45;
    align-items: center;
}

.branch-popup__icon {
    color: var(--lm-purple);
    font-size: 14px;
}

.branch-popup__phones {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
}

.branch-popup__phone {
    color: var(--lm-text) !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.branch-popup__phone:hover {
    color: var(--lm-purple);
}

.branch-popup__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;

    margin-top: 16px;
}

.branch-popup__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--lm-line);
    border-radius: 8px;
    background: #fff;
    color: var(--lm-text) !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;

    text-decoration: none;
}

.branch-popup__button:hover {
    border-color: var(--lm-purple);
    color: var(--lm-purple);
}

.branch-popup__button--primary {
    border-color: var(--lm-purple);
    background: var(--lm-purple);
    color: #fff !important;
}

.branch-popup__button--primary:hover {
    border-color: var(--lm-purple-dark);
    background: var(--lm-purple-dark);
    color: #fff;
}

.lm-branches-page .leaflet-container a.leaflet-popup-close-button {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    color: #29232d;
    font-size: 20px;
    line-height: 26px;
}

.lm-branches-page .leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--lm-purple);
}

.lm-branches-page .lm-branch-card {
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.lm-branches-page .lm-branch-card.is-highlighted {
    border-color: var(--lm-purple);
    box-shadow: 0 10px 30px rgba(111, 47, 167, 0.14);
    transform: translateY(-2px);
}