* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#ota-hero {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#ota-hero .main-title{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2;
    text-align: center;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px black;
    font-size: clamp(2rem, 1rem + 5vw, 5rem);
}

.hero-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    transition: all 0.5s ease;
}

.hero-card {
    box-shadow: 0 0 3px black inset;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
    position: relative;
    display: flex;
    align-items: top;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    width: 20%; /* Start with equal width for each card */
}

.card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    text-align: center;
    transition: opacity 0.5s ease;
}

.card-title {
    color: white;
    margin-top: 90px;
    font-size: 24px;

}

.card-heading {
    opacity: 0;
    font-size: 32px;
    margin: 10px 0;
    transition: opacity 0.5s ease;
}

.card-btn {
    opacity: 0;
    padding: 10px 20px;
    background-color: #ff9000;
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.hero-card:hover .card-heading,
.hero-card:hover .card-btn {
    opacity: 1;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
}

.filter-container input, .filter-container select, .filter-container button {
    padding: 10px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-container button {
    background-color: #ff9000;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
}

@media screen and (max-width: 768px) {
    .hero-card {
        width: 100%;
    }

    .filter-container {
        flex-direction: column;
        gap: 10px;
    }

    .card-title{
        font-size: 16px;
        margin-top: 50px;
    }
}


.header-container {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Styling for heading and subheading */
.header-container h1 {
    /* font-size: 2.5rem; */
    color: #35468e;
    margin-bottom: 10px;
}

.header-container h1 span{
    color: #BF8F2C;
}

.header-container p {
    /* font-size: 1.2rem; */
    margin-bottom: 30px;
    color: #6e624b;
}


.content-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    flex-wrap: wrap;
}



/* Sidebar Styles */
.sidebar {
    flex: 1;
    max-width: 250px;
    padding: 20px;
    background-color: #f4e7d5;
    border-radius: 10px;
    margin-right: 20px;
    margin-bottom: 20px;
    transition: 0.3s linear;
}

.map{
    width: 100%;
    position: relative;
    height: 100%;
}

.map img{
    border-radius: 10px;
    width: 100%;
    height: 100%;
}

.map-btn {
    position: absolute;
    background-color: #BF8F2C;
    bottom: 3px;
    width: 50%;
    left: 50%;
    transform: translate(-50%,0%);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #BF8F2C;
    margin-bottom: 20px;
    transition: 0.3s linear;
}

.map-btn:hover{
    background-color: white;
    color: #BF8F2C;


}

.filter-section h3, .filter-section p, .filters h4 {
    margin-bottom: 10px;
}

.budget-range {
    width: 100%;
    margin-bottom: 20px;
}

.filters .filter{
    margin-bottom: 30px;
}

.info-description{
    text-align: center;
    display: none;
}

.filters .filter label {
    display: block;
    height: auto;
    box-shadow: none;
    margin-bottom: 10px;
}

.filter-btn {
    display: none;
    background-color: #6e624b;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
}

@media (max-width: 1220px) {

    
.info-description{
    display: block;
}
    
.sidebar-section{
    width: 100%;
}

    .sidebar {
        width: 100%;
        max-width: 100%;
    }
        
    .filter-content {
        display: none; /* Initially hide all filter content */
        padding-left: 20px; /* Indent the filter options */
        background-color: #f4e7d5; /* Background for options */
    }
    
    .filter-title {
        cursor: pointer; /* Show that this is clickable */
    }
    
    .filter-title:hover {
        text-decoration: underline; /* Underline on hover */
    }
    
    .filter-btn {
        display: block;
    }

    .sidebar{
        background-color: transparent;
    }

    .map,.filter-section h3, .filter-section p, .filter-section .budget-range {
        display: none;
    }

    .filters{
        width: 100%;
        display: flex;
        height: 300px;
        flex-direction: row;
        gap: 20px;
        overflow-y: hidden;
        overflow-x: scroll;
    }

    .filters .filter{
        margin: 0px;
        border-radius: 10px;
        height: 300px;
        min-width: 200px;
        max-width: 300px;
        width: 100%;
        padding: 20px;
        overflow-y: scroll;
        background-color: #f4e7d5;
    }

    .filters .filter:nth-child(1){
        overflow-y: hidden;
    }

}

/* Main content styling */
.content {
    flex: 3;
}

.content h1 {
    /* font-size: 2.5rem; */
    color: #35468e;
    margin-bottom: 20px;
}

.content h1 span {
    color: #a68030;
}

.content p {
    margin-bottom: 40px;
}

.featured-property {
    background: linear-gradient(270deg, #F8F3ED 0%, #EDE5DB 100%);
    display: flex;
    box-shadow: 2px 3px 6px black;
    flex-direction: row;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.featured-image {
    width: 100%;
    height: 35vh;
    position: relative;
    overflow: hidden;
    max-width: 40%;
    border-radius: 10px;
    margin-right: 20px;
}

.featured-image .heart{
    cursor: pointer;
    z-index: 9;
    color: black;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    border: 1px solid white;
    background-color: white;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.heart.clicked{
    color: red;
}

.featured-image img{
    width: 100%;
    height: 100%;
}

.property-info {
    flex: 1;
    margin-top: 20px;
}

.property-info h2 {
    color: #BF8F2C;
    margin-bottom: 10px;
}

.property-info p {
    margin-bottom: 10px;
}

.property-info ul {
    list-style-type: none;
    margin: 0px 0;
}

.property-info ul li {
    margin: 5px 0;
}

.property-info ul li:nth-child(2),
.property-info ul li:nth-child(3){
    color: #008234; 
    text-align: start;
}

.featured-property .btn{
    justify-content: end;
}

.featured-property .book-btn {
    background-color: #e04735;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* More properties section */
/* General Reset */
.more-properties {
    border-radius: 10px;
    background-color: white;
    position: relative;
    text-align: center;
    margin: 40px 0;
    overflow-x: hidden;
}

.more-properties h2 {
    /* font-size: 1.8rem; */
    margin-bottom: 20px;
    color: #BF8F2C;
}
.more-properties .close-btn-properties {
    position: absolute;
    top: 0px;
    right: 10px;
    margin: 0;
    padding: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10px;
    height: 10px;
    /* background-color: transparent; */
    border: none;
    font-weight: bold;
    font-size: 1.2rem;
    color: #000;
    cursor: pointer;
    z-index: 10;
}

.more-properties .close-btn-properties:hover {
    color: white;
    background-color: #c91f0c; /* Change color on hover for better UX */
}   

/* Slider wrapper */
.slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Slider container */
.property-slider {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    transition: transform 0.4s ease-in-out;
}

.property-slider::-webkit-scrollbar{
    display: none;
}

/* Each card */
.property-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: start;
    min-width: calc(100% / 4 - 20px); /* For 5 cards */
    flex: 0 0 calc(100% / 4 - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.property-card img {
    width: 100%;
    height: 18vh;
    border-radius: 10px;
    margin-bottom: 10px;
}

.property-card h3 {
    font-size: 20px;
    color: #35468e;
    margin-bottom: 10px;
}

.property-card p {
    color: #6e624b;
    margin-bottom: 10px;
}

.property-card .stars{
    display: flex;
}

.property-card .location{
    display: flex;
    justify-content: start ;
    align-items: center;
}

.property-card .location p{
    margin: 0 5px;
}

.more-properties .view-btn {
    width: 100%;
    margin-bottom: 0px;
    background-color: #e04735;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Slider navigation buttons */
.more-properties .prev-btn,.more-properties  .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5) ;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1;
    margin: 0px;
}

.prev-btn {
    left: 0px;
}

.next-btn {
    right: 10px;
}


/* Responsive adjustments */
@media (max-width: 996px) {
    .property-card {
        min-width: calc(100% / 3 - 20px); /* For 3 cards */
        flex: 0 0 calc(100% / 3 - 20px);
    }


}

@media (max-width: 768px) {
    .property-card {
        min-width: calc(100% / 2 - 20px); /* For 2 cards */
        flex: 0 0 calc(100% / 2 - 20px);
    }
}

@media (max-width: 480px) {
    .property-card {
        min-width: 100%; /* For 1 card */
        flex: 0 0 100%;
    }

    .property-slider {
        gap: 10px;
    }
}


#app{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app .container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.app .container .image img {
    /* margin-left: 100px; */
    width: 350px;
    scale: 1;
    margin-top: 0px;
    margin-left: 100px;
}

.app .container .image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

@media (max-width:1440px) {
    .app .container .image{
        height: auto;
    }
}


    @media (max-width: 1220px) {
    .content-container {
        flex-direction: column;
    }

    .content {
        max-width: 100%;
    }

    
    .featured-image {
        width: 100%;
        position: relative;
        margin-right: 0;
        margin-bottom: 20px;
        overflow: hidden;
    }
    

    .featured-image img{
        width: 100%;
        height: 100%;
    }
    .property-info {
        margin-left: 20px;
        align-items: start;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 0;
    }
    
    .featured-property .btn{
        display: flex;
        justify-content: center;
    }

        
.info-description{
    display: none;
}

.sidebar{
    transform: translateY(-100px);
    opacity: 0;
    display: none;
}

}

/* For mobile devices (max-width 768px) */
@media (max-width: 768px) {
    .featured-property {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: center;

    }

    
    .featured-image{
        width: 100%;
        max-width: 100%;
    }



    .featured-image img{
        width: 100%;
        height: 100%;
    }
    .content h1 {
        /* font-size: 2rem; */
        text-align: center;
    }

    .content p {
        /* font-size: 1.2rem; */
        text-align: center;
    }
}

/* For small mobile devices (max-width 480px) */
@media (max-width: 480px) {
    
    .featured-property{
        display: flex;
        flex-direction: column;
    }


    .book-btn,
    .view-btn {
        padding: 8px 15px;
        /* font-size: 0.9rem; */
    }
}
