@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    width: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden; 
}

header {
    color: #333;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header.transparent {
    background-color: transparent;
    color: white;
}

header.transparent .menu ul li a {
    color: white;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    overflow-x: hidden;
}

.menu ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.menu ul li a:hover {
    color: #ff9900;
}

header .logo {
    max-width: 200px;
    height: auto;
}

.banner {
    background-image: url('../images/bg2.png');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    font-size: 2rem;
}

.container {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: start;
    max-width: 1800px;
    margin: 0 auto;
}

.property {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.property .details-button {
    padding: 10px 12px;
    border-radius: 3px;
    background-color: #194e05;
    color: white;
    font-family: 'Montserrat', sans-serif;
    border: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.property .details-button:hover {
    box-shadow: 0 0 5px #194e05, 0 0 10px #194e05;
    transform: translateY(-1px);
    cursor: pointer;
}

.property:hover {
    box-shadow: 0 0 10px #194e05, 0 0 20px #194e05;
    transform: translateY(-3px);
}

.property img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    filter:brightness(0.9);
    transition: filter 0.3s ease;
}

.property:hover img {
    filter: brightness(1);
}

.property-info {
    padding: 1rem;
    flex-grow: 1;
}

.property-info h3 {
    margin: 0;
    color: #ff9900;
}

.property-info p {
    margin: 0.5rem 0;
}

.price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.2rem;
}

footer {
    
    bottom: 0;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: black;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.lightbox:target {
    display: flex;
}

.filter-container {
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.filter-container label {
    font-size: 1rem;
    font-weight: bold;
}

#type-filter {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

#type-filter:focus {
    border-color: #08cd54;
    box-shadow: 0 0 5px rgba(6, 62, 10, 0.6);
    outline: none;
}

#type-filter option {
    padding: 0.5rem;
}

.filter-container input[type="range"] {
    width: 100%;
    max-width: 200px;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.filter-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background: #ffcc00;
    border-radius: 50%;
    cursor: pointer;
}

#price-value {
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: 1rem;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

#contact-form label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form input[type="datetime-local"],
#contact-form input[type="number"],
#contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form input[type="datetime-local"]:focus,
#contact-form input[type="number"]:focus,
#contact-form textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 5px rgba(6, 62, 10, 0.6);
    outline: none;
}

#contact-form textarea {
    resize: none;
}

#contact-form button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#contact-form button:hover {
    background-color: #218838;
    transform: scale(1.02);
}

#contact-form button:active {
    transform: scale(0.98);
}

#contact-form #timer {
    color: red;
    text-align: center;
    margin-top: 30px;
    font-size: 1rem;
}

#message-sent {
    font-size: 1.2rem;
    color: #28a745;
    margin-top: 1.5rem;
}

.banner-contact {
    background-color: #194e05;
    background-size: cover;
    background-position: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    font-size: 2rem;
}

@media (max-width: 1200px) {
    #contact-form {
        width: 90%; 
    }

    .banner-contact {
        height: 120px; 
        font-size: 1.5rem; 
    }
}

@media (max-width: 900px) {
    #contact-form {
        width: 95%; 
    }

    .banner-contact {
        height: 120px;
        font-size: 1.3rem; 
    }
}

@media (max-width: 600px) {
    #contact-form {
        padding: 15px; 
    }

    #contact-form label {
        font-size: 0.9rem; 
    }

    #contact-form input[type="text"],
    #contact-form input[type="email"],
    #contact-form input[type="datetime-local"],
    #contact-form input[type="number"],
    #contact-form textarea {
        font-size: 0.9rem; 
    }

    #contact-form button {
        font-size: 1rem; 
    }

    .banner-contact {
        height: 100px; 
        font-size: 1.1rem; 
    }

    #message-sent {
        font-size: 1rem; 
    }
}

@media (max-width: 400px) {
    .banner-contact {
        font-size: 1rem; 
    }

    #contact-form button {
        font-size: 1rem; 
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    header {
        display: flex;
        
        justify-content: space-around; 
        align-items: center; 
        padding: 1rem; 
    }

    .menu ul {
        display: flex;
        flex-direction: column; 
        gap: 1rem; 
        align-items: center; 
    }
}

@media (max-width: 900px) {
    header {
        display: flex;
        
        justify-content: space-around; 

        align-items: center;
        padding: 1rem;
    }

    .menu ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .menu ul li a {
        font-size: 1.1rem; 
    }

    .logo {
        max-width: 100px; 
    }
}

@media (max-width: 600px) {
    header {
        display: flex;
        
        justify-content: space-around; 

        align-items: center;
        padding: 1rem;
    }

    .menu ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .menu ul li a {
        font-size: 1rem; 
    }

    .logo {
        width: 150px; 

    }
}

@media (max-width: 1200px) {
    .filter-container {
        flex-direction: column; 
        align-items: center; 
        gap: 1rem; 
    }

    #type-filter {
        max-width: 250px; 
    }

    .filter-container input[type="range"] {
        max-width: 150px; 
    }
}

@media (max-width: 900px) {
    .filter-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    #type-filter {
        max-width: 220px; 
    }

    .filter-container input[type="range"] {
        max-width: 140px; 
    }
}

@media (max-width: 600px) {
    .filter-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem; 
    }

    #type-filter {
        max-width: 100%; 
    }

    .filter-container input[type="range"] {
        max-width: 100%; 
    }

    #price-value {
        font-size: 1rem; 
        margin-left: 0; 
    }
}

.property {
    position: relative; 
}

.vip-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffd700;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: block;
    animation: shine 1.5s infinite alternate; 
}

@keyframes shine {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.6);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 215, 0, 1);
        transform: scale(1.1);
    }
}