:root {
	--rotated-btn-width: calc(var(3 * var(--length-2x)));
	--rotated-btn-height: 40px;

  --select-back-color: #c6c6c6;
  --simple-select-color: var(--black-color);
};

#mainFrame {
    width: calc(100* var(--vw) - var(--aside-width) - var(--add-aside-width) - var(--scrollbar-width));
}

.product__shop-item {
	margin-top: 15px;
}

.rotated-btn {
    font-weight: 500;
}

.rotated-btn.black-to-white, .black-to-white {
    color: #333 !important;
    font-weight: 500;
}

.black-to-white:hover { color: #fff !important; }

.product-list__backwards {
    top: var(--length-2x);
    left: var(--length-1x);
}

#add-aside + .shadow-alpha {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: var( --length-3x );
	background-image: linear-gradient(0deg, var(--grey-color) 33%, transparent);
}

.shadow-alpha.atTop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: var( --length-3x );
	background-image: linear-gradient(180deg, var(--grey-color) 70%, transparent);
	z-index: 5;
}

ymaps[class*="pane"] {
    filter: grayscale(1);
}

/*
.rotated-btn {
    background-color: var(--active-color);
    color: #fff;
    text-align: center;
    font-size: 1.4em;
    position: absolute;
    transform: rotate(-90deg) translate(35%, 150%);
    padding: 5px;
    width: calc(3* var(--length-2x));
    left: calc(-1* var(--length-3x) - 1px);
    bottom: var(--length-3x);
}
*/

.rotated-btn {
    background-color: var(--active-color);
    color: #fff;
    text-align: center;
    font-size: 1.4em;
    position: absolute;
    transform: rotate(-90deg);
    transform-origin: bottom left;
    bottom: var(--length-3x);
    left: calc(var(--rotated-btn-height) - 1px);
    height: var(--rotated-btn-height);
    line-height: var(--rotated-btn-height);
    padding: 0px 30px;
}


.rotated-btn:hover {
	color: #fff;
	filter: contrast(1.1);
}

.product__shop-item__call-photos { margin-left: 10px; }

.hideMapBtn {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--active-color);
    width: var(--length-3x););
    text-align: center;
    color: #fff;
    padding: 5px 0px;
}

#page_nav__el {
    width: 200px;
    height: 30px;
    background-color: var(--aside-back-color);
    font: 20px Akrobat, Helvetica;
    font-weight: 600;
    border: 0px solid var(--aside-back-color);
    outline: none !important;
    border-radius: 10px;
}

#page_nav__el option {
    border-radius: 10px;
}

#page_nav__el option:focus, #page_nav__el option:hover {
    background-color: #c6c6c6;
}

@media screen and (orientation: portrait) and (max-width: 1210px) {
	:root {
		--aside-height: 45px;
		--least-height: calc( 100 * var(--vh) - var(--aside-height) - var(--header-row-height) );
		--aside-back-color: #333333;
	}

	.viewPort {
		height: calc( 100 * var(--vh) - var(--header-row-height) );
	}

	.mainFrameWrapper {
		position: absolute;
		top: var(--aside-height);
		left: 0;
	}
	.mainFrameWrapper:not(.shown) { z-index: -1; }
	.mainFrameWrapper.shown { z-index: 15; }

	#left-aside { height: var(--aside-height); padding: 0; background-color: var(--aside-back-color); }
	#add-aside { width: 100%; padding: var(--length-3x); }

	.mainFrameWrapper, .addAsideWrapper {
		height: var(--least-height);
	}

	#left-aside, .mainFrameWrapper, .addAsideWrapper {
		width: 100%;
	}

	#left-aside .hippo-link.filter__type {
	    font-family: 'Akrobat';
	    font-size: large;
	    display: inline-block;
	    height: var(--aside-height);
	    line-height: var(--aside-height);
	    margin: 0 !important;
	}

	#left-aside .hippo-link.filter__type.active { font-weight: 600; }

	.left-aside-wrap {
		display: flex;
		height: var(--aside-height);
		align-items: center;
        justify-content: space-between;
        text-transform: none;
        font-weight: 400;
        padding: 0px var(--length-3x);
	}

	.catalog__type__wrap.product__city, .product-call-link_.upper-font, .product-call-link { font-size: 1.4em; }

	.product__shop-item__title {
	    font-size: large;
	    text-transform: uppercase;
	}

	.product__shop-item { margin-top: 50px; }

	.product-list__backwards {
	    height: 25px;
	    display: inline-block;
	    vertical-align: middle;
	}

	#mainFrame {
		width: 100%;
		height: 100%;
	}
}

@media (orientation: portrait) and (max-width: 770px) {
	:root {
		--aside-height: 45px;
		--least-height: calc( 100 * var(--vh) - var(--aside-height) - var(--header-row-height) );
		--aside-back-color: #333333;
	}

	.viewPort {
		height: calc( 100 * var(--vh) - var(--header-row-height) );
	}

	.mainFrameWrapper {
		position: absolute;
		top: var(--aside-height);
		left: 0;
	}
	.mainFrameWrapper:not(.shown) { z-index: -1; }
	.mainFrameWrapper.shown { z-index: 15; }

	#left-aside { height: var(--aside-height); padding: 0; background-color: var(--aside-back-color); }
	#add-aside { width: 100%; padding: var(--length-3x); }

	.mainFrameWrapper, .addAsideWrapper {
		height: var(--least-height);
	}

	#left-aside, .mainFrameWrapper, .addAsideWrapper {
		width: 100%;
	}

	#left-aside .hippo-link.filter__type {
	    font-family: 'Akrobat';
	    font-size: large;
	    display: inline-block;
	    height: var(--aside-height);
	    line-height: var(--aside-height);
	    margin: 0 !important;
	}

	#left-aside .hippo-link.filter__type.active { font-weight: 600; }

	.left-aside-wrap {
		display: flex;
		height: var(--aside-height);
		align-items: center;
        justify-content: space-between;
        text-transform: none;
        font-weight: 400;
        padding: 0px var(--length-3x);
	}

	.catalog__type__wrap.product__city, .product-call-link_.upper-font, .product-call-link { font-size: 1.4em; }

	.product__shop-item__title {
	    font-size: large;
	    text-transform: uppercase;
	}

	.product__shop-item { margin-top: 50px; }

	.product-list__backwards {
	    height: 25px;
	    display: inline-block;
	    vertical-align: middle;
	}

	#mainFrame {
		width: 100%;
		height: 100%;
	}
}

@media (max-width: 570px) {
	:root {
		--least-height: 80vh;
		--city-name-height: 18px;
	}
	
	#city-choise__container {
	    padding: 7px;
        padding-right: 25px;
        border-radius: 5px;
        background-color: #fff;
        text-transform: uppercase;
	}

	.city-choise__wrapper {
	    overflow: hidden;
	    background-color: #fff;
	    height: 1.5em;
	    line-height: 1.5em;
	}

	.opened .city-choise__wrapper { height: fit-content; }

	#city-choise__handler { top: 3px; padding-left: 10px; }

	#city-choise__container .product-call-link { font-size: var(--city-name-height); margin-bottom: 13px; }

	#city-choise__container .product-call-link:last-cild { margin-bottom: 5px; }

	#city-choise__container .product-call-link.active, .product-call-link:hover { font-weight: inherit; }

	#city-choise__container .placeholder {
        font-size: var(--city-name-height);
        padding: 4px 7px;
        background-color: #fff;
        width: calc(100% - 30px);
        height: 100%;
        border-radius: 5px;
    }

	.opened .placeholder { z-index: -1; visible: none; }
}



/*******************************************/

/* Стили для кастомного select */



@media (max-width: 549px) {
    header { height: 120px; }
}

.custom-select {
  width: 250px;
  font-family: Akrobat, Helvetica;
  user-select: none;
  font-weight: 600;
}

#simpleSelect { 
    position: absolute;
    z-index: 96;
    outline: none !important;
    top: 80px;
    left: 40px;
}

#simpleSelect a:visited { color: var(--simple-select-color); }

.select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 7px;
  background-color: var(--select-back-color);
  /*background: #f8f9fa;
  border: 1px solid #ddd;
  */
  color: var(--simple-select-color);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.select-header:hover {
  background: var(--select-back-color);
  border-color: var(--simple-select-color);
}

.select-header.active {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.selected-text {
  /*color: #fff;*/
  font-size: var(--city-name-height);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  color: var(--simple-select-color);
  font-size: 12px;
  transition: transform 0.3s ease;
}

.arrow.open {
  transform: rotate(180deg);
}

.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  overflow: hidden;
  margin-top: 4px;
}

.select-item {
  display: block;
  padding: 4px 7px;
  color: var(--simple-select-color);
  text-decoration: none;
  font-size: var(--city-name-height);
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.select-item:last-child {
  border-bottom: none;
}

.select-item:hover, .select-item.selected {
  background: var(--select-back-color);
  color: var(--simple-select-color);
  font-weight: 500;
}

/* Анимация появления */
.select-dropdown.show {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

@media screen and (orientation: landscape) and (max-width: 1000px) {
  :root {
    --select-back-color: var(--black-color);
    --simple-select-color: var(--active-color);
  }

  #add-aside {
    width: calc(100 * var(--vw) - var(--aside-width));
  }

  #mainFrame {
    width: calc(100 * var(--vw));
  }

  :root {
    --least-height: 80vh;
    --city-name-height: 18px;
  }
  
  #city-choise__container {
      padding: 7px;
        padding-right: 25px;
        border-radius: 5px;
        background-color: #fff;
        text-transform: uppercase;
  }

  .city-choise__wrapper {
      overflow: hidden;
      background-color: #fff;
      height: 1.5em;
      line-height: 1.5em;
  }

  .opened .city-choise__wrapper { height: fit-content; }

  #city-choise__handler { top: 3px; padding-left: 10px; }

  #city-choise__container .product-call-link { font-size: var(--city-name-height); margin-bottom: 13px; }

  #city-choise__container .product-call-link:last-cild { margin-bottom: 5px; }

  #city-choise__container .product-call-link.active, .product-call-link:hover { font-weight: inherit; }

  #city-choise__container .placeholder {
        font-size: var(--city-name-height);
        padding: 4px 7px;
        background-color: #fff;
        width: calc(100% - 30px);
        height: 100%;
        border-radius: 5px;
        white-space: nowrap;
    }

  .opened .placeholder { z-index: -1; visible: none; }

  #simpleSelect {
      top: 0;
      left: auto;
      right: var(--scrollbar-width);
  }

  #simpleSelect {
    background-color: var(--black-color);
  }

  #simpleSelect.hidemd, .hideMapBtn.hidemd { display: block !important; }
  #city-choise__container.hidemd { display: inline-block !important; }

  .product__shop-item {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимация закрытия */
.select-dropdown.hide {
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
    display: none;
  }
}

