@font-face {
    font-family: 'Geist';
    src: url('../fonts/Geist-wght.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
body {
    margin: 0;
    color: black;
    font-family: Geist;
}
#map {
    width: calc(100vw - 350px);
    height: 100vh;
    margin-left: 350px;
}
#placeForm {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.sidenav {
    height: 100%;
    width: 350px;
    position: fixed;
    top: 0; 
    left: 0;
    bottom: 0;
    background-color: white; 
    border-right: 2px solid #DDDDDD;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
p {
    margin: 0;
    color: #9A9A9D;
    font-size: 14px;
}
h1 {
	font-size: 24px;
	color: #E92626;
	font-weight: 600;
	margin: -15px 0px 0px 0px;
}
.sidenav center {
    margin-top: 10px;
}
.bottom-box {
    margin-top: auto;
}
#placeForm input {
    padding-left: 20px;
	padding-right: 10px;
    margin-bottom: 10px;
    height: 50px;
    background: #F5F5F7;
    border-radius: 7px;
    border: none;
    color: black;
    font-size: 16px;
    font-family: Geist;
}
#placeForm input::placeholder {
    color: #9A9A9D;
}
#placeForm input:focus { 
    outline: none; 
}
#placeForm input:disabled {
    color: #555555;
    cursor: not-allowed;
}
#placeForm #formInputTop:disabled {
    border-bottom: none;
}
.blackButton:disabled{
    background: #808089;
    color: white;
    cursor: not-allowed;
}
.blackButton:disabled:hover{
    background: #808089;
    color: white;
    cursor: not-allowed;
} 
.blackButton:hover{
    background: #171717;
}
.blackButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;  
    height: 50px;
    border-radius: 10px;
    background: #000000;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-family: Geist;
    font-weight: 600;
}
#deleteButton:disabled img {
    filter: brightness(0) saturate(100%) invert(66%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(95%);
}
#deleteButton:disabled{
    background: #DBDBDB;
    color: #A0A0A0;
    cursor: not-allowed;
}
 #deleteButton:disabled:hover{
    background: #DBDBDB;
    color: #A0A0A0;
    cursor: not-allowed;
} 
#deleteButton:hover{
    background: #F4F4F4;
}
#deleteButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;  
    height: 50px;
    border-radius: 10px;
    background: white;
    border: 1px solid #DDDDDD;
    color: black;
    font-size: 16px;
    cursor: pointer;
    font-family: Geist;
    font-weight: 600;
}
.theme-toggle {
    margin-top: 10px;
    display: flex;
    background: #303030;
    border: 1px solid #6E6E6E;
    border-radius: 12px;
    overflow: hidden;
    height: 44px;
}
.theme-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #464646;
    font-size: 16px;
    cursor: pointer;
    color: white;
}
.theme-btn.active {
    background: #5a5a5a;
    color: white;
}
.theme-btn:not(.active):hover {
    background: #4f4f4f;
}
a {
    color: #444CE8;
    font-size: 14px;
}
.info {
    margin-top: auto;
}
.bottom-group {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
p a{
    color: #9A9A9D;
    text-decoration: none;
}
.ol-zoom {
    right: 10px;
    left: auto;
}

.ol-rotate {
    left: 10px;
    right: auto;
}

.dataText {
    margin-top: 10px;
}
.hide {
    display: none !important;
}
#mobile {
    display: none;
}
.buttons {
    display: flex;
    justify-content: space-between;
}
.buttons button {
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    height: 38px;
    padding-left: 8px;
    padding-right: 16px;
    border-radius: 17px;
    border: none;
    cursor: pointer;
    font-family: Geist;
}
.buttons button:hover {
    background: #E4E4E8;
}
.mobile-hide {
    display: none !important;
}
#window {
    position: absolute;
    background: white;
    width: calc(100% - 80px);
    height: auto;
    z-index: 1000;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    border: 2px solid #DDDDDD;
    border-radius: 20px;
    padding: 20px;
}
#error {
    position: absolute;
    background: white;
    width: 400px;
    z-index: 1001;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    border: 2px solid #DDDDDD;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}
#error p{
    font-size: 16px;
    color: #000000;
}
#error .divider {
    border: none;
    border-top: 1px solid #DDDDDD;
    margin: 20px -20px;
    width: calc(100% + 40px);
}
#window .divider {
    border: none;
    border-top: 1px solid #DDDDDD;
    margin: 20px -20px;
    width: calc(100% + 40px);
}
#close {
    width: 100%;
}
#closeError {
    width: 100%;
}
@media (max-width: 520px) {
    .mobile-hide {
        display: block !important;
    }
    .sidenav {
        height: auto; 
        width: 100%; 
        position: fixed; 
        top: auto;
        left: 0;
        bottom: 0;
        background-color: white; 
        border-top: 2px solid #DDDDDD;
        border-radius: 18px 18px 0px 0px;
        overflow-x: hidden; 
        padding: 20px;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        z-index: 999;
        transition: transform 0.25s ease;
        touch-action: none;
    }
    #map {
        width: 100vw;
        height: 100vh;
        margin-left: 0;
    }
    .sidenav p,
    .sidenav a {
        display: none; /* скрываем только в боковой панели */
    }
    #window p, 
    #window a {
        margin-top: 10px;
        text-align: center;
        display: block;
        font-size: 16px;
    }
    #window .inline {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        justify-content: center;
        width: 100%;
    }
    .email {
        margin-top: 0 !important;
    }
	#mobile {
	    width: 100%;
	    padding: 14px 0;
	}
	#handle {
	    height: 4px;
	    width: 60px;
	    background: #DDDDDD;
	    border-radius: 2px;
	    margin: 0 auto
	}
    #formButton {
        margin-top: 30px;
    }
	#info {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
		margin-left: auto;
    }
	#error {
	    position: absolute;
	    background: white;
	    width: calc(100% - 80px);
	    z-index: 1001;
	    top: 50%;
	    left: 50%;
	    transform: translate(-50%, -50%);
	    border: 2px solid #DDDDDD;
	    border-radius: 20px;
	    padding: 20px;
	    text-align: center;
	}
}