/* ================= GLOBAL ================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #F2FCFC;
    font-family: "DM Serif Text", serif;
    font-size: 18px; /* increased base font size */

    /* Add these two lines to make footer stick to bottom */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ================= HEADER ================= */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px; /* slightly bigger padding */
    background-color: #8FBAF3;
    color: white;
}

.logo img {
    max-height: 60px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    font-size: 22px; /* slightly larger nav links */
    color: white;
    font-weight: 500;
}

.nav-links a:hover {
    color: #f4c430;
}

/* ================= FOOTER ================= */

footer {
    background-color: #8FBAF3;
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 18px; /* bigger footer text */
}

/* ================= GENERAL SECTIONS ================= */

section {
    background-color: #BDF1F6;
    max-width: 1100px;
    margin: 40px auto;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Titles */
h1 {
    text-align: center;
    margin: 40px 0;
    font-size: 38px; /* bigger main headings */
}

h2 {
    color: #0245A3;
    margin-bottom: 20px;
    font-size: 28px; /* bigger subheadings */
}

/* ================= AGENT PAGE ================= */

.agent {
    display: flex;
    gap: 40px;
    align-items: center;
}

.agent img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.agent-info {
    flex: 1;
}

.agent-info p {
    line-height: 1.8;
    font-size: 20px; /* bigger agent text */
}

/* ================= LISTINGS ================= */

.listing {
    display: flex;
    gap: 40px;
    align-items: center;
}

.listing-info {
    flex: 1;
}

.price {
    font-size: 28px; /* bigger price */
    font-weight: bold;
    color: #1e3a5f;
    margin-bottom: 20px;
}

.description {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 18px; /* slightly bigger description text */
}

.details {
    list-style: none;
    padding: 0;
}

.details li {
    margin-bottom: 10px;
    font-size: 18px;
}

/* ================= SLIDESHOW ================= */

.slideshow {
    position: relative;
    width: 400px;
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.slide.active {
    display: block;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* ================= CONTACT PAGE ================= */

.contact-section {
    width: 95%;
    margin: 20px auto;
}

.contact-form {
    max-width: 600px;
    margin: 30px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    font-weight: bold;
    color: #0245A3;
    font-size: 18px; /* larger label */
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 18px; /* bigger form text */
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #8FBAF3;
    box-shadow: 0 0 5px rgba(143, 186, 243, 0.5);
}

.contact-form button {
    margin-top: 15px;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background-color: #1e3a5f;
    color: white;
    font-size: 20px; /* larger button text */
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0245A3;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 900px) {

    .site-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .listing,
    .agent {
        flex-direction: column;
        text-align: center;
    }

    .agent img {
        width: 80%;
        height: auto;
    }

    .listing-media {
        width: 100%;
    }

    .listing-info {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 600px) {

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    section {
        padding: 25px;
        margin: 20px auto;
        width: 95%;
    }

    .contact-form {
        width: 100%;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .listing-media {
        width: 100%;
    }

    .listing-info {
        width: 100%;
    }
}