

/* Start:/local/templates/ipotekatmpl/components/bitrix/news.list/branches/style.css?176526521513736*/
  /* LEFT PANEL */
  .my-row {
    display: flex;
    flex-wrap: wrap;
    transition: all 0.5s ease;
    row-gap: var(--space-3x)
  }

  .left-col,
  .right-col {
    transition: width 0.6s ease;
  }

  .back-container {
    display: none;
    justify-content: center;
    margin-bottom: var(--space-3x);
  }

  /* Bootstrap defaults (for reference)
.col-md-5 { width: 41.66666667%; }
.col-md-7 { width: 58.33333333%; }
*/

  /* When collapsed/expanded */
  .left-col.squished {
    width: 0%;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0;
  }

  .right-col.expanded {
    width: 100%;
  }

  .squish-panel {
    height: var(--dimension-128) !important;
    transition: all 0.2s ease-in-out;
  }



  .left-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-2x);
    height: calc(100vh - var(--dimension-40));
    min-height: var(--dimension-128);
    border-radius: var(--radius-16);
  }

  .filters {
    display: flex;
    flex-direction: column;
    gap: var(--space-2x);
  }

  .filters .filters-extra {
    gap: var(--space-2x);
    display: flex;
    position: relative;
    align-items: center;
  }

  .custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
  }

  .dropdown-selected {
    height: var(--dimension-16);
    display: flex;
    cursor: pointer;
    color: var(--on-surface-variant);
    position: relative;
    align-items: center;
    border-radius: var(--radius-16);
    padding: 0 var(--space-x) 0 var(--space-2x);
    background-color: var(--container-high);
  }

  /* стрелка */
  .dropdown-selected::after {
    content: "";
    position: absolute;
    right: var(--dimension-4);
    top: 50%;
    width: var(--dimension-4);
    height: var(--dimension-4);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236c7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transform: translateY(-50%);
    transition: transform 0.2s;
  }

  .custom-dropdown.open .dropdown-selected::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* список */
  .dropdown-options {
    list-style: none;
    margin: var(--space-base) 0 0;
    padding: 0;
    position: absolute;
    width: 100%;
    background: var(--container-higher);
    border-radius: var(--radius-12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: none;
    max-height: var(--dimension-48);
    overflow-y: auto;
    z-index: 100;
  }

  .custom-dropdown.open .dropdown-options {
    display: block;
  }

  .dropdown-options li {
    padding: var(--space-2x);
    cursor: pointer;
    transition: background 0.2s;
  }

  .dropdown-options li:hover {
    background: var(--container-high);
  }

  /* Кнопка фильтров */
  #extraToggle {
    width: var(--dimension-16);
    height: var(--dimension-16);
    border: none;
    display: flex;
    cursor: pointer;
    min-width: var(--dimension-16);
    border-radius: var(--radius-16);
    align-items: center;
    background: var(--container-high);
    justify-content: center;
    transition:
      background 0.3s ease,
      border-color 0.3s ease;
  }

  #extraToggle img {
    max-width: fit-content;
  }

  /* Доп. фильтры */
  #extraFilters {
    right: 0;
    top: 70px;
    gap: var(--space-3x);
    z-index: 2;
    width: var(--dimension-112);
    padding: var(--space-3x);
    /* display: none; */
    max-width: var(--dimension-112);
    position: absolute;
    background: #fff;
    border-radius: var(--radius-16);
    flex-direction: column;
    border: 1px solid var(--outline-variant);
  }

  #extraFilters.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  /* Заголовки */
  .filter-group h4 {
    margin: 0 0 var(--space-base);
    text-align: left;
    color: var(--on-surface-variant);
    font-weight: 400;
    font-family: inherit;
  }

  /* Chips */
  .chips {
    gap: var(--space-base);
    display: flex;
    flex-wrap: wrap;
  }

  .chip {
    border: none;
    cursor: pointer;
    padding: var(--space-base) var(--space-2x);
    border-radius: var(--radius-999);
    background: var(--container-high);
    transition: all 0.2s ease;
  }

  .chip:hover {
    background: var(--container);
  }

  .chip.active {
    background: var(--surface-inverse);
    color: #fff;
    border-color: var(--surface-inverse);
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-0.5rem);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* SEARCH */
  .list-header {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2rem;
    color: var(--on-surface);
    margin-bottom: var(--space-2x);
  }

  .search {
    gap: var(--space-base);
    display: flex;
    align-items: center;
  }

  .search input {
    flex: 1;
    padding: var(--space-2x) var(--space-2x);
    border-radius: var(--radius-999);
    border: none;
    background: var(--container-higher);
  }

  .search input:focus {
    outline: none;
    border: 1px solid var(--outline-variant);
  }

  .search input::placeholder {
    /* Modern browsers */
    color: var(--on-surface-variant);
  }

  .search input::-moz-placeholder {
    /* Firefox 19+ */
    color: var(--on-surface-variant);
  }

  .search input::-ms-input-placeholder {
    /* Internet Explorer and Edge */
    color: var(--on-surface-variant);
  }

  /* LIST */
  .branch-list {
    gap: var(--space-2x);
    display: flex;
    overflow: auto;
    border-radius: var(--radius-16);
    padding: var(--space-2x) var(--space-3x);
    flex-direction: column;
    background-color: var(--container-high);
  }

  .branch-items {
    gap: var(--space-2x);
    display: flex;
    flex-direction: column;
  }

  @media (max-width: 768px) {
    .desktop {
      display: none;
    }

    .left-panel {
      width: 100%;
      height: auto;
      max-width: none;
      min-height: auto;
    }

    #extraFilters {
      width: auto;
    }
  }

  a {
    text-decoration: none;
  }

  .left-panel .branch-items .branch-item {
    gap: var(--space-base);
    display: flex;
    background: var(--container-higher);
    border-radius: var(--radius-16);
    padding: var(--space-2x) var(--space-3x);
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    transition:
      box-shadow 0.18s,
      transform 0.12s;
  }

  .left-panel .branch-items .branch-item_title h6 {
    --font-size: var(--headline-3-font-size);
    --line-height: var(--headline-3-line-height);
    --font-weight: var(--headline-3-font-weight);
    --font-family: var(--headline-3-font-family);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
    margin-bottom: unset;
  }

  .left-panel .branch-items .branch-item_content {
    gap: var(--space-half);
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .left-panel .branch-items .branch-item_content p {
    --font-size: var(--lead-font-size);
    --line-height: var(--lead-line-height);
    --font-weight: var(--lead-font-weight);
    --font-family: var(--lead-font-family);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
    color: var(--on-surface-variant);
  }

  .left-panel .branch-items .branch-item_content div {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .left-panel .branch-items .branch-item_content a {
    --font-size: var(--small-font-size);
    --line-height: var(--small-line-height);
    --font-weight: var(--small-highlighted-font-weight);
    --font-family: var(--small-font-family);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
    display: flex;
  }

  .left-panel .branch-items .branch-item_content a img {
    width: var(--dimension-3);
    margin-left: var(--space-base);
  }

  .left-panel .branch-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  }

  .right-panel {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-radius: var(--radius-16);
    overflow: hidden;
    position: relative;
    min-height: var(--dimension-128);
    height: var(--dimension-40);
  }

  .atm-info-card {
    padding: var(--space-2x);
    border-radius: var(--radius-24);
    background-color: var(--container-high);
    height: 100%;
  }

  .atm-info-card .atm-info-card__title {
    --font-size: var(--headline-3-font-size);
    --line-height: var(--headline-3-line-height);
    --font-weight: var(--headline-3-font-weight);
    --font-family: var(--headline-3-font-family);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
    margin-bottom: var(--space-half);
  }

  .atm-info-card:has(.atm-info-card__subtitle) .atm-info-card__title,
  .atm-info-card .atm-info-card__text:has(+ .atm-info-card__subtitle) {
    margin-bottom: var(--space-2x);
  }

  .atm-info-card .atm-info-card__text {
    --font-size: var(--small-font-size);
    --line-height: var(--small-line-height);
    --font-weight: var(--small-font-weight);
    --font-family: var(--small-font-family);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
    color: var(--on-surface-variant);
  }

  .atm-info-card .atm-info-card__subtitle {
    --font-size: var(--body-font-size);
    --line-height: var(--body-line-height);
    --font-weight: var(--body-highlighted-font-weight);
    --font-family: var(--body-font-family);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
    margin-bottom: var(--space-half);
  }

  .atm-info-card ul,
  .atm-info-card ol {
    padding-left: var(--space-3x);
    color: var(--on-surface-variant);
  }

  .atm-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(var(--dimension-28), 1fr));
    gap: var(--space-3x);
    overflow-x: auto;
    margin-bottom: var(--space-3x);
  }

  .atm-gallery .atm-gallery__item {
    position: relative;
    border-radius: var(--radius-16);
    overflow: hidden;
  }

  .atm-gallery .atm-gallery__item.is-last::before {
    position: absolute;
    content: attr(data-rest);
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: var(--color-special-overlay);
    --font-size: var(--hero-title-font-size);
    --line-height: var(--hero-title-line-height);
    --font-weight: var(--hero-font-weight);
    --font-family: var(--body-font-family);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    line-height: var(--line-height);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-surface-inverse);
  }

  .atm-gallery .atm-gallery__item.is-hidden {
    display: none;
  }

  .atm-gallery .atm-gallery__item img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1;
  }

  @media (min-width: 786px) {
    .atm-info-card {
      padding: var(--space-3x);
    }

    .atm-gallery {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: var(--space-3x);
    }

    .atm-gallery>a:last-child,
    .atm-gallery>a:nth-last-child(2) {
      display: unset;
    }

    .atm-info-card .atm-info-card__title {
      --font-size: var(--headline-1-font-size);
      --line-height: var(--headline-1-line-height);
      --font-weight: var(--headline-1-font-weight);
      --font-family: var(--headline-1-font-family);
      font-family: var(--font-family);
      font-weight: var(--font-weight);
      font-size: var(--font-size);
      line-height: var(--line-height);
    }

    .atm-info-card .atm-info-card__text,
    .atm-info-card ul,
    .atm-info-card ol {
      --font-size: var(--lead-font-size);
      --line-height: var(--lead-line-height);
      --font-weight: var(--lead-font-weight);
      --font-family: var(--lead-font-family);
      font-family: var(--font-family);
      font-weight: var(--font-weight);
      font-size: var(--font-size);
      line-height: var(--line-height);
    }

    .atm-info-card .atm-info-card__subtitle {
      --font-size: var(--headline-2-font-size);
      --line-height: var(--headline-2-line-height);
      --font-weight: var(--headline-2-font-weight);
      --font-family: var(--headline-2-font-family);
      font-family: var(--font-family);
      font-weight: var(--font-weight);
      font-size: var(--font-size);
      line-height: var(--line-height);
    }

    .right-panel {
      height: calc(100vh - var(--dimension-40));
    }


    .left-col,
    .right-col {
      transition: width 0.6s ease;
      overflow: hidden;
      /* prevents visual jumps when collapsing */
    }
  }
/* End */
/* /local/templates/ipotekatmpl/components/bitrix/news.list/branches/style.css?176526521513736 */
