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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: #1a202c;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .625rem 1.25rem;
    font-size: .875rem;
    font-weight: 500;
    border-radius: .375rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .2s, color .2s, border-color .2s;
}

.primary {
    background-color: #1a202c;
    color: #ffffff;
}

.primary:hover {
    background-color: #2d3748;
}

.outline {
    background-color: transparent;
    color: #1a202c;
    border-color: #e2e8f0;
}

.outline:hover {
    background-color: #1a202c;
    color: #ffffff;
}

.small {
    padding: .5rem 1rem;
    font-size: .75rem;
}

.tag {
    display: inline-block;
    border-radius: .5rem;
    background-color: #f7fafc;
    padding: .25rem .75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1.875rem;
}

.header {
    position: fixed;
    width: 100%;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: #ffffff88;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1);
}

.logo img {
    height: 4rem;
    object-fit: fill;
    width: 100px;
    border-radius: .5rem;
}

 .nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header .nav a {
    font-size: .875rem;
    font-weight: 500;
    position: relative;
}

.nav .nav__link:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: .065rem;
    background-color: currentColor;
    cursor: pointer;
}

.dropdown-toggle {
    position: relative;
    cursor: pointer;
}

.drop-down {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1);
    border-radius: .5rem;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 150px;
    height: 150px;
    cursor: pointer;
    z-index: 10;
}

.dropdown-toggle:hover .drop-down {
    display: flex;
}

.dropdown-toggle:hover .drop-down li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.dropdown-toggle:hover .drop-down li:hover {
    background-color: #e2e8f0;
}

.mode-toggle{
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}


.main {
    flex: 1;
}

section {
    width: 100%;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -.025em;
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.section-header p {
    max-width: 900px;
    color: #4a5568;
    font-size: 1.125rem;
}

.hero-section {
    background-color: #f7fafc;
    padding-top: 6rem;
    padding-bottom: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-inline: 1.5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    padding: 0 1rem;
}

.hero-text {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -.025em;
    margin-bottom: .5rem;
}

.hero-text p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #4a5568;
    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: .5rem;
}

.listing-button {
    gap: .5rem;
}

.view-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    margin-top: 1.5rem;
}

.view-item span {
    font-size: 1.25rem;
    color: #4a5568;
}


.hero-img {
    display: none;
    max-width: 100%;
    height: auto;
    border-radius: .75rem;
    object-fit: cover;
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.hero-img:hover {
    transform: rotate(3deg) scale(1.03);
}

.search-filter-section {
    background-color: #f7fafc8f;
}

.search-form {
    bottom: 100%;
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #ffffff;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: .875rem;
    align-self: center;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input,
.search-form select {
    flex: 1;
    padding: .625rem .75rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
}

.search-form input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, .2);
}

.search-form button {
    background-color: #000;
    color: #ffffff;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    gap: .5rem;
}

.search-form button:hover {
    background-color: #333;
}

.featured-section {
    background-color: #ffffff;
}

.loading-spinner {
  width: 100px;
  height: 100px;
  margin: 20px auto;
  animation: spin 1s linear infinite;
  display: block;
  place-self: center;
  border-radius: 50%;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loading-indicator {
  text-align: center;
  color: #666;
  font-size: 1rem;
  padding: 20px;
}

.properties-grid {
    display: grid;
    gap: 1.5rem;
    padding-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
}

.properties-card {
    background-color: #f7fafc;
    border-radius: .5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.properties-card:hover {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .199);
}

.properties-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.properties-card:hover .properties-image {
    transform: scale(1.1);
}

.properties-card .available-filter {
    position: relative;
    background-color: rgba(0, 228, 76, 0.507);
    right: 0;
    margin: .5rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: .5rem;
}

.properties-card .available {
    background-color: rgba(0, 228, 76, 0.507);
}

.properties-card .sold {
    background-color: rgba(255, 0, 0, 0.507);
}

.properties-card .available-filter h4 {
    padding: .3rem;
    font-size: .875rem;
    font-weight: 700;
}


.properties-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0 1.5rem 1rem;
    margin-bottom: .5rem;
}

.properties-card p {
    font-size: .875rem;
    color: #4a5568;
    padding: 0 1.5rem 1rem;
    flex-grow: 1;
}

.properties-card h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #4a5568;
    padding: 0 1.5rem 1rem;
}

.properties-card .land-contents {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem 1rem;
    color: #4a5568;
}

.properties-buttons{
    display: flex;
    gap: .5rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.more-button {
    display: flex;
    place-self: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.about-section {
    background-color: #f7fafc;
}

.about-grid {
    display: grid;
    gap: 2rem;
    padding-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    text-align: center;
    align-items: center;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
}

.about-item i {
    background-color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: 500;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
}

.about-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: .5rem;
}

.about-item p {
    font-size: .875rem;
    color: #4a5568;
}

.footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.footer-container {
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-logo img{
    width: 150px;
    height: 100px;
    border-radius: .5rem;
}

.footer-description {
    font-size: .875rem;
    color: #4a5568;
}

.footer-social a {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2d3748;
    padding: .35rem;
    border-radius: .5rem;
}

.footer-social a:hover {
    background-color: #e2e8f0;
}

.footer-section a{
    font-size: .875rem;
    color: #4a5568;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.footer-newsletter p {
    max-width: 300px;
    font-size: .875rem;
    color: #4a5568;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.newsletter-form input {
    padding: .625rem .75rem;
    border-radius: .5rem;
    border: 1px solid #e2e8f0;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, .2);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-contact-item {
    font-size: .875rem;
}

.footer-contact-item span {
    color: #4a5568;
}

.footer-contact-item .map-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: .875rem;
    border-top: 1px solid #e2e8f0;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: .875rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.footer-copyright {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    color: #4a5568;
}

.footer-legal ul{
    display: flex;
    flex-direction: column;
    font-size: .875rem;
}

.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: #4a5568;
    box-shadow: 0 4px 8px hsla(166, 85%, 8%, .4);
    color: #f7fafc;
    display: inline-flex;
    padding: 6px;
    font-size: 1.125rem;
    z-index: 100;
    transition: bottom .4s, transform .4s;
}

.scrollup:hover {
    transform: translateY(-.2rem);
}

.show-scroll {
    bottom: 3rem;
}

@media (max-width: 360px) {
    .hero-text h1{
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

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

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        flex-direction: column;
        width: 100%;
        display: none;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
        padding: 2rem 0;
        align-items: center;
    }

    .nav.nav__menu-active {
        display: flex;
    }

    .drop-down {
        position: static;
        box-shadow: none;
        border-top: 1px solid #e2e8f0;
        margin-top: .5rem;
    }

    .view-content span {
        font-size: .875rem;
    }

    .properties-grid,
    .about-grid,
    .search-form {
        margin-inline: .875rem;
    }
}


@media (min-width: 640px) {
    .header .nav {
        gap: 1.5rem;
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-legal ul {
        flex-direction: row;
        gap: 1.5rem;
    }
    
}

@media (min-width: 768px) {
    section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .hero-section {
        text-align: left;
        gap: 10rem;
    }

    .hero-text {
        text-align: left;
        margin-bottom: 0;
    }

    .hero-text h1 {
        font-size: 3.75rem;
    }

    .hero-text p {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .footer-top {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .footer-bottom {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

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

}

@media (min-width: 1024px) {
    .header {
        padding-inline: 4rem;
    }

    section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .hero-content {
        grid-template-columns: 1fr 600px;
    }

    .hero-images {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
        max-width: 800px;
    }

    .hero-img {
        display: block;
        width: 300px;
        height: auto;
        aspect-ratio: 1 / 1;
        order: 2;
    }

    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-form {
        max-width: 1200px;
    }
}

@media (min-width: 1280px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

