/*****************************************************************************
 * Flexible Map Script:                                                      *
 * Задание стиля страницы                                                    *
 *****************************************************************************/
body
{
	font-family: Tahoma, Arial, sans-serif;
	font-size: 12px;
	font-weight: medium;
	color: #336699;
}

#frame
{
	width: 850px;
	padding: 0.5em;
}

#header
{
	width: 100%;
	color: #003366;
	font-weight: bold;
	padding: 0em 0em 1.5em;
	background-image: url("esimo.gif");
	background-repeat: no-repeat;
    background-position: center top; 
}

/* Адаптивность для карты */
#map {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

/* Контейнер, который создает скрипт */
#map > div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* Контейнер с картой */
#map .map-container {
    flex: 1 1 300px;
    min-width: 300px;
}

/* Изображение карты */
#map .map-container img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ccc;
}

/* Контейнер с элементами управления */
#map .controls-container {
    flex: 0 0 200px;
    width: 200px;
}

/* Адаптация для маленьких экранов */
@media (max-width: 768px) {
    #map > div {
        flex-direction: column;
    }
    
    #map .controls-container {
        flex: 0 0 auto;
        width: 100%;
    }
    
    /* Списки в две колонки на планшетах */
    #map select,
    #map .control-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #map {
        padding: 5px;
    }
}

#footer
{
	font-size: 11px;
	padding: 1.5em 0em 0em;
}

#popup
{
	color: #336699;
	border-right: 1px solid #000;
	border-bottom: 1px solid #000;
	padding:0
}
#popup .tcontent
{
	padding: 10px 14px 11px;
}
.tbox
{
	position: absolute;
	display: none;
	padding: 14px 17px;
	z-index: 900;
}
.tinner
{
	padding: 15px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	background: #fff url(images/preload.gif) no-repeat 50% 50%;
	border-right: 1px solid #333;
	border-bottom: 1px solid #333;
}
.tmask
{
	position: absolute;
	display: none;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	background: #000;
	z-index:800;
}
.tclose
{
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	background: url(close.png) no-repeat
}
