/* Contenedor que envuelve las cards */
.cards-wrapper {
    display: grid; /* o flex */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    align-items: stretch; /* 👈 hace que todas las tarjetas se estiren */
}


/* Contenedor externo */
.featured-carousel-container {
    position: relative;
    margin: 0 auto;
}

.featured-carousel {
    width: 100%; /* ocupa el contenedor, no full screen */
    padding: 1rem 2rem;
}

.latest-carousel {
    width: 100%; /* ocupa el contenedor, no full screen */
    padding: 1rem 2rem;
}

/* Tarjeta */
.featured-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover{
    transform: translateY(-7px);
    box-shadow: 0 12px 8px rgba(0,0,0,0.1);
}

/* 🔒 Desactivar efecto hover en pantallas pequeñas */
@media (max-width: 576px) {
    .featured-card:hover {
        transform: none;
        box-shadow: none;
    }
}

.featured-card-image img {
    width: 100%;
    aspect-ratio: 920 / 400;       /* mantiene la proporción exacta */
    object-fit: cover;             /* recorta si hace falta */
    border-radius: 6px;
}

/* Contenido */
.featured-card-title {
    font-weight: bold;
    margin-top: 0.3rem;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2; /* máx 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-location {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.7rem;
}

.featured-card-description {
    font-size: 0.9rem;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* máx 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em; /* asegura altura para 2 líneas (ajusta según tu font-size) */
    line-height: 1.5em; /* controla el espacio de cada línea */
}

/* Etiquetas */
.featured-card-tags {
    margin-top: 0.5rem;
}
.featured-card-tags .tag {
    display: inline-block;
    background: #f1f1f1;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    margin: 0.1rem;
    margin-bottom: 0.2rem;
    color: #000;
    transition: all 0.2s ease-in-out;
}

.tag:hover {
    background-color: #0d6efd; /* Azul de Bootstrap */
    color: #fff;
}

.limited-tags {
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* máximo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.featured-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: center;
}

.active-time {
    display: inline-flex;
    font-size: 0.8rem;
    color: #007bff;
    align-items: center;
    gap: 0.3rem;
}

.share-btn{
    display: inline-flex;
}

.follow-btn{
    display: inline-flex;
}

.contact-btn {
    display: inline-flex;
    background: white;
    color: #007bff;
    border: 1px solid #007bff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}
.contact-btn:hover {
    background: #007bff;
    color: white;
}

/* Flechas */
.featured-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-arrow.left {
    left: 0;
}
.featured-arrow.right {
    right: 0;
}

.premium-card {
    border: 2px solid #d4af37 !important; /* Dorado */
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4) !important;
}

.premium-card:hover {
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.5) !important;
}
