/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background-color: #121212;
    color: #fff;
    text-align: center;
    overflow-x: hidden; /* Prevent horizontal scrollbar on body */
}

h1, h2 {
    font-family: 'Georgia', serif;
    color: #ffcc00;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #000000, #333333);
    padding: 50px 20px;
}

.header h1 {
    font-size: 3rem;
    margin: 0;
}

.header p {
    font-size: 1.5rem;
    color: #ccc;
}

/* Language and Contact Wrapper */
.language-contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
    margin: 10px 0;
}

/* Dropdown Button */
.dropdown-button {
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 150px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Flag Icon */
.flag-icon {
    width: 16px;
    height: 12px;
}

/* Dropdown Options */
.dropdown-options {
    display: none;
    position: absolute;
    background: #444;
    border: 1px solid #555;
    border-radius: 5px;
    width: 100%;
    z-index: 1000;
    max-height: 150px;
    overflow-y: auto;
}

.dropdown-options.open {
    display: block;
}

.dropdown-option {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
    font-size: 0.9rem;
}

.dropdown-option:hover {
    background-color: #555;
}

/* Call to Action Button (Contact Us) */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ffcc00;
    color: #000;
    border-radius: 5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #ffaa00;
}

/* Gallery Container */
.gallery-container {
    position: relative;
    width: 100%; /* Changed to 100% */
    margin: 0 auto;
    overflow: hidden;
}

/* Gallery */
.gallery {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
    transition: transform 0.5s ease;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap to each image */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    gap: 10px;
    width: 100%;
}

/* Gallery Images */
.gallery img {
    flex: 0 0 100%; /* Each image takes up 100% of the gallery width */
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    scroll-snap-align: start; /* Snap to the start of each image */
    aspect-ratio: 16 / 9; /* Changed aspect ratio */
}

/* Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 30px;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gallery-arrow.left {
    left: 10px;
}

.gallery-arrow.right {
    right: 10px;
}

.gallery-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

#caption {
    margin: 20px auto;
    display: block;
    text-align: center;
    color: #ccc;
    font-size: 1.2rem;
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ffcc00;
}

/* Navigation Arrows in Modal */
.modal-arrow {
    position: absolute;
    top: 50%;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transform: translateY(-50%);
}

.modal-arrow.left {
    left: 20px;
}

.modal-arrow.right {
    right: 20px;
}

.modal-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Details Section */
#details {
    padding: 40px 20px;
    background-color: #1a1a1a;
    color: #ccc;
    text-align: center;
    margin: 20px 0;
    border-radius: 10px;
}

#details h2 {
    color: #ffcc00;
    font-size: 2rem;
    margin-bottom: 20px;
}

#property-details {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    font-size: 1rem;
    line-height: 1.8;
    color: #ddd;
}

#property-details li {
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

#property-details li:last-child {
    border-bottom: none;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #333;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    background: #ffcc00;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.contact-form button:hover {
    background: #ffaa00;
}

/* Footer Styles */
.footer {
    background: #222;
    padding: 20px;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 20px;
}

/* Media Query for Mobile Devices (adjust the max-width as needed) */
@media (max-width: 768px) {
    .language-contact-wrapper {
        flex-direction: column;
    }
    .gallery-arrow {
        font-size: 16px;
        padding: 8px 12px;
        width: 30px;
        height: 30px;
    }
}
