@font-face {
    font-family: 'Amsterdam';
    src: url('font/amsterdam.woff2') format('woff2'),
         url('font/Lato/amsterdam.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Amsterdam Medium';
    src: url('font/amsterdam-medium.woff2') format('woff2'),
         url('font/Lato/amsterdam-medium.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Amsterdam Heavy';
    src: url('font/amsterdam-heavy.woff2') format('woff2'),
         url('font/Lato/amsterdam-heavy.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'Amsterdam';
    font-weight: normal;
    font-style: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f7f7f7;
    color: #333;
}

header {
    position: relative;
}
h1,h2,h3,h4,.menu-items{
    font-family: 'Amsterdam Heavy';
    font-weight: lighter;
}

a {
    color: inherit;
    text-decoration: underline black dotted 1px;
    transition: color 0.3s ease;
}
a:hover{
    text-decoration: underline;
}

.top-menu {
    background-color: #f7f7f7;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav{
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 62px;
}

.nav-container .menu-items {
    display: flex;
}

.nav-container li {
    list-style: none;
}

.nav-container a {
    text-decoration: none;
    color: #0e2431;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 0.7rem;
}

.nav-container a:hover, .nav-container a.active {
    color: rgb(236, 0, 0);
}

.hamburger-lines {
    display: none;
}

@media (max-width: 768px) {
    .hamburger-lines {
        display: block;
    }

    .nav-container {
        display: block;
        width: calc(100% + 50px); 
        margin: -10px -50px;
    }

    .nav-container .checkbox {
        position: absolute;
        display: block;
        height: 32px;
        width: 32px;
        top: 20px;
        left: 20px;
        z-index: 5;
        opacity: 0;
        cursor: pointer;
    }

    .nav-container .hamburger-lines {
        display: block;
        height: 26px;
        width: 32px;
        position: absolute;
        top: 17px;
        left: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .nav-container .hamburger-lines .line {
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #0e2431;
    }

    .nav-container .hamburger-lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }

    .nav-container .hamburger-lines .line2 {
        transition: transform 0.2s ease-in-out;
    }

    .nav-container .hamburger-lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }

    .nav-container .menu-items {
        padding-top: 100px;
        background: white;
        height: 100vh;
        width: 100%;
        transform: translate(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -30px;
        padding-left: 50px;
        transition: transform 0.5s ease-in-out;
        text-align: center;
    }

    .nav-container .menu-items li {
        margin-bottom: 1.2rem;
        font-size: 1.5rem;
        font-weight: 500;
    }

    .nav-container input[type="checkbox"]:checked ~ .menu-items {
        transform: translateX(0);
    }

    .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
        transform: rotate(45deg);
    }

    .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
        transform: scaleY(0);
    }

    .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
        transform: rotate(-45deg);
    }
}

.logo {
    position: relative;
    top: 5px;
    font-size: 1.2rem;
    color: #0e2431;
    /* Logo centreren op kleine schermen */
    /* text-align: center;
    margin-left: auto;
    margin-right: auto; */
}

@media (max-width: 768px) {
    .logo {
        display: none;
    }
}

@media (min-width: 769px) {
    .nav-container .checkbox, .nav-container .hamburger-lines {
        display: none;
    }

    .nav-container .menu-items {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        padding-top: 0;
        box-shadow: none;
        height: auto;
        width: auto;
        transform: none;
    }

    .nav-container .menu-items li {
        margin-bottom: 0;
        font-size: 1.2rem;
    }

    .logo {
        display: block;
    }
}

.search-bar {
    text-align: center;
    background-color: #fff;
    color: #333;
    padding: 20px 20px;
    border-bottom: 1px solid rgb(236, 0, 0);
}

.search-bar h1 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: rgb(236, 0, 0);
}

.search-bar input {
    padding: 10px 15px;
    width: 80%;
    max-width: 600px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

#search-results {
    padding: 20px;
    /* display: flex; */
    display: none;
    flex-wrap: wrap;
    justify-content: space-around;
    background: white;
    /* width: 100%;
    height: 100%; */
}

main {
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

main section{
    width: 100%;
    width: calc(2 * (33%) - 40px);
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

main section.full{
    max-width: unset;   
}

.house-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px;
    overflow: hidden;
    transition: transform 0.2s;
    width: calc(33% - 40px);
    min-width: 300px;
}

.house-card:hover {
    transform: scale(1.02);
}

.house-card img {
    width: 100%;
    height: 200px;
    margin-top: 20px;
    object-fit: contain;;
}

.house-card h2 {
    margin: 15px;
    font-size: 1.5em;
    color: rgb(236, 0, 0);
}

.house-card p {
    padding: 0 15px 15px;
    font-size: 1em;
    line-height: 1.6;
}

#contact h1 {
    font-size: 2em;
    margin-bottom: 15px;
    color: rgb(236, 0, 0);
    font-weight: bold;
}

#contact h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: rgb(236, 0, 0);
    font-weight: bold;
}

#contact h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: rgb(236, 0, 0);
}

form .form-group {
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 20px;
}

form label {
    display: block;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button[type="submit"] {
    background-color: rgb(236, 0, 0);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: #CCC;
    text-align: center;
    padding: 0px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

@media (max-width: 768px) {
    .search-bar input {
        width: 95%;
    }

    .house-card {
        width: calc(50% - 40px);
    }
}

@media (max-width: 480px) {
    .house-card {
        width: 100%;
    }
}
