/* Empreendimento unit/type cards
   Deliberately uses unique class names to avoid legacy listing-card CSS conflicts. */

.empreendimento-types-section {
    overflow: hidden;
}

.empreendimento-types-intro {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
    color: #606770;
    font-size: 1.05rem;
    line-height: 1.65;
}

.empreendimento-types-carousel {
    position: relative;
    width: 100%;
}

.empreendimento-types-track {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding: 8px 0 18px;
    margin: 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-inline: 4px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 transparent;
}

.empreendimento-types-track--centered {
    justify-content: center;
}

.empreendimento-types-track::-webkit-scrollbar {
    height: 7px;
}

.empreendimento-types-track::-webkit-scrollbar-track {
    background: transparent;
}

.empreendimento-types-track::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 999px;
}

.empreendimento-type-card {
    box-sizing: border-box;
    flex: 0 0 272px !important;
    width: 272px !important;
    min-width: 272px !important;
    max-width: 272px !important;
    margin: 0 !important;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.empreendimento-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.12);
}

.empreendimento-type-card__link {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

.empreendimento-type-card__image {
    position: relative;
    width: 100%;
    height: 178px !important;
    min-height: 178px;
    max-height: 178px;
    overflow: hidden;
    background: #f1f3f5;
}

.empreendimento-type-card__image img {
    display: block !important;
    width: 100% !important;
    height: 178px !important;
    max-width: none !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.empreendimento-type-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: #db4a2b;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.empreendimento-type-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.empreendimento-type-card__body h3 {
    margin: 0 0 10px !important;
    color: #2c3e50;
    font-size: 1.12rem !important;
    line-height: 1.3;
}

.empreendimento-type-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 11px;
    color: #555;
    font-size: 0.86rem;
    line-height: 1.4;
}

.empreendimento-type-card__facts span {
    white-space: nowrap;
}

.empreendimento-type-card__description {
    margin: 0 0 14px !important;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.empreendimento-type-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eeeeee;
}

.empreendimento-type-card__price {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.empreendimento-type-card__price small {
    margin-bottom: 2px;
    color: #777;
    font-size: 0.72rem;
}

.empreendimento-type-card__price strong {
    color: #db4a2b;
    font-size: 0.98rem;
    line-height: 1.25;
}

.empreendimento-type-card__cta {
    color: #2c3e50;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}


.empreendimento-types-dots {
    display: none;
}

.empreendimento-types-dots[hidden] {
    display: none !important;
}

.empreendimento-types-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #2c3e50;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.empreendimento-types-nav--prev {
    left: -14px;
}

.empreendimento-types-nav--next {
    right: -14px;
}

.empreendimento-types-nav:disabled {
    cursor: default;
    opacity: 0.35;
}

.empreendimento-types-nav[hidden] {
    display: none !important;
}

/* 4 x 272px + 3 x 24px = 1160px, matching the existing 1200px container
   with 20px left/right padding. */

@media (max-width: 1199px) {
    .empreendimento-types-nav--prev {
        left: 2px;
    }

    .empreendimento-types-nav--next {
        right: 2px;
    }
}

@media (max-width: 768px) {
    .empreendimento-types-intro {
        margin-bottom: 24px;
        font-size: 1rem;
    }

    .empreendimento-types-track {
        gap: 16px;
        padding: 6px 20px 16px;
        scroll-padding-inline: 20px;
    }

    .empreendimento-types-track--centered {
        justify-content: center;
    }

    .empreendimento-type-card {
        flex: 0 0 min(340px, calc(100vw - 48px)) !important;
        width: min(340px, calc(100vw - 48px)) !important;
        min-width: min(340px, calc(100vw - 48px)) !important;
        max-width: min(340px, calc(100vw - 48px)) !important;
        scroll-snap-align: center;
    }

    .empreendimento-type-card__image,
    .empreendimento-type-card__image img {
        height: 190px !important;
        min-height: 190px;
        max-height: 190px;
    }

    .empreendimento-types-nav {
        display: none !important;
    }

    .empreendimento-types-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 18px;
        margin-top: 2px;
    }

    .empreendimento-types-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #cfd4da;
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .empreendimento-types-dot--active {
        background: #db4a2b;
        transform: scale(1.35);
    }

    .empreendimento-types-dot:focus-visible {
        outline: 2px solid #db4a2b;
        outline-offset: 3px;
    }

    .empreendimento-types-track {
        scrollbar-width: none;
    }

    .empreendimento-types-track::-webkit-scrollbar {
        display: none;
    }
}
