/* --- VARIABLES --- */
:root {
    --yext-green: #2E9346;
    --yext-gold: #C5A059;
    --yext-pink: #D81B60;
    --yext-dark: #1A1A1A;
}

/* --- HERO SECTION --- */
.premium-hero-carousel .carousel-item {
    height: 75vh;
    background-color: #000;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
}

.badge-premium-gold {
    background-color: var(--yext-gold);
    color: white;
    padding: 6px 20px;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.9rem;
    display: inline-block;
}

.btn-yext-gold {
    background-color: var(--yext-gold);
    color: white;
    border-radius: 0;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
}

/* --- COMMON CARD STYLES --- */
.property-card {
    border: 1px solid #eee;
    background: #fff;
    border-radius: 0;
    transition: all 0.3s ease;
}

.card-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

    .card-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.property-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

/* --- PREMIUM: ELITE LOOK --- */
.tier-premium {
    border: 2px solid var(--yext-gold) !important;
    transform: scale(1.01);
    z-index: 2;
}

.card-body-premium {
    background-color: #fcfcfc;
    border-top: 5px solid var(--card-border-color, var(--yext-gold));
}

.badge-premium {
    background-color: #E31F26;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    z-index: 5;
}

.tier-plus {
    border: 2px solid var(--yext-green) !important;
}

.card-body {
    background-color: #fcfcfc;
    border-top: 5px solid var(--card-border-color, var(--yext-green));
}

.price-tag-premium {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--yext-dark);
    color: #fff;
    padding: 10px 25px;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 5;
    border-bottom: none;
}

.btn-premium-action,
.tier-plus .btn-outline-dark {
    border-radius: 0;
    padding: 12px;
    transition: 0.3s;
    letter-spacing: 1px;
}

.btn-premium-action {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    border: 1px solid var(--yext-gold);
    box-shadow: 0 0 0 1px rgba(197,160,89,0.25) inset;
}

    .btn-premium-action:hover {
        background: linear-gradient(135deg, var(--yext-gold) 0%, #b58a3a 100%);
        color: #fff;
        transform: translateY(-1px);
    }

.tier-plus .btn-outline-dark {
    border-width: 1px;
    box-shadow: 0 0 0 1px rgba(46,147,70,0.25) inset;
}

.badge-tier-gold {
    background-color: var(--yext-gold);
    color: white;
    font-size: 0.65rem;
    padding: 3px 10px;
    font-weight: bold;
}

/* --- PLUS STYLES --- */
.plus-seal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--yext-green);
    color: #fff;
    min-width: 78px;
    height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,0.95);
    box-shadow: 0 6px 14px rgba(0,0,0,0.28);
    text-shadow: 0 1px 1px rgba(0,0,0,0.25);
    z-index: 5;
}

.price-tag-plus {
    position: absolute;
    bottom: 0;
    right: 0;
    background: transparent;
    color: #fff;
    padding: 10px 25px;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 5;
    border-bottom: none;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.property-card-title {
    font-size: clamp(1.5rem, 1.85vw, 1.8rem);
    line-height: 1.15;
    min-height: calc(1.15em * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* --- CATALOGO COMPLEMENTARIO (ESTILO SOLICITADO) --- */
.bg-yext-green {
    background-color: var(--yext-green) !important;
}

.title-yext-green {
    color: var(--yext-green);
    letter-spacing: 2px;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
}

    .table thead th {
        border: none !important;
    }

    .table tbody td {
        border-bottom: 1px solid #eaeaea;
    }

.btn-ver-mas-discreto {
    color: #aaaaaa !important; /* Gris muy claro */
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .btn-ver-mas-discreto:hover {
        color: var(--yext-green) !important;
    }

/* --- CATALOGO COMPLEMENTARIO COMPACTO --- */
.complementary-catalog-table-wrap {
    border-radius: 14px;
    overflow: hidden;
}

/* Padding extra para el contenedor de catálogo */
.container-padded {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 991.98px) {
    .container-padded {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .container-padded {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.complementary-catalog-table {
    table-layout: fixed;
}

.complementary-catalog-table tbody tr.complementary-catalog-row td {
    vertical-align: middle;
}

.complementary-catalog-cell {
    font-size: .95rem;
    line-height: 1.25;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.complementary-catalog-cell-title {
    min-width: 0;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.complementary-catalog-cell-image {
    padding: 0.75rem !important;
}

.complementary-catalog-thumbnail {
    width: 56px;
    height: 56px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.complementary-catalog-section {
    font-size: .95rem;
    text-align: left;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
}

.complementary-catalog-surface {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
}

.complementary-catalog-price {
    white-space: nowrap;
    font-size: 1rem;
    text-align: right;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
}

.complementary-catalog-actions {
    white-space: nowrap;
    padding-left: 0.8rem !important;
    padding-right: 1.2rem !important;
}

.complementary-catalog-actions .btn-ver-mas-discreto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .complementary-catalog-table {
        table-layout: auto;
        display: block;
        width: 100%;
    }

    .complementary-catalog-table colgroup,
    .complementary-catalog-table thead {
        display: none;
    }

    .complementary-catalog-table tbody {
        display: block;
    }

    .complementary-catalog-table tbody tr.complementary-catalog-row {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "img title title"
            "img surface section"
            "price price actions";
        column-gap: .75rem;
        row-gap: .35rem;
        align-items: center;
        padding: .9rem .75rem;
        border-bottom: 1px solid #e9ecef;
    }

    .complementary-catalog-table tbody tr.complementary-catalog-row > td {
        display: block;
        width: auto !important;
        min-width: 0;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        font-size: .85rem;
        line-height: 1.3;
    }

    .complementary-catalog-cell-image {
        grid-area: img;
    }

    .complementary-catalog-cell-title {
        grid-area: title;
        font-size: .95rem;
    }

    .complementary-catalog-surface {
        grid-area: surface;
    }

    .complementary-catalog-section {
        grid-area: section;
    }

    .complementary-catalog-price {
        grid-area: price;
        font-size: 1.05rem;
    }

    .complementary-catalog-actions {
        grid-area: actions;
        justify-self: end;
    }

    .complementary-catalog-thumbnail {
        width: 56px;
        height: 56px;
    }

    .complementary-catalog-actions .btn-ver-mas-discreto {
        min-height: 36px;
        padding: .25rem .6rem;
    }
}


/* --- HELPERS --- */
.section-padding {
    padding: 80px 0;
}

.title-divider-pink {
    width: 70px;
    height: 4px;
    background-color: var(--yext-pink);
    margin-top: 1.5rem;
}

.title-yext {
    letter-spacing: 2px;
}

/* --- EMPTY LANDING STATE --- */
.landing-empty-state {
    min-height: 58vh;
    display: flex;
    align-items: center;
}

.landing-empty-card {
    width: 100%;
    max-width: 740px;
    background: linear-gradient(180deg, #ffffff 0%, #fff9fc 100%);
    border: 1px solid #f4d7e5;
    border-radius: 16px;
    padding: 36px 22px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.landing-empty-icon-wrap {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(216, 27, 96, 0.12);
    color: var(--yext-pink);
    font-size: 1.9rem;
}

.landing-empty-title {
    margin: 0;
    color: var(--yext-dark);
    font-weight: 800;
    line-height: 1.25;
    font-size: clamp(1.45rem, 4.8vw, 2.35rem);
}

.landing-empty-subtitle {
    margin: 14px 0 0;
    color: #6d6d6d;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .landing-empty-card {
        padding: 44px 36px;
    }

    .landing-empty-icon-wrap {
        width: 88px;
        height: 88px;
        font-size: 2.1rem;
    }
}
