/* Main Container */
#jjo-container {
    max-width: 1200px;
    margin: 0 auto;
    /* Fuente moderna */
}

/* Filtros */
.jjo-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 16px;
}

#jjo-search-input,
#jjo-region-select {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    background: #f9f9f9;
    color: #333;
    outline: none;
    transition: all 0.2s;
    width: 300px;
}

#jjo-search-input:focus,
#jjo-region-select:focus {
    background: #fff;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Grid - Enforcing 3 columns on desktop */
.jjo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .jjo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .jjo-grid {
        grid-template-columns: 1fr;
    }
}

/* --- NEW CARD DESIGN --- */

/* Stilos para Vencidas (Gris) */
.jjo-card.is-expired {
    background-color: #fafafa;
    border-color: #e0e0e0;
    opacity: 0.8;
    filter: grayscale(1);
    box-shadow: none;
}

.jjo-card.is-expired:hover {
    transform: none;
    box-shadow: none;
}

.jjo-card.is-expired .jjo-title,
.jjo-card.is-expired .jjo-price {
    color: #666 !important;
}

.jjo-card.is-expired .jjo-tag-btn {
    pointer-events: none;
    background: #eee;
    color: #999;
}

/* --- NEW CARD DESIGN --- */
.jjo-card {
    background: #fff;
    border-radius: 24px;
    /* Bordes muy redondeados como la imagen */
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #f5f5f5;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.jjo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

/* Header: Logo + Title */
.jjo-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.jjo-logo-area {
    flex-shrink: 0;
}

.jjo-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #f4f6f8;
    /* Fondo para logos transparentes */
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.jjo-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.jjo-title-area {
    flex-grow: 1;
}

.jjo-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.jjo-menu-dots {
    color: #ccc;
    font-size: 20px;
    cursor: context-menu;
    line-height: 0.5;
}

/* Meta: Location + Time */
.jjo-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.jjo-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #353535;
    font-weight: 500;
}

.jjo-meta-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #ff5656;
}

/* Description */
.jjo-card-desc {
    font-size: 14px;
    color: #353535;
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 66px;
    /* Aprox 3 lineas */
}

/* Info Row: Author/Entity + Price */
.jjo-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.jjo-author {
    font-size: 13px;
    font-weight: 600;
    color: #7d7d7d;
    /* Color lila tipo "Amanda" */
    display: flex;
    align-items: center;
    gap: 6px;
}

.jjo-dot {
    width: 8px;
    height: 8px;
    background-color: #90ee90;
    /* Green dot */
    border-radius: 50%;
    display: inline-block;
}

.jjo-price {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    /* Blue price */
}

/* Footer Links (Adobe XD style) */
.jjo-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    /* Push to bottom */
}

.jjo-tag-btn {
    background: #f3f0ff;
    /* Light purple background */
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.jjo-tag-btn:hover {
    background: #e0d8ff;
    color: #000;
    transform: translateY(-2px);
}

.jjo-no-links {
    font-size: 12px;
    color: #ccc;
    font-style: italic;
}

/* Pagination */
.jjo-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.jjo-page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: all 0.2s;
}

.jjo-page-btn:hover:not(:disabled) {
    background: #0073aa;
    color: #fff;
}

.jjo-page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.jjo-page-info {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}