* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: 'Google Sans', Arial, sans-serif; background-color: #f8f9fa;}

header { width: 100%; background-color: #f8f9fa; padding: 20px 0; overflow: hidden; }
.header-content { width: 90%; max-width: 1200px; margin: 0 auto; }
.images-container { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.image-wrapper { flex: 1; text-align: center; position: relative; margin: 0 5px; transition: transform 0.3s ease; }
.image-wrapper img { width: 100%; max-width: 150px; height: auto; display: block; margin: 0 auto; border-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.image-wrapper::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.5); border-radius: 5px; transition: all 0.3s ease; }
.image-wrapper:hover::after { opacity: 0; }
.image-wrapper:hover img { transform: scale(1.1); }

.guide-text { text-align: center; margin: 10px auto 0; width: 100%; }
.guide-text h1 { font-size: 36px; font-weight: 400; color: #202124; margin: 0 0 20px 0; letter-spacing: -0.5px; }

.search-container { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 30px; width: 100%; max-width: 500px; margin-left: auto; margin-right: auto; }
.search-box { width: 100%; }
.search-form { display: flex; align-items: center; width: 100%; border: 1px solid #dfe1e5; border-radius: 24px; padding: 5px 5px 5px 16px; box-shadow: 0 1px 6px rgba(32,33,36,0.28); transition: all 0.3s; }
.search-form:focus-within { box-shadow: 0 1px 6px rgba(32,33,36,0.38); border-color: #dfe1e5; }
.search-input { flex: 1; padding: 12px 8px; font-size: 16px; border: none; outline: none; background: transparent; }
.search-input:focus { border-color: transparent; box-shadow: none; }
.search-button { background-color: #4285f4; color: white; border: none; padding: 12px 24px; border-radius: 24px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; margin-left: 8px; text-decoration: none;}

.search-button-ch { background-color: #b71c1c; color: white; border: none; padding: 12px 24px; border-radius: 24px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; margin-left: 8px; text-decoration: none;}
.search-button-ch:hover { background-color: #e53935; }

.search-button:hover { background-color: #3367d6; }

.map-section { width: 90%; max-width: 1200px; margin: 30px auto; }
.section-title { text-align: center; margin-bottom: 15px; font-size: 24px; color: #202124; }
.map-content { display: flex; gap: 30px; }
.map-info { flex: 1; background: white; border-radius: 8px; padding: 25px; box-shadow: 0 1px 6px rgba(32,33,36,0.28); }
.map-info h2 { font-size: 24px; color: #202124; margin-top: 0; margin-bottom: 20px; }
.map-info p { font-size: 16px; color: #5f6368; line-height: 1.6; margin-bottom: 15px; }
.map-info ul { padding-left: 20px; color: #5f6368; }
.map-info li { margin-bottom: 10px; line-height: 1.5; }
.map-container { flex: 1; }
.map-instruction { text-align: center; margin-bottom: 15px; font-size: 18px; color: #5f6368; }
.radius_text { text-align: center; margin-bottom: 15px; font-size: 18px; color: #5f6368; }

#map { width: 100%; height: 400px; border-radius: 8px; overflow: hidden; box-shadow:0 2px 10px rgba(0,0,0,0.1); }

.location-search { margin-top: 20px; background: white; border-radius: 8px; box-shadow: 0 1px 6px rgba(32,33,36,0.28); padding: 20px; display: flex; align-items: center; justify-content: center; }
.distance-input { padding: 12px 16px; font-size: 16px; border: 1px solid #dfe1e5; border-radius: 24px; width: 100px; outline: none; transition: all 0.3s; text-align: center; }
.distance-input:focus { border-color: #4285f4; box-shadow: 0 1px 6px rgba(32,33,36,0.28); }
.distance-label { margin: 0 15px; font-size: 16px; color: #5f6368; }

@media (max-width: 768px) {
    .guide-text h1 { font-size: 28px; }
    .images-container { 
        flex-wrap: wrap; 
        justify-content: center; 
    }
    .image-wrapper { 
        flex: 0 0 calc(33.333% - 10px); 
        margin-bottom: 10px; 
        display: block; /* Показываем все изображения по умолчанию */
    }
    /* Скрываем изображения с 4 по 6 на мобильных устройствах */
    .image-wrapper:nth-child(n+4) {
        display: none;
    }
    .map-content { flex-direction: column; }
    #map { height: 300px; }
    .location-search { flex-direction: column; gap: 15px; }
    .distance-input { margin-bottom: 10px; }
    .search-form { padding: 3px 3px 3px 12px; }
    .search-button { padding: 10px 16px; }
}

.map-tooltip {
    background: white;
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ol-popup { position: absolute; background: white; padding: 5px 10px; border-radius: 4px; border: 1px solid #ccc; white-space: nowrap; }

