body {
    font-family: Caveat, Arial, sans-serif;
}

header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(34, 149, 237, 0.8);
    color: #fff;
    font-size: 30px;
}

header h1 {
    margin: 0;
    margin-left: 20px;
}

nav {
    display: none;
    flex-direction: column;
    background-color: #fdfbfb;
    width: 100%;
    padding: 10px 0;
    font-size: 22px;
}

nav a {
    color: rgb(6, 6, 6);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    width: auto;
    margin: 0;
    text-align: left;
    text-decoration: underline;
    font-size: 22px;
}

nav a:hover {
    background-color: #7cbdde;
    color: rgb(247, 247, 246);
    font-size: 22px;
}

.menu-toggle {
    cursor: pointer;
}

h2, h3 {
    color: #2295ed;
}

.content {
    margin: 0 auto;
    font-family: Caveat, Arial, sans-serif;
    font-size: 26px;
}

.centered {
    text-align: center;
    font-size: 24px;
    color: #2295ed;
}

.highlight {
    border: 2px solid #2295ed;
    padding: 10px;
    margin: 10px 0;
    background-color: #f9f9f9;
    color: #2295ed;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-weight: bold;
}

.instructions {
    text-align: justify; /* Выравнивание текста по краям */
    padding: 10px; /* Добавление внутреннего отступа для читаемости */
    margin: 0 auto; /* Центрирует блок по горизонтали */
}

.instructions p {
    margin: 10px 0;
}

.room-detail h2 {
    margin-bottom: 20px;
    text-align: center;
}

.image-map-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.image-map {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.map-area {
    position: absolute;
    cursor: pointer;
}

.map-area:hover {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-color: rgba(255, 255, 255, 0.05);
    }
    50% {
        background-color: rgba(255, 255, 255, 0.15);
    }
    100% {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

footer {
    background-color: rgba(34, 149, 237, 0.8);
    color: #fff;
    text-align: center;
    margin-top: 20px;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.footer-content a:hover {
    text-decoration: underline;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gallery img {
    max-width: calc(33.33% - 10px);
    flex: 1 1 calc(33.33% - 10px);
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    border: 5px solid #e3d9d9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1025px) {
    .instructions {
        width: 33.33%;
    }
    
}

@media (min-width: 768px) and (max-width: 1024px) {
    .instructions {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .gallery img {
        max-width: calc(50% - 10px);
        flex: 1 1 calc(50% - 10px);
    }

    .instructions {
        width: 80%;
    }

}

@media (max-width: 480px) {
    .gallery img {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .instructions {
        width: 100%;
    }
    
}


.button-top-container {
    margin-top: 20px;
}

.go-back-button {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto;
    padding: 10px;
    font-family: Caveat, Arial, sans-serif;
    font-size: 25px;
    background-color: #2295ed;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.go-back-button:hover {
    background-color: #1a7cc7;
}

form {
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

label {
    display: block;
    margin-top: 10px;
}

input, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.photo-gallery-container {
    position: relative;
    max-width: 100vw;
    margin: auto;
    overflow: hidden;
}

.photo-gallery-slide {
    display: none;
    text-align: center;
}

.photo-gallery-slide.active {
    display: block;
}

.photo-gallery-slide img {
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.image-description {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

.image-note {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}