body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #f1f1f1;
    padding: 20px;
}

header img {
    max-width: 600px;
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

h1 {
    font-size: 2em;
    margin: 0;
}

nav {
    background-color: #e0e0e0;
    padding: 10px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

nav li {
    margin: 0 10px;
}

.nav-button {
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}

main {
    padding: 20px;
    flex: 1;
}

section {
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

p {
    line-height: 1.5;
    margin-bottom: 10px;
}

.centered {
    text-align: center;
}

/* Styles for image gallery in listings.html */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.property-image {
    width: 200px; /* Set a fixed width */
    max-width: 200px; /* Keep max-width for smaller screens */
    height: auto;
    margin: 5px;
    cursor: pointer;
    display: inline-block;
}

/* Styles for viewer.html */
#image-viewer {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
}

#selected-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 10px 0;
}

.nav-buttons {
    margin: 5px;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    background-color: #007bff; /* Blue background */
    color: white;
    border-radius: 5px;
}

.button-container { /* New class for button containers */
    display: flex; /* Use flexbox for horizontal arrangement */
    justify-content: center; /* Center buttons horizontally */
    margin-bottom: 10px; /* Add some space below the top buttons */
}

.side-nav-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

#prevButtonLeft {
    left: 10px;
}

#nextButtonRight {
    right: 10px;
}

/* Styles for contact.html */
#contact-info {
    text-align: center;
}

.contact-details {
    display: inline-block;
    text-align: left;
    margin: 20px auto;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details a {
    color: #007bff;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Styles for slideshow controls */
#property-listings .controls {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#property-listings .controls button {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    background-color: #eee;
    cursor: pointer;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
}