@font-face {
    font-family: TTNorms;
    src: url(/font/tt-norms-pro-medium.woff2) format("woff2");
    font-weight: 500;
    font-style: normal;
    font-variation-settings:"wght" 500}

@font-face {
    font-family: TTNorms;
    src: url(/font/tt-norms-pro-regular.woff2) format("woff2");
    font-weight: 400;
    font-variation-settings:"wght" 400}


.leaflet-control-attribution.leaflet-control {
    display: none;
}

.leaflet-popup-content {
    font-family: TTNorms,Verdana,Geneva,sans-serif;
}

body {
    margin: 0;
    font-family: TTNorms,Verdana,Geneva,sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

 button {
     font-family: TTNorms,Verdana,Geneva,sans-serif;
     font-weight: bold;
 }

header {
    background: linear-gradient(90deg,rgba(237, 221, 83, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(0, 102, 204, 1) 100%);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

header img {
    height: 40px;
    border-radius: 8px;
}

#profile-btn {
    width: 80px;
    height: 44px;
    border-radius: 6px;
    background: #fff;
    color: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    border: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

input, select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: TTNorms,Verdana,Geneva,sans-serif;
}

button {
    padding: 10px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

#filter-floating {
    position: fixed;
    top: 80px;           /* ниже шапки */
    right: 20px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#filter-toggle-btn {
    width: 56px;
    height: 56px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}
#filter-toggle-btn:hover {
    background: #0055aa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.3);
}

#filter-toggle-btn svg {
    width: 24px;
    height: 24px;
}

#filter-panel {
    position: absolute;
    top: 65px;
    right: 0;
    background: white;
    padding: 20px;
    border-radius: 16px;
    border-top-right-radius: 0px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

#filter-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.filter-group {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
}
.filter-group label {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    min-width: 100px;
}
.filter-group input, .filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

#filter-toggle-btn.active {
    border-radius: 16px 16px 0 0;
    width: 120px;
    background: #0055aa;
}

#filter-panel select, #filter-panel input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    min-width: 120px;
}

#filter-panel input[type="number"] {
    min-width: 60px;
}

#map {
    flex: 1;
    transition: all 0.3s;
}

#auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 380px;
    max-width: 90%;
}

.modal-content button {
    font-size: 15px;
    transition: all 0.3s;
}

.modal-content button:hover {
    background: #0055aa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.3);
}

.tab {
    padding: 10px 20px;
    background: #eee;
    display: inline-block;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

.tab.active {
    background: #0066cc;
    color: white;
}

#sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    min-width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    padding: 40px 25px 25px;
    transition: left .4s;
    z-index: 2000;
    overflow-y: auto;
    box-sizing: border-box;

}

#sidebar.active {
    left: 0;
}

body.sidebar-open #map {
    margin-left: 18%;
    width: 82%;
}

.placeholder {
    background: #eee;
    height: 20px;
    border-radius: 4px;
    margin: 15px 0;
    animation: pulse 1.5s infinite;
}

.placeholder.short {
    width: 70%;
}

.placeholder.long {
    width: 100%;
}

@keyframes pulse {
    0% {
        background: #eee
    }
    50% {
        background: #ddd
    }
    100% {
        background: #eee
    }
}

.popup-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.popup-btn:hover {
    background: #0055aa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.3);
}

.info { margin: 10px 0; }
.info small { color: #666666; }
.label { font-weight: bold; color: #444; }

#service-info .info h2 {
    margin-bottom: 0;
}

.service-condition {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
}

.leaflet-popup-content .service-condition {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.leaflet-popup-content .service-type {
    margin-bottom: 5px;
    font-size: 15px;
}

.leaflet-popup-content .service-description {
    max-width: 180px;
}

.leaflet-popup-content .service-description p {
    margin: 5px 0;
}

/* Кнопка в сайдбаре */
.reply-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s;
}
.reply-btn:hover {
    background: #0055aa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.3);
}

.action-btn {
    width: 100%;
    padding: 14px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.action-btn:hover {
    background: #0055aa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.3);
}

.primary-btn {
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}
.primary-btn:hover {
    background: #0055aa;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.3);
}

.secondary-btn {
    padding: 10px 16px;
    background: #c9c9c9;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s;
}
.secondary-btn:hover {
    background: #b8b8b8;
    transform: translateY(-2px);
}

#reply-status.success {
    background: #e6f7e6; color: #2d862d; border: 1px solid #a3e4a3;
}
#reply-status.error {
    background: #fce8e8; color: #c33; border: 1px solid #f5a4a4;
}

.customer-link {
    display: inline-block;
}

.customer-link button {
    cursor: default;
    padding: 0;
    max-height: 30px;
    max-width: 30px;
}
