/* Main Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    -webkit-text-size-adjust: 100%;
}

/* Contact */
.contact {
    width: 160px;
    margin: 20px;
    float: right;
}


/* Responsive Design - Tablets */
@media screen and (max-width: 768px) {
    .container {
        width: 95% !important;
        padding: 10px !important;
    }

    .header {
        height: 300px !important;
    }

    .room-container {
        width: 45% !important;
        /* 2 images per row on tablets */
        margin: 2.5% !important;
    }

    .title {
        font-size: 18px !important;
    }

    .content {
        font-size: 14px !important;
        margin-left: 20px !important;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 480px) {
    .room-container {
        width: 95% !important;
        /* 1 image per row on phones */
        margin: 2.5% !important;
    }

    .contact {
        width: 170px !important;
        text-align: inherit;
        margin: 10px 0 !important;
    }

    .contact a {
        margin: 0 5px !important;
    }

    .header h1 {
        font-size: 18px !important;
    }

    .features h1 {
        font-size: 20px !important;
    }

    .section {
        padding: 10px !important;
    }

    .nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }

    .close-btn {
        font-size: 28px !important;
    }

    .features ul li {
        font-size: 14px !important;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .header {
        background-attachment: scroll;
    }
}

/* Header */
.header {
    background-image: url('./images/cover.jpg');
    background-size: cover;
    background-position: center;
    height: 460px;
    color: white;
    text-align: center;
    padding-top: 8px;
}

.header h1 {
    font-size: 20px;
    margin: 16;
}

/* Container */
.container {
    width: 80%;
    margin: auto;
    background-color: white;
    padding: 20px;
    border-radius: 20px;
}

/* Features & Reviews */
.features,
.reviews {
    margin-top: 30px;
}

.features h2,
.reviews h2,
.gallery h2,
.map h2 {
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 10px;
}

/* Preview Modal */
.preview,
.previewRoom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.preview,
.previewRoom img {
    max-width: 100%;
    max-height: 100%;
}

/* Features List */
.features ul {
    list-style: none;
    padding: 0;
}

.features ul li {
    margin: 10px 0;
}

/* Room Container */
.room-container {
    width: 30%;
    margin: 1.66%;
    float: left;
    text-align: center;
}

/* Gallery Images */
.gallery img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Room Description */
.room-description {
    margin-top: 8px;
    margin-bottom: 16px;
    color: #333;
    font-size: 14px;
    text-align: center;
}

/* Clearfix */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Map */
.map {
    margin-top: 0px;
}

.map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Reviews */
.reviews .review {
    border-bottom: 1px solid #f2f2f2;
    padding: 10px 0;
}

/* Footer */
.footer {
    background-color: #f2f2f2;
    color: white;
    text-align: center;
    padding: 10px;
}

/* Icons */
.facebook-icon {
    width: 40px;
    height: 40px;
    display: inline-block;
}

/* Section */
.section {
    margin-bottom: 20px;
}

.icon {
    font-size: 24px;
    margin-right: 10px;
}

.title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.content {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-left: 34px;
}

.section:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

/* Paragraph */
p {
    text-align: center;
    font-size: 26px;
    font-style: bold;
}

/* Preview Modal - Advanced */
.preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    color: black;
    padding: 16px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: background-color 0.3s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Preview Images */
#previewImage,
#previewImageRoom {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Touch-friendly improvements */
@media (hover: none) {
    .gallery img:hover {
        transform: none;
    }

    .nav-btn {
        padding: 12px;
        opacity: 0.8;
    }

    .close-btn {
        padding: 15px;
    }
}
