/* ===============================
   GRID PREMIUM TOKKO — ESTILO HIVEPRESS
   =============================== */

/* Contenedor principal */
.tokko-grid,
.tokko-list {
    display: flex;
    flex-wrap: wrap; /* Permite que los items bajen de fila */
    margin: -10px;   /* Compensar margen interno de items */
    padding: 0;
    justify-content: flex-start;
}

/* Cada card */
.tokko-item {
    flex: 1 1 300px;                /* Ancho base 300px */
    max-width: calc(33.333% - 20px); /* 3 columnas con gap de 20px */
    margin: 10px;                   /* Espacio entre items */
    box-sizing: border-box;
    background: #fff;
    border-radius: 20px;            /* Bordes más redondeados */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); /* Sombra suave */
    display: flex;
    flex-direction: column;
    height: auto;                   /* Altura automática */
    transition: transform .25s ease, box-shadow .25s ease;
}

.tokko-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.12);
}

/* Imagen de la card */
.tokko-item img {
    width: 100%;
    height: 250px;       /* Altura fija para uniformidad */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

/* Contenido interno */
.tokko-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Título */
.tokko-item h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #222;
    line-height: 1.4;
    font-weight: 700;
}

.tokko-item h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.tokko-item h3 a:hover {
    color: #04554c; /* Tu color corporativo */
}

/* Dirección / Texto secundario */
.tokko-address,
.tokko-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Precio (DORADO) */
.tokko-price,
.price {
    font-weight: 900;
    margin: 15px 0;
    font-size: 20px;
    color: #b8860b; /* DORADO OSCURO SOLICITADO */
}

/* Botón */
.tokko-button,
.tokko-item .button {
    margin-top: auto; /* Empuja el botón al fondo siempre */
    display: block;
    padding: 12px 20px;
    background: #04554c; /* Tu color corporativo */
    color: #fff;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.tokko-button:hover,
.tokko-item .button:hover {
    background: #06766a;
}

/* Paginación */
.tokko-pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.tokko-pagination a {
    padding: 10px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.tokko-pagination a.current,
.tokko-pagination a:hover {
    background: #04554c;
    color: #fff;
}

/* ===============================
   RESPONSIVE
   =============================== */

/* Tablets (pantallas medianas) */
@media (max-width: 1024px) {
    .tokko-item {
        max-width: calc(50% - 20px); /* 2 columnas */
    }
    .tokko-item img {
        height: 220px;
    }
}

/* Móviles (pantallas pequeñas) */
@media (max-width: 768px) {
    .tokko-item {
        max-width: 100%; /* 1 columna completa */
        flex: 1 1 100%;
        margin: 10px 0;  /* Ajustar margen vertical */
    }
    .tokko-list {
        margin: 0;      /* Quitar margen negativo en móvil */
    }
    .tokko-item img {
        height: 200px;
    }
    .tokko-item h3 {
        font-size: 1.1em;
    }
}