/*------------------------------------*\
    Property Cards Section
    Homepage property showcase with image cards and amenities
\*------------------------------------*/



.property-cards__header {
    margin-bottom: 40px;
}

.property-cards__label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--black);
    margin: 0 0 20px 0;
}

.property-cards__title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: var(--font-weight-regular);
    line-height: 110%;
    color: var(--black);
    margin: 0 0 40px 0;
}

.property-cards__header-right {
    margin-bottom: 30px;
}
.property-cards .sub-heading {
    color: var(--gold);
}
.property-cards__notice {
    background-color: var(--light-gray);
    border-radius: 5px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.property-cards__notice-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.property-cards__notice-text {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    color: var(--black);
    line-height: 1.5;
    margin: 0;
    display: flex;
    gap: 10px;

    @media (min-width: 768px) {
        font-size: 15px;
    }

    @media (min-width: 1200px) {
        font-size: 20px;
        align-items: center;
    }
}

.property-cards__notice-text i {
    color: #6C5413;
    line-height: 1.3;

    @media (min-width: 768px) {
        font-size: 20px;
        line-height: 1;
    }
}

.property-cards__description {
    font-family: var(--font-body);
    font-size: var(--font-size-paragraph);
    font-weight: var(--font-weight-regular);
    color: var(--black);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.property-cards__cta {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    gap: 10px;
}

.property-cards__cta-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-cards__cta-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--black);
    margin: 0;
}

.property-cards__cta-arrow {
    width: 30px;
    height: 11px;
    transition: transform 0.3s ease;
}

.property-cards__cta:hover .property-cards__cta-arrow {
    transform: translateX(5px);
}

.property-cards__cta-line {
    width: 100%;
    height: 2px;
    background-color: var(--black);
}

.property-cards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.property-card {
    position: relative;
    text-decoration: none;
    color: var(--black);
    display: block;
}

.property-card__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background-color: var(--light-gray);
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.property-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}


.property-card__overlay {
    display: block;
    max-height: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    position: relative;
    z-index: 1;
    padding: 0 32px 32px 32px;
    transform: translateY(100%);
    
    .btn {
        color: #fff;
        margin-top: 10px;

        &::before {
            background: #fff;
        }
    }
}



.property-card__title {
    position: relative;
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: var(--font-weight-regular);
    line-height: 110%;
    color: var(--black);
    margin: 0;
    width: fit-content;
    z-index: 2;
    border-radius: 0 3px 3px 0;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
    margin-bottom: -10px;
}



.property-card__description {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    line-height: 36px;
    color: var(--white);
    margin: 0 0 20px 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}



.property-card__cta {
  
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    pointer-events: auto;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}



/* Override btn-link styles for property cards overlay */
.property-card__cta.btn-link {
    color: var(--white) !important;
    font-size: 14px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.property-card__cta.btn-link::before {
    background: var(--white) !important;
}

.property-card__cta-text {
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
}

.property-card__cta i {
    font-size: 14px;
    transition: transform 0.3s ease;
}



.property-card__amenities {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.property-card__amenity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-card__amenity-icon {
    flex-shrink: 0;
}
.property-card__amenity-icon i {
    color: var(--dark-gold);
    font-size: 18px;
}

.property-card__amenity-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    color: var(--black);
    margin: 0;
}
.property-card .btn-link {
    color: var(--white);
    padding-bottom: 10px;
}
.property-card .btn-link::before{
    background: var(--white);
}
/* Tablet: 2 columns */
@media (min-width: 768px) {    
    .property-cards__header-right {
        flex: 0 0 50%;
        margin-bottom: 0;
    }
    
    .property-card__title {
        font-size: 24px;
        padding: 10px 32px;
    }
    
    .property-cards__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .property-card__image-wrap {
        height: 315px;
    }
    .property-card__amenity-text {
        font-size: 16px;
    }
    .property-card__amenities{
        margin-top: 20px;
        gap: 10px;
        padding-left: 34px;
        padding-right: 34px;
    }
    .property-card__amenity-icon i {
        font-size: 20px;
    }
}

/* Desktop: 4 columns */
@media (min-width: 1200px) {
    .property-cards__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 40px;

        h2:last-child {
            margin-bottom: 0;
        }
    }

    .property-card__title {
        font-size: 30px;
        margin-bottom: 0;
    }
    
    .property-card__description {
        font-size: 16px;
        margin-bottom: 0;
    }
   
    .property-cards__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
    .property-card__image-wrap:hover{
        box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.30);
        cursor: pointer;
    }
    .property-card__image-wrap:hover .property-card__overlay {
        max-height: 100%;
        opacity: 1;
        transform: translateY(0);
      
    }
    .property-card__image-wrap:hover .property-card__title {
        margin-bottom: 0;
        background: transparent;
        color: var(--white);
    }

    .property-card__image-wrap:hover::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
        background: linear-gradient(180deg, rgba(108, 84, 19, 0.00) 5.9%, rgba(108, 84, 19, 0.60) 49.29%, rgba(108, 84, 19, 0.90) 100%);

    }
    
   
}

/* Large Desktop */ 
@media (min-width: 1366px) {
    .property-cards {
        padding: 80px 0;
    }
    
    .property-cards__header {
        margin-bottom: 50px;
    }
    .property-card__image-wrap {
        height: 425px;
    }
   

}

