@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* section-1 */

.section_1 {
    width: 100%;
    height: auto;
    /* border: 1px solid red; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.section_1 .section_1_container {
    width: 1140px;
    height: auto;
}


/* section-1-1 */
.section_1_container .section_1_1 {
    width: 100%;
    height: 350px;
    /* border: 1px solid red; */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.section_1_1>.sec_1_1 {
    width: 50%;
    height: 100%;
}

.section_1_1>.sec_1_1 img {
    width: 100%;
    height: 100%;
    border-radius: 20px 0px 0px 20px;
}

.section_1_1>.sec_1_2 {
    width: 50%;
    height: 100%;
    /* border: 1px solid blue; */
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px;
    justify-content: space-between;
}


.section_1_1>.sec_1_2>div {
    width: 277px;
    height: 170px;
    /* border: 1px solid red; */
}

.section_1_1>.sec_1_2>div img {
    width: 100%;
    height: 100%;
}

.section_1_1>.sec_1_2>div .img2 {
    width: 100%;
    height: 100%;
    border-radius: 0px 20px 0px 0px;
}

.section_1_1>.sec_1_2>div:last-child .img4 {
    width: 100%;
    height: 100%;
    border-radius: 0px 0px 20px 0px;
    position: relative;
}

.section_1_1>.sec_1_2>.img4div {
    position: relative;
}

.section_1_1>.sec_1_2>.img4div .btn1 {
    position: absolute;
    right: 15px;
    bottom: 10px;
    width: 164px;
    height: 35px;
    border: none;
    background-color: #46AD67;
    color: white;
    font-size: 18px;
    cursor: pointer;
}


/* section-1-2 */
.section_1_container .section_1_2 {
    width: 100%;
    /*height: 143px;*/
    margin-top: 2%;
    /* border: 1px solid red; */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.section_1_2>div:first-child {
    width: 40%;
    height: 100%;
    /* border: 1px solid red; */
    padding-left: 20px;
}

.section_1_2>div:first-child h3 {
    font-weight: 600;
    font-size: 30px;
}

.section_1_2>div:first-child h4 {
    font-weight: 600;
    font-size: 30px;
}

.section_1_2>div:first-child p {
    font-weight: 400;
    font-size: 18px;
    padding-inline-end: 5%;
}


.section_1_2>div:nth-child(2) {
    width: 30%;
    height: 100%;
    /* border: 1px solid red; */
    display: flex;
}

.section_1_2>div:nth-child(2)>div {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-left: 20px;
}

.section_1_2>div:nth-child(2)>div img {
    width: 20px;
}

.section_1_2>div:nth-child(2)>div strong {
    font-size: 30px;
    font-weight: 600 !important;
    margin-left: 2px;
}

.section_1_2>div:nth-child(2)>div p {
    font-size: 18px;
    font-weight: 400;
    color: #181A20;
}

.section_1_2>div:last-child {
    width: 277px;
    height: 100%;
    border: 1px solid #46AD67;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

/* Common button style */
.section_1_2>div:last-child button {
    width: 247px;
    height: 55px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Active style */
.section_1_2>div:last-child .active {
    background-color: #46AD67;
    border: none;
    color: white;
}

/* Inactive style */
.section_1_2>div:last-child .inactive {
    background: none;
    border: 1px solid #46AD67;
    color: #46AD67;
}




/* section-1-3 */
.section_1_container .section_1_3 {
    margin-top: 4%;
    width: 853px;
    height: auto;
    /* border: 1px solid red; */
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.tab-btn {
    width: 281px;
    height: 38px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    color: #555;
    border-bottom: 2px solid #555;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #16a34a;
}

.tab-btn.active {
    color: #16a34a;
    font-weight: 500;
    border-bottom: 2px solid #16a34a;
}

/* Content */
.property-tab-content {
    display: none;
    margin-top: 4%;
    animation: fadeIn 0.3s ease-in-out;
}

.property-tab-content.active {
    display: block;
}

.property-tab-content h2 {
    font-size: 30px;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 10px;
}

.property-tab-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
}

.read-more {
    font-size: 18px;
    font-weight: 500;
    color: #16a34a;
    text-decoration: underline;
    cursor: pointer;
}

.read-more:hover {
    text-decoration: underline;
}

/* hide extra text initially */
.more-text {
    display: none;
}

.more-text.show {
    display: inline;
}


/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*---------- para las tarjetas ----------*/
.property-card {
    width: 100%;
    max-width: 400px;
    height: 451px;
    border-radius: 20px;
    box-shadow: 0px 1px 10px 3px rgb(195, 195, 195);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.sec_2_2 > div .sec_2_2_img1 {
    position: relative;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    width: 100%;
    border-radius: 20px 20px 0px 0px;
    overflow: hidden;
    flex-shrink: 0;
}

.slick-prev,
.slick-next {
    height: 40px;
    width: 40px;
    z-index: 1;
    text-align: center;
    border-radius: 3px;
    font-weight: 700;
    color: #fff;
    border: none;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.slider-wrapper .slider-placeholder-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* CSS custom property: NitroPack intercepts background-image:url() literally
       but cannot parse var(). --prop-bg is set via inline style on the element. */
    background-image: var(--prop-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.price-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.sec_2_2 > div .sec_2_2_des {
    min-height: 180px;
    width: 100%;
    border-radius: 0 0 20px 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
}

.property-card .sec_2_2_des1 {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

.sec_2_2 > div .sec_2_2_des2 {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.sec_2_2 > div .sec_2_2_des3 {
    display: flex;
    flex-direction: row;
    gap: 4px;
    border-top: #ccc solid 1px;
}

.slick-prev,
.slick-next {
    height: 40px;
    width: 40px;
    z-index: 1;
    text-align: center;
    border-radius: 3px;
    font-weight: 700;
    color: #fff;
    border: none;
}

/* --- Nuevos estilos para la sección 2 --- */
.sec-main {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sec-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px 20px 20px;
}

.sec-main > div:first-child {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto 30px auto;
}

.mexlife-main-header {
    font-size: 30px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: left;
}

/* Grid de tarjetas - Coincide con prefilterkorey */
.sec_2_2 {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    /* auto-fill (no auto-fit): con 1-2 resultados deja columnas vacías en vez de
       estirar las tarjetas existentes para llenar el ancho. */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    justify-items: stretch;
    padding-bottom: 20px;
}

.sec_2_2 > div {
    width: 100%;
    min-height: 400px;
    border-radius: 20px;
    box-shadow: 0px 1px 10px 3px rgb(195, 195, 195);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sec_2_2 > div:hover {
    transform: translateY(-4px);
    box-shadow: 0px 4px 20px 3px rgba(195, 195, 195, 0.5);
}

.slick-prev,
.slick-next {
    height: 40px;
    width: 40px;
    z-index: 1;
    text-align: center;
    border-radius: 3px;
    font-weight: 700;
    color: #fff;
    border: none;
}

.sec_2_2 > div .sec_2_2_img1 .property-slider,
.sec_2_2 > div .sec_2_2_img1 .slick-list,
.sec_2_2 > div .sec_2_2_img1 .slick-track,
.sec_2_2 > div .sec_2_2_img1 .slick-slide {
    height: 100% !important;
}

.sec_2_2 > div .sec_2_2_img1>img,
.img-slider {
    height: 220px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 20px 20px 0px 0px;
}

.slick-arrow {
    background-color: rgba(0, 0, 0, 0) !important;
}

.slick-next,
.slick-prev,
.slick-next:focus,
.slick-prev:focus {
    background-color: rgba(0, 0, 0, 0);
}

.property-card .sec_2_2_des1 {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

.property-location,
.p1 {
    margin-bottom: 0;
}

.sec_2_2 > div .sec_2_2_des2 span {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sec_2_2 > div .sec_2_2_des2 span img {
    height: 16px;
    width: 16px;
}