/*
Theme name: SikorSky
Version: 1.0
Description: Theme for KPI hotel
Author: Humeniuk Vlad
*/

.slider-modal {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    flex-direction: column;
}

.slider-modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.slider-modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    cursor: pointer;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.modal-arrow.left {
    left: 5%;
}

.modal-arrow.right {
    right: 5%;
}

html,
body {
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-bottom: 0;
    padding-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    padding-left: 100px;
    padding-right: 100px;
    box-sizing: border-box;
}


/* Адаптація для планшетів (≤1024px) */

@media (max-width: 1024px) {
    .container {
        padding-left: 50px;
        padding-right: 50px;
    }
}


/* Адаптація для мобільних пристроїв (≤768px) */

@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.site-header {
    width: 100%;
    margin: 0;
    height: 200px;
    background-color: rgba(71, 113, 222, 0.39);
    background-image: url('icons/building.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
}

.language-switcher {
    margin-top: 1%;
    padding-right: 100px;
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.lang-icon {
    width: 24px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lang-icon:hover {
    transform: scale(1.1);
}

.header-top {
    background-image: url('icons/building.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    display: block;
    position: absolute;
    align-items: center;
    max-width: 70%;
    /*height: auto;*/
    margin: 0 auto;
    max-height: 100px;
}

.main-nav {
    width: 100%;
    background-color: #4770DA;
    height: 45px;
}

.main-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.main-nav-item {
    margin: 0 60px;
}

.main-nav-item a {
    color: white;
    font-family: 'Exo 2', sans-serif;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

.main-nav-item:hover {
    transform: scale(1.1);
    font-weight: 700;
}

.contacts {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    font-family: 'Exo 2', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    border-bottom: 2px solid black;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.2);
}

.content-wrapper {
    display: flex;
    flex: 2;
    gap: 50px;
    margin-bottom: 30px;
}

.photo-carousel {
    position: relative;
    margin-top: 30px;
    width: 550px;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
    z-index: 1;
}

.photo-carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.photo-carousel .prev {
    left: 5px;
}

.photo-carousel .next {
    right: 5px;
}

.photo-carousel button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.about {
    margin-top: 30px;
    width: 100%;
    height: auto;
    font-family: 'Exo 2', sans-serif;
}

.about-text {
    /*margin-top: -1px;*/
    font-style: italic;
    font-size: 16px
}

.hotel-name {
    font-weight: bold;
    font-size: 20px
}

.audience-list {
    margin-top: 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
}

.conditions {
    margin-top: 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
}

.map {
    margin-top: 30px;
    width: 100%;
    height: auto;
    font-family: 'Exo 2', sans-serif;
}

.address {
    margin-top: 30px;
    width: 550px;
    height: auto;
}

.address p {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.site-footer {
    background-color: #bfd0f9;
    height: auto;
    padding: 30px 0;
    font-family: 'Exo 2', sans-serif;
    color: #4169e1;
}

.footer-content {
    font-size: 16px;
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 100px;
    padding-right: 100px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    gap: 5px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.footer-logo {
    height: 60px;
    object-fit: contain;
}

.footer-address a,
.footer-contact a {
    color: #4169e1;
    font-weight: bold;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-align: right;
    height: 100%;
}

.footer-socials a {
    margin-left: 10px;
    text-decoration: none;
}

.footer-socials img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.footer-socials img:hover {
    transform: scale(1.2);
}

.footer-address {
    width: auto;
    margin-top: auto;
    margin-bottom: 15px;
}

.copyrights {
    margin: 0;
    margin-bottom: 15px;
    margin-top: auto;
}

.opportunities-list {
    margin-top: 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
}

.opportunities-list a {
    margin-top: 0;
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
}

.opportunities-list a:hover {
    color: #8099c1;
    transform: scale(1.02);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.opportunities {
    margin-top: 30px;
    padding-bottom: 0;
    margin-bottom: 0;
    width: 70%;
    height: auto;
    font-family: 'Exo 2', sans-serif;
}

.title {
    font-weight: bold;
    font-size: 20px;
    font-family: 'Exo 2', sans-serif;
    text-align: center;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
}

.room-card {
    border: 5px solid #4771DE;
    padding: 20px;
    background-color: #fff;
    border-radius: 0;
    position: relative;
    font-family: "Exo 2", sans-serif;
}

.room-image-placeholder {
    width: 90%;
    aspect-ratio: 3 / 4;
    margin: 0 auto 15px auto;
    position: relative;
    border-radius: 6px;
}

.room-number {
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 40px;
}

.room-info {
    position: relative;
}

.row-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    padding: 0 5px;
}

.room-price {
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 40px;
}

.feedback-button {
    font-family: "Exo 2", sans-serif;
    font-size: 18px;
    position: fixed;
    top: 50%;
    /* або bottom: 100px; — залежить від дизайну */
    right: 0;
    transform: translateY(-50%);
    background-color: #4771DE;
    color: white;
    text-decoration: none;
    padding: 12px;
    height: 50px;
    display: flex;
    align-items: center;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: width 0.3s ease, padding 0.3s ease;
    z-index: 900;
    overflow: hidden;
    white-space: nowrap;
    width: 50px;
}

.feedback-button img {
    width: 30px;
    height: 30px;
    align-items: center;
    transition: opacity 0.3s ease;
}

.feedback-button span {
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-button:hover {
    width: 200px;
}

.feedback-button:hover span {
    opacity: 1;
}

.feedback-button:hover img {
    opacity: 0;
}

.room-price-details {
    text-align: left;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.4;
}

.hidden {
    display: none;
}

.arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    font-size: 32px;
    color: black;
    cursor: pointer;
    user-select: none;
}

.arrow.left {
    left: -10px;
}

.arrow.right {
    right: -10px;
}

.room-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.image-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line {
    border-top: 2px solid black;
}


/* --- HEADER ADAPTATION --- */


/* Для планшетів (наприклад, до 1024px) */

@media (max-width: 1024px) {
    .site-header {
        height: 150px;
    }
    .logo-image {
        max-height: 80px;
    }
    .language-switcher {
        padding-right: 50px;
    }
    .main-nav-item {
        margin: 0 30px;
    }
}


/* Для телефонів (наприклад, до 768px) */

@media (max-width: 768px) {
    .site-header {
        height: 120px;
        background-size: cover;
        flex-direction: column;
        align-items: center;
        padding-top: 10px;
    }
    .logo-image {
        max-height: 60px;
        position: static;
        margin-bottom: 10px;
    }
    .language-switcher {
        padding-left: 20px;
        padding-right: 20px;
    }
    .main-nav-list {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        text-align: center;
    }
    .main-nav-item {
        flex: 1 1 33%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 5px 0;
    }
    .main-nav-item a {
        display: block;
        width: 100%;
    }
}


/* --- CONTACTS ADAPTATION --- */

@media (max-width: 768px) {
    .contacts {
        flex-direction: column;
        align-items: center;
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 16px;
    }
    .contacts p {
        margin-bottom: 10px;
    }
    .social-links {
        gap: 20px;
    }
}


/* --- ABOUT SECTION --- */

@media (max-width: 768px) {
    .about {
        margin-top: 20px;
        font-size: 15px;
    }
}


/* --- ROOM GRID ADAPTATION --- */


/* Для планшетів (наприклад, до 1024px) */

@media (max-width: 1024px) {
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 колонки */
        gap: 15px;
    }
}


/* Для телефонів (наприклад, до 768px) */

@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    .room-card {
        padding: 15px;
    }
    .room-image-placeholder {
        width: 70%;
        aspect-ratio: 4 / 3;
    }
    .room-number,
    .room-price {
        font-size: 16px;
        height: auto;
        padding: 8px 0;
    }
    .toggle-btn {
        font-size: 18px;
    }
    .room-details p,
    .price-details p {
        font-size: 14px;
    }
    .arrow {
        font-size: 24px;
    }
    .arrow.left {
        left: 5px;
    }
    .arrow.right {
        right: 5px;
    }
}


/* --- FOOTER ADAPTATION --- */

@media (max-width: 1024px) {
    .footer-content {
        padding-left: 50px;
        padding-right: 50px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 20px 0;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: auto;
        padding-left: 20px;
        padding-right: 20px;
        gap: 20px;
    }
    .footer-logo-section,
    .footer-address,
    .footer-contact {
        align-items: center;
        width: 100%;
    }
    .footer-contact {
        text-align: center;
    }
    .footer-contact p {
        margin: 5px 0;
    }
    .footer-socials {
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
    }
    .footer-socials a {
        margin-left: 5px;
        margin-right: 5px;
    }
    .copyrights,
    .footer-address {
        margin-bottom: 10px;
        margin-top: 0;
    }
}


/* --- FEEDBACK BUTTON ADAPTATION --- */

@media (max-width: 768px) {
    .feedback-button {
        width: 28px;
        height: 28px;
        padding: 5px;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }
    .feedback-button img {
        width: 20px;
        height: 20px;
    }
	
	.feedback-button:hover {
        width: 120px;
    }
   
    .feedback-button span {
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .feedback-button {
        width: 30px;
        height: 30px;
        padding: 10px;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }
    .feedback-button img {
        width: 25px;
        height: 25px;
    }
	
	.feedback-button:hover {
        width: 120px;
    }
	
    .feedback-button span {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .photo-carousel {
        position: relative;
        margin-top: 30px;
        width: 100%;
        height: 450px;
        border-radius: 30px;
        overflow: hidden;
    }
    .content-wrapper {
        display: flex;
        flex-direction: column;
        flex: 2;
        gap: 50px;
    }
    .address {
        margin-top: 30px;
        width: 100%;
        height: auto;
    }
}