html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* font-family: "Miriam Libre", serif; */
    font-family: sans-serif, serif;
    line-height: 1.6;
}

b {
    color:#051951;
}

button {
    background: #D60B00;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    /* font-family: "Miriam Libre", serif; */
    font-family: sans-serif, serif;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.top-header {
    background: #D60B00;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    white-space: nowrap;
}

.top-bar {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.top-bar ul {
    list-style: none;
    display: flex;
    font-size: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.top-bar ul li {
    margin: 0 15px;
}

.top-bar ul li a {
    color: #fff;
    text-decoration: none;
}

.main-header {
    background: #051951;
    color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-header .logo {
    width: 12rem;
    height: 3.5rem;
    background: url('images/logo.png') no-repeat center center/cover;
}

.main-header-content {
    width: 65%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    font-size: 0.9rem;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.contact-info {
    font-size: 18px;
}

.hero {
    background:linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero.jpg') no-repeat center center/cover;
    /* background: url('images/hero.jpg') no-repeat center center/cover; */
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 65vh;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero div {
    width: 65%;
}

.hero-first {
    color: #FF3D33;
}

.hero2 {
    background:linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/contact.jpg') no-repeat center center/cover;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 65vh;
}

.hero2 h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero2 div {
    width: 65%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero3 {
    background:linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/properties.jpg') no-repeat center center/cover;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 65vh;
}

.hero3 h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero3 div {
    width: 65%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cta-button {
    background: #D60B00;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    /* border-radius: 5px; */
}

#about {
    padding: 40px 17.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 45%;
    /* padding-right: 20px; */
}

.about-image {
    /* width: 45%; */
    flex: 1;
    background: url('images/about.jpg') no-repeat center center/cover;
    height: 350px;
}

#contact-us {
    padding: 40px 17.5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#properties {
    padding: 40px 17.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

.property {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.property-reverse {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.cortland-1 {
    /* width: 45%; */
    flex: 1;
    background: url('images/cortland-1.jpg') no-repeat center center/cover;
    height: 350px;
}

.cortland-2 {
    /* width: 45%; */
    flex: 1;
    background: url('images/cortland-2.png') no-repeat center center/cover;
    height: 350px;
}

.zacarias-1 {
    /* width: 45%; */
    flex: 1;
    background: url('images/zacarias-1.jpg') no-repeat center center/cover;
    height: 350px;
}

.zacarias-4 {
    /* width: 45%; */
    flex: 1;
    background: url('images/zacarias-4.jpg') no-repeat center center/cover;
    height: 350px;
}

.cortland-commercial {  
    /* width: 45%; */
    flex: 1;
    background: url('images/cortland-commercial.jpg') no-repeat center center/cover;
    height: 350px;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin: 10px 0 5px;
}

form input, form textarea {
    padding: 10px;
    margin-bottom: 10px;
}

.main-footer {
    background: #051951;
    color: #fff;
    padding-top: 30px;
    padding-bottom: 30px;
    display: flex;
    justify-content: center;
}

.main-footer .logo {
    width: 12rem;
    height: 3.5rem;
    background: url('images/logo.png') no-repeat center center/cover;
}

.main-footer .footer-content {
    width: 65%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.main-footer h1 {
    font-size: 1.1rem;
    font-weight: 600;
}

.main-footer p {
    font-size: 0.8rem;
}

.bottom-footer {
    text-align: center;
    padding: 10px;
    background: #D60B00;
    color: #fff;
    font-size: 0.9rem;
}

.burger {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #fff;
    display: block;
    transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    cursor: pointer;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    color: #051951;
}

.details-overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    display: none;
    justify-content: center;
    align-items: center;
}

.details-overlay-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
    color: #051951;
    overflow-x: auto;
    overflow-y: auto;
}

.details-overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    cursor: pointer;
    color: #fff;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}
.mySlides {
    display: none;
    text-align: center;
}
.mySlides img {
    vertical-align: middle;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}
.prev {
    left: 10%;
    border-radius: 3px 0 0 3px;
}
.next {
    right: 10%;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .burger {
        display: block;
    }

    .property {
        flex: 1 1 calc(50% - 20px);
    }
    #about {
        padding: 20px 5%;
    }

    .about-content,
    .about-image {
        width: 100%;
        padding-right: 0;
    }

    .about-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .property {
        flex: 1 1 100%;
    }
}
