
#map {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    z-index: 1;
    position: relative;
}

/* ===== ФИЛЬТРЫ ===== */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.filters select,
.filters input {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    min-width: 150px;
}

#apply-filters {
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

#apply-filters:hover {
    background-color: #1e40af;
}

.my-location-button {
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.my-location-button:hover {
    background-color: #1e40af;
}


/* ===== ОПИСАНИЕ КВАРТИРЫ ===== */
.details-box {
    display: none;
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 9999;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    width: 50%;
    max-height: 80%;
    overflow-y: auto;
    transition: bottom 0.3s ease;
}
  
.details-box.show {
    display: block;
    bottom: 0;
}
  
/* Кнопка закрытия */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
}
  
  



#details-content h3 {
    margin-top: 0;
    color: #111827;
}

#details-content p {
    margin: 8px 0;
    color: #374151;
}

#details-content a {
    color: #2563eb;
    text-decoration: none;
}

#details-content a:hover {
    text-decoration: underline;
}

/* ===== КНОПКИ ===== */
.btn-fav {
  background: #2563eb;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-fav:hover {
    background-color: #d97706;
}

.btn-call {
    background: #10b981;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin: 10px 0;
}

.btn-call:hover {
    background-color: #059669;
}

/* ===== СООБЩЕНИЕ ДЛЯ НЕАВТОРИЗОВАННЫХ ===== */
.auth-warning {
    text-align: center;
    margin: 20px 0;
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 8px;
}

.auth-warning a {
    font-weight: bold;
}

/* ===== ШАПКА САЙТА ===== */
.site-header {
    background-color: #1f2937;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #f3f4f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #93c5fd;
}

/* ===== Бургер и адаптивность ===== */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-icon span {
    height: 3px;
    width: 25px;
    background: white;
    display: block;
    border-radius: 2px;
}

#menu-toggle {
    display: none;
}

/* === Мобильная адаптация === */
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 60px;
        right: 20px;
        background: #1f2937;
        flex-direction: column;
        display: none;
        width: 200px;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    #menu-toggle:checked + .menu-icon + .main-nav {
        display: flex;
    }

    .menu-icon {
        display: flex;
    }
    .details-box {
        
        width: 80%;
       
    }
    
    
    
}

.carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
  }
.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
  }
.carousel-image {
    width: 100%;
    max-width: 400px;
    object-fit: cover;
  }
.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 24px;
    padding: 5px 10px;
    cursor: pointer;
  }
.carousel-btn.prev { left: 5px; }
.carousel-btn.next { right: 5px; }

/* Затемнение фона */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
.overlay.show {
    display: block;
    opacity: 1;
  }


.drag-indicator {
    width: 40px;
    height: 5px;
    background-color: #ccc;
    border-radius: 3px;
    margin: 0 auto 10px;
}

.lang-switcher {
    float: right;
    margin-top: 10px;
  }
  
.lang-btn {
    background-color: transparent;
    border: 1px solid #ccc;
    padding: 4px 10px;
    margin-left: 5px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
  }
  
.lang-btn:hover {
    background-color: #eee;
  }
  
.lang-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
  }
