/*
** home styles
*/

/* Base Styles */
body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    background-color: var(--background-color);
}

/* Container 1 - Hero Section */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 20px 50px;
}

.image-section {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.image-section img {
    width: 100%;
    height: auto;
    border-radius: 30px;
}

.icons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
}

.icons div {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--sec-background);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icons div.active {
    background-color: #e36c2d;
}

.avatars {
    position: absolute;
    bottom: 60px;
    left: 50px;
    display: flex;
}

.avatars img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -10px;
}

.text-section h1 {
    font-size: 30px;
    margin: 0 0 20px;
    font-weight: 500;
}

.text-section span {
    font-weight: 200;
}

.buttons {
    margin-top: 20px;
    display: flex;
}

.buttons button {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    font-weight: 800;
    transition: 0.3s ease;
}

.buttons .primary {
    background-color: var(--primary);
    color: var(--white);
}

.buttons .secondary {
    background-color: #fbd7b6;
    color: var(--primary);
}

.filter-bar {
    margin-top: 60px;
    background-color: #fff7ed;
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 60%;
    left: 20%;
    position: absolute;
    direction: ltr;
    cursor: pointer;
}

.filter-bar .search {
    display: flex;
    align-items: center;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    gap: 10px;
    font-weight: bold;
}

.filter-bar .filter-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 15px;
    gap: 10px;
}

.filter-bar .filter-item:not(:first-child)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background-color: #e0d4c5;
}

.filter-bar .filter-item::before {
    content: url("../../../images/icons/dropdown_arrow.svg");
    position: absolute;
    left: 10px;
    top: 2px;
}

.filter-bar .filter-item:nth-child(3)::before {
    content: '';
    display: none;
}

.filter-bar .filter-item select {
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--primary);
    cursor: pointer;
    direction: rtl;
}

.filter-bar .filter-item select option {
    color: #aaa;
}

select option:disabled {
    color: #aaa;
}

.filter-bar .filter-item select::-ms-expand {
    display: none;
}

.filter-bar .filter-item div {
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
}

.filter-bar .filter-item div::-webkit-scrollbar {
    display: none;
}


.filter-bar .filter-item strong {
    color: #000;
    font-weight: 700;
}

.filter-bar .filter-item p {
    margin: 0;
    color: #aaa;
    font-size: 12px;
}

/* Container 2 - Property Types */
.container2 {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}


.title {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.star {
    color: #FFC107;
    margin-right: 1px;
}

.properties-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.property-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    margin: 0 auto;
    padding: 25px 0;
}

.property-icon {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FBE8C5;
    border-radius: 50%;
    margin-bottom: 10px;
}

.property-name {
    font-size: 18px;
    font-weight: bold;
    color: #444;
    text-align: center;
}

/* Individual property icons */
.house svg,
.apartment-building svg,
.hotel-room svg,
.villa svg {
    width: 80px;
    height: 80px;
}

.apartment-building svg,
.villa svg {
    width: 85px;
}

.hotel-room svg {
    width: 90px;
}

/* Container 3 - Features */
.container3 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
    color: #333;
    direction: rtl;
}

.header {
    margin-bottom: 30px;
}

.header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.header h2::before {
    left: -25px;
    top: -5px;
}

.header h2::after {
    left: -10px;
    top: -15px;
}

.header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    margin: 0 auto;
}

.icon-circle {
    background-color: #f8f8f8;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover .icon-circle {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-circle svg {
    width: 35px;
    height: 35px;
    fill: #D84315;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.4;
}

.features-grid-second {
    margin-top: 30px;
}

/* Container 4 - About Section */
.container4 {
    padding: 40px 40px 0;
    overflow: hidden;
    background-color: #FFEFD1;
}

.about-section {
    background: #FFEFD1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row-reverse;
    position: relative;
}

.image-left {
    position: absolute;
    left: 0;
    z-index: 0;
}

.image-left img {
    height: 600px;
}

.image-right img {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.about-left {
    text-align: center;
    position: relative;
}

.about-left img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    z-index: 9;
}

.about-right {
    position: relative;
}

.about-right h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-right p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.stats1 {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    background: #fff;
    text-align: center;
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    border: 2px solid var(--primary);
    align-items: center;
    width: 140px;
    justify-content: center;
}

.stat-item h4 {
    margin: 0;
    font-size: 16px;
    color: var(--primary);
}

.stat-item span {
    color: #000;
    font-size: 14px;
}

.stat-item img {
    width: 35px;
    margin-left: 17px;
}

.about-right .buttons .secondary {
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.about-right .buttons .secondary:hover {
    background-color: #3a1908;
}

.about-right .buttons .primary {
    background-color: #fbd7b6;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.about-right .buttons .primary:hover {
    background-color: #eac5a5;
}

/* Container 5 - Property Listings */

.container5 h1 {

    text-align: center;
    padding-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Container 6 - Testimonials */
.container6 {
    width: 100%;
    position: relative;
}

.testimonial-section {
    padding: 50px 20px;
    position: relative;
}

.testimonial-section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(141, 28, 28, 0.3);
    z-index: 1;
    border-radius: 20px;
}

.testimonial-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.testimonial-right-column,
.testimonial-left-column {
    flex: 1;
    min-width: 300px;
}

.testimonial-right-column {
    padding-left: 20px;
}

.testimonial-left-column {
    padding-right: 20px;
}

.testimonial-heading {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: right;
}

.testimonial-subheading {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: right;
    line-height: 1.6;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    margin-bottom: 20px;
}

.customer-info {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.customer-details {
    display: flex;
    flex-direction: column;
}

.customer-avatar {
    width: 30px;
    height: 30px;
    margin-left: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quotation-mark {
    color: #ffffff;
    font-size: 1.8rem;
}

.customer-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
}

.nav-button-right {
    width: 30px;
    height: 30px;
    background-color: transparent;
    color: #999;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button-right:hover {
    border-color: #888;
    color: #555;
}

.nav-button-left,
.nav-button {
    width: 30px;
    height: 30px;
    background-color: #853116;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
}

.progress-bar {
    height: 4px;
    background-color: #ddd;
    width: 40%;
    border-radius: 2px;
    position: relative;
}

.progress {
    position: absolute;
    height: 100%;
    width: 75%;
    background-color: val(--primary);
    border-radius: 2px;
}

.share-button {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    cursor: pointer;
    border: none;
}

/* Container 7 - App Banner */
.container7 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.app-banner {
    background: linear-gradient(to bottom, #e4b278, #ecc695);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    min-height: 250px;
}

.banner-content {
    flex: 1;
    padding-right: 15px;
    direction: rtl;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-content h1 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.banner-content p {
    font-size: 16px;
    color: #A63206;
    margin-bottom: 15px;
}

.banner-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
}

.banner-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.download-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    direction: rtl;
}

.app-button {
    display: flex;
    align-items: center;
    background-color: #000;
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    min-width: 150px;
}

.app-button img {
    height: 20px;
    margin-right: 8px;
}

.button-text {
    display: flex;
    flex-direction: column;
}

.small-text {
    font-size: 9px;
    font-weight: normal;
}

.large-text {
    font-size: 14px;
    font-weight: bold;
}

.app-store img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

.google-play img {
    width: 30px;
    height: 30px;
    margin-right: 20px;
}

/* Container 8 - Contact Form */
.container8 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/* Media Queries - Consolidated */
@media screen and (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media screen and (max-width: 768px) {
    .container2 {
        padding-top: 50px;
    }

    .filter-bar .filter-item:not(:first-child)::after .hero-container {
        flex-direction: column;
        padding: 15px;
        gap: 30px;
    }

    .text-section {
        margin-top: 0;
        width: 100%;
    }

    .filter-bar {
        position: relative;
        width: 100%;
        left: 0;
        margin-top: 30px;
        margin-bottom: 60px;
        flex-wrap: wrap;
        padding: 15px 10px;
        flex-direction: row
    }

    .about-section {
        flex-direction: column;
        gap: 30px;
    }

    .image-left {
        left: -20px;
        z-index: -1;
    }

    .image-left img {
        margin-left: -75px;
        margin-bottom: 900px;
        width: 100%;
    }

    .stats1 {
        gap: 10px;
    }

    .stat-item {
        width: 105px;
    }

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

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

    .testimonial-container {
        flex-direction: column;
        gap: 30px;
    }

    .testimonial-right-column,
    .testimonial-left-column {
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }

    .testimonial-heading,
    .testimonial-subheading {
        text-align: center;
    }

    .testimonial-heading {
        font-size: 2rem;
        text-align: center;
    }

    .progress-bar {
        width: 150px;
    }

    .app-banner {
        padding: 20px;
        min-height: 350px;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .banner-content {
        padding-right: 0;
        margin-bottom: 15px;
        padding: 0;
        width: 100%;
        margin-top: 20px;
        text-align: center;
    }

    .banner-image {
        width: 100%;
        margin-bottom: 15px;
        max-width: 100%;
        height: 180px;
    }

    .filter-bar .filter-item {
        width: 100%;
        padding: 12px 10px;
        border-bottom: 1px solid #e0d4c5;
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex: 1 1 auto;
        min-width: 45%;
        margin-bottom: 10px;
    }

    .filter-bar .filter-item:last-child {
        border-bottom: none;
    }

    .filter-bar .search {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
        /* border-bottom: 1px solid #e0d4c5;
        padding-bottom: 15px; */
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-subheading {
        text-align: center;
    }

    .download-buttons {
        justify-content: center;
    }

    .banner-image img {
        border-radius: 12px;
    }

    .image-section img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .about-left img {
        max-width: 100%;
    }

    .banner-image img {
        height: 100%;
        object-fit: cover;
    }

    .location-dropdown,
    .price-dropdown,
    .type-dropdown,
    .interests-dropdown {
        right: -50%;
        transform: translateX(50%);
        width: 250px;
    }

    .filter-bar .filter-item strong,
    .filter-bar .filter-item .filter-txt {
        font-size: 12px;
    }

    .filter-bar .filter-item img {
        width: 14px;
    }

    .location-dropdown,
    .price-dropdown,
    .type-dropdown,
    .interests-dropdown {
        width: 220px;
        right: 0;
        transform: translateX(0);
        left: -120px;
    }

    .hero-container {
        flex-direction: column;
        padding: 15px;
        gap: 30px;
    }


}

@media screen and (max-width: 576px) {

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

    .property-item {
        width: 100%;
    }

    .property-icon {
        width: 100px;
        height: 100px;
    }

    .property-name {
        font-size: 15px;
    }

    .col-6 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .stat-item {
        width: 120px;
        padding: 5px;
    }

    .stat-item h4 {
        font-size: 14px;
    }

    .stat-item span {
        font-size: 12px;
    }

    .stat-item img {
        width: 25px;
        margin-left: 10px;
    }

    .location-dropdown,
    .price-dropdown,
    .type-dropdown,
    .interests-dropdown {
        right: -70px;
        width: 250px;
    }

    .location-search input {
        padding-left: 80px;
    }

    .location-button {
        padding: 5px 10px;
        font-size: 12px;
    }

    .price-range {
        flex-direction: column !important;
        gap: 10px;
    }

    .price-input-group {
        width: 100%;
    }

    .filter-bar {
        position: relative;
        margin-bottom: 80px;
        padding: 10px;
    }

    .filter-bar .filter-item {
        flex: 1 0 100%;
        border-bottom: 1px solid #e0d4c5;
        margin: 0;
        padding: 10px 0;
    }

    .filter-bar .filter-item:last-child {
        border-bottom: none;
    }
}

@media screen and (max-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-heading {
        font-size: 1.8rem;
    }

    .testimonial-card {
        padding: 15px;
    }

    .customer-name {
        font-size: 1rem;
    }

    .progress-bar {
        width: 100px;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
    }

    .feature-title {
        font-size: 12px;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .buttons button {
        width: 100%;
        margin-left: 0;
    }

    .text-section {
        text-align: center;
    }
}

@media screen and (min-width: 767px) {
    .text-section {
        margin-top: -60px;
    }
}

/* location selector */
.custom-location-selector {
    position: relative;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    direction: rtl;
    width: 100px;
}

.selected-location {
    display: inline-block;
    color: var(--gray-light);
}

.location-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: -60px;
    width: 300px;
    background-color: #fff7ed;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px;
    margin-top: 5px;
    direction: rtl;
}

.location-header {
    margin-bottom: 15px;
}

.location-search {
    margin-bottom: 15px;
    position: relative;
}

.location-search input {
    width: 100%;
    padding: 10px;
    padding-left: 90px;
    border: 1px solid #d3d3d3;
    border-radius: 75px;
    text-align: right;

}

.location-button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #db9d48;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 15px;
    padding: 5px 15px;
    font-size: 14px;
    cursor: pointer;
}

.location-options {
    display: flex;
    flex-direction: column;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #d3d3d3;
    border-radius: 22px;

}

.location-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.location-option:hover {
    background-color: #f9f9f9;
}

.location-option.selected {
    background-color: #f6f6f6;
}

.location-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.location-name {
    font-weight: bold;
    display: inline-block;
    color: var(--gray-light);
    font-size: larger;

}

.location-badge {
    background-color: #8950ff;
    color: var(--white);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin-right: 8px;
}

.location-icon {
    display: inline-flex;
    align-items: center;
}


/* price selector */
.custom-price-selector {
    position: relative;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    direction: rtl;
    width: 100px;
}

.selected-price {
    display: inline-block;
    color: var(--gray-light);
}

.price-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: -110px;
    width: 280px;
    background-color: #fff7ed;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px;
    margin-top: 5px;
    direction: rtl;
}

.price-header {
    margin-bottom: 15px;
}

.price-range {
    display: flex !important;
    Justify-content: center !important;
    Align-items: center !important;
    Gap: 5px;
    flex-direction: row !important;
    margin-bottom: 15px;
}

.price-input-group {
    display: flex;
    flex-direction: column;
    width: 48%;
}

.price-input-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--gray-light);
    font-size: 14px;
}

.price-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d3d3d3;
    border-radius: 10px;
    text-align: center;
}

.price-button {
    width: 100%;
    background-color: #db9d48;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 15px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.price-button:hover {
    background-color: #c88d3d;
}

/* type selector */
.custom-type-selector {
    position: relative;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    direction: rtl;
    width: 100px;
}

.selected-type {
    display: inline-block;
    color: var(--gray-light);
}

.type-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: -100px;
    width: 300px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px;
    margin-top: 5px;
    direction: rtl;
    background-color: #fff7ed;
}

.type-header {
    margin-bottom: 15px;
}

.type-options {
    display: flex;
    flex-direction: column;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #d3d3d3;
    border-radius: 22px;
}

.type-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.type-option:hover {
    background-color: #f9f9f9;
}

.type-option.selected {
    background-color: #f6f6f6;
}

.type-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.type-name {
    font-weight: bold;
    display: inline-block;
    color: var(--gray-light);
    font-size: larger;
}

.type-icon {
    display: inline-flex;
    align-items: center;
}


/* interests selector */
.custom-interests-selector {
    position: relative;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    direction: rtl;
    width: 100px;
}

.selected-interest {
    display: inline-block;
    color: var(--gray-light);
}

.interests-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: -105px;
    width: 300px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px;
    margin-top: 5px;
    direction: rtl;
    background-color: #fff7ed;
}

.interests-header {
    margin-bottom: 15px;
}

.interests-options {
    display: flex;
    flex-direction: column;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #d3d3d3;
    border-radius: 22px;
}

.interest-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.interest-option:hover {
    background-color: #f9f9f9;
}

.interest-option.selected {
    background-color: #f6f6f6;
}

.interest-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.interest-name {
    font-weight: bold;
    display: inline-block;
    color: var(--gray-light);
    font-size: larger;
}

.interest-icon {
    display: inline-flex;
    align-items: center;
}

@media screen and (max-width: 992px) {

    .hero-container {
        padding: 20px 30px;
    }

    .text-section h1 {
        font-size: 26px;
    }

    .filter-bar {
        width: 100%;
        right: 0px;
        padding: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        row-gap: 10px;
        z-index: 10;
    }

    .properties-container {
        gap: 10px;
    }

    .property-item {
        width: 180px;
    }

    .property-icon {
        width: 130px;
        height: 130px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .about-section {
        flex-direction: column;
        gap: 40px;
    }

    .image-left,
    .image-right img {
        display: none;
    }

    .about-left {
        width: 100%;
        margin-bottom: 30px;
    }

    .about-left img {

        margin-top: 25px;
    }

    .about-right {
        width: 100%;
        text-align: center;
    }

    .stats1 {
        justify-content: center;
    }

    .testimonial-heading {
        font-size: 2.5rem;
    }

    .testimonial-subheading {
        font-size: 1rem;
    }

    .app-banner {
        padding: 20px;
    }

    .banner-content h1 {
        font-size: 18px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .banner-image {
        max-width: 350px;
    }

    .filter-bar .filter-item {
        flex: 1;
        min-width: 45%;
    }

}

@media screen and (max-width: 1400px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 375px) {
    .text-section h1 {
        font-size: 22px;
    }

    .buttons button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .property-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }

    .property-name {
        font-size: 14px;
    }

    .testimonial-heading {
        font-size: 1.5rem;
    }

    .share-button {
        padding: 8px 20px;
    }

    .app-button {
        min-width: 120px;
    }
}

@media screen and (max-width: 991px) {
    .property-icon {
        width: 110px;
        height: 110px;
    }

    .property-name {
        font-size: 16px;
    }
}

@media screen and (max-width: 767px) {
    .container2 {
        padding: 30px 15px;
    }

    .title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

@media screen and (min-width: 768px) and (max-width: 834px) {
    .filter-bar {
        width: 90%;
        left: 5%;
        flex-wrap: wrap;
        padding: 15px;
        margin-bottom: 60px;
    }

    .filter-bar .filter-item {
        width: 48%;
        margin-bottom: 10px;
        padding: 10px 5px;

    }

    .filter-bar .filter-item:not(:first-child)::after {
        display: none;
    }

    .filter-bar .search {
        width: 100%;
        margin-bottom: 15px;
        justify-content: center;
        order: -1;
    }


    .location-dropdown,
    .price-dropdown,
    .type-dropdown,
    .interests-dropdown {
        right: 0;
        width: 250px;
    }
}

@media screen and (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {
    .filter-bar .filter-item {
        width: 100%;

        border-bottom: 1px solid #e0d4c5;
        padding: 12px 10px;
        margin: 0;
    }

    .filter-bar .filter-item:last-child {
        border-bottom: none;
    }
}

@media screen and (min-width: 768px) and (max-width: 920px) {
    .container2 {
        padding-top: 70px;
    }
}

@media screen and (min-width: 900px) and (max-width: 920px) {
    .filter-bar {
        width: 90%;
        left: 5%;
        flex-wrap: wrap;
        padding: 15px;
        margin-bottom: 60px;
    }

    .filter-bar .filter-item {
        width: 48%;
        margin-bottom: 10px;
        padding: 10px 5px;
    }

    .filter-bar .filter-item:not(:first-child)::after {
        display: none;
    }

    .filter-bar .search {
        width: 100%;
        margin-bottom: 15px;
        justify-content: center;
        order: -1;
    }


    .location-dropdown,
    .price-dropdown,
    .type-dropdown,
    .interests-dropdown {
        right: 0;
        width: 250px;
    }
}


@media screen and (min-width: 900px) and (max-width: 920px) and (orientation: portrait) {
    .filter-bar .filter-item {
        width: 100%;
        border-bottom: 1px solid #e0d4c5;
        padding: 12px 10px;
        margin: 0;
    }

    .filter-bar .filter-item:last-child {
        border-bottom: none;
    }
}

/* customer reviews pop-up */

.feedback-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-container {
    background-color: white;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.popup-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #006633;
    margin: 0;
    text-align: center;
}

.popup-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

.star-rating {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.star {
    font-size: 24px;
    color: #e0e0e0;
    margin: 0 5px;
    cursor: pointer;
}

.star:hover, .star.active {
    color: #ffc107;
}

.popup-body {
    padding: 15px 20px;
}


.popup-body input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.textarea-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    min-height: 80px;
    border: none;
    background-color: transparent;
    resize: none;
    outline: none;
    font-size: 14px;
}

.submit-btn-popup {
    display: block;
    margin: 20px auto 0;
    width: 450px;

    padding: 15px 0;
    background-color: #4b1200;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 50px;
}

.submit-btn-popup:hover {
    background-color: #555;
}

.footnote {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-top: 15px;
    padding: 0 20px 20px;
}

/*success popup */
.success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.success-popup-container {
    background-color: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.success-close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon img,
.success-icon .star-svg {
    width: 70px;
    height: 70px;
}

.star-svg {
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.1));
}

.success-title {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.success-button {
    background-color:  var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: background-color 0.3s;
}

.success-button:hover {
    background-color: var(--primary);
}

@media (max-width: 480px) {
    .success-popup-container {
        width: 85%;
        padding: 25px 15px;
    }

    .success-title {
        font-size: 18px;
    }

    .success-message {
        font-size: 13px;
    }
}
