@font-face {
  font-family: "GothaPro";
  src: url("fonts/GothaProReg.eot");
  src: url("fonts/GothaProReg.eot") format("embedded-opentype"),
    url("fonts/GothaProReg.woff2") format("woff2"),
    url("fonts/GothaProReg.woff") format("woff"),
    url("fonts/GothaProReg.ttf") format("truetype"),
    url("fonts/GothaProReg.svg#GothaProReg") format("svg");

  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "GothaPro";
  src: url("fonts/GothaProMed.eot");
  src: url("fonts/GothaProMed.eot") format("embedded-opentype"),
    url("fonts/GothaProMed.woff2") format("woff2"),
    url("fonts/GothaProMed.woff") format("woff"),
    url("fonts/GothaProMed.ttf") format("truetype"),
    url("fonts/GothaProMed.svg#GothaProMed") format("svg");

  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "GothaPro";
  src: url("fonts/GothaProBol.eot");
  src: url("fonts/GothaProBol.eot") format("embedded-opentype"),
    url("fonts/GothaProBol.woff2") format("woff2"),
    url("fonts/GothaProBol.woff") format("woff"),
    url("fonts/GothaProBol.ttf") format("truetype"),
    url("fonts/GothaProBol.svg#GothaProBol") format("svg");

  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "GothaPro";
  src: url("fonts/GothaProBla.eot");
  src: url("fonts/GothaProBla.eot") format("embedded-opentype"),
    url("fonts/GothaProBla.woff2") format("woff2"),
    url("fonts/GothaProBla.woff") format("woff"),
    url("fonts/GothaProBla.ttf") format("truetype"),
    url("fonts/GothaProBla.svg#GothaProBla") format("svg");

  font-style: normal;
  font-weight: 700;
}

:root {
  --first-family: "GothaPro", Arial, Helvetica, sans-serif;
  --base-font-size: 16px;
  --marker-font-size: 14px;
  --tools-gap: 12px;
  --stroke-color: #d33f7a;
  --btn-color: #e4f2f8;
  --controls-border-radius: 8px;
}

html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--base-font-size);
  line-height: 100%;
  font-weight: normal;
  background: white;
  color: black;
  padding: 0;
  margin: 0;
  width: 100%;
  min-width: 300px;
  min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.page-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#list,
#map {
    flex: 1;
    position: relative;
    border-radius: var(--controls-border-radius);
    overflow: hidden;
}

#list {
  font-family: var(--first-family);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.d-none {
  display: none!important;
}


.map-marker {
  width: 40px;
  height: 50px;
  transform: translateX(-50%) translateY(-100%);
  background-image: url(/img/ballon.svg);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  cursor: pointer;
}

.map-marker .map-marker-ico {
  display: block;
  width: 24px;
  height: 24px;
}

.map-marker-active {
  background-image: url(/img/ballon_hover.svg);
}

.map-marker-active .map-marker-ico {
  filter: brightness(0) invert(1);
}

.map-circle {
  width: 40px;
  height: 40px;
  transform: translateX(-50%) translateY(-50%);
  background-image: url(/img/circle.svg);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.map-circle-text {
  font-family: var(--first-family);
  color: var(--stroke-color);
  font-weight: 800;
  font-size: var(--marker-font-size);
  letter-spacing: -0.2px;
}

.map-circle-active {
  background-image: url(/img/circle_hover.svg);
}

.map-circle-active .map-circle-text {
  color: white;
}

.map-circle:hover,
.map-marker:hover {
  filter: brightness(1.03);
}

.map-sidebar {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 330px;
  padding: 24px;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  z-index: 1000;
  max-height: calc(100% - 20px);
  overflow-y: auto;
  font-family: var(--first-family);
  font-size: var(--base-font-size);
  line-height: 100%;
  max-width: calc(100% - 20px);
}

.map-sidebar-animation {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateX(10px);
}

.map-sidebar-animation.visible {
  opacity: 1;
  transform: translateX(0);
}

.map-sidebar .sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-start;
}

.map-sidebar section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
}

.map-sidebar .location {
  font-weight: 500;
}

.map-sidebar .agenda {
  display: flex;
  flex-direction: column;
  gap: var(--tools-gap);
  align-items: flex-start;
  justify-content: flex-start;
}

.map-sidebar h3 {
  margin: 0;
  font-size: var(--base-font-size);
  font-weight: 700;
  line-height: 100%;
  color: var(--stroke-color);
  padding-right: 20px;
}

.map-sidebar .close-button {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 15px;
  top: 15px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.map-sidebar .close-button:hover {
  filter: brightness(1.03);
}

.map-sidebar .close-button::before,
.map-sidebar .close-button::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: var(--stroke-color); /* Цвет линий крестика */
  left: 50%;
}

.map-sidebar .close-button::before {
  transform: rotate(45deg);
}

.map-sidebar .close-button::after {
  transform: rotate(-45deg);
}

#tools-panel,
#tools-panel .buttons-group {
  display: flex;
  gap: var(--tools-gap);
  flex-wrap: wrap;
  justify-content: space-between;
}

#tools-panel {
  margin-bottom: var(--tools-gap);
}

#tools-panel > .panel-group,
#tools-panel > .buttons-group {
  flex-shrink: 0;
  flex-grow: 0;
  max-width: 100%;
  width: 100%;
}

#tools-panel .buttons-group {
  flex-wrap: nowrap;
}

#tools-panel .buttons-group > .panel-group:first-child {
  flex-grow: 1;
}

@media (min-width: 520px) {
  #tools-panel > .panel-group {
    width: calc(50% - (var(--tools-gap) / 2));
  }
}

@media (min-width: 940px) {
  #tools-panel > .panel-group {
    width: calc(33.333333333333333333% - (2 * var(--tools-gap) / 3));
  }

  #tools-panel > .buttons-group {
    width: calc(66.666666666666666666% - (var(--tools-gap) / 3));
  }
}

@media (min-width: 1024px) {
  #tools-panel > .panel-group,
  #tools-panel > .buttons-group {
    flex-shrink: 1;
    flex-grow: 1;
    width: 0%;
  }
}

.toggle-list-ico {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: transparent;
  background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.16699 3.33335H16.667" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><path d="M9.29199 7.50001H16.667" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><path d="M5.41683 7.49998H3.3335H4.37516V3.33331L3.3335 4.37498" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><path d="M9.16699 12.5H16.667" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><path d="M9.29199 16.6667H16.667" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /><path d="M3.3335 12.5H5.41683V14.1667L3.3335 15.4167V16.6667H5.62516" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /></svg>');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

.toggle-to-map .toggle-list-ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg%3E%3Cpath d='M12,2A7.008,7.008,0,0,0,5,9c0,5.353,6.036,11.45,6.293,11.707l.707.707.707-.707C12.964,20.45,19,14.353,19,9A7.008,7.008,0,0,0,12,2Zm0,16.533C10.471,16.825,7,12.553,7,9A5,5,0,0,1,17,9C17,12.546,13.527,16.823,12,18.533Z'/%3E%3Cpath d='M12,6a3,3,0,1,0,3,3A3,3,0,0,0,12,6Zm0,4a1,1,0,1,1,1-1A1,1,0,0,1,12,10Z'/%3E%3C/g%3E%3C/svg%3E%0A");
}

.btn {
  display: block;
  font-family: var(--first-family);
  font-size: var(--base-font-size);
  line-height: 20px;
  font-weight: normal;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: none;
  border-radius: var(--controls-border-radius);
  padding: 10px 12px;
  background: var(--btn-color);
  color: black;
  height: 40px;
}

.btn:hover {
  filter: brightness(1.03);
}

.map-sidebar .btn {
  padding-left: 32px;
  padding-right: 32px;
  background: var(--stroke-color);
  color: white;
}

.btn-ico {
    background: var(--stroke-color);
    color: white;
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 50%;
    font-weight: normal;
    font-size: var(--marker-font-size);
}

.sport-info {
    border-left-width: 3px;
    border-left-color: var(--stroke-color);
    border-left-style: solid;
    padding: 3px 0 3px 10px;
    margin-left: -13px;
    font-size: 14px;
    line-height: 113%;
    display: none;
    transform: scale(0.95), translateY(-10px); /* или любое другое преобразование */
    transition: transform 0.3s ease;
}

.sport-info-visible {
    display: block;
    transform: scale(1), translateY(0); /* или любое другое преобразование */
    transition: all 0.3s ease;
}


.form-select {
  --bs-form-select-bg-img: url('data:image/svg+xml,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" /></svg>');
  display: block;
  width: 100%;
  font-family: var(--first-family);
  font-size: var(--base-font-size);
  line-height: 20px;
  padding: 8px 30px 8px 12px;
  color: black;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #ffffff;
  background-image: var(--bs-form-select-bg-img);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
  border: 1px solid #d9d9d9;
  border-radius: var(--controls-border-radius);
  height: 40px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.sport-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 12px;
  background: #f5f5f5;
}

.sport-item .info {
  display: grid;
  gap: 20px 8px;

  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
}

.sport-item .icon {
  width: 24px;
}

.sport-item .ico {
  display: inline-block;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
}

.sport-item .title {
  font-weight: 700;
  color: var(--stroke-color);

  display: flex;
  align-items: center;
}

.sport-item .location {
  grid-column: 1 / -1;
  font-weight: 500;
}

.sport-item .agenda {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sport-item .btn {
  background: var(--stroke-color);
  color: white;
}


.page-container {
    padding: 20px 12px 20px;
    gap: 20px;
    height: auto;
}

.page-container .logo img {
    width: 200px;
    max-width: 100%;
    display: block;
    height: auto;
}

.page-container .photo {
    width: 100%;
    max-width: 100%;
    display: block;
    height: auto;
}



@media (min-width: 700px) {
    .sport-item {
    display: grid;
    
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .sport-item .info {
    gap: 0 20px;

    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .sport-item .icon {
    grid-column: 1;
    grid-row: 1 / span 2;

    display: flex;
    align-items: center;
  }

  .sport-item .location {
    grid-column: 2 / span 1;
  }

  .sport-item .agenda {
    grid-column: 2 / span 1;
    display: block;
  }
 
  .sport-item .go-button {
    grid-column: 1 / -1;
  }

  .sport-item .info,
  .sport-item .agenda {
    line-height: 28px;
  }
}


@media (min-width: 940px) {
  .sport-item {
    grid-template-columns: 1fr 1fr auto;
    grid-template-rows: auto;
  }

  .sport-item .go-button {
    grid-column: span 1;
    display: flex;
    align-items: center;
  }

  .sport-item .btn {
    padding-left: 32px;
    padding-right: 32px;
  }
}


@media (min-width: 1300px) {
  .sport-item {
    align-items: center;
  }

  .sport-item .info {
    grid-template-columns: auto 1fr 2fr;
    grid-template-rows: auto;
    align-items: center;
    gap: 8px;
  }

  .sport-item .info, .sport-item .agenda {
    line-height: 1.3;
  }

  .sport-item .icon {
    grid-column: 1;
    grid-row: 1 / span 1;
    display: flex;
    align-items: center;
  }

  .sport-item .location {
    grid-column: 3 / span 1;
    padding-left: 12px;
  }
}