/* =========================================
   PART 1: HERO SECTION (From About Us)
   ========================================= */
.hero-section {
    height: 400px;
    background-size: cover;
    background-position: 50% 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    padding-top: 100px;
    min-height: auto;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-section-content {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1600px;
}

.hero-section h1 {
    color: #fff;
    font-size: 40px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    margin: 0;
    white-space: nowrap;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: rgb(255 255 255 /50%);
}

.relative-z {
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .hero-section {
        height: 345px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 200px;
        padding-top: 40px;
    }

    .hero-section h1 {
        font-size: 16px;
    }
}

/* =========================================
   PART 2: PROPERTY LISTING STYLES (Original)
   ========================================= */
body {
    background: #27292b;
    background-image: url(../images/texture06.webp);
    background-position: center center;
    background-repeat: repeat;
    color: #1a1919;
}

a {
    text-decoration: none;
}

/* Adjust main margin if header is fixed/overlaying */
/* main#primary {} Removed empty rule */

/* --- Search Section & Custom Selects --- */
.search-section {
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
}

/* .search-content {} Removed empty rule */

.select-list-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    width: 100%;
    gap: .15rem;
    border: 1px solid #595959;
    border-radius: 2rem;
    background: #ffffff;
}

.search-bar {
    display: flex;
    margin-bottom: 10px;
    background: transparent;
    justify-content: space-between;
}

.search-bar .form-group {
    text-align: left;

    position: relative;
    padding: 0px .5rem;
    width: 100%;
}

.search-bar input {
    border: none;
    padding: .5rem 1rem;
    flex-grow: 1;
    font-size: 1rem;
    font-family: var(--e-global-typography-text-font-family), sans-serif;
    font-weight: 300;
    background: #ffffff;
    border-radius: 2rem;
    color: #4d4c47;
}

.search-bar input:focus {
    background: #fafaf2;
    box-shadow: none;
}

.search-bar button {
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 300;
    font-size: 1rem;
    background: #4d4c47;
    line-height: 1.25;
    min-width: 120px;
    display: flex;
    justify-content: space-between;
    border-radius: 2rem;
    gap: 5px;
    line-height: 15px;
}

.search-bar button:hover {
    background: #303335;
    box-shadow: 0px 0px 2px 1px #afafaf;
}

/* --- Custom Select Logic CSS --- */
.custom-select-container {
    position: relative;
    /* width handled by flex/parent */
}

.original-select {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    color: #4d4c47;
    font-family: var(--e-global-typography-text-font-family), sans-serif;
    font-weight: 300;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    border-radius: 2rem;
}

.select-trigger::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-style: solid;
    border-width: 0 2px 2px 0;
    border-color: #606770;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.custom-options {
    position: absolute;
    transform: translateX(10%);
    background-color: #fafaf2;
    border: 1px solid #ccd0d5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    margin: 0px .5rem;
    left: 0;
    right: 0;
    transform: translateY(-20px);
    transition: opacity 0.2s ease, visibility 0s 0.2s, transform 0.2s ease;
}

.custom-option {
    padding: .25rem .75rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1c1c1c;
    font-family: "Lato", serif;
    font-weight: 300;
    font-size: 1rem;
}

.custom-option.dn {
    display: none;
}

.custom-option:hover,
.custom-option.selected {
    background-color: #4d4c47;
    color: #fff;
    font-weight: 500;
}

.custom-select-container.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.custom-select-container.open .select-trigger::after {
    transform: rotate(225deg);
}

.search-section .sortby {
    min-width: 140px;
    background: #1c1c1c;
    color: #fff;
}

.sortby .select-trigger {
    color: #fff;
}

.sortby .select-trigger::after {
    border-color: #fff;
}

/* --- Property Card Styles --- */
.property-card {
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    height: auto !important;
    margin: 10px 0;
    position: relative;
}

.col-md-6 {
    padding: .25rem;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.property-card__info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-end;
    gap: 15px;
}

.property-card__stats {
    display: flex;
    gap: 5px;
    padding-bottom: 0;
    color: #4d4c47;
    font-size: 0.9rem;
    justify-content: flex-start;
    align-items: flex-end;
}

.property-card__stats span {
    display: flex;
    align-items: flex-end;
    font-family: "Lato", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #4d4c47;
    /* padding-left: 5px; */
    gap: .15rem;
    line-height: 18px;
}

.property-card__stats span:first-child {
    padding-left: 0;
}

.property-card__stats i {
    margin-left: 0.4rem;
    color: #4d4c47;
}

.elementor-icon-list-icon {
    display: inline-block;
    fill: #4d4c47;
    width: 1em;
    height: 1em;
}

.property-card__address {
    display: flex;
    justify-content: space-between;
}

.property-card__title {
    font-size: 20px;
    font-weight: 400;
    color: #4d4c47;
    margin: 0;
    font-family: "Lato", sans-serif;
    margin-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-card__subtitle {
    font-size: 18px;
    color: #4d4c47;
    margin: 0;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-card__statsprice {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-end;
}

.property-card__statsprice h5 {
    font-family: "Lato", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #4d4c47;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
}

.property-card__share {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.property-card__share a {
    text-decoration: none !important;
    font-size: 0.9rem !important;
    color: #4d4c47 !important;
    margin: 0 !important;
    font-family: 'Playfair Display' !important;
}

/* Image Utilities */
.property-card img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}

.property-card .carousel-control-next-icon,
.property-card .carousel-control-prev-icon {
    background-color: rgba(0, 0, 0, .4);
    border-radius: 50%;
}

/* --- Pagination --- */
.pagination .page-item .page-link {
    background: transparent;
    border-radius: 2rem;
    padding: .35rem 1rem;
    line-height: 1.75;
    border: 2px solid #ffffff;
    color: #ffffff;
    margin: .25rem;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 2rem;
}

.pagination .page-item .page-link:hover,
.pagination .page-item.active .page-link {
    background-color: #ffffff;
    color: #4d4c47;
    border-color: #ffffff;
}

/* --- Misc --- */
.no-property-message {
    text-align: center;
    padding: 4rem;
    color: #dadada;
    margin: 0 2rem;
    background: #f7f7f7;
    border-radius: 20px;
}

.no-property-message i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.no-property-message p {
    font-size: 3rem;
    margin: 0;
}

.btn-dark {
    background-color: #212529;
    border-color: #212529;
}

.btn-outline-secondary {
    color: #4b4848;
    font-family: 'Lato';
    border-radius: 0;
}

.btn-outline-secondary:hover {
    background: #1a1919;
    border: 1px solid #1a1919;
    color: #fff;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .search-bar button {
        padding: .75rem 1.5rem;
        font-size: 1rem;
    }

    .search-section .bed {
        min-width: 90px;
    }

    .search-section .type {
        min-width: 90px;
    }

    .search-section .budget {
        min-width: 112px;
    }

    /* Property Card Responsive */
    .property-card__address h5 {
        font-size: 13px;
        margin: 0;
    }

    .property-card__stats span {
        font-size: 11px;
        line-height: 11px;
    }

    .property-card__statsprice h5 {
        font-size: 11px;
    }
}

@media (max-width: 991px) {
    .image-main {
        height: 170px;
    }

    .image-small {
        height: 83px;
    }

    .search-section select.form-select {
        font-size: 1rem;
        padding: 0 1.75rem 0 0.15rem;
    }

    .search-bar input {
        font-size: 1rem;
        padding: .25rem .5rem;
    }

    .select-trigger {
        padding: .25rem .5rem;
    }

    .search-section .bed {
        min-width: 70px;
    }

    .search-section .type {
        min-width: 80px;
    }

    .search-section .budget {
        min-width: 92px;
    }

    .search-section .sortby {
        min-width: 112px;
    }

    .search-section .btn-dark {
        min-width: 117px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 175px;
        padding-top: 40px;
    }

    .hero-section h1 {
        font-size: 18px;
    }

    .image-main {
        height: 170px;
    }

    .image-small {
        height: 83px;
    }

    .search-section select.form-select {
        font-size: .65rem;
        padding: 0 1.75rem 0 0.15rem;
    }

    .select-trigger,
    .custom-option {
        font-size: .65rem;
        padding: 0.25rem 0.25rem;
    }

    .search-bar input {
        font-size: .65rem;
        padding: 4px 6px;
        min-width: 53px;
        margin-right: 0px !important;
    }

    .search-bar button {
        padding: .5rem .65rem;
        font-size: .65rem;
    }

    .search-section .bed {
        min-width: 40px;
    }

    .search-section .type {
        min-width: 60px;
    }

    .search-section .budget {
        min-width: 55px;
    }

    .search-section .btn-dark {
        min-width: 111px;
    }
}

@media (max-width: 575px) {
    .select-trigger::after {
        width: 5px;
        height: 5px;
        border-width: 0 1px 1px 0;
    }

    .search-section .btn-dark {
        min-width: 30px;
    }

    .property-card__info {
        padding: .5rem 0;
    }
}

@media (max-width: 375px) {
    .marketing {
        padding: 0 2px;
    }

    .search-bar .form-group {
        padding: 0px .25rem;
    }

    .property-card__title {
        font-size: .9rem;
    }

    .property-card__subtitle {
        font-size: .7rem;
    }

    .property-card__share a {
        font-size: 0.7rem !important;
    }
}