/*
* Общее
*/

body {
	font: 0.8em/1.6em 'Helvetica Neue', Helvetica, Arial, sans-serif;
	background: #dfe0e4; /* #e9ebee; /*#e8e8e8;*/
	width: 100%;
	margin: 0;
	padding: 0;
	color: #20211f;/*#3d3f3b;*/
}

a {
	color: #20211f;/*#3d3f3b;*/	
	text-decoration: underline;
}

a:hover {
	text-decoration: underline;
	color: #000;	
	transition: all .15s cubic-bezier(.39,.575,.565,1);
}

input {
	font: 1em/1.6em 'Helvetica Neue', Helvetica, Arial, sans-serif;
	color: #20211f;/*#3d3f3b;*/
	padding: 0.2em;
}

/* Ограничение jquery ui selectmenu по высоте */
.ui-selectmenu-open {
	max-height: 30em;
	overflow-y: scroll;
	overflow-x: hidden; /* prevent horizontal scrollbar */
}

/* Ограничение jquery ui selectmenu по внутреннему отступу*/
.ui-selectmenu-button.ui-button {
	padding: 0.2em 0.2em;
	margin: 0.4em 0 0 0;
	vertical-align: top;
}

/* Ограничение jquery ui autocomplete выпадающего списка по высоте */
.ui-autocomplete {
	max-height: 30em;
	overflow-y: scroll;
	overflow-x: hidden; /* prevent horizontal scrollbar */
}

/* checkbox */
input[type="checkbox"] {
    display:none;
}

input[type="checkbox"] + label {
	cursor: pointer;
}

input[type="checkbox"] + label span {
    display:inline-block;
    width: 1em;
    height: 1em;
   	margin: -0.4em 0.2em 0 0.2em;
    vertical-align: middle;
    background:url("../images/unchecked-60x60.png");
    background-size: 1em;
    cursor:pointer;
}
input[type="checkbox"]:checked + label span {
    background:url("../images/checked-48x48.png");
    background-size: 1em;
}

/*
* Меню заголовка и подвала
*/

.nav-holder {
	display: flex;
	padding: 0.8em;
}

.nav-left {
	display: block;
}

.nav-left-ul {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
}

.nav-left-li {
	display: inline-block;
}

.nav-left-li-text {
	display: inline-block;
	padding: 0.2em 0.8em 0em 0em;
}

.nav-right {
	display: block;
	margin-left: auto;
}

.nav-right-ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-right-li {
	display: inline-block;
	padding: 0em 0em 0em 0.8em;
}

.nav-right-li-text {
	display: inline-block;
	padding: 0.2em 0em 0em 0.8em;
	color: #999;
}

.nav-link-text {
	text-decoration: none;
	color: #999;
}

.nav-link-text:hover {
	text-decoration: underline;
	color: #fff;
	transition: all .15s cubic-bezier(.39,.575,.565,1);
}

.nav-link-img {
	vertical-align: middle;
	height: 2em;
}

.nav-link-img:hover {
	margin-top: -0.2em;
	height: 2.2em;
}

/*
* Изображение "Избранное"
*/

.favorite, .not-favorite {
	background-size: contain;
	background-repeat: no-repeat;
	cursor:pointer;
	height: 1.5em;
	width: 1.5em;
	margin: auto;
	display: block; 
}

.favorite {
	background-image: url(../images/favorite-128x128.png);
}

.favorite:hover {
	background-image: url(../images/favorite-hover-128x128.png);
	transition: all .15s cubic-bezier(.39,.575,.565,1);
}

.not-favorite {
	background-image: url(../images/favorite-not-128x128.png);
}

.not-favorite:hover {
	background-image: url(../images/favorite-not-hover-128x128.png);
	transition: all .15s cubic-bezier(.39,.575,.565,1);
}

/*
* Заголовок
*/

#header {
	background: #262626;
}

.service-logo {
	background-size: contain;
	background-repeat: no-repeat;
	height: 1.9em;
	width: 1.9em;
	margin: auto;
	padding-right: 0.4em;
	display: block; 
	background-image: url(../images/logo-192x192.png?v=2);
}

.service-name {
	font-size: 2em;
	font-family: 'Open Sans', sans-serif;
	padding: 0.1em 0;
}

.service-name-blue {
	color:#7dcfcf;
}

.service-name-orange {
	color:#ffa100;
}

.search-holder {
	width:100%;
	text-align: center;
}

#search {
	width:50%;
	min-width: 15em;
	max-width: 30em;
}

#btnLogin {
	width: 4em;
}

#loginName {
	white-space: nowrap;
}

#btnFavorites {
	padding-top: 0.2em;
}

/*
*	Блоки в центре страницы
*/

#leftBlock {
	background-color: #fff;
	float: left;
}

#rightBlock {
	background-color: #fff;
	float: right;
}

.block-border-top {
	border-top: 0.1em solid #dfe0e4;
}

.block-border-left {
	border-left: 0.1em solid #dfe0e4;
}

/*
* Подвал
*/

#footer {
	background: #1a1a1a; /*#7dcfcf*/
	color: #999;
	margin: 0;
	padding: 0;
	clear: both;
}

/*
* Фильтры
*/

/* Контейнер всех фильтров - в нем располагаются элементы управления фильтрами */
#filters {
	margin: 0;
	padding: 0 0.4em 0.4em 0;
	background-color: #7d7d7d;
}

/* Контейнеры фильтров типов и категорий помещений */
#typeFilterHolder, #categoryFilterHolder {
	margin: 0;
	padding: 0;
	display:inline-block;
}

/* Контейнер фильтра типа помещения */
.flat-type-filter-area {
    display:inline-block;
	margin: 0.4em 0 0 0.4em;
    padding: 0 0.4em 0 0;
    border: 1px solid #999;
    border-radius: 0.4em;
	cursor:pointer;
}

.flat-type-filter-area:hover {
	color: #000;
	border-color: #dfe0e4;
	transition: all .15s cubic-bezier(.39,.575,.565,1);
}

/* Фильтр типа помещения - label и изображение чекбокса */
.flat-type-filter, .flat-type-filter-image {
	cursor:pointer;
	vertical-align: middle;
}

/* Фильтр типа помещения - изображение чекбокса */
.flat-type-filter-image {
	height: 1em;
	width: 1em;
	margin: 0 0.2em;
}

/* Список выбора. По умолчанию он не отображается. Отображение включается после загрузки данных. */
.filters-select {
	margin: 0.4em 0 0 0;
	display: none;
	font: 1em 'Helvetica Neue', Helvetica, Arial, sans-serif;
	border: 1px solid #999;
    border-radius: 0.4em;
    color: #3d3f3b; /*#575954;*/
	padding: 0.1em;
}

.filters-select:hover {
	color: #000;
	border-color: #000;
	transition: all .15s cubic-bezier(.39,.575,.565,1);
}

/* Фильтр стоимости jquery-ui */
#priceFilter-button {
	max-width:9em;
}

/* Фильтр площади с jquery-ui */
#squareFilterFrom-button {
	max-width:6em;
}

/* Фильтр площади по jquery-ui */
#squareFilterTo-button {
	max-width:6em;
}

/* Фильтр продавцов jquery-ui */
#developerFilter-button {
	max-width:11em;
}

/* Фильтр категории jquery-ui */
#categoryFilter-button {
	max-width:9em;
}

/*
* Кнопка
*/

.button {
	display:block;
	float:none;
	position:relative;
	margin:0;
	cursor:pointer;
	text-decoration:none;
	/*text-transform:uppercase;*/
	text-align:center;

	font: 'Open Sans',sans-serif;
	font-size: 1.1em;
	/*text-transform:uppercase;*/
	-webkit-transition:all 0.1s;
	-moz-transition:all 0.1s;
	-ms-transition:all 0.1s;
	-o-transition:all 0.1s;
	transition:all 0.1s;
	-webkit-font-smoothing: antialiased;
	line-height: 1;

	max-width: 15em;
	margin: auto;
}

.button:hover {
	text-decoration:none;
}

.button-small {
	/*font-weight: normal;*/
	font-size: 0.9em;
	-webkit-border-radius:0.4em;
	-moz-border-radius:0.4em;
	-ms-border-radius:0.4em;
	-o-border-radius:0.4em;
	border-radius:0.4em;
	padding: 0.4em;
}

.button-middle {
	/*font-weight:bold;*/
	-webkit-border-radius:0.4em;
	-moz-border-radius:0.4em;
	-ms-border-radius:0.4em;
	-o-border-radius:0.4em;
	border-radius:0.4em;
	padding: 0.5em;
}

.button:before,.button:after {
	content:'';
	position:absolute;
	left:-1px;
	width:100%;
	bottom:-1px;
	-webkit-border-radius:0.4em;
	-moz-border-radius:0.4em;
	-ms-border-radius:0.4em;
	-o-border-radius:0.4em;
	border-radius:0.4em;
}

.button-orange {
	color: #fff;
	background-color: #ffa100;
}

.button-orange:hover {
	color:#fefefe;
	background-color:#e47601;
}

.button-blue {
	color: #fff;
	background-color: #7dcfcf;
}

.button-blue:hover {
	color:#fefefe;
	background-color:#45baba;
}


/*
* Список помещений
*/

#flatsHeaderTextBlock {
	display: inline-block;
	vertical-align: middle;
	padding: 0.3em;
	font-size: 1.1em;
}

.flats-header-detalization-text {
	display: inline-block;
}

#flatsHeaderText {
	display:inline-block;
	color: #0084B4;
}

#btnSwitchOffFlatsFilter {
	display: inline-block;
	width: 6em;
	padding-left: 0.2em;
}

#flats {
	width: 100%;
	border:none;
	border-collapse:collapse;
}

#flats th, #flats td {
  text-align: center;
  padding: 0.1em 0.2em;
}

#flats th {
  background: #7d7d7d;
  color: #ddd;
  font-weight: normal;
}

#flats .sortable, #flats .sortable-active {
	cursor: pointer;
}

#flats .sortable {
	border-bottom: 0.1em dashed #ddd;
}

#flats .sortable:hover, .sortable-active {
	border-bottom: 0.1em dashed #fff;
	color: #fff;
}

#flats td {
  border-bottom: 0.1em solid #ddd;
  color: #20211f;
}

#flats td.price {
	text-align: right;
	min-width: 5em;
	font-size: larger;
	font-weight: bolder;
	color: #292b28;/*#585b55;*/
	white-space: nowrap;
}

#flats .price-history {
	cursor:pointer;
}

#flats .price-history:hover {
	text-decoration: underline;
	color: #000;
	transition: all .15s cubic-bezier(.39,.575,.565,1);
}
					
#flats .price-history-direction {
	display: inline-block;
	font-size:1.9em;
	cursor: pointer;
}

#flats td.square {
	text-align: right;
	font-size: larger;
}

#flats td.price1m2 {
	text-align: right;
}

#flats .flats-group {
	background-color: #f4f4f4;
}

#flats span.action {
	border-bottom: 0.1em dashed #000080;
	cursor: pointer;
}

#flats .map-pin {
	background-size: contain;
	background-repeat: no-repeat;
	cursor:pointer;
	height: 1.8em;
	width: 1.8em;
	margin: auto;
	display: block; 
	background-image: url(../images/map-pin-128x128.png);
}

#flats .map-pin:hover {
	background-image: url(../images/map-pin-hover-128x128.png);
	transition: all .15s cubic-bezier(.39,.575,.565,1);
}

#flats .plan {
	background-size: contain;
	background-repeat: no-repeat;
	cursor:pointer;
	height: 1.8em;
	width: 1.8em;
	margin: auto;
	display: block; 
	background-image: url(../images/plan-128x128.png);
}

#flats .plan:hover {
	background-image: url(../images/plan-hover-128x128.png);
	transition: all .15s cubic-bezier(.39,.575,.565,1);
}

/*
* Карта
*/

#map {
	width: 100%;
	height:15em;
}

/*
* Диаграмма
*/

.chart-container {
	width	: 100%;
	height	: 100%;
	position: relative;
}

.chart {
	width: 100%;
	height: 100%;
	position: absolute;
}

.curtain {
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 2em;
}

.curtain-text {
	display: block;
	position: absolute;
	top: 49%;
	width: 100%;
	text-align: center;
}

/*
*	История цен
*/

#priceHistoryFlat {
	font-weight: bold;
}

.price-history-button-plan-holder {
	display: inline-block;
}

/*
* Модальные окна авторизации и истории цен
*/

/* Общие параметры модального окна */
.modal-form {
	border-radius: 0.3em;
	border: 0.1em #000 solid;
	background: #fff;
	position: fixed; /* чтoбы oкнo былo в видимoй зoне в любoм месте */
	top: 45%; /* oтступaем сверху 45%, oстaльные 5% пoдвинет скрипт */
	left: 50%; /* пoлoвинa экрaнa слевa */
	display: none; /* в oбычнoм сoстoянии oкнa не дoлжнo быть */
	opacity: 0; /* пoлнoстью прoзрaчнo для aнимирoвaния */
	z-index: 5; /* oкнo дoлжнo быть нaибoлее бoльшем слoе */
	padding: 2em 1em;
}

#loginForm {
	width: 28em; 
	height: 22em; /* Рaзмеры дoлжны быть фиксирoвaны */
	margin-top: -9em;
	margin-left: -14em; /* центрoвка css: oтступaем влевo и вверх минус пoлoвину ширины и высoты сooтветственнo =) */
}

#modalFormPriceHistory {
	width: 70%; 
	height: 60%; /* Рaзмеры дoлжны быть фиксирoвaны */
	margin-top: -20%;
	margin-left: -35%; /* центрoвка css: oтступaем влевo и вверх минус пoлoвину ширины и высoты сooтветственнo =) */
}

/* Кнoпкa "Зaкрыть" */
.modal-form-button-close {
	width: 2em;
	height: 2em;
	position: absolute;
	top: 1em;
	right: 1em;
	cursor: pointer;
	display: block;
}

/* Пoдлoжкa */
.modal-overlay {
	z-index:3; /* пoдлoжкa дoлжнa быть выше слoев элементoв сaйтa, нo ниже слoя мoдaльнoгo oкнa */
	position:fixed; /* всегдa перекрывaет весь сaйт */
	background-color:#000; /* чернaя */
	opacity:0.8; /* нo немнoгo прoзрaчнa */
	-moz-opacity:0.8; /* фикс прозрачности для старых браузеров */
	filter:alpha(opacity=80);
	width:100%; 
	height:100%; /* рaзмерoм вo весь экрaн */
	top:0; /* сверху и слевa 0, oбязaтельные свoйствa! */
	left:0;
	cursor:pointer;
	display:none; /* в oбычнoм сoстoянии её нет) */
}

.login-button-login-holder {
	float: left;
	width: 6em;
}

.login-button-forgot-password-holder {
	text-decoration: underline;
	white-space: nowrap;
	display: inline-block;
	padding-left: 1em;
}

.login-button-register-holder {
	width: 12em;
}
